994c6d7333a910a91e4f27e362394a2f35d35c17
[gnulib.git] / ChangeLog
1 2013-08-24  Daiki Ueno  <ueno@gnu.org>
2
3         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
4         of AC_CHECK_DECLS.
5
6 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
7
8         selinux-at: omit unnecessary include
9         * lib/selinux-at.c: Don't include dosname.h; not needed, since
10         this source file doesn't use its macros, and subsidiary files that
11         use the macros already include it.
12
13 2013-08-21  Eric Blake  <eblake@redhat.com>
14
15         d-ino: avoid false negative on symlink
16         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
17         Reported by Stephane Chazelas.
18
19 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
20
21         bootstrap: port to OpenBSD sed
22         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
23         does not interpret `-' as a file argument to mean stdin.
24
25 2013-08-15  Eric Blake  <eblake@redhat.com>
26
27         warnings: minor optimization
28         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
29
30         warnings: check -Wfoo rather than -Wno-foo
31         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
32         -Wno-, test if the compiler recognizes the positive form instead.
33
34 2013-08-15  Karl Berry  <karl@gnu.org>
35
36         * config/srclist-update: add option "doclicense" to placate
37         pulling *.texi files from Emacs.  Write terse usage
38         documentation at the top.
39
40 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
41
42         xvasprintf-tests: port to GCC with hardening flags
43         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
44         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
45         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
46
47 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48
49         fpending: port to recent Cygwin change to stdio_ext.h
50         Reported by LRN in
51         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
52         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
53         just declare __fpending unless it's a macro.
54         A duplicate decl shouldn't hurt.
55         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
56         call compiles and links, instead of separately checking for
57         decl and lib function.
58         * modules/fpending (configure-ac):
59         Adjust to fpending.m4's renaming of shell variable.
60
61 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62
63         sys_time: port to OpenBSD
64         * lib/sys_time.in.h: Simply delegate to the system's header
65         in the BSDish cases as well.  Problem reported by Mike Miller in
66         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
67         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
68         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
69         wider than time_t.
70
71 2013-08-09  Pádraig Brady <P@draigBrady.com>
72
73         bootstrap: support checksum utils having -c but not --status
74         * build-aux/bootstrap: Only look for sha1sum if updating po files.
75         Add sha1 to the list of supported checksum utils since it's now
76         supported through adjustments below.
77         (update_po_files): Remove the use of --status
78         in a way that will suppress all error messages, but since this is
79         only used to minimize updates, it shouldn't cause an issue.
80         Exit early if there is a problem updating the po file checksums.
81         (find_tool): Remove the check for --version support as this
82         is optional as per commit 86186b17.  Don't even check for the
83         presence of the command as if that is needed, it's supported
84         through configuring prerequisites in bootstrap.conf.
85         Prompt that when a tool isn't found, one can define an environment
86         variable to add to the hardcoded search list.
87
88 2013-08-05  Jim Meyering  <meyering@fb.com>
89
90         regex: port to non-glibc/lock-using systems
91         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
92         system with GNULIB_LOCK would fail due to absence of the
93         included "glthread/lock.h".  This would affect any package
94         for which the "lock" module is used only by the regex module,
95         and not explicitly used.
96         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
97         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
98         Add a dependency on the "lock" module.
99
100 2013-07-20  Daiki Ueno  <ueno@gnu.org>
101
102         localecharset: make locale_charset thread-safe on Mac OS X
103         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
104         instead of MB_CUR_MAX.
105
106 2013-07-20  Daiki Ueno  <ueno@gnu.org>
107
108         gettext: update to version 0.18.3
109         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
110         require AC_PROG_SED to allow user to specify custom sed command when
111         generating en@quot PO file.
112
113 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
114
115         bootstrap: use correct source when copying build-aux files
116         * build-aux/bootstrap (gnulib_extra_files): This variable is
117         relative to upstream gnulib layout, not downstream.
118
119 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
120
121         tmpdir: fix bug in VMS port
122         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
123         See Steven M. Schweda in
124         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
125
126 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
127
128         tmpdir: port to VMS, to // != /, and to long dirs
129         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
130         __secure_getenv, so that we're more like the glibc version.
131         All uses changed.
132         (path_search): Don't put slash after directory if __VMS.
133         Problem reported by Steven M. Schweda in
134         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
135         Simplify code to add slash; no need for a loop.
136         Do not remove trailing slash from "//".
137         Do not assume dlen <= INT_MAX.
138
139 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
140
141         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
142         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
143         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
144         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
145
146         accept4, dup3, pipe2: port to Cygwin
147         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
148         * lib/accept4.c (accept4) [O_BINARY]:
149         * lib/dup3.c (dup3) [O_BINARY]:
150         * lib/pipe2.c (pipe2) [O_BINARY]:
151         Use set_binary_mode, not setmode.
152         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
153         * modules/binary-io (Depends-on): Remove module indicator.
154         These last two bits undo the previous change to pipe2 and binary-io.
155
156 2013-07-09  Pádraig Brady  <P@draigBrady.com>
157
158         mountlist: add support for deallocating returned list entries
159         * lib/mountlist.c (free_mount_entry): A new exported function
160         to deallocate a mount list entry.
161         (read_file_system_list): Refactor to use the new deallocation function.
162         Suggested by Anton Ovchinnikov.
163
164 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
165
166         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
167         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
168         * lib/stdalign.in.h (_Alignas, _Alignof):
169         Port to FreeBSD 9.1, and to C11 and C++11.
170         (_Alignas): Also support ICC.
171         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
172         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
173
174 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
175
176         fnmatch: don't goto over declaration
177         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
178         undefined behavior for goto over a declaration.
179         Problem reported by Charlie Brown in
180         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
181
182         pipe2: decouple from binary-io a bit
183         This is for Emacs, which needs pipe2 but not binary-io.
184         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
185         * modules/binary-io (Depends-on): Add module indicator.
186
187 2013-07-03  Eric Blake  <eblake@redhat.com>
188
189         mgetgroups: relax license to LGPLv2+
190         * modules/getugroups (License): Change from GPLv3+.
191         * modules/mgetgroups (License): Likewise.
192         * modules/getgroups (License): Change from LGPLv3+.
193
194         xalloc-oversized: relax license to LGPLv2+
195         * modules/xalloc-oversized (License): Change from GPLv3+.
196
197         nproc: relax license to LGPLv2+
198         * modules/nproc (License): Change from LGPLv3+.
199
200         bootstrap: honor --no-git
201         * build-aux/bootstrap: Don't even try to use git when user is
202         pointing to a static checkout.
203
204 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
205
206         ignore-value: port to gcc -pedantic
207         * lib/ignore-value.h (ignore_value):
208         Port to gcc -pedantic, by using __extension__.
209         Reindent as per usual gnulib style nowadays.
210         Simplify GCC version check.
211
212 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
213
214         extern-inline: port to gcc -std=c89
215         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
216         Do not use __gnu_inline__ if pedantic and pre-C99.
217
218 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
219
220         doc: document extern-inline
221         * doc/extern-inline.texi: New file.
222         * doc/gnulib.texi (alloca-opt): Include it.
223         * m4/extern-inline.m4: Move some comments to documentation,
224         and others closer to what they describe.
225
226         doc: chatter less
227         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
228         (updated-stamp): Use it.  This causes 'make' to output just
229         one file name rather than zillions.
230
231         fflush, fseeko: port to musl cross-compiles
232         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
233         on some implementation that (1) is not known to be buggy,
234         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
235         cross-compiled to so we can't easily check for lack of
236         conformance.  This is for cross-compiling to musl.
237         Reported by Rich Felker in
238         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
239         * m4/fclose.m4 (gl_FUNC_FCLOSE):
240         * m4/fflush.m4 (gl_FUNC_FFLUSH):
241         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
242         Adjust to above change.
243         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
244         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
245         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
246         known not to work, or unknown.
247
248 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
249
250         msvc-inval: port to mingw-w64
251         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
252         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
253         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
254
255 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
256
257         getcwd-lgpl: port to Tru64
258         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
259         Problem reported by Steven M. Schweda in
260         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
261
262         tests: port large-fd POSIX spawn tests to OS X
263         Problem reported by Daiki Ueno in
264         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
265         * tests/test-posix_spawn_file_actions_addclose.c:
266         * tests/test-posix_spawn_file_actions_adddup2.c:
267         * tests/test-posix_spawn_file_actions_addopen.c:
268         Include <limits.h>, for OPEN_MAX, if available.
269         (big_fd): New static function.
270         (main): Use it.
271
272 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
273
274         tests/nap.h: use an adaptive delay to avoid ctime update issues
275         The recent change in nap.h (5191133e) decreased the probability of lost
276         races to about a third, however such problems could still be observed
277         in virtual machines and openSUSE's OBS.
278         Before, nap() detected the needed time once empirically and then used
279         that delay (together with a small correction multiplier) in further
280         calls.  This problem has been reported and discussed several times,
281         including guesses about possible kernel issues:
282         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
283         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
284         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
285         http://bugs.gnu.org/12820
286         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
287         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
288         Now, nap() avoids the race alltogether by verifying on a reference
289         file whether a timestamp difference has happened.
290         * tests/nap.h (nap_fd): Define file descriptor variable for the
291         witness file.
292         (nap_works): Change return value to bool.  Change passing
293         the old file's status by value instead of by reference as this function
294         does no longer update that timestamp; rename the function argument from
295         st to old_st.  Remove the local variables cdiff and mdiff because that
296         function now returns true/false instead of the precise delay.
297         (guess_delay): Remove function.
298         (clear_tmp_file): Add new function to close and unlink the witness file.
299         (nap): Instead of re-using the delay which has been calculated during
300         the first call, avoid the race by actually verifying that a timestamp
301         difference can be observed on the current file system.  Use an adaptive
302         approach for the delay to minimize execution time.  Assert that the
303         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
304         = 2^31 - 1 = 2.1s.
305         Use atexit to call clear_tmp_file when the process terminates.
306
307 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
308
309         sig2str: port to C++
310         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
311         Reported by Daniel J Sebald in
312         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
313
314 2013-05-30  Eric Blake  <eblake@redhat.com>
315
316         docs: mention cygwin shortcoming in <sys/un.h>
317         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
318
319         vasnprintf: silence mingw compiler warning
320         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
321
322 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
323
324         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
325         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
326         This fixes a porting bug I recently reintroduced in regex, and
327         some other instances that I discovered while testing the fix.
328         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
329         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
330         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
331         with an empty argument if this is a pedantic pre-C99 GCC.
332         * lib/verify.h: Do not use _Static_assert if this is a pedantic
333         pre-C11 GCC.
334
335         regex: adapt to locking regime instead of depending on pthread
336         Instead of depending on pthread, adapt to whatever thread
337         modules are in use.  Problem reported by Ludovic Courtès in
338         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
339         and by Mats Erik Andersson in
340         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
341         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
342         Support either the 'lock' module, or the 'pthread' module, or
343         no module.
344         (lock_lock, lock_unlock): New macros.
345         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
346         * modules/lock, modules/pthread (configure.ac): Add module indicator.
347         * modules/regex (Depends-on): Remove pthread.
348
349 2013-05-22  Eric Blake  <eblake@redhat.com>
350
351         getgroups: document portability issues
352         * doc/glibc-functions/initgroups.texi (initgroups): Mention
353         multithread safety.
354         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
355         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
356         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
357         getugroups.
358         * doc/posix-functions/getgroups.texi (getgroups): Mention
359         multithread safety and mgetgroups.
360
361 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
362
363         test-lchown, test-chown: also skip test if chown fails with EPERM
364         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
365         skip this test, to handle FAT file systems.
366         * tests/test-chown.h (test_chown): Likewise.
367
368 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
369
370         regex: fix dfa race in multithreaded uses
371         Problem reported by Ludovic Courtès in
372         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
373         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
374         New macros.  All uses of __libc_lock_define, __libc_lock_init
375         changed to use the first two of these.
376         (__libc_lock_lock, __libc_lock_unlock): New macros, for
377         non-glibc platforms.
378         (struct re_dfa_t): Define the lock unconditionally.
379         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
380         '#ifdef _LIBC"s.
381         * modules/regex (Depends-on): Add pthread, if we use the
382         included regex.
383
384         * lib/regcomp.c: Do actions that are not needed for glibc,
385         but may be needed elsewhere.
386         (regfree, re_compile_internal): Destroy the lock.
387         (re_compile_internal): Check for lock-initialization failure.
388
389         malloca: port to compilers that reject size-zero arrays
390         This fixes a bug introduced in my previous patch.
391         * lib/malloca.c (struct preliminary_header): Use an int
392         rather than a character array of size int; that's simpler.
393         (struct header): Remove, replacing with ...
394         (union header): New type.  This avoids the need for declaring a
395         character array of size zero, which is not allowed on some platforms.
396         All uses changed.
397
398 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
399
400         parse-datetime, tests: don't use "string" + int
401         Recent versions of 'clang' complain about C source code that
402         uses expressions of the form '"string literal" + integer',
403         I guess on the theory that it's confusing for readers who are
404         used to C++.  On those grounds I suppose it's OK to make this
405         minor style change.
406         * lib/parse-datetime.y (parse_datetime):
407         * tests/test-fchdir.c (main):
408         * tests/test-snprintf-posix.h (test_function):
409         * tests/test-snprintf.c (main):
410         * tests/test-vasnprintf-posix.c (test_function):
411         * tests/test-vasnprintf.c (test_function):
412         * tests/test-vsnprintf.c (main):
413         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
414         Rewrite '"str" + E' to '&"str"[E]'.
415
416 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
417
418         argmatch: port to C++
419         * lib/argmatch.h [__cplusplus]: Add extern "C".
420
421         argp: typo fix
422         * lib/argp-help.c: Typo in comment.
423
424 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
425
426         manywarnings: update for GCC 4.8.0
427         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
428         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
429         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
430         -Wmissing-noreturn, as they are duplicates of other warnings.
431         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
432         was documented to be flaky in earlier versions of GCC.
433
434         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
435         * tests/test-spawn.c (main):
436         * tests/test-sys_socket.c (main):
437         * tests/test-sys_wait.c (main):
438         Don't have a switch value that isn't covered by a case.
439
440         getaddrinfo-tests: port --enable-gcc-warnings to clang
441         * tests/test-getaddrinfo.c (simple):
442         Avoid casts from looser to stricter-aligned pointers.
443
444         thread: port --enable-gcc-warnings to clang
445         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
446         Include <signal.h>, to pacify a warning about pthread_sigmask.
447
448         stdio: use __REDIRECT for fwrite, fwrite_unlocked
449         * lib/stdio.in.h (fwrite):
450         When working around bug 11959, use __REDIRECT rather than '#define
451         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
452         fix the -Wunused-value issue with clang, and it works with GCC too.
453         Problem with targeting reported by Eric Blake in
454         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
455         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
456         debugging the fwrite issue.
457
458         stdio: port --enable-gcc-warnings to clang
459         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
460         since the GCC workaround for fwrite does not pacify clang.
461
462         sig2str: port --enable-gcc-warnings to clang
463         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
464
465         obstack: port --enable-gcc-warnings to clang
466         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
467         Avoid casts from looser to stricter-aligned pointers.
468
469         memchr2: port --enable-gcc-warnings to clang
470         * lib/memchr2.c (memchr2):
471         Avoid casts from looser to stricter-aligned pointers.
472
473         mbsstr: port --enable-gcc-warnings to clang
474         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
475         Avoid casts from looser to stricter-aligned pointers.
476
477         malloca: port --enable-gcc-warnings to clang
478         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
479         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
480
481         inttostr: port --enable-gcc-warnings to clang
482         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
483
484         warnings: port to clang
485         Problem reported by Daniel P. Berrange via Eric Blake in
486         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
487         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
488         (gl_WARN_ADD): Use it.
489
490 2013-05-11  Jim Meyering  <meyering@fb.com>
491
492         quotearg: do not read beyond end of buffer
493         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
494         end of an ARG for which no length was specified.  With an N-byte
495         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
496         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
497         via coreutils' misc/sort-debug-keys.sh test and detected by running
498         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
499         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
500         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
501         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
502         characters correctly."
503
504 2013-05-11  Daiki Ueno  <ueno@gnu.org>
505
506         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
507         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
508         compilation target is Mac OS X 10.6.
509         Problem reported by parafin and Andoni Morales in
510         <http://savannah.gnu.org/bugs/?37844> and
511         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
512
513 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
514
515         mkdir-p: remove assumptions about umask and mode
516         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
517         umask is 0, or that MODE is a subset of MODE_BITS.
518
519 2013-05-10  Eric Blake  <eblake@redhat.com>
520
521         maint.mk: catch more abuse of HAVE_DECL in syntax-check
522         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
523
524 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
525
526         deps: require Automake >= 1.9.6 in generated Makefile fragments
527
528         That is the same minimal version required in the DEPENDENCIES file.
529         Moreover, the old code generated a requirement of Automake >= 1.5,
530         and that is an insanely outdated version.
531
532         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
533         * tests/havelib/rpathlx/Makefile.am: Likewise.
534         * tests/havelib/rpathly/Makefile.am: Likewise.
535         * tests/havelib/rpathlyx/Makefile.am: Likewise.
536         * tests/havelib/rpathlz/Makefile.am: Likewise.
537         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
538         * tests/havelib/rpathx/Makefile.am: Likewise.
539         * tests/havelib/rpathy/Makefile.am: Likewise.
540         * tests/havelib/rpathz/Makefile.am: Likewise.
541
542 2013-05-08  Eric Blake  <eblake@redhat.com>
543
544         bootstrap: AC_INIT may have more than four parameters
545         * build-aux/bootstrap (extract_package_name): Correctly extract
546         non-empty tarname field.  Avoid range in regex.
547         Based on a report by Sami Kerola <kerolasa@iki.fi>.
548
549 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
550
551         qacl: port to MS-Windows port of GNU Emacs
552         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
553         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
554         port of GNU Emacs.  Problem reported by Eli Zaretskii in
555         <http://bugs.gnu.org/14295#14>.
556
557 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
558
559         acl: include quote.h
560         * lib/copy-acl.c: Include quote.h.
561         * lib/set-acl.c: Likewise.
562
563 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
564
565         fchownat, renameat, unlinkat: update statat dependencies
566         These modules use statat and lstatat, not fstatat; so depend on
567         the statat module, which was split out recently from fstatat.
568         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
569         * modules/renameat: Likewise.  Also delete fstat.
570         URL: http://bugs.gentoo.org/468790
571
572 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
573
574         Assume gnulib is checked out from Git, not CVS
575
576         In fact, access to the gnulib repository through CVS has been
577         disabled, or more precisely, got broken and was never restored; see:
578         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
579
580         Note that support for CVS is not removed completely and unthinkingly
581         by this change: only support for CVS checkouts of gnulib itself is
582         removed.  For example, the 'bootstrap' script still cater to .cvsingore
583         files and CVS directories, for the benefit of those poor gnulib clients
584         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
585
586         * gnulib-tool: Simplify accordingly.
587         * posix-modules: Likewise.
588         * MODULES.html.sh: Likewise.
589         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
590         repository.
591         * doc/gnulib-intro.texi: Likewise.
592         * doc/gnulib-readme.texi: Likewise.
593         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
594         sample '.gitignore' file rather than a sample '.cvsignore'.
595         * NEWS: Update.
596         * m4/extensions.m4: While at it, remove a comment mistakenly referring
597         to "CVS Autoconf" rather than "git Autoconf".
598
599 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
600
601         utimensat-tests, etc.: try to fix some races
602         Problem reported by Bernhard Voelker in
603         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
604         I don't know whether this patch fixes that race condition, but it
605         fixes *some* race conditions, so it should be a win.
606         * modules/chown-tests (Depends-on):
607         * modules/fchownat-tests (Depends-on):
608         * modules/fdutimensat-tests (Depends-on):
609         * modules/futimens-tests (Depends-on):
610         * modules/lchown-tests (Depends-on):
611         * modules/stat-time-tests (Depends-on):
612         * modules/utimens-tests (Depends-on):
613         * modules/utimensat-tests (Depends-on):
614         Depend on nanosleep, not usleep.
615         * modules/chown-tests (test_chown_LDADD):
616         * modules/lchown-tests (test_lchown_LDADD):
617         * modules/stat-time-tests (test_stat_time_LDADD):
618         New macro.
619         * modules/fchownat-tests (test_fchownat_LDADD):
620         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
621         * modules/futimens-tests (test_futimens_LDADD):
622         * modules/utimens-tests (test_utimens_LDADD):
623         * modules/utimensat-tests (test_utimensat_LDADD):
624         Add $(LIB_NANOSLEEP).
625         * modules/stat-time-tests (Files): Add tests/nap.h.
626         * tests/nap.h: Include <limits.h>, for INT_MAX.
627         (lt_mtime): Remove.
628         (diff_timespec): New function.
629         (get_stat): Rename from get_mtime.  All callers changed.
630         (nap_works): Determine the needed delay by inspecting the
631         file system's timestamp jumps; this should be more reliable.
632         Look at both mtime and ctime, and take the maximum of the two jumps.
633         (nap_works, guess_delay):
634         Return a nanosecond cound, not a microsecond count.
635         All callers changed.
636         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
637         failure.
638         (nap): Multiply the guess by 1.125, to accommodate the case where
639         the file system's clock is a bit slower than nanosleep's clock.
640         * tests/test-stat-time.c (BASE): New macro.
641         Include nap.h.
642         (nap): Remove; nap.h now defines this.  This removes a duplicate
643         implementation of 'nap'.
644
645         utimens, utimensat: work around Solaris UTIME_OMIT bug
646         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
647         Linux kernel 2.6.32 does.  Work around it in the same way.
648         * doc/posix-functions/futimens.texi (futimens):
649         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
650         * lib/utimens.c (fdutimens, lutimens):
651         * lib/utimensat.c (rpl_utimensat): Work around the bug.
652
653         gettext: now it's your responsibility to add -I$(top_builddir)/intl
654         Formerly, it was your responsibility to do this for all Makefile.ams
655         other than Gnulib's.  Now it's your responsibility to do it for
656         Gnulib's Makefile.am, too.
657         * NEWS: Document this.
658         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
659
660         acl: include errno.h to get errno
661         Reported by Daiki Ueno in
662         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
663         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
664
665 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
666
667         tests: don't assume getdtablesize () <= 10000000
668         * modules/cloexec-tests:
669         * modules/dup2-tests:
670         * modules/dup3-tests:
671         * modules/nonblocking-tests:
672         * modules/posix_spawn_file_actions_addclose-tests:
673         * modules/posix_spawn_file_actions_adddup2-tests:
674         * modules/posix_spawn_file_actions_addopen-tests:
675         * modules/unistd-safer-tests:
676         Depend on the getdtablesize module.
677         * tests/test-cloexec.c:
678         * tests/test-dup-safer.c:
679         * tests/test-dup2.c:
680         * tests/test-dup3.c:
681         * tests/test-fcntl.c:
682         * tests/test-nonblocking.c:
683         * tests/test-posix_spawn_file_actions_addclose.c:
684         * tests/test-posix_spawn_file_actions_adddup2.c:
685         * tests/test-posix_spawn_file_actions_addopen.c:
686         Don't assume getdtablesize () <= 10000000.
687
688 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
689
690         extern-inline: work around bug in Sun c99
691         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
692         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
693
694 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
695
696         qacl: new module, broken out from the acl module
697         This is for GNU Emacs, which wants the acl functions but does
698         not want 'error' invoked when they fail.
699         * lib/acl-internal.h: Do not include error.h, quote.h.
700         (ENOSYS, ENOTSUP): Remove; no longer needed.
701         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
702         * lib/acl.h: Include <stdbool.h>.
703         (acl_errno_valid): New function.
704         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
705         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
706         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
707         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
708         (ACL_INTERNAL_INLINE): Remove; no longer needed.
709         * lib/file-has-acl.c (file_has_acl):
710         * lib/qcopy-acl.c (qcopy_acl):
711         * lib/qset-acl.c (qset_acl):
712         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
713         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
714         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
715         lib/file-has-acl.c, m4/acl.m4 to qacl module.
716         Add lib/set-acl.c.
717         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
718         Add qacl.
719         (configure.ac): Move gl_FUNC_ACL to qacl module.
720         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
721         Rename set-mode-acl.c to set-acl.c.
722         * lib/acl-errno-valid.c: New file.
723         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
724         copy_acl function remains in copy-acl.c.
725         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
726         (_): Remove; not needed.
727         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
728         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
729         * modules/qacl: New file, moved from the old modules/acl.
730         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
731         Remove set-mode-acl.c, copy-acl.c.
732         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
733
734         alignof, intprops, malloca: port better to IBM's C compiler
735         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
736         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
737         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
738
739 2013-04-25  Daiki Ueno  <ueno@gnu.org>
740
741         wctype-h: fix gettext link error on mingw
742         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
743         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
744         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
745         rpl_towupper and rpl_towupper.
746
747 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
748
749         regex-tests, regex: allow glibc re_search behavior
750         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
751         re_search input data to make the multi-character collating element
752         in it clearly visible, and treat re_search return code 0 as valid.
753         * m4/regex.m4 (gl_REGEX): Likewise.
754
755 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
756
757         stdalign: doc fix
758         * doc/posix-headers/stdalign.texi (stdalign.h):
759         Gnulib doesn't support '_Alignof expr'.
760
761 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
762
763         stdalign: port to stricter ISO C11
764         ISO C11 says that _Alignof's operand must be a parenthesized type.
765         Problem reported by Eli Zaretskii in
766         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
767         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
768         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
769
770 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
771
772         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
773         Problem reported by Marco Atzeri in
774         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
775         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
776         Simply delegate to the system <sys/select.h> in this case too.
777         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
778         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
779         be needed on Solaris either.
780         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
781         Simply delegate to the system <sys/time.h> in this case.
782
783 2013-03-19  Karl Berry  <karl@gnu.org>
784
785         * build-aux/gnupload: check for erroneous (with gnupload) use of
786         ftp-upload.gnu.org, tweak help.
787
788 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
789
790         copy-file, rpmatch: fix problems found by cppcheck
791         Reported by Arno Onken in
792         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
793         * lib/rpmatch.c (try): Fix memory leak.
794         * lib/copy-file.c: Include "ignore-value.h".
795         (qcopy_file_preserving): Ignore chown value.
796         * modules/copy-file (Depends-on): Add ignore-value.
797
798 2013-01-27  Jim Meyering  <jim@meyering.net>
799
800         prefix-gnulib-mk: give better diagnostics
801         * build-aux/prefix-gnulib-mk: Don't just "die".
802         Give better diagnostics upon failure.
803
804 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
805
806         putenv: port to Solaris 10
807         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
808         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
809         is not what is wanted here.
810         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
811         declaration, not for its existence.
812
813 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
814
815         mktime: fix configure typo
816         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
817
818 2013-03-12  Eric Blake  <eblake@redhat.com>
819
820         regex-tests: skip UTF-8 test on mingw
821         * modules/regex-tests (Depends-on): Add localcharset.
822         * tests/test-regex.c (main): Use it to skip test on mingw.
823
824 2013-03-11  Eric Blake  <eblake@redhat.com>
825
826         tests: make it easier to bypass alarm time in debugger
827         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
828         * tests/test-memmem.c (main): Likewise.
829         * tests/test-passfd.c (main): Likewise.
830         * tests/test-ptsname.c (main): Likewise.
831         * tests/test-ptsname_r.c (main): Likewise.
832         * tests/test-strcasestr.c (main): Likewise.
833         * tests/test-strstr.c (main): Likewise.
834
835         regex: port to mingw's recent addition of undeclared alarm
836         * doc/posix-functions/alarm.texi (alarm): Document that alarm
837         exists but still doesn't work in newer mingw.
838         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
839         not existence.  Ensure SIGALRM is not trapped.
840         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
841         * m4/regex.m4 (gl_REGEX): Likewise.
842         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
843         * tests/test-regex.c (main): Use correct probe for alarm.
844
845         putenv: avoid compilation warning on mingw
846         * lib/putenv.c (_unsetenv): Protect variable declaration.
847         (putenv): Fix indentation.
848
849 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
850
851         unistd: don't prevent Tru64 Unix from using gnulib strtod.
852         * lib/unistd.in.h: be careful not to include un-needed system
853         stdlib.h from here, because that prevents gnulib stdlib.h from
854         defining rpl_strtod correctly.
855
856 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
857
858         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
859         changesets, but for the 'precision 0' test.
860         * tests/test-vasprintf-posix.c (test_function): Don't insist on
861         round-to-even, since POSIX says rounding is implementation-defined
862         and OS X 10.8.2 rounds 1.51 to 1 here.
863
864         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
865         changeset.
866         * tests/test-vasprintf-posix.c (test_function): Don't insist on
867         round-to-even, since POSIX says rounding is implementation-defined
868         and OS X 10.8.2 rounds 1.5 to 1 here.
869
870 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
871
872         vasnprintf-posix-tests: allow rounding 1.5 to 1
873         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
874         round-to-even, since POSIX says rounding is implementation-defined
875         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
876         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
877
878         bootstrap: port to FreeBSD
879         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
880         that treat '--' differently.  Reported by Mats Erik Andersson in
881         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
882
883 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
884
885         regex: rename remaining __attribute calls to __attribute__.
886         2012-02-25 changed definition of __attribute, but left some uses
887         unchanged, preventing compilation of regex module on most non-gcc
888         environments.
889         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
890         (lookup_collation_sequence_value, build_range_exp)
891         (build_collating_symbol): Set attributes with newly renamed
892         __attribute__ decorator.
893         * lib/regex_internal.c (re_string_peek_byte_case)
894         (re_node_set_compare, re_node_set_contains): Likewise.
895         * lib/regexec.c (acquire_init_state_context): Likewise.
896
897 2013-03-06  Bruno Haible  <bruno@clisp.org>
898
899         execute: Revert last change, but use a different condition.
900         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
901         on Windows.
902
903 2013-03-05  Eric Blake  <eblake@redhat.com>
904
905         execute: drop dead code
906         * lib/execute.c (nonintr_close, nonintr_open): Delete.
907
908 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
909
910         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
911         * m4/non-recursive-gnulib-prefix-hack.m4
912         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
913         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
914         <http://bugs.gnu.org/10305#237>.
915
916 2013-03-04  Eric Blake  <eblake@redhat.com>
917
918         test-getsockopt: avoid compiler warning
919         * tests/test-getsockopt.c (includes): Ensure close is declared.
920
921 2013-03-02  Bruno Haible  <bruno@clisp.org>
922
923         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
924         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
925
926 2013-03-02  Bruno Haible  <bruno@clisp.org>
927
928         gettext: Update to version 0.18.2.
929         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
930         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
931                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
932
933 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
934
935         regex: merge patches from libc
936
937         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
938         * lib/regex_internal.h (__attribute__): Rename from __attribute.
939         All uses changed.
940         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
941         (re_string_wchar_at, re_string_elem_size_at):
942         Mark function as possibly unused.
943
944         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
945         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
946         elements compare against the byte sequence of it, not its name.
947
948 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
949
950         putenv: port better to native Windows
951         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
952         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
953         (_unsetenv): Use _putenv if available.
954         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
955         a bit less likely to cause damage.
956         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
957         Fix the wrong value with SetEnvironmentVariable.
958         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
959         code better.
960
961 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
962
963         regex: ignore old-style-definition warnings
964         * lib/regex.c: Add pragma to ignore these warnings.
965         Problem reported for GNU tar by Pavel Raiskup.
966
967 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
968
969         getcwd: support coreutils better
970         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
971         but this might not be correct in coreutils, which disables
972         the raw decl checks.  Problem reported by Nagendra in
973         <http://bugs.gnu.org/10305#192>.
974         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
975         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
976         Test the getcwd function, not any macro, since getcwd.c wants the
977         function.
978         * m4/getcwd.m4 (gl_FUNC_GETCWD):
979         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
980         compile, as might happen if there's a macro but no function.
981
982         strtod: support coreutils better
983         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
984         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
985         disables the raw decl checks.  This assumes there is an underlying
986         strtod, but that's a safe assumption these days.
987         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
988
989         mountlist: port to HP NonStop
990         Reported by Joachim Schmitz in
991         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
992         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
993         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
994
995 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
996
997         extern-inline: avoid compilation error with HP-UX cc
998         Reported by Richard Lloyd in
999         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1000         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1001         Suppress extern inline with HP-UX cc.  This should be safe,
1002         though it may hurt performance.  Perhaps someone with some HP-UX
1003         experience can come up with a higher-performance fix.
1004
1005 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         putenv: fix heap corruption with mixed putenv/_putenv
1008         Problem reported by Michael Goffioul in
1009         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1010         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1011         Rely on _putenv to allocate the new environment.
1012         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1013         * modules/putenv (configure.ac): Use it.
1014
1015 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         unsetenv etc.: port to Solaris 11 + GNU Emacs
1018         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1019         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1020         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1021         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1022         idea but is too painful to fix right now), and without this gnulib
1023         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1024         compiling unsetenv.c on Solaris 11.  Fix the problem for
1025         unsetenv.c, and fix other similar occurrences.
1026
1027 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         secure_getenv: fix C++ declaration typo
1030         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1031         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1032         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1033
1034 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1035
1036         careadlinkat: stop exporting careadlinkatcwd
1037         Only Emacs used it directly, and Emacs no longer needs it.
1038         * NEWS: Document this simplification.
1039         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1040         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1041         for readlink.
1042         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1043         Don't include stdlib.h; no longer needed.
1044         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1045         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1046         * modules/areadlink (Depends-on): Add readlink.
1047         (Maintainer): Add self.
1048         * modules/careadlinkat (Depends-on): Remove readlink.
1049
1050         extensions: port better to HP-UX
1051         This is merged from git Autoconf.
1052         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1053         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1054         so that it's compatible with the value used when compiling.
1055
1056         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1057         Problem reported by Mats Erik Andersson in
1058         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1059         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1060         openpty function exists, not merely when we intend to replace it.
1061         This corrects the 2013-01-31 patch, which mistakenly defined
1062         HAVE_OPENPTY even on hosts that lacked it.
1063
1064 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
1065
1066         secure_getenv: fix include typo
1067         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
1068
1069         secure_getenv: port better to FreeBSD and Solaris
1070         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
1071         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
1072         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
1073         This works better on BSDish platforms.
1074         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
1075         Test for issetugid if __secure_getenv is missing.
1076
1077 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
1078
1079         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
1080         Some of these changes are merged in from git Autoconf.
1081         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1082         When deciding whether to define _XOPEN_SOURCE, inspect the
1083         preprocessor macro __hpux instead of the more-heavyweight
1084         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
1085         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
1086         as the key for __EXTENSIONS__.
1087
1088         unistd: avoid namespace pollution on non-glibc systems
1089         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
1090         This avoids namespace pollution on non-glibc systems, by causing
1091         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
1092         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
1093         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
1094
1095 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
1096
1097         tmpdir: use secure_getenv
1098         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
1099         Define to secure_getenv, not getenv.
1100         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
1101         as that's now secure_getenv's job.
1102         * modules/tmpdir (Depends-on): Add secure_getenv.
1103
1104         tempname: use secure_getenv
1105         * lib/tempname.c (__secure_getenv) [!_LIBC]:
1106         Define to secure_getenv, not getenv.
1107         * modules/tempname (Depends-on):
1108         Add secure_getenv.
1109
1110         secure_getenv: new module
1111         * MODULES.html.sh (Extra functions based on ANSI C 89):
1112         Add secure_getenv.
1113         * doc/glibc-functions/secure_getenv.texi: New file.
1114         * doc/gnulib.texi: Include it.
1115         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
1116         New files.
1117         * lib/stdlib.in.h (secure_getenv): New decl.
1118         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
1119         * modules/stdlib (stdlib.h):
1120         Add secure_getenv checks.
1121
1122 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
1123
1124         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
1125         Reported for OS X 10.8.2 by Assaf Gordon in
1126         <http://bugs.gnu.org/13516>.
1127         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
1128         !HAVE_OPENAT && !HAVE_FDOPENDIR.
1129         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
1130         so that they can be kept in sync more easily.  Avoid PATH_MAX
1131         test on the Hurd.  Sync from test-getcwd.c for errno tests after
1132         mkdir or chdir failure.
1133         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
1134         lib/getcwd.c.
1135         (test_abort_bug): Do not test for the deep directory bug unless we
1136         have openat support.  Avoid PATH_MAX test on the Hurd.
1137
1138         regex-tests, regex: fix bug: memset undeclared
1139         * tests/test-regex.c: Don't include regex.h twice.  Include
1140         string.h, to declare memset.  Christensen's report also mentioned
1141         this issue.
1142         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
1143         test-regex.c, to avoid future problems like this.  Remove
1144         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
1145         twice.
1146
1147         regex-tests: fix link errors on older Solaris
1148         These need to link with @LIBINTL@ to get libintl_gettext.
1149         Problem reported by Tom G. Christensen in
1150         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
1151         * modules/regex-tests (test_regex_LDADD): New macro.
1152
1153 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
1154
1155         regex-tests: new module
1156         * modules/regex-tests, tests/test-regex.c: New files.
1157
1158         regex: fix off-by-one error in configure test
1159         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
1160
1161 2013-01-31  Eric Blake  <eblake@redhat.com>
1162
1163         regex: avoid infinite configure test
1164         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
1165
1166 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
1167
1168         openpty: fix bug where HAVE_OPENPTY wasn't defined
1169         See the thread starting at:
1170         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
1171         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1172         openpty function exists, not merely when we intend to replace it.
1173
1174 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
1175
1176         sys_time: port to Solaris 2.6
1177         There is a circularity problem on Solaris 2.6, where <time.h> includes
1178         <sys/time.h> for struct timespec.  The include nesting is gnulib
1179         <time.h>, system <time.h>, gnulib <sys/time.h>, system
1180         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
1181         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
1182         <sys/siginfo.h>; the last, innermost file needs struct
1183         timestruc_t, which is defined in <sys/time.h>, which has not been
1184         fully parsed.  Problem reported by Tom G. Christensen in
1185         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
1186         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
1187         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
1188         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
1189         uses split double-inclusion guards.
1190
1191 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
1192
1193         regex: test for buffer overrun
1194         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
1195         for the just-fixed regex bug.
1196
1197 2013-01-29  Andreas Schwab  <schwab@suse.de>
1198
1199         regex: fix buffer overrun in regexp matcher [BZ #15078]
1200         * lib/regexec.c (extend_buffers): Add parameter min_len.
1201         (check_matching): Pass minimum needed length.
1202         (clean_state_log_if_needed): Likewise.
1203         (get_subexp): Likewise.
1204
1205 2013-01-28  Pádraig Brady  <P@draigBrady.com>
1206
1207         mountlist: don't consider "devtmpfs" as dummy
1208         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
1209         as there is storage associcated with it.
1210
1211 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1212
1213         futimens-tests, utimens-tests: Depend on gettext.
1214         This works around a problem introduced in my 2013-01-12 patch,
1215         which added @LIBINTL@ to these modules.
1216         * modules/futimens-tests (Depends-on):
1217         * modules/utimens-tests (Depends-on): Add gettext.
1218
1219 2013-01-26  Eric Blake  <eblake@redhat.com>
1220
1221         test-getpeername: fix typo
1222         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
1223
1224 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1225
1226         bootstrap: remove the need for a sorted .gitignore file
1227         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
1228         rename to insert_if_absent(), so that we don't need or generate
1229         a sorted .gitignore file.  We do require a .gitignore with no
1230         existing duplicate entries and enforce that.
1231         (sort_patterns): Remove this function as we now use the simpler
1232         technigue of inserting blacklist entries at the top of the file,
1233         assuming gnulib won't be inserting !whitelist entries.
1234
1235 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1236
1237         readlinkat: don't depend on gl_FUNC_OPENAT
1238         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
1239         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
1240         renameat.m4, symlinkat.m4; but one thing at a time.
1241
1242         statat: new module, split out from fstatat
1243         GNU Emacs needs the POSIX-specified fstatat, but not the
1244         gnulib-specified statat and lstat.  Split the latter two into a
1245         new module 'statat'.
1246         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
1247         * lib/openat.h, lib/statat.c (STATAT_INLINE):
1248         Rename from FSTATAT_INLINE. All uses changed.
1249         * modules/fstatat (Files): Remove lib/statat.c.
1250         (gl_MODULE_INDICATOR([fstatat])): Remove.
1251         (lib_SOURCES): Remove.
1252         (Maintainer): Add self.
1253         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
1254         * tests/test-fstatat.c (BASE): Don't define if already defined.
1255         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
1256
1257 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1258
1259         tests: don't assume fd 99 is closed
1260         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
1261         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
1262         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
1263         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
1264         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
1265         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
1266         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
1267         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
1268         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
1269         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
1270         * tests/test-fwrite.c, tests/test-getpeername.c:
1271         * tests/test-getsockname.c, tests/test-getsockopt.c:
1272         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
1273         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
1274         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
1275         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
1276         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
1277         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
1278         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
1279         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
1280         * tests/test-unlinkat.c, tests/test-unlockpt.c:
1281         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
1282         Close file descriptor 99, instead of assuming it's already closed.
1283
1284 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
1285
1286         stpncpy: port to OS X 10.8
1287         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
1288         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
1289
1290 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
1291
1292         unistd: port to recent mingw
1293         * lib/unistd.in.h: Remove special invocation convention for mingw,
1294         which breaks for the latest mingw version.  See John W. Eaton in
1295         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
1296
1297         largefile: port better to Mac OS X 10.5
1298         This patch is backported from Autoconf git.
1299         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
1300         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
1301         with ino_t size being different for configuration time versus
1302         build/run time.  Problem reported by PHO in
1303         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
1304
1305 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         doc: clarify -Werror
1308         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
1309         clarify that it's intended for developers, not for ordinary builds,
1310         and mention --enable-gcc-warnings as one possible use.
1311
1312 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
1313
1314         stdint: fix build with Android's Bionic fox x86
1315         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
1316         was already included as _SSIZE_T_DEFINED_ might also be defined
1317         in include/machine/_types.h, which is included by stdio.h
1318
1319 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
1320
1321         net_if-tests: port to Solaris 7 + GCC 3.4.6
1322         Problem reported by Tom G. Christensen in
1323         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
1324         * tests/test-net_if.c (ni): Move to next the code that uses it,
1325         so that it's declared only if needed.
1326
1327 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         net_if-tests: port to older Solaris
1330         Problem reported by Tom G. Christensen in
1331         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1332         * modules/net_if-tests (NET_IF_LIB): New substitution.
1333         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
1334         (HAVE_IF_NAMEINDEX): New C macro.
1335         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
1336
1337         system-quote-tests: port to older Solaris
1338         Problem reported by Tom G. Christensen in
1339         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1340         * tests/test-system-quote-child.c (fopen, fread): Undef.
1341
1342         c-xvasprintf etc.: fix link errors on older Solaris
1343         These need to link with @LIBINTL@ to get libintl_gettext.
1344         Problem reported by Tom G. Christensen in
1345         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
1346         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
1347         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
1348         * modules/futimens-tests (test_futimens_LDADD):
1349         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
1350
1351 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         locale: port to Solaris 2.6 and 7 + GNU gettext
1354         * lib/locale.in.h: Just include_next <locale.h> when
1355         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
1356         when combining the localename module with GNU gettext 0.18.2.
1357         Problem reported by Tom G. Christensen in
1358         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
1359
1360 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         stdlib: port to Solaris 2.6
1363         Also, the code worked on Solaris 7 through 9 only by accident.
1364         Problem reported by Tom G. Christensen in
1365         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
1366         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
1367         simply include the system stdlib.h.
1368         * lib/getopt.in.h (__need_system_stdlib_h):
1369         * lib/pthread.in.h (__need_system_stdlib_h):
1370         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
1371         Define when including <stdlib.h>, to avoid problems at least for
1372         the pthread case on Solaris 2.6 and 7.  These .h files can get by
1373         with the system stdlib.h.
1374
1375 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1376
1377         doc: update main copyright year
1378         * doc/gnulib.texi: Update copyright date.
1379
1380         doc: improve ISO 8601 discussion
1381         * doc/parse-datetime.texi (Combined date and time of day items):
1382         Specify more carefully what formats are supported and what is
1383         done with excess precision.
1384
1385 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         doc: avoid small caps
1388         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
1389         they're more trouble than they're worth.  Suggested by Karl Berry
1390         in <http://bugs.gnu.org/13360>.
1391
1392         regex: conform to strict C
1393         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
1394         From Aharon Robbins.
1395
1396         gnulib-tool: fix incompatibility with autopoint 0.18.2
1397         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
1398         Problem reported by Tom G. Christensen in
1399         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
1400
1401 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1402
1403         fprintftime: bring back and reword fwrite comment
1404         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
1405
1406         stdio: remove now-unnecessary stdio.c
1407         Since stdio.in.h no longer uses inline functions, we no longer
1408         need to compile the extern versions.
1409         * lib/stdio.c: Remove.
1410         * modules/stdio (Files): Remove lib/stdio.c.
1411         (lib_SOURCES): Remove.
1412
1413         unicodeio: depend on stdio, not ignore-value
1414         * lib/unicodeio.c: Do not include ignore-value.h.
1415         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
1416         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
1417
1418         fprintftime: depend on stdio, not ignore-value
1419         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
1420         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
1421         since the stdio module arranges to silence that warning now.
1422         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
1423
1424 2012-10-04  Simon Josefsson  <simon@josefsson.org>
1425
1426         stdint-tests: Fix expanded-before-required-warning.
1427         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
1428
1429 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
1430
1431         fwrite: silence __wur only for older glibc versions
1432         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
1433         This will help us remove this workaround some time in the far future.
1434
1435 2013-01-03  Eric Blake  <eblake@redhat.com>
1436
1437         fwrite: silence __wur without using inline
1438         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
1439         just gcc, and in a way that avoids inline issues.
1440         * modules/stdio (Depends-on): Drop extern-inline.
1441
1442 2013-01-03  Jim Meyering  <jim@meyering.net>
1443
1444         update-copyright: avoid copyright notice date corruption
1445         Given a sequence of copyright year numbers in which the final
1446         one was a two-digit number that happened to be a substring of
1447         a preceding four-digit year number, we would mistakenly update
1448         the substring (from two- to four-digit) rather than the two-digit
1449         number at the end, which, combined with the addition of the current
1450         4-digit year number would yield two 5-digit year numbers, e.g.,
1451         here, it would convert the first "99" to "1999, 2013" rather than
1452         the final one:
1453           1991, 99
1454           11999, 20131, 1999
1455         * build-aux/update-copyright: Tighten a regexp.
1456         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
1457         Reported by Joseph Myers in
1458         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
1459
1460 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
1461
1462         regex: omit needless signed-pointer casts
1463         * lib/regcomp.c (build_charclass, build_charclass_op):
1464         Use char *, not unsigned char *, for class name and extra.
1465         The char values are always nonnegative so there's no need to
1466         insist on unsigned char * here, and using char * removes the need
1467         for casts.  Reported by Aharon Robbins in
1468         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1469
1470         regex: support Gawk, which never uses alloca
1471         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
1472         Do not include in this case.  Gawk doesn't supply a substitute
1473         alloca.h and doesn't need one.
1474
1475         regex: port __libc_lock_define usage to C89
1476         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
1477         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
1478         does not conform to C89, as it has an empty macro argument.
1479         Reported by Aharon Robbins in
1480         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1481
1482 2013-01-01  Eric Blake  <eblake@redhat.com>
1483
1484         maint: update all copyright year number ranges
1485         Run "make update-copyright".
1486
1487         version-etc: bump copyright year reported in --version
1488         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
1489
1490 2012-12-31  Eric Blake  <eblake@redhat.com>
1491
1492         sigprocmask-tests: skip test if pid is unexpectedly large
1493         * tests/test-sigprocmask.c (main): Add range check.
1494
1495         git-version-gen: avoid test -z portability glitch
1496         * build-aux/git-version-gen: Prefer portable test spelling, since
1497         git-version-gen is run on more than just developer machines.
1498
1499 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
1500
1501         git-version-gen: add --fallback option to use if git is not present
1502         * build-aux/git-version-gen: Add support for the new option --fallback,
1503         which comes into play when there is no $tarball_version_file and
1504         git is not working.
1505         (scriptversion): Update.
1506
1507         maint.mk: handle missing git with more grace
1508         * top/maint.mk (no-submodule-changes, public-submodule-commit):
1509         Quietly proceed if git is not present.
1510
1511 2012-12-31  Eric Blake  <eblake@redhat.com>
1512
1513         dup2: work around cygwin bug
1514         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
1515         * lib/dup2.c (rpl_dup2): Work around it.
1516         * doc/posix-functions/dup2.texi (dup2): Document it.
1517
1518 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         regex: remove unnecessary dependency on localcharset.h
1521         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
1522         hasn't been needed for years.
1523         * modules/regex (Depends-on): Remove localcharset.
1524
1525         regex: revert single-byte change
1526         * lib/regexec.c (check_node_accept_bytes): Revert previous change
1527         to this function.  This was alredy fixed in a different way, at
1528         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
1529         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
1530         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
1531
1532         regex: simplify based on Gawk version
1533         * lib/regex_internal.c (re_dfa_add_node): Simplify.
1534         Reported by Aharon Robbins in
1535         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1536
1537 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1538
1539         regex: check that pattern char is single-byte
1540         Reported by Aharon Robbins in
1541         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1542         * lib/regexec.c (check_node_accept_bytes):
1543         Return 0 if the pattern string has a multibyte character here.
1544
1545         regex: implement rational ranges
1546         Reported by Aharon Robbins in
1547         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1548         * lib/regcomp.c (build_range_exp) [!_LIBC]:
1549         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
1550         Implement rational ranges.
1551
1552         regex: avoid redefining __wctype
1553         Reported by Aharon Robbins in
1554         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1555         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
1556         #undef before defining.
1557
1558         regex: port to hosts where malloc (0) == NULL
1559         Reported by Aharon Robbins in
1560         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1561         * lib/regex_internal.c (re_node_set_alloc):
1562         Don't assume that malloc (0) yields nonnull.
1563         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
1564         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
1565         * modules/regex (Files): Add m4/eealloc.m4.
1566
1567         regex: port to C89
1568         Reported by Aharon Robbins in
1569         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
1570         * lib/regcomp.c (init_word_char): Declaration before statement.
1571
1572         regex: merge glibc changes
1573         Also, copy the license wording from glibc.  This simplifies
1574         merging changes.  gnulib-tool will change the wording to GPL as
1575         appropriate, when importing it to other packages.  The only
1576         glibc change made since the last merge, which needs merging, is:
1577         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
1578         * lib/regex_internal.h (gettext): Remove use of INTUSE.
1579
1580         * users.txt: Add Emacs.
1581
1582         doc: omit mention of version when not needed
1583         * doc/gnulib-intro.texi (Portability and Application Code):
1584         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
1585         Don't mention particular dates or versions when not necessary, so
1586         that the documentation won't go out of date so quickly.
1587
1588         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
1589
1590 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
1591
1592         bootstrap: pass --force to autoreconf.
1593         * build-aux/bootstrap (AUTORECONFFLAGS): New.
1594         Add "--force" so that Automake's ylwrap and other such tools
1595         be updated at each bootstrap invocation.
1596         Use it.
1597
1598 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1599
1600         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
1601         The earlier patch forgot to update one of the #if conditions, causing
1602         a problem on Debian testing i386 reported by Mats Erik Andersson
1603         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
1604         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
1605         (__argp_fmtstream_puts, argp_fmtstream_puts)
1606         (__argp_fmtstream_write, argp_fmtstream_write)
1607         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
1608
1609         * doc/gnulib-readme.texi: Minor fixups.
1610         (Portability guidelines): Modernize URLs.  Remove some repetition.
1611         (Indent with spaces not TABs): Reword to avoid too-long lines.
1612         Remove some '@ifset standalone' stuff that isn't used.
1613
1614         * doc/gnulib-readme.texi (Portability guidelines):
1615         ctype.h, not ctime.h.
1616
1617         Correct name of POSIX.1-2001.
1618         * doc/posix-functions/fgetc.texi (fgetc):
1619         * doc/posix-functions/fgets.texi (fgets):
1620         * doc/posix-functions/fread.texi (fread):
1621         * doc/posix-functions/fscanf.texi (fscanf):
1622         * doc/posix-functions/getc.texi (getc):
1623         * doc/posix-functions/getchar.texi (getchar):
1624         * doc/posix-functions/scanf.texi (scanf):
1625         POSIX.1-2001, not POSIX-2001.
1626
1627         doc: move README into manual
1628         * README: Move contents to new file doc/gnulib-readme.texi.
1629         Replace with a one-line summary.
1630         * doc/gnulib.texi (Brief Overview): New section,
1631         with old intro preface.  Include gnulib-readme.texi for contents.
1632         (Philosophy): Rename from "Introduction", since this
1633         section no longer introduces the rest.  Write a new preface.
1634         * doc/gnulib-readme.texi: New file, with the old contents of
1635         README texinfo-ized.  This way, the README info appears
1636         in the online and printed manual.
1637
1638 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
1639
1640         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
1641         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
1642         c_vasprintf() prototype.
1643
1644 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
1645
1646         c-vasprintf: Fix "empty declaration" warning reported by GCC.
1647         * lib/c-vasprintf.h: Remove stray semicolon.
1648
1649 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1650
1651         gettext: avoid obsolete macro AM_PROG_MKDIR_P
1652         It is obsolete and is planned to be removed from Automake 1.14; see
1653         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
1654         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
1655         (installdirs-data, installdirs-data-yes):
1656         Use $(MKDIR_P), not $(mkdir_p).
1657         * m4/intl.m4 (AM_INTL_SUBDIR):
1658         * m4/po.m4 (AM_PO_SUBDIRS):
1659         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
1660
1661 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1662
1663         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
1664         On this platform, we are not optimizing but we are using
1665         the substitute for extern inlines, so compile as if
1666         C99-style extern inline, or a substitute, is available.
1667         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
1668         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
1669         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
1670         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
1671         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
1672         Declare as ARGP_FS_EI, not as extern.
1673         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
1674         (__option_is_short, _option_is_end, __option_is_end)
1675         [!_LIBC && __USE_EXTERN_INLINES]:
1676         Declare as ARGP_EI, not as extern.
1677
1678 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1679
1680         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
1681         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
1682         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
1683         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
1684         ...), as the latter is fatal with older Autoconfs.
1685         Problem reported and fix suggested by Eric Blake in thread starting at
1686         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
1687
1688 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1689
1690         AC_PROG_MKDIR_P: don't workaround if not buggy
1691         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
1692         Define only for Autoconf versions before 2.62.
1693         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
1694         undocumented m4_PACKAGE_VERSION, for consistency with the
1695         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
1696         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
1697         was introduced in 2.62.
1698
1699 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
1700
1701         New 'c-*printf' modules for formatted output in C locale.
1702
1703         New module 'c-vasnprintf'.
1704         * modules/c-vasnprintf: New file.
1705         * lib/c-vasnprintf.c: New file.
1706         * lib/c-vasnprintf.h: New file.
1707
1708         New module 'c-snprintf'.
1709         * modules/c-snprintf: New file.
1710         * modules/c-snprintf-tests: New file.
1711         * lib/c-snprintf.c: New file.
1712         * lib/c-snprintf.h: New file.
1713         * tests/test-c-snprintf.c: New file.
1714         * tests/test-c-snprintf.sh: New file.
1715
1716         New module 'c-vsnprintf'.
1717         * modules/c-vsnprintf: New file.
1718         * modules/c-vsnprintf-tests: New file.
1719         * lib/c-vsnprintf.c: New file.
1720         * lib/c-vsnprintf.h: New file.
1721         * tests/test-c-vsnprintf.c: New file.
1722         * tests/test-c-vsnprintf.sh: New file.
1723
1724         New module 'c-vasprintf'.
1725         * modules/c-vasprintf: New file.
1726         * modules/c-vasprintf-tests: New file.
1727         * lib/c-asprintf.c: New file.
1728         * lib/c-vasprintf.c: New file.
1729         * lib/c-vasprintf.h: New file.
1730         * tests/test-c-vasprintf.c  +: New file.
1731         * tests/test-c-vasprintf.sh: New file.
1732
1733         New module 'c-xvasprintf'.
1734         * modules/c-xvasprintf: New file.
1735         * modules/c-xvasprintf-tests: New file.
1736         * lib/c-xasprintf.c: New file.
1737         * lib/c-xvasprintf.c: New file.
1738         * lib/c-xvasprintf.h: New file.
1739         * tests/test-c-xvasprintf.c: New file.
1740         * tests/test-c-xvasprintf.sh: New file.
1741
1742 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1743
1744         argp: better 'inline'
1745         Use extern-inline module to declare extern inline functions.
1746         This avoids some bogus warning diagnostics.  Problem discovered
1747         when modifying GNU tar to use the manywarnings module.
1748         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
1749         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
1750         Define based on extern-inline.
1751         * modules/argp (Depends-on): Add extern-inline.
1752
1753 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1754
1755         filemode, sys_stat: Handle MPX files a la AIX.
1756         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
1757         * lib/sys_stat.in.h (S_ISMPX): New macro.
1758         * tests/test-sys_stat.c: Add tests for MPX files.
1759
1760 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1761
1762         x-to-1: honor $PERL
1763         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
1764         a chance to use his preferred version of Perl.  This is typically
1765         required by Darwin users whose default /usr/bin/perl does not have all
1766         the libraries required by help2man, and who need to use their MacPorts
1767         installation of Perl instead.
1768
1769 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1770
1771         gnu-web-doc-update: add all the new files, even in new directories
1772         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
1773         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
1774         Use it.
1775         (main): Don't use cvsutils to get the list of unknown files,
1776         just add all the existing files and directories.
1777
1778 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
1779
1780         gnu-web-doc-update: improve --help
1781         * build-aux/gnu-web-doc-update: Move comments into --help.
1782
1783 2012-12-07  Eric Wong  <normalperson@yhbt.net>
1784
1785         mountlist: recognize more "dummy" file systems
1786         * lib/mountlist.c (ME_DUMMY_0):
1787         Add these dummy FS names to the list:
1788         - "debugfs" virtual filesystem for kernel debugging
1789         - "devpts" PTY slave filesystem
1790         - "devtmpfs" device filesystem on top of tmpfs/ramfs
1791         - "fusectl" control filesystem for FUSE
1792         - "mqueue" enumerates POSIX message queues
1793         - "rpc_pipefs" kernel <-> userspace bridge for NFS
1794         - "sysfs" is for exporting kernel objects
1795         - "devfs" device filesystem for Linux 2.4 and FreeBSD
1796
1797 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1798
1799         extern-inline: avoid incompatibility with Darwin Libc
1800         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
1801         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
1802         Problem reported by Akim Demaille in
1803         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
1804
1805 2012-12-11  Simon Josefsson  <simon@josefsson.org>
1806
1807         gnupload: Work with GnuPG using gpg-agent (for smartcards).
1808         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
1809         let it handle password prompting.
1810
1811 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
1812
1813         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
1814         * lib/canonicalize.c (canonicalize_filename_mode):
1815         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
1816         fetching the current directory.  Don't overrun the beginning of
1817         rpath if there's no slashes after the MS-Windows drive letter.
1818
1819 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
1820
1821         maint.mk: avoid extra forks
1822         * top/maint.mk (_cfg_mk): The GNU make manual documents that
1823         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
1824         So use that instead of "$(shell test -f FILE && echo FILE)".
1825
1826 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1827
1828         vasnprintf: fix ASCII_ONLY typo
1829         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1830         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1831         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1832         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1833         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1834
1835 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1836
1837         list, oset, xlist, xoset: fix extern inline issue with C99
1838         This was introduced by my recent changes for 'inline'.
1839         Problem reported for gettext by Daiki Ueno in
1840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1841         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1842         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1843         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1844         (gl_list_previous_node, gl_list_get_at)
1845         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1846         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1847         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1848         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1849         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1850         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1851         (gl_list_iterator_free, gl_sortedlist_search)
1852         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1853         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1854         (gl_sortedlist_remove):
1855         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1856         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1857         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1858         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1859         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1860         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1861         (gl_list_add_at, gl_sortedlist_add):
1862         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1863         Wrap these extern decls inside "#if 0", because they are implemented
1864         as inline functions, and extern inline is not what's wanted here.
1865         It would simplify these .h files to remove the extern decls entirely,
1866         although a downside would be less-clear separation between
1867         specification and implementation.
1868
1869 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1870
1871         sys_stat: no 'static inline'
1872         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1873         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1874
1875         extern-inline: no 'static inline'
1876         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1877         Do not require AC_C_INLINE.
1878         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1879         'static inline', for older compilers.
1880
1881         snippet/warn-on-use: no 'static inline'
1882         * build-aux/snippet/warn-on-use.h:
1883         Remove unnecessary 'inline' in comment.
1884
1885         rbtree-list, rbtreehash-list: no 'static inline'
1886         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1887         * lib/gl_anytree_list2.h (node_at):
1888         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1889         (gl_oset_first, add_nodes_to_buckets):
1890         Now static, not static inline.
1891
1892         regex: no 'static inline'
1893         * lib/regex_internal.c (calc_state_hash):
1894         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1895         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1896         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1897         Now static, not static inline.
1898         (inline) [__GNUC__ < 3 && _LIBC]:
1899         Remove macro; no longer needed.
1900
1901         xvasprintf: no 'static inline'
1902         * lib/xvasprintf.c (xstrcat):
1903         Now static, not static inline.
1904         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1905         Do not require AC_C_INLINE.
1906
1907         parse-datetime, parse-duration: no 'static inline'
1908         * lib/parse-datetime.y (to_uchar):
1909         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1910         (scale_n_add):
1911         Now static, not static inline.
1912         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1913         * modules/parse-duration (configure.ac):
1914         Do not require AC_C_INLINE.
1915
1916         getaddrinfo: no 'static inline'
1917         * lib/getaddrinfo.c (validate_family):
1918         Now static, not static inline.
1919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1920         Do not require AC_C_INLINE.
1921
1922         ftruncate, fts, lstat, openat, raise: no 'static inline'
1923         * lib/ftruncate.c (chsize_nothrow):
1924         * lib/fts.c (opendirat, diropen):
1925         * lib/lstat.c (orig_lstat):
1926         * lib/openat.c (orig_openat):
1927         * lib/raise.c (raise_nothrow):
1928         Now static, not static inline.
1929         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1930         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1931         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1932         * m4/openat.m4 (gl_PREREQ_OPENAT):
1933         * m4/raise.m4 (gl_PREREQ_RAISE):
1934         Do not require AC_C_INLINE.
1935
1936         fflush, stat: no 'static inline'
1937         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1938         (clear_ungetc_buffer, disable_seek_optimization)
1939         (restore_seek_optimization, update_fpos_cache):
1940         * lib/stat.c (orig_stat):
1941         Now static, not static inline.
1942         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1943         (update_fpos_cache):
1944         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1945         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1946         * m4/stat.m4 (gl_PREREQ_STAT):
1947         Do not require AC_C_INLINE.
1948
1949         error, filevercmp: no 'static inline'
1950         * lib/error.c (is_open, flush_stdout):
1951         * lib/filevercmp.c (order):
1952         Now static, not static inline.
1953         * m4/error.m4 (gl_PREREQ_ERROR):
1954         * modules/filevercmp (configure.ac):
1955         Do not require AC_C_INLINE.
1956
1957         dup, execute, fatal-signal, etc.: no 'static inline'
1958         * lib/dup.c (dup_nothrow):
1959         * lib/execute.c (nonintr_close, nonintr_open):
1960         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1961         * lib/fopen.c (orig_fopen):
1962         * lib/freadseek.c (freadptrinc):
1963         * lib/freopen.c (orig_freopen):
1964         * lib/fstat.c (orig_fstat, fstat_nothrow):
1965         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1966         (get_rusage_as_via_iterator):
1967         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1968         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1969         * lib/isatty.c (_isatty_nothrow):
1970         * lib/open.c (orig_open):
1971         * lib/read.c (read_nothrow):
1972         * lib/sigprocmask.c (signal_nothrow):
1973         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1974         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1975         * lib/wait-process.c (unregister_slave_subprocess):
1976         * lib/write.c (write_nothrow):
1977         Now static, not static inline.
1978         * lib/spawn-pipe.c (nonintr_open): Define only if
1979         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1980         * m4/dup.m4 (gl_PREREQ_DUP):
1981         * m4/execute.m4 (gl_EXECUTE):
1982         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1983         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1984         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1985         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1986         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1987         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1988         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1989         * m4/open.m4 (gl_PREREQ_OPEN):
1990         * m4/read.m4 (gl_PREREQ_READ):
1991         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1992         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1994         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1995         * m4/write.m4 (gl_PREREQ_WRITE):
1996         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1997         Do not require AC_C_INLINE.
1998
1999         c-strtod, memcoll, readutmp: no 'static inline'
2000         * lib/c-strtod.c (c_locale):
2001         * lib/memcoll.c (strcoll_loop):
2002         * lib/readutmp.c (desirable_utmp_entry):
2003         Now static, not static inline.
2004         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2005         * m4/memcoll.m4 (gl_MEMCOLL):
2006         * m4/readutmp.m4 (gl_READUTMP):
2007         Do not require AC_C_INLINE.
2008
2009         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2010         * lib/arctwo.c (to_uchar):
2011         * lib/md4.c (set_uint32):
2012         * lib/md5.c (set_uint32):
2013         * lib/sha1.c (set_uint32):
2014         * lib/sha256.c (set_uint32):
2015         * lib/sha512.c (set_uint64):
2016         Now static, not static inline.  This is a bit simpler, and doesn't
2017         affect performance with GCC and default optimization.
2018         * m4/arctwo.m4 (gl_ARCTWO):
2019         * m4/md4.m4 (gl_MD4):
2020         * m4/md5.m4 (gl_MD5):
2021         * m4/sha1.m4 (gl_SHA1):
2022         * m4/sha256.m4 (gl_SHA256):
2023         * m4/sha512.m4 (gl_SHA512):
2024         Do not require AC_C_INLINE.
2025
2026         cond, lock, thread: better 'inline'
2027         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2028         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2029         New macros.  Use them instead of static inline, for header functions.
2030         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2031         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2032         * lib/glthread/lock.c (gl_waitqueue_init)
2033         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2034         * lib/glthread/thread.c (get_current_thread_handle):
2035         Change 'static inline' to 'inline'.
2036         * lib/glthread/cond.h, lib/glthread/thread.h:
2037         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2038         * m4/cond.m4 (gl_COND):
2039         * m4/lock.m4 (gl_PREREQ_LOCK):
2040         * m4/thread.m4 (gl_THREAD):
2041         Do not require AC_C_INLINE.
2042         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2043
2044         chdir-long, cycle-check, savewd: better 'inline'
2045         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2046         (find_non_slash):
2047         * lib/cycle-check.c (is_zero_or_power_of_two):
2048         * lib/savewd.c (savewd_delegating):
2049         Change 'static inline' to 'inline'.
2050         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2051         Replace all remaining uses of 'static inline' with it.
2052         * lib/savewd.h:
2053         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2054         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2055         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2056         * m4/savewd.m4 (gl_SAVEWD):
2057         Do not require AC_C_INLINE.
2058         * modules/savewd (Depends-on): Add extern-inline.
2059
2060         base32, base64: no need for 'inline'
2061         * lib/base32.c (to_uchar, get_8, decode_8):
2062         * lib/base64.c (to_uchar, get_4, decode_4):
2063         Change 'static inline' to 'inline'.
2064         * m4/base32.m4 (gl_PREREQ_BASE32):
2065         * m4/base64.m4 (gl_PREREQ_BASE64):
2066         Do not require AC_C_INLINE.
2067
2068         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
2069         * lib/gl_array_oset.c (gl_array_nx_add_at):
2070         (gl_array_remove_at):
2071         * lib/gl_linkedhash_list.c (hash_resize_after_add)
2072         (add_to_bucket, remove_from_bucket):
2073         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
2074         Change 'static inline' to 'static', as it's simpler to omit
2075         'inline' unless there's a significant performance advantage.
2076
2077         list, oset, xlist, xoset, xsublist: simplify via extern inline
2078         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
2079         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
2080         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
2081         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
2082         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
2083         New macro.  Replace all uses of 'static inline' with it.
2084         [HAVE_INLINE]: Implement functions as *_INLINE functions,
2085         instead of as macros FOO that are defined to static inline
2086         functions FOO_inline.
2087         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
2088         * lib/gl_xsublist.c:
2089         Reimplement from scratch, by defining the corresponding *_INLINE
2090         macro and including the corresponding .h file.  This is simpler.
2091         * modules/list, modules/oset, modules/xlist, modules/xoset:
2092         (Files): Remove m4/gl_list.m4.
2093         (configure.ac): Remove gl_LIST.
2094         * m4/gl_list.m4: Remove.
2095         * modules/list, modules/oset, modules/xlist, modules/xoset:
2096         * modules/xsublist:
2097         (Depends-on): Depend on extern-inline, not inline.
2098
2099         xalloc: better 'inline'
2100         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
2101         New macro.  Replace all uses of 'static inline' with it.
2102         (static_inline): Remove.
2103         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2104         Let 'extern inline' do the work automatically, instead of doing
2105         it by hand.
2106         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
2107         Remove.  All uses removed.
2108         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
2109
2110         gethrxtime: better 'inline'
2111         * lib/xtime.c: New file.
2112         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
2113         * lib/xtime.h (XTIME_INCLUDE):
2114         New macros.  Replace all uses of 'static inline' with them.
2115         * lib/gethrxtime.c (gethrxtime): Define only if
2116         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
2117         this source file is now always compiled, because of the extern inline.
2118         * lib/gethrxtime.h, lib/xtime.h:
2119         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2120         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
2121         if gethrtime works, as they're not needed in that case.
2122         (gl_XTIME): Do not require AC_C_INLINE.
2123         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
2124         compiled now.  Move the check into gl_GETHRXTIME.
2125         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
2126         (Depends-on): Add extern-inline.
2127         (configure.ac): gethrxtime is always compiled now.
2128         (lib_SOURCES): Add gethrxtime.c.
2129
2130         wctype-h: better 'inline'
2131         * lib/wctype-h.c: New file.
2132         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
2133         New macro.  Replace all uses of 'static inline' with it.
2134         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2135         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
2136         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
2137         (Depends-on): Add extern-inline.
2138
2139         unistd: better 'inline'
2140         * lib/unistd.c: New file.
2141         * lib/unistd.in.h (_GL_UNISTD_INLINE):
2142         New macro.  Replace all uses of 'static inline' with it.
2143         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2144         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
2145         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
2146         (Depends-on): Add extern-inline.
2147
2148         sys_socket: better 'inline'
2149         * lib/sys_socket.c: New file.
2150         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
2151         New macro.  Replace all uses of 'static inline' with it.
2152         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2153         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
2154         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
2155         (Depends-on): Add extern-inline.
2156
2157         stdio: better 'inline'
2158         * lib/stdio.c: New file.
2159         * lib/stdio.in.h (_GL_STDIO_INLINE):
2160         New macro.  Replace all uses of 'static inline' with it.
2161         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2162         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
2163         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
2164         (Depends-on): Add extern-inline.
2165
2166         sigaction: better 'inline'
2167         * lib/sig-handler.c: New file.
2168         * lib/sig-handler.h (SIG_HANDLER_INLINE):
2169         New macro.  Replace all uses of 'static inline' with it.
2170         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2171         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
2172         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
2173         (Depends-on): Add extern-inline.
2174
2175         selinux-h: better 'inline'
2176         * lib/se-context.c, lib/se-selinux.c: New files.
2177         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
2178         * lib/se-context.in.h (SE_CONTEXT_INLINE):
2179         New macro.  Replace all uses of 'static inline' with it.
2180         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2181         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
2182         New macro.  Replace all uses of 'static inline' with it.
2183         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2184         * modules/selinux-h (Files, lib_SOURCES):
2185         Add lib/se-context.c, lib/se-selinux.c.
2186         (Depends-on): Add extern-inline.
2187         (configure.ac): Do not require AC_C_INLINE.
2188
2189         pthread: better 'inline'
2190         * lib/pthread.c: New file.
2191         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
2192         New macro.  Replace all uses of 'static inline' with it.
2193         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2194         * m4/pthread.m4 (gl_PTHREAD_CHECK):
2195         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
2196         * modules/pthread (Files): Add lib/pthread.c.
2197         (Depends-on): Add extern-inline.
2198
2199         math: better 'inline'
2200         * lib/math.c: New file.
2201         * lib/math.in.h (_GL_MATH_INLINE):
2202         New macro.  Replace all uses of 'static inline' with it.
2203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2204         * m4/math_h.m4 (gl_MATH_H):
2205         Do not require AC_C_INLINE.
2206         * modules/math (Files, lib_SOURCES):
2207         Add lib/math.c.
2208         (Depends-on): Add extern-inline.
2209
2210         count-one-bits: better 'inline'
2211         * lib/count-one-bits.c: New file.
2212         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
2213         New macro.  Replace all uses of 'static inline' with it.
2214         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2215         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
2216         Do not require AC_C_INLINE.
2217         * modules/count-one-bits (Files, lib_SOURCES):
2218         Add lib/count-one-bits.c.
2219         (Depends-on): Add extern-inline.
2220
2221         count-leading-zeros: better 'inline'
2222         * lib/count-leading-zeros.c: New file.
2223         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
2224         New macro.  Replace all uses of 'static inline' with it.
2225         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2226         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
2227         Do not require AC_C_INLINE.
2228         * modules/count-leading-zeros (Files, lib_SOURCES):
2229         Add lib/count-leading-zeros.c.
2230         (Depends-on): Add extern-inline.
2231
2232         bitrotate: better 'inline'
2233         * lib/bitrotate.c: New file.
2234         * lib/bitrotate.h (BITROTATE_INLINE):
2235         New macros.
2236         Replace all uses of 'static inline' with them.
2237         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2238         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
2239         (Depends-on): Add extern-inline.
2240         (configure.ac): Do not require AC_C_INLINE.
2241
2242 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
2243
2244         maint.mk: avoid gratuitous failure
2245         Reported by Stefano Lattarini in
2246         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
2247         * top/maint.mk (public-submodule-commit): Quote more safely.
2248
2249 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
2250
2251         canonicalize, canonicalize-lgpl: support MS-Windows file names
2252         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
2253         for test cases, which it'd be nice to add at some point.
2254         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
2255         * lib/canonicalize.c (canonicalize_filename_mode):
2256         * lib/canonicalize-lgpl.c (__realpath):
2257         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
2258         slash is at the beginning of the file name.  Use ISSLASH, instead
2259         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
2260         the first character with '/'.  Test for
2261         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
2262         with a drive letter.
2263         * lib/canonicalize.c (SLASHES): New macro.
2264         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
2265
2266 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
2267
2268         fts: introduce FTS_VERBATIM
2269         * lib/fts_.h (FTS_VERBATIM): New bit flag.
2270         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
2271         * lib/fts.c (fts_open): Honor it.
2272
2273 2012-11-09  Pádraig Brady  <P@draigBrady.com>
2274
2275         getlogin-tests: allow errno == ENXIO
2276         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2277         with errno == ENXIO (No controlling tty).
2278         getlogin_r-tests: Likewise. Also allow errno == ENOENT
2279         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
2280         with errno == ENOENT.  This was reported to happen in various
2281         situations on GNU/Linux.
2282
2283 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2284
2285         getlogin-tests: allow errno == ENOENT
2286         * tests/test-getlogin.c (main): Skip tests if getlogin fails
2287         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
2288         when running a test in an Emacs shell buffer.
2289
2290 2012-11-08  Jim Meyering  <jim@meyering.net>
2291
2292         tests/nap.h: avoid warning about unused variable
2293         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
2294
2295         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
2296         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
2297         white space before each of the special-cased file names, to avoid
2298         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
2299         in http://bugs.gnu.org/12830.
2300
2301 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2302
2303         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
2304         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
2305         fails with errno == EBADF when fd is opened with O_PATH.
2306         Reported by Jim Meyering in
2307         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
2308         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2309         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
2310
2311 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2312
2313         test-utimens: speed up by taking shorter naps
2314         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
2315         New functions.
2316         (nap): Use them, to do a better job of guessing the delay.
2317         On Fedora 17 with ext4 atop md atop hard disks, this made
2318         test-utimens run 10x faster, because the test napped for
2319         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
2320         <http://bugs.gnu.org/12820#11>.
2321
2322 2012-11-07  Jim Meyering  <jim@meyering.net>
2323
2324         mountlist.c: fix a compilation failure
2325         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
2326         I introduced while transforming commit v0.0-7683-g613bcb6
2327
2328 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2329
2330         errno: port to LynxOS 178 2.2.2
2331         Problem reported by Joel Brobecker in
2332         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
2333         * doc/posix-headers/errno.texi (errno.h): Document this.
2334         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
2335         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
2336         Supply a string for EILSEQ.
2337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
2338
2339 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2340
2341         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
2342         Linux kernel 2.6.39 introduced O_PATH (see
2343         <http://lwn.net/Articles/433854/>) and this is a better fallback
2344         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
2345         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
2346         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
2347         * lib/fcntl.in.h (O_ACCMODE):
2348         * tests/test-fcntl-h.c (main):
2349         Do not reject O_ACCMODE merely because it has more than the
2350         minimal number of bits, as POSIX allows extensions here.
2351
2352 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
2353
2354         mountlist: do not classify a bind-mounted dir entry as "dummy"
2355         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
2356         the "none"-testing clause.
2357         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
2358         exception for bind-mounted directories.
2359
2360 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
2361
2362         quote: provide a means to escape strings with nul characters
2363         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
2364         (quote, quote_n): Rename formal arguments for consistency with
2365         quotearg.
2366
2367 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
2368
2369         test-raise: don't assume 199 is an invalid signal
2370         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
2371
2372         sh-quote-tests: port to Solaris 9
2373         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
2374         Problem reported by Dagobert Michelsen in
2375         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
2376
2377 2012-10-28  Jim Meyering  <jim@meyering.net>
2378
2379         maint.mk: rename a new configurable variable
2380         * top/maint.mk (_gl_translatable_string_re): Rename from
2381         translation-markers: _gl_ prefix to insulate from user Makefile code,
2382         and the _re suffix to inform that it's a regular expression.
2383
2384 2012-10-26  Eric Blake  <eblake@redhat.com>
2385
2386         maint.mk: let packages tweak sc_po_check pattern
2387         * top/maint.mk (sc_po_check): Add translation-markers, to allow
2388         finding files with other translation markers.
2389
2390 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2391
2392         euidaccess: speed up 'configure' on GNU hosts
2393         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
2394         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
2395         it's needed only in this case.  Use AC_CHECK_DECLS, not
2396         AC_CHECK_DECLS_ONCE.
2397         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
2398         or AC_REQUIRE for AC_FUNC_GETGROUPS.
2399
2400         * lib/regexec.c (re_search_internal): Fix grammar in comment.
2401
2402 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2403
2404         fchmodat, fchownat, fstatat: port to non-inlining compilers
2405         Problem reported for FreeBSD 9 by Jim Meyering in
2406         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
2407         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
2408         New files, which define FCHMODAT_INLINE etc.
2409         * lib/fchmodat.c (FCHMODAT_INLINE):
2410         * lib/fchownat.c (FCHOWNAT_INLINE):
2411         * lib/fstatat.c (FSTATAT_INLINE):
2412         Remove, as chmodat.c etc. now do this.
2413         * modules/fchmodat (Files): Add lib/chmodat.c.
2414         * modules/fchownat (Files): Add lib/chownat.c.
2415         * modules/fstatat (Files): Add lib/statat.c.
2416
2417 2012-10-15  Jim Meyering  <jim@meyering.net>
2418
2419         fchmodat.c, fchownat.c: compile-impeding typos
2420         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
2421         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
2422         Introduced in commit v0.0-7636-gd202279.
2423
2424 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         fcntl-h: support GNU flags like O_IGNORE_CTTY
2427         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
2428         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
2429         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
2430         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
2431         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
2432         Define to 0 if not already defined.
2433         * tests/test-fcntl-h.c: Test these new flags.
2434
2435 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
2436
2437         faccessat, etc.: support AT_FDCWD-only use
2438         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
2439         this function only if its first argument is AT_FDCWD.
2440         Emacs wants faccessat for AT_EACCESS but not for any first-arg
2441         values other than AT_FDCWD, so it doesn't want all the openat
2442         machinery with fchdir etc.
2443         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
2444         * modules/fstatat, modules/mkdirat, modules/openat (Files):
2445         * modules/unlinkat (Files):
2446         Remove lib/openat-priv.h, as at-internal supplies this file.
2447         Removing this file here allows us to support programs like Emacs
2448         that avoid at-internal.
2449
2450         faccessat: speed up 'configure' on mainstream hosts
2451         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
2452         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
2453         since it's only on unusual platforms that we need to check for
2454         'access', and it's better not to slow 'configure' down on all
2455         platforms.
2456
2457         faccessat: port to Solaris 10
2458         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
2459         Needed on Solaris 10, which doesn't have AT_EACCESS,
2460         so we need the Gnulib fcntl.h, which defines it.
2461
2462 2012-10-14  Pádraig Brady  <P@draigBrady.com>
2463         canonicalize: fix C89 compilation
2464         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
2465         declarations so C89 is supported.  Also remove the comment
2466         referencing memorty allocation as the suggested feature could
2467         not be implemented as suggested.
2468         Reported by Michael Goffioul.
2469
2470 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
2471
2472         group-member: omit unnecessary dependencies
2473         This is for Emacs, which has its own allocator and where we
2474         don't want to use xalloc.
2475         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
2476         since we no longer use xmalloc.  Do not include stdbool.h, since
2477         the changes below happen to remove the only use of bool.
2478         (GROUPBUF_SIZE): New constant.
2479         (struct group_info): Remove n_groups member.  Add groupbuf member.
2480         This lets us get the groups without using malloc, usually.
2481         (free_group_info, get_group_info): Adjust to this.
2482         (get_group_info): Return the number of groups found, or -1 on error.
2483         Use plain malloc not xmalloc, and treat its failure as if there
2484         are no groups, as the user already loses in case of error.
2485         (group_member): Simplify, based on changes to get_group_info.
2486         * modules/group-member (Depends-on): Remove dependencies on
2487         xalloc and stdbool.  Add dependency on xalloc-oversized.
2488
2489 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
2490
2491         gethrxtime: port to C++
2492         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
2493
2494 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
2495
2496         ptsname: fix macro-name typo
2497         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
2498
2499 2012-10-03  Simon Josefsson  <simon@josefsson.org>
2500
2501         inttostr: Relax license.
2502         * modules/inttostr (License): Change from LGPL to LGPLv2+.
2503
2504 2012-10-03  Eric Blake  <eblake@redhat.com>
2505
2506         ptsname_r: support ptys returned by FreeBSD posix_openpt
2507         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
2508         lives in /dev/pts/.
2509
2510 2012-10-02  Eric Blake  <eblake@redhat.com>
2511
2512         pselect: reject invalid file descriptors
2513         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
2514         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
2515         * modules/pselect (Depends-on): Add dup2.
2516         * doc/posix-functions/pselect.texi (pselect): Document this.
2517
2518         select: reject invalid file descriptors
2519         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
2520         * lib/select.c (rpl_select) [!win32]: Work around it.
2521         * modules/select (Depends-on): Add dup2.
2522         * doc/posix-functions/select.texi (select): Document this.
2523
2524         select: enhance test
2525         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
2526         New functions.
2527         (test_function): Enhance test.
2528         (do_select_bad_fd): Avoid any stale errno values.
2529
2530         ptsname: reject invalid file descriptors
2531         http://www.austingroupbugs.net/view.php?id=503
2532         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
2533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
2534         * modules/stdlib (Makefile.am): Replace witness.
2535         * lib/stdlib.in.h (ptsname): Allow for replacement.
2536         * modules/ptsname (configure.ac): Trigger replacement.
2537         * doc/posix-functions/ptsname.texi (ptsname): Document this.
2538
2539 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
2540
2541         hash-pjw-bare: new module
2542         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
2543         * lib/hash-pjw-bare.h: Likewise.
2544         * modules/hash-pjw-bare: New file.
2545         * MODULES.html.sh (Misc): Add it.
2546
2547 2012-10-02  Eric Blake  <eblake@redhat.com>
2548
2549         manywarnings: cater to more gcc infelicities
2550         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
2551         -Wuninitialized without -O.
2552
2553 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
2554
2555         select, poll tests: Make setsockopt invocation effective.
2556         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
2557         the bind() call.
2558         * tests/test-select.h (open_server_socket): Likewise.
2559
2560 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         sockets, sys_stat: restore AC_C_INLINE
2563         This undoes the 2012-09-22 patch.
2564         * m4/sockets.m4 (gl_SOCKETS):
2565         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2566         Restore AC_C_INLINE, since MSVC requires __inline or _inline
2567         and does not support plain 'inline'.  Reported by Bruno Haible in
2568         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
2569
2570 2012-09-30  Bruno Haible  <bruno@clisp.org>
2571
2572         localeconv tests: Avoid test failure on OpenIndiana.
2573         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
2574         skip the 'grouping' and 'mon_grouping' tests.
2575         Reported by Jim Meyering.
2576
2577 2012-09-30  Bruno Haible  <bruno@clisp.org>
2578
2579         havelib: Follow libtool developments.
2580         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
2581         Suggested by Simon Josefsson.
2582
2583 2012-09-29  Jim Meyering  <meyering@redhat.com>
2584
2585         fstatat.c: fix a compile-impeding typo
2586         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
2587         Introduced in commit v0.0-7636-gd202279.
2588         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
2589
2590 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
2591
2592         extern-inline: provide a -Wundef safe config.h
2593         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
2594         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
2595         to produce a -Wundef warning free config.h.
2596
2597 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2598
2599         hash-pjw: relax license to LGPLv2+
2600         * modules/hash-pjw (License): Relax, with consent of author.
2601
2602 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2603
2604         maint.mk: fix strict vs. lazy variable issues with RELEASE
2605         * top/maint.mk (_equal): New function.
2606         (member_check): Strip the result to avoid spurious spaces.
2607         (url_dir_list): Do not use ifeq, which is strict, as it will
2608         require RELEASE_TYPE to be defined.
2609         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
2610         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
2611         (announcement_Cc_alpha,announcement_mail_headers_alpha)
2612         (announcement_Cc_beta,announcement_mail_headers_beta)
2613         (announcement_Cc_stable,announcement_mail_headers_stable): these.
2614         (release): Do not depend on $(release-type), as it forces its
2615         evaluation.  Bounce to it.
2616
2617 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
2618
2619         maint.mk: formatting changes
2620         * top/maint.mk: Indent bodies of if's.
2621
2622 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
2623
2624         maint.mk: factor the validation of RELEASE_TYPE
2625         With help from Jim Meyering.
2626         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
2627         * top/maint.mk (_empty, _sp): Move their definition earlier.
2628         (member-check, release-type): New.
2629         Use the latter instead of $(RELEASE_TYPE).
2630         Remove now useless local checks.
2631
2632 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2633
2634         maint.mk: provide "make upload" to ease uploading
2635         See
2636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
2637         Do not depend simply on the current $(VERSION), as there may have been
2638         new commits since the tarball generation.  Rather, rely on $(RELEASE),
2639         as "make release-commit" already does.
2640
2641         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
2642         "make TYPE".
2643
2644         * top/maint.mk (upload_command, upload, release): New.
2645         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
2646         (VERSION): first word of $(RELEASE) is always right.
2647         (emit_upload_commands): Adjust.
2648         * top/README-release: Update.
2649
2650 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
2651
2652         maint.mk: silent rules
2653         With help from Stefano Lattarini.
2654         * top/maint.mk (writable-files): Use $(AM_V_GEN).
2655         (announcement): Use $(AM_V_at).
2656
2657 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
2658
2659         localename: port gl_locale_name_thread_unsafe to FreeBSD
2660         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
2661         and use the simpler FreeBSD implementation on Mac OS X as well.
2662         Original idea suggested by Ed Maste in
2663         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
2664
2665 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2666
2667         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
2668         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
2669         * lib/mbuiter.c, lib/xsize.c: New files.
2670         * lib/binary-io.h (BINARY_IO_INLINE):
2671         * lib/eealloc.h (EEALLOC_INLINE):
2672         * lib/mbfile.h (MBFILE_INLINE):
2673         * lib/mbiter.h (MBITER_INLINE):
2674         * lib/mbuiter.h (MBUITER_INLINE):
2675         * lib/xsize.h (XSIZE_INLINE):
2676         New macros.
2677         Replace all uses of 'static inline' with them.
2678         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2679         * m4/eealloc.m4 (gl_EEALLOC):
2680         * m4/mbfile.m4 (gl_MBFILE):
2681         * m4/mbiter.m4 (gl_MBITER):
2682         * m4/xsize.m4 (gl_XSIZE):
2683         Do not require AC_C_INLINE.
2684         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
2685         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
2686         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
2687         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
2688         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
2689         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
2690         * modules/binary-io, modules/eealloc, modules/mbfile:
2691         * modules/mbiter, modules/mbuiter:
2692         (Depends-on): Add extern-inline.
2693
2694         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
2695         * lib/pipe-filter-aux.c: New file.
2696         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
2697         Replace all uses of 'static inline' with it.
2698         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2699         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
2700         (filter_retcode): No real need for inline here.
2701         * modules/pipe-filter-gi, modules/pipe-filter-ii:
2702         (Files): Add lib/pipe-filter-aux.c.
2703         (Depends-on): Add extern-inline.
2704         (configure.ac): Do not require AC_C_INLINE.
2705         (lib_SOURCES): Add pipe-filter-aux.c.
2706
2707         fdutimensat: omit unnecessary AC_C_INLINE
2708         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
2709
2710         fchmodat, fchownat, fstatat: use extern-inline
2711         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
2712         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
2713         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
2714         New macros.
2715         * lib/openat.h:
2716         Replace all uses of 'static inline' with them.
2717         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2718         * modules/fchmodat, modules/fchownat, modules/fstatat:
2719         * modules/openat-h:
2720         (Depends-on):
2721         Add extern-inline.
2722         (configure.ac): Remove AC_C_INLINE.
2723
2724         acl, mbchar, priv-set: use extern-inline
2725         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
2726         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
2727         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
2728         New macros.
2729         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
2730         Replace all uses of 'static inline' with it.
2731         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2732         * m4/acl.m4 (gl_FUNC_ACL):
2733         * m4/mbchar.m4 (gl_MBCHAR):
2734         * m4/priv-set.m4 (gl_PRIV_SET):
2735         Remove AC_C_INLINE, since 'inline' is no longer used directly.
2736         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
2737         Add extern-inline.
2738
2739         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
2740         * m4/sockets.m4 (gl_SOCKETS):
2741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
2742         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
2743         environments where it's already guaranteed to work, so we needn't
2744         check for it at 'configure'-time.
2745
2746         tls-tests: omit unnecessary 'inline'
2747         * tests/test-tls.c (perhaps_yield): No longer inline.
2748         Simplicity and portability trump efficiency in test cases.
2749
2750         utimens-tests: avoid unnecessary 'inline'
2751         * modules/fdutimensat-tests (configure.ac):
2752         * modules/futimens-tests (configure.ac):
2753         * modules/utimens-tests (configure.ac):
2754         * modules/utimensat-tests (configure.ac):
2755         Remove AC_C_INLINE.
2756         * tests/test-utimens-common.h (ctime_compare):
2757         No longer inline.  Simplicity and portability trump efficiency here.
2758
2759         misc: don't limit commentary to inline functions
2760         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
2761         * lib/xalloc-oversized.h, lib/xsize.h:
2762         Contrast macros to functions in general, not just to inline functions,
2763         when the commentary does not apply only to inline functions.
2764
2765 2012-09-20  Jim Meyering  <meyering@redhat.com>
2766
2767         non-recursive-gnulib-prefix-hack: new module
2768         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
2769         the file that originated in Bison.
2770         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
2771         largely copied from a snippet that resided in bison's configure.ac.
2772         * modules/non-recursive-gnulib-prefix-hack: New file.
2773         * MODULES.html.sh (Support for maintaining and releasing projects):
2774         Add it.
2775
2776 2012-09-18  Jim Meyering  <meyering@redhat.com>
2777
2778         maint.mk: generalize _gl_tight_scope for non-recursive make
2779         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
2780         that *.h would describe additional .h files in the directory
2781         specified by $(_gl_TS_dir).  I.e., add this...
2782         (_gl_TS_other_headers): New variable.
2783
2784         maint.mk: exempt trailing blanks found in "binary" files
2785         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
2786         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
2787         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2788
2789 2012-09-17  Jim Meyering  <meyering@redhat.com>
2790
2791         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
2792         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
2793         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
2794         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2795
2796 2012-09-17  Jim Meyering  <meyering@redhat.com>
2797
2798         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
2799         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
2800         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
2801         It is not in the same category as "exit (0)" or "exit (1)", and
2802         besides, I know of no symbolic name for that 77.  Reported by
2803         Richard W.M. Jones in
2804         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2805
2806 2012-09-17  Jim Meyering  <meyering@redhat.com>
2807
2808         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
2809         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
2810         all uses of #define, not just those that start in column 1.
2811         Richard W.M. Jones reported a false positive in
2812         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
2813
2814 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2815
2816         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
2817         * lib/localcharset.c (locale_charset) [DARWIN7]:
2818         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
2819         as these two values are incompatible.  Problem reported by Max Horn.
2820         For more discussion, please see
2821         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
2822
2823         doc: document sticky-EOF issue
2824         * doc/posix-functions/fgetc.texi (fgetc):
2825         * doc/posix-functions/fgets.texi (fgets):
2826         * doc/posix-functions/fread.texi (fread):
2827         * doc/posix-functions/fscanf.texi (fscanf):
2828         * doc/posix-functions/getc.texi (getc):
2829         * doc/posix-functions/getchar.texi (getchar):
2830         * doc/posix-functions/scanf.texi (scanf):
2831         Mention that glibc and default Solaris do not conform to
2832         C99 and POSIX-2001 or later, with respect to how getchar
2833         etc. behave when feof reports nonzero.
2834
2835 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2836
2837         poll: fix poll(0, NULL, msec)
2838         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2839         but nfd is 0.  In that case poll should behave like select.
2840
2841 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2842             Paolo Bonzini <bonzini@gnu.org>
2843
2844         poll: fix for systems that can't recv() on a non-socket
2845         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2846         is readable.  In this case POLLHUP will not be supported.
2847         * doc/posix-functions/poll.texi: Document this.
2848
2849 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2850
2851         poll/select: document portability problems not fixed by Gnulib.
2852         * doc/posix-functions/poll.texi: poll does not work well on
2853         pipes under Windows.  It has the same limitations as select on
2854         BeOS.
2855         * doc/posix-functions/select.texi: select does not work well
2856         on pipes under Windows.
2857
2858 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2859
2860         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2861         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2862         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2863         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2864
2865 2012-09-06  Eric Blake  <eblake@redhat.com>
2866
2867         net_if: give more details about the bug being fixed
2868         * doc/posix-headers/net_if.texi: Add clarification.
2869
2870 2012-09-05  Eric Blake  <eblake@redhat.com>
2871
2872         net_if: new module
2873         * modules/net_if: New module, borrowing ideas from netinet_in.
2874         * m4/net_if_h.m4: New file.
2875         * lib/net_if.in.h: Likewise.
2876         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2877         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2878         * tests/test-net_if.c: Make function checks conditional.
2879         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2880
2881 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2882
2883         readutmp: fix non-portable UT_PID use
2884         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2885         Use `UT_PID (u) > 0' as absolute condition.
2886
2887 2012-09-04  Jim Meyering  <meyering@redhat.com>
2888
2889         fts: reduce two or more trailing spaces to just one, usually
2890         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2891         or more slashes, trim all but the final one.  But if a name consists
2892         solely of two slashes, don't modify it.  If it consists solely of
2893         three or more slashes, strip all but one.
2894
2895         This is part of the solution to a minor problem with rm:
2896         it would print a bogus ELOOP diagnostic when failing to remove
2897         the slash-decorated name of a symlink-to-directory:
2898
2899             $ mkdir d && ln -s d s && env rm -r s/
2900             rm: cannot remove 's': Too many levels of symbolic links
2901
2902         With the change below and a trivial don't-trim-trailing-slashes
2903         adjustment to remove.c, it does this:
2904
2905             $ env rm -r s/
2906             rm: cannot remove 's/': Not a directory
2907
2908         Improved by: Eric Blake
2909
2910         fts: when there is no risk of overlap, use memcpy, not memmove
2911         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2912
2913 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2914
2915         stdbool: be more compatible with mixed C/C++ compiles
2916         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2917         Define to bool, true, false, respectively, as GCC's builtin
2918         stdbool.h does.  Problem reported by Michael Goffioul in
2919         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2920
2921 2012-08-28  Jim Meyering  <meyering@redhat.com>
2922
2923         revert last change: it was not needed
2924         * tests/test-vc-list-files-git.sh: There's already a test for
2925         a working git, just below.
2926
2927 2012-08-28  Jim Meyering  <meyering@redhat.com>
2928
2929         tests: test-vc-list-files-git.sh: skip if git is not available
2930         * tests/test-vc-list-files-git.sh: Skip this test when git is
2931         not available.
2932
2933 2012-08-26  Bruno Haible  <bruno@clisp.org>
2934
2935         gnulib-tool: Remove no-op option --no-changelog.
2936         * gnulib-tool (func_usage): Don't mention --no-changelog.
2937         (do_changelog): Remove variable.
2938         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2939
2940 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2941
2942         doc: remove fdl-1.2.texi
2943         It is no longer used or maintained, and its use of @acronym
2944         is problematic.  See the thread containing
2945         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2946         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2947         * doc/old-licenses/fdl-1.2.texi: Remove.
2948
2949         execinfo: port to FreeBSD
2950         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2951         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2952         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2953         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2954
2955 2012-08-23  Jim Meyering  <meyering@redhat.com>
2956
2957         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2958         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2959         to placate gcc's -Wold-style-declaration.
2960
2961 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2962
2963         doc: do not use @acronym
2964         * doc/inet_ntoa.texi (inet_ntoa):
2965         * doc/parse-datetime.texi (Seconds since the Epoch)
2966         (Specifying time zone rules):
2967         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2968         Don't use @acronym.  Problem reported by John Darlington in
2969         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2970
2971 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2972
2973         stdnoreturn: port to newer GCCs
2974         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2975         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2976         Problem reported by Jim Meyering in
2977         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2978         Also, rename the 'test' function to a void a clash with the
2979         already-supplied 'main' function; this fixes a bug that incorrectly
2980         rejected GCC 4.7.1's <stdnoreturn.h>.
2981         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2982         Document GCC problem.
2983
2984 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2985
2986         pipe-filter: fix comment typo
2987         * lib/pipe-filter.h: Mention correct function.
2988
2989 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2990
2991         execinfo: new module
2992         This is for Emacs.  Currently, it provides a no-effect stub
2993         on all platforms where it does not already work.
2994         It already works on glibc-based systems, and on Solaris 11.
2995         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2996         New files.
2997         * doc/glibc-headers/execinfo.texi (execinfo.h):
2998         * MODULES.html.sh (Misc): Document it.
2999
3000 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3001
3002         extern-inline: support old GCC 'inline'
3003         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3004         if available.  This applies to GCC versions 2.7 through 4.2, or
3005         when newer GCC is using -fgnu89-inline.  The goal is to address
3006         some of the performance issues mentioned by Bruno Haible in
3007         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3008
3009 2012-08-20  Eric Blake  <eblake@redhat.com>
3010
3011         maint.mk: avoid redundant file name in message
3012         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3013         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3014         (sc_makefile_path_separator_check): Remove bogus $(ME).
3015
3016 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3017
3018         timer-time: fix link order when static linking on glibc
3019         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3020         _after_ -lrt so that it's significant.
3021
3022 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3023
3024         timespec: omit unnecessary AC_C_INLINE
3025         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3026
3027         stat-time: omit unnecessary AC_C_INLINE
3028         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3029         Do not require AC_C_INLINE.
3030
3031         ignore-value: omit unnecessary AC_C_INLINE
3032         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3033
3034         sys_select: avoid 'static inline'
3035         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3036
3037         mktime: avoid 'static inline'
3038         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3039         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3040
3041 2012-08-19  Bruno Haible  <bruno@clisp.org>
3042
3043         gnulib-tool: Improve coding style.
3044         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3045         func_emit_lib_Makefile_am.
3046         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3047
3048 2012-08-19  Bruno Haible  <bruno@clisp.org>
3049
3050         gnulib-tool: Fix indentation.
3051         * gnulib-tool (func_import): Fix indentation.
3052
3053 2012-08-19  Bruno Haible  <bruno@clisp.org>
3054
3055         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3056         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3057         on the list of removed files.
3058
3059 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3060
3061         test-parse-datetime: avoid glibc leap-second glitch
3062         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
3063         with the 2012 rules.  Problem reported by Bruce Dubbs in
3064         <http://bugs.gnu.org/12206>.
3065
3066 2012-08-14  Bruno Haible  <bruno@clisp.org>
3067
3068         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
3069         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
3070         from argument.
3071         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3072
3073 2012-08-14  Eric Blake  <eblake@redhat.com>
3074
3075         ldexp: relax license
3076         * modules/ldexp (License): Trivial relax, since the module only
3077         provides a permissively licensed m4 file.
3078
3079 2012-08-13  Bruno Haible  <bruno@clisp.org>
3080
3081         gnulib-tool: Fix persistence of --witness-c-macro option.
3082         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
3083         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3084
3085 2012-08-11  Eric Blake  <eblake@redhat.com>
3086
3087         count-leading-zeros: use a lookup table on non-gcc compilers
3088         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
3089         alternate implementation, suggested by Jim Meyering.
3090
3091 2012-08-10  Eric Blake  <eblake@redhat.com>
3092
3093         count-leading-zeros: new module
3094         * modules/count-leading-zeros: New module.
3095         * m4/count-leading-zeros.m4: New file.
3096         * lib/count-leading-zeros.h: Likewise.
3097         * modules/count-leading-zeros-tests: New test.
3098         * tests/test-count-leading-zeros.c: New file.
3099         * MODULES.html.sh (Integer arithmetic functions): Document it.
3100
3101 2012-08-07  Simon Josefsson  <simon@josefsson.org>
3102             Jim Meyering  <meyering@redhat.com>
3103
3104         maintainer-makefile: Fix syntax error with dash.
3105         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
3106         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
3107
3108 2012-08-05  Jim Meyering  <meyering@redhat.com>
3109
3110         extern-inline: also ignore -Wmissing-declarations
3111         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
3112         required with gcc-4.8.0-to-be.
3113
3114         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
3115         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
3116         for /error ?([^,]*)/.  This avoids false-positives for strings like
3117         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
3118
3119 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
3120
3121         gnumakefile: better interaction with Automake-NG
3122         * modules/gnumakefile [Makefile.am]: The makefiles generated by
3123         Automake-NG always contain a definition of VPATH, even in non-VPATH
3124         builds (its value being simply '.' in that case).  So, in the
3125         'clean-GNUmakefile' rule, to determine whether running under a
3126         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
3127         '$(VPATH)' expands to the empty string.
3128
3129 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
3130
3131         base64: Use extern C scope in header file, for C++.
3132         * lib/base64.h: Add C++ namespace protection.
3133
3134 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3135
3136         stat-time, timespec, u64: support naive out-of-dir builds
3137         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
3138         Use '#include "foo.h"', not '#include <foo.h>', when including
3139         one's own interface.  This works better when configuring with
3140         out-of-directory builds, since packages need not add an
3141         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
3142
3143 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3144
3145         utimens: use extern-inline
3146         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
3147         * lib/utimens.h: Add copyright notice, since this is now large enough
3148         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3149         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
3150         * modules/utimens (Depends-on): Add extern-inline.
3151
3152         u64: use extern-inline
3153         * lib/u64.c: New file.
3154         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3155         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
3156         * modules/u64 (Files): Add lib/u64.c.
3157         (Depends-on): Add extern-inline.
3158         (configure.ac): No need to require AC_C_INLINE, since extern-inline
3159         does that now.
3160         (lib_SOURCES): Add u64.c.
3161
3162         timespec: use extern-inline
3163         * lib/timespec.c: New file.
3164         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3165         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
3166         * modules/timespec (Files): Add lib/timespec.c.
3167         (Depends-on): Add extern-inline.
3168         (lib_SOURCES): Add timespec.c.
3169
3170         stat-time: use extern-inline
3171         * lib/stat-time.c: New file.
3172         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3173         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
3174         * modules/stat-time (Files): Add lib/stat-time.c.
3175         (Depends-on): Add extern-inline.
3176         (lib_SOURCES): Add stat-time.c.
3177
3178         extern-inline: new module
3179         * modules/extern-inline, m4/extern-inline.m4: New files.
3180         This is for better support of 'extern inline' a la ISO C99,
3181         with a portable alternative on compilers that do not support
3182         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
3183         of the Emacs executable, when compiled with debugging disabled,
3184         which is a typical way that Emacs is built while developing.
3185
3186 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
3187
3188         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
3189         * build-aux/do-release-commit-and-tag: Move variable definitions
3190         together.
3191         ($branch): Instead of defaulting to "master", default to the current
3192         branch (as gnu-web-doc-update does).
3193         (help): Display the current values of the option arguments.
3194         * top/maint.mk (release-commit): New.
3195         * top/README-release: Simplify the corresponding step.
3196
3197 2012-07-30  Eric Blake  <eblake@redhat.com>
3198
3199         passfd: fix comment on recvfd
3200         * lib/passfd.c (recvfd): Fix comment.
3201         Reported by Jann Horn <jannhorn@googlemail.com>.
3202
3203 2012-07-30  Jim Meyering  <meyering@redhat.com>
3204
3205         maint.mk: avoid a sub-shell
3206         * top/maint.mk (release-prep): Remove unneeded sub-shell.
3207
3208 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3209
3210         maint.mk: use silent-rules support from Automake
3211         * top/maint.mk (news-check, vc-diff-check, announcement)
3212         (no-submodule-changes, alpha beta stable, release-prep)
3213         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
3214
3215 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3216
3217         maint.mk: provide a web-manual-update target
3218         * top/maint.mk: here.
3219         * top/README-release: Use it to simplify the web manual update step.
3220
3221 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3222
3223         README-release: shorten the circuit to post a news
3224         * top/README-release: Point directly to the news submission form.
3225
3226 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3227
3228         gnu-web-doc-update: fix --help
3229         * build-aux/gnu-web-doc-update: The information "top level" was written
3230         twice.
3231
3232 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
3233
3234         maint.mk: absolute VPATH issue
3235         * top/maint.mk (release-prep): Help Git find .git/.
3236         From Jim Meyering.
3237
3238 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3239
3240         gitlog-to-changelog: fix previous change
3241         * build-aux/gitlog-to-changelog: Fix condition.
3242         Add missing ";".
3243
3244 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3245
3246         gitlog-to-changelog: don't expect .git to be in $srcdir
3247         Reported by Bruno Haible.
3248         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
3249         * build-aux/gitlog-to-changelog (&git_dir_option): New.
3250         Use it.
3251
3252 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
3253
3254         maint.mk: absolute VPATH build fix
3255         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
3256         $(srcdir) is not a parent of $(builddir).
3257
3258 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
3259
3260         clean-temp: Fix memory leak.
3261         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
3262         'files' members of tmpdir.
3263
3264 2012-07-27  Jim Meyering  <meyering@redhat.com>
3265
3266         maint.mk: new rule: refresh-gnulib-patches
3267         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
3268         Use this rule to refresh them.
3269         * top/maint.mk (refresh-gnulib-patches): New rule.
3270
3271 2012-07-24  Bruno Haible  <bruno@clisp.org>
3272
3273         gnulib-tool: Fix handling of inctests variable.
3274         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
3275         Reported by Nick Bowler <nbowler@elliptictech.com>.
3276
3277 2012-07-22  Bruno Haible  <bruno@clisp.org>
3278
3279         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
3280         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
3281         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3282         Remove exemption for getpass.h.
3283         Suggested by Eric Blake.
3284
3285 2012-07-20  Eric Blake  <eblake@redhat.com>
3286
3287         verify: document conflict with -Wnested-externs
3288         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
3289
3290         maint.mk: forbid exit(-1)
3291         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
3292
3293 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
3294
3295         fsusage: port back to Solaris
3296         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
3297         error (fsd not declared) on Solaris 10.  Reported privately by
3298         Andrew Borodin.
3299
3300 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
3301
3302         gnu-web-doc-update: fix error messages
3303         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
3304
3305         gnu-web-doc-update: check the requirements.
3306         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
3307         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
3308         * build-aux/bootstrap (find_tool): Comment change.
3309
3310 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
3311
3312         maint.mk: minor simplication.
3313         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
3314         for default values.
3315
3316 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
3317
3318         gitlog-to-changelog: VPATH build issues
3319         If builddir is not a subdirectory of srcdir, running git from it will
3320         fail.
3321         * build-aux/gitlog-to-changelog (--srcdir): New option.
3322
3323 2012-07-15  Bruno Haible  <bruno@clisp.org>
3324
3325         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
3326         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
3327         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
3328         Remove exemption for fpending.h.
3329         Suggested by Eric Blake.
3330
3331 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3332
3333         pthread_sigmask: fix bug on FreeBSD 9
3334         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
3335         Include string.h.
3336         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
3337         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
3338         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
3339         but pthread_sigmask (1729, NULL, NULL) returns zero.
3340         See <http://bugs.gnu.org/11884>.
3341         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
3342         by inspecting whether the main call changed the old mask.
3343
3344 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
3345
3346         README-release: make it more legible
3347         * top/README-release: Improve typography slightly.
3348
3349 2012-07-15  Jim Meyering  <meyering@redhat.com>
3350
3351         maint: require that each sc_... command start with "@"
3352         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
3353         "make sc_maint" helps us avoid this nit.
3354
3355 2012-07-15  Jim Meyering  <meyering@redhat.com>
3356
3357         maint.mk: add leading "@" to quiet new "make syntax-check" rule
3358         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
3359
3360 2012-07-13  Eric Blake  <eblake@redhat.com>
3361
3362         maint.mk: new syntax check for HAVE_DECL checks
3363         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
3364         * cfg.mk
3365         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
3366         Exempt some false positives.
3367         Based on a report by Karel Zak.
3368
3369         argp: make HAVE_DECL usage consistent
3370         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
3371         macros, not whether they are defined.
3372         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
3373         convention with other declaration checks.
3374         Reported by Karel Zak, with suggestions from Paul Eggert.
3375
3376         stat-time: relax license to LGPLv2+
3377         * modules/stat-time (License): Relax, with consent of all authors.
3378
3379         strndup: fix m4 usage error
3380         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
3381         defined, to either 0 or 1.
3382         Reported by Karel Zak.
3383
3384 2012-07-11  Jim Meyering  <meyering@redhat.com>
3385
3386         maint: enable the sc_avoid_if_before_free syntax-check rule
3387         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
3388         (if_before_free_offenders_): Define.
3389         (if_before_free_basename_re_): Define.
3390         Exempt current files with useless if-before-free.
3391
3392 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
3393
3394         gettext: do not assume '#define ... defined ...' behavior
3395         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
3396         Do not use '#define FOO ... defined BAR ...', as the C standard says
3397         it's not portable to expect that this works after macro expansion.
3398         Problem reported for gzip by Steven M. Schweda in
3399         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
3400
3401 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
3402
3403         getloadavg: clean out old Emacs and Autoconf cruft
3404         See Glenn Morris in <http://bugs.gnu.org/11905>.
3405         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
3406         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
3407         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
3408         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
3409
3410 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
3411
3412         bootstrap: let warn be like tests/init.sh's warn_
3413         Reported by Jim Meyering.
3414         * build-aux/bootstrap (warn): Remove, replaced by...
3415         (warnf_, warn_): these.
3416         Adjust callers.
3417         Shorten messages that no longer fit in 80 columns.
3418
3419 2012-07-09  Bruno Haible  <bruno@clisp.org>
3420
3421         getopt: Simplify after Emacs changed.
3422         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
3423         (gl_GETOPT_IFELSE): Remove macro.
3424
3425 2012-07-09  Jim Meyering  <meyering@redhat.com>
3426
3427         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
3428         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
3429
3430         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
3431         Bugs in both of those conspired to make the
3432         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
3433         _sc_search_regexp's handling of non-empty $in_files would filter
3434         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
3435         choice of in_files value meant there would be no match in most
3436         projects, due to the presence of two or more Makefile.in files.
3437         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
3438         Fix a bug in how a non-empty $$in_files was processed:
3439         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
3440         in spite of the name, it's a regexp, not a list of file names.
3441
3442 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
3443
3444         getloadavg, getopt: fix commentary re configure.in
3445         Autoconf is deprecating the name 'configure.in', so change it to
3446         to the new name 'configure.ac' in a couple of places.
3447         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
3448         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
3449         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
3450         Emacs has renamed it to configure.ac, and it no longer refers
3451         to these macros anyway.
3452
3453         timespec: mark functions with const attributes
3454         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
3455         Mark with _GL_ATTRIBUTE_CONST.
3456
3457 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3458
3459         canonicalize[-lgpl]: handle "guessing" values when cross-building
3460         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
3461         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
3462         matches "*yes" instead of just "yes".  Regression introduced in commit
3463         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
3464
3465 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
3466             Bruno Haible  <bruno@clisp.org>
3467
3468         canonicalize: make the right guess when cross-compiling to GNU
3469         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
3470         determine whether cross-compiling to glibc systems, so as to
3471         include GNU/Hurd.
3472
3473 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3474
3475         timespec-sub: avoid duplicate include
3476         * lib/timespec-sub.c: Do not include <config.h> twice.
3477         Reported by Juanma Barranquero.
3478
3479 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
3480
3481         bootstrap: use a more consistent error reporting scheme
3482         * build-aux/bootstrap (warn, die): New.
3483         Use them.
3484
3485 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
3486
3487         sys_time: allow too-wide tv_sec
3488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
3489         timeval even if tv_sec is wider than time_t.  This allows
3490         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
3491         as without this patch gnulib replaces struct timeval
3492         and OpenBSD futimes therefore has a type mismatch.
3493         * doc/posix-headers/sys_time.texi: Mention this.
3494
3495         pthread: check for both pthread_create and pthread_join
3496         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
3497         alter the check so that it tests for both pthread_create and
3498         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
3499         Suggested by Bruno Haible and Richard Yao in
3500         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
3501
3502         parse-datetime: doc tuneup
3503         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
3504         spacing issues.
3505
3506 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
3507
3508         do-release-commit-and-tag: fix the previous commit
3509         * build-aux/do-release-commit-and-tag: Actually the test was right,
3510         but the comment and the error message were misleading.
3511         Fix comment, and improve error message.
3512         Perform check first, so that NEWS is not modified uselessly.
3513
3514         do-release-commit-and-tag: fix typo
3515         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
3516         _not_ start with a stub.
3517
3518 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
3519
3520         pthread: check for pthread_create, not pthread_join
3521         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
3522         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
3523         pthread_join in libc.  I hope this removes the need for all the
3524         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
3525         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
3526
3527 2012-07-04  Jim Meyering  <meyering@redhat.com>
3528
3529         parse-datetime: fix failure to diagnose invalid input
3530         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
3531         rather than diagnosing the invalid input.  Now it reports this:
3532         date: invalid date '\260'
3533         * lib/parse-datetime.y (to_uchar): Define.
3534         (yylex): Don't sign-extend "other" bytes.
3535         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
3536         Thanks to Bruno Haible for the patch to this file.
3537         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
3538         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
3539
3540 2012-07-03  Jim Meyering  <meyering@redhat.com>
3541
3542         bootstrap: do not require now-removed build-aux/missing
3543         Now that build-aux/missing is, er, missing, bootstrap would
3544         silently fail.
3545         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
3546         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
3547         no longer part of gnulib.
3548         Diagnose the failure.
3549
3550 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
3551
3552         alloca: add support for HP NonStop TNS/E native
3553         * lib/alloca.in.h (alloca): Support the new host.
3554         From a suggestion by Joachim Schmitz in
3555         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
3556
3557 2012-07-02  Pádraig Brady  <P@draigBrady.com>
3558
3559         fsusage: remove code not needed on non GNU/Linux systems.
3560
3561         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3562         Don't include headers no longer needed in this case.
3563         * lib/fsusage.c [STAT_STATVFS &&
3564         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
3565         STAT_STATFS2_FRSIZE to exclude code not used in this case.
3566
3567 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3568
3569         fsusage: include files needed for glibc 2.6 fallback
3570         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
3571         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
3572         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
3573         Problem reported by Ludovic Courtès in
3574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
3575
3576         fsusage: avoid needless check on GNU/Linux
3577         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
3578         on GNU/Linux systems, since it can't possibly work.
3579
3580 2012-07-01  Bruno Haible  <bruno@clisp.org>
3581
3582         log: Fix an autoconf >= 2.64 warning.
3583         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
3584         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3585
3586 2012-06-28  Bruno Haible  <bruno@clisp.org>
3587
3588         log10f: Fix possible configuration problem.
3589         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
3590         $LOGF_LIBM.
3591         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3592
3593 2012-06-28  Bruno Haible  <bruno@clisp.org>
3594
3595         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
3596         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
3597         not gl_cv_func_unlink_works.
3598         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
3599
3600 2012-06-27  Eric Blake  <eblake@redhat.com>
3601
3602         config: drop scripts that automake says are not independent
3603         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
3604         * build-aux/elisp-comp: Delete.
3605         * build-aux/missing: Likewise.
3606         * build-aux/ylwrap: Likewise.
3607         * modules/elisp-comp: Likewise.
3608         * MODULES.html.sh: Drop mention of elisp-comp.
3609         * NEWS: Mention this.
3610
3611 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3612
3613         root-uid: new module
3614         This is for portability to Tandem's NonStop Kernel.
3615         * lib/root-uid.h, modules/root-uid: New files.
3616         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
3617         * lib/write-any-file.c, tests/test-sethostname2.c:
3618         Include "root-uid.h".
3619         * lib/euidaccess.c (euidaccess):
3620         * lib/pt_chown.c (main):
3621         * lib/unlinkdir.c (cannot_unlink_dir):
3622         * lib/write-any-file.c (can_write_any_file):
3623         * m4/mknod.m4 (gl_FUNC_MKNOD):
3624         * tests/test-sethostname2.c (geteuid, main):
3625         Don't assume ROOT_UID == 0.
3626         * modules/euidaccess (Depends-on):
3627         * modules/pt_chown (Depends-on):
3628         * modules/sethostname-tests (Depends-on):
3629         * modules/unlinkdir (Depends-on):
3630         * modules/write-any-file (Depends-on):
3631         Add root-uid.
3632
3633         regex: use locale-independent comparison for codeset name
3634         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
3635         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
3636         for codeset name.
3637         * lib/regex_internal.h: Do not include <strings.h>, since we
3638         no longer use strcasecmp.
3639         * modules/regex (Depends-on): Remove strcase.
3640
3641 2012-06-23  Bruno Haible  <bruno@clisp.org>
3642
3643         getopt-posix: No longer guarantee that option processing is resettable.
3644         * doc/posix-functions/getopt.texi: Drop description of problem with
3645         internal state. Fix info about mingw and msvc9.
3646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
3647         option processing by getopt(). Run three test programs instead of one.
3648         Simplify cross-compilation guess.
3649         * NEWS: Mention the change.
3650         Reported by Rich Felker <dalias@aerifal.cx>.
3651
3652 2012-06-26  Bruno Haible  <bruno@clisp.org>
3653
3654         argp, regex: Ensure strcasecmp gets declared.
3655         * lib/argp-help.c: Include <strings.h>.
3656         * lib/regex_internal.h: Likewise.
3657         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
3658
3659 2012-06-24  Bruno Haible  <bruno@clisp.org>
3660
3661         ptsname_r: Make it consistent with ptsname on AIX.
3662         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
3663         implementation as for OSF/1.
3664         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
3665         a pty master.
3666
3667         ptsname_r: Make it consistent with ptsname on OSF/1.
3668         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3669         OSF/1.
3670
3671 2012-06-24  Bruno Haible  <bruno@clisp.org>
3672
3673         ttyname_r: Fix result on OSF/1, Solaris.
3674         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
3675
3676 2012-06-24  Bruno Haible  <bruno@clisp.org>
3677
3678         ptsname_r: Add support for Solaris.
3679         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
3680         Solaris.
3681
3682         ptsname_r: Fix test failure on native Windows.
3683         * modules/ptsname_r (Depends-on): Add isatty.
3684
3685         ptsname_r: Fix test failures on IRIX, Solaris.
3686         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
3687         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
3688         accordingly.
3689         * lib/ptsname_r.c: Include <fcntl.h>.
3690         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
3691         set errno if fd is invalid.
3692         * tests/test-isatty.c (main): Update comments.
3693
3694 2012-06-24  Bruno Haible  <bruno@clisp.org>
3695
3696         ptsname test: Extend test.
3697         * tests/test-ptsname.c: Include <errno.h>.
3698         (main): Test behaviour with invalid file descriptor.
3699
3700 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3701
3702         time: fix obsolete comment
3703         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
3704         reference to HAVE_STRUCT_TIMESPEC in comment.
3705
3706 2012-06-23  Bruno Haible  <bruno@clisp.org>
3707
3708         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
3709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
3710         does not handle abbreviated long options with equivalent
3711         disambiguations, set gl_replace_getopt to yes.
3712         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
3713
3714 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
3715
3716         time_r: fix typo that always overrode localtime_r decl
3717         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
3718         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
3719         not in a standard include.
3720
3721 2012-06-22  Bruno Haible  <bruno@clisp.org>
3722
3723         Write "Mac OS X" instead of "MacOS X".
3724         * README: Write "Mac OS X" instead of "MacOS X".
3725         * build-aux/bootstrap: Likewise.
3726         * build-aux/install-reloc: Likewise.
3727         * lib/acl-internal.h: Likewise.
3728         * lib/acl_entries.c: Likewise.
3729         * lib/argp-ba.c: Likewise.
3730         * lib/argp-pv.c: Likewise.
3731         * lib/config.charset: Likewise.
3732         * lib/copy-acl.c: Likewise.
3733         * lib/csharpexec.c: Likewise.
3734         * lib/euidaccess.c: Likewise.
3735         * lib/fbufmode.c: Likewise.
3736         * lib/fflush.c: Likewise.
3737         * lib/file-has-acl.c: Likewise.
3738         * lib/filemode.h: Likewise.
3739         * lib/fpurge.c: Likewise.
3740         * lib/freadable.c: Likewise.
3741         * lib/freadahead.c: Likewise.
3742         * lib/freading.c: Likewise.
3743         * lib/freadptr.c: Likewise.
3744         * lib/freadseek.c: Likewise.
3745         * lib/fseeko.c: Likewise.
3746         * lib/fseterr.c: Likewise.
3747         * lib/fsusage.c: Likewise.
3748         * lib/fwritable.c: Likewise.
3749         * lib/fwriting.c: Likewise.
3750         * lib/get-rusage-as.c: Likewise.
3751         * lib/get-rusage-data.c: Likewise.
3752         * lib/getdomainname.c: Likewise.
3753         * lib/idpriv-drop.c: Likewise.
3754         * lib/idpriv-droptemp.c: Likewise.
3755         * lib/localcharset.c: Likewise.
3756         * lib/locale.in.h: Likewise.
3757         * lib/localename.c: Likewise.
3758         * lib/mbsrtowcs-state.c: Likewise.
3759         * lib/nproc.c: Likewise.
3760         * lib/passfd.c: Likewise.
3761         * lib/posix_openpt.c: Likewise.
3762         * lib/printf-parse.c: Likewise.
3763         * lib/progreloc.c: Likewise.
3764         * lib/safe-read.h: Likewise.
3765         * lib/safe-write.h: Likewise.
3766         * lib/sched.in.h: Likewise.
3767         * lib/set-mode-acl.c: Likewise.
3768         * lib/signal.in.h: Likewise.
3769         * lib/stdint.in.h: Likewise.
3770         * lib/stdio-impl.h: Likewise.
3771         * lib/stdlib.in.h: Likewise.
3772         * lib/strtod.c: Likewise.
3773         * lib/sys_select.in.h: Likewise.
3774         * lib/tcgetsid.c: Likewise.
3775         * lib/unistd.in.h: Likewise.
3776         * lib/unlockpt.c: Likewise.
3777         * lib/vasnprintf.c: Likewise.
3778         * lib/vma-iter.c: Likewise.
3779         * lib/wcsrtombs-state.c: Likewise.
3780         * m4/acl.m4: Likewise.
3781         * m4/acosl.m4: Likewise.
3782         * m4/asinl.m4: Likewise.
3783         * m4/atanl.m4: Likewise.
3784         * m4/c-stack.m4: Likewise.
3785         * m4/cosl.m4: Likewise.
3786         * m4/expl.m4: Likewise.
3787         * m4/extensions.m4: Likewise.
3788         * m4/fdatasync.m4: Likewise.
3789         * m4/fmal.m4: Likewise.
3790         * m4/frexp.m4: Likewise.
3791         * m4/frexpf.m4: Likewise.
3792         * m4/frexpl.m4: Likewise.
3793         * m4/fsusage.m4: Likewise.
3794         * m4/getdomainname.m4: Likewise.
3795         * m4/getloadavg.m4: Likewise.
3796         * m4/getopt.m4: Likewise.
3797         * m4/gettext.m4: Likewise.
3798         * m4/gnulib-common.m4: Likewise.
3799         * m4/intdiv0.m4: Likewise.
3800         * m4/intlmacosx.m4: Likewise.
3801         * m4/largefile.m4: Likewise.
3802         * m4/ldexpl.m4: Likewise.
3803         * m4/link-follow.m4: Likewise.
3804         * m4/locale-ar.m4: Likewise.
3805         * m4/locale-fr.m4: Likewise.
3806         * m4/locale-ja.m4: Likewise.
3807         * m4/locale-tr.m4: Likewise.
3808         * m4/locale-zh.m4: Likewise.
3809         * m4/locale_h.m4: Likewise.
3810         * m4/lock.m4: Likewise.
3811         * m4/logl.m4: Likewise.
3812         * m4/mathfunc.m4: Likewise.
3813         * m4/minus-zero.m4: Likewise.
3814         * m4/mktime.m4: Likewise.
3815         * m4/mmap-anon.m4: Likewise.
3816         * m4/multiarch.m4: Likewise.
3817         * m4/nanosleep.m4: Likewise.
3818         * m4/nocrash.m4: Likewise.
3819         * m4/poll.m4: Likewise.
3820         * m4/printf-frexpl.m4: Likewise.
3821         * m4/printf.m4: Likewise.
3822         * m4/signbit.m4: Likewise.
3823         * m4/sinl.m4: Likewise.
3824         * m4/sqrtl.m4: Likewise.
3825         * m4/strerror_r.m4: Likewise.
3826         * m4/tanl.m4: Likewise.
3827         * m4/threadlib.m4: Likewise.
3828         * m4/ttyname_r.m4: Likewise.
3829         * m4/unlink.m4: Likewise.
3830         * m4/visibility.m4: Likewise.
3831         * m4/wcwidth.m4: Likewise.
3832         * tests/minus-zero.h: Likewise.
3833         * tests/test-alloca-opt.c: Likewise.
3834         * tests/test-copy-acl.sh: Likewise.
3835         * tests/test-copy-file.sh: Likewise.
3836         * tests/test-fdatasync.c: Likewise.
3837         * tests/test-file-has-acl.sh: Likewise.
3838         * tests/test-flock.c: Likewise.
3839         * tests/test-fsync.c: Likewise.
3840         * tests/test-localename.c: Likewise.
3841         * tests/test-malloca.c: Likewise.
3842         * tests/test-nonblocking-pipe.h: Likewise.
3843         * tests/test-nonblocking-socket.h: Likewise.
3844         * tests/test-openpty.c: Likewise.
3845         * tests/test-posix_openpt.c: Likewise.
3846         * tests/test-ptsname.c: Likewise.
3847         * tests/test-ptsname_r.c: Likewise.
3848         * tests/test-sameacls.c: Likewise.
3849         * tests/test-select.h: Likewise.
3850         * tests/test-set-mode-acl.sh: Likewise.
3851         * tests/test-snprintf-posix.h: Likewise.
3852         * tests/test-sprintf-posix.h: Likewise.
3853         * tests/test-strtod.c: Likewise.
3854         * tests/test-time.c: Likewise.
3855         * tests/test-vasnprintf-posix.c: Likewise.
3856         * tests/test-vasprintf-posix.c: Likewise.
3857         * doc/acl-resources.txt: Likewise.
3858         * doc/**/*.texi: Likewise.
3859         Reported by Max Horn <max@quendi.de>.
3860
3861 2012-06-22  Bruno Haible  <bruno@clisp.org>
3862
3863         grantpt: Relax requirement regarding invalid file descriptors.
3864         * lib/grantpt.c: Don't include <fcntl.h>.
3865         (grantpt): Don't verify the validity of the file descriptor.
3866         * modules/grantpt (Depends-on): Remove fcntl-h.
3867         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3868         file descriptors.
3869         * doc/posix-functions/grantpt.texi: Document more platforms on which
3870         grantpt succeeds for invalid file descriptors.
3871         Reported by Rich Felker <dalias@aerifal.cx>.
3872
3873 2012-06-22  Bruno Haible  <bruno@clisp.org>
3874
3875         fbufmode test: Don't test unportable behaviour.
3876         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3877         (main): Invoke it three times.
3878         Reported by Szabolcs Nagy <nsz@port70.net>
3879         and Rich Felker <dalias@aerifal.cx>.
3880
3881 2012-06-21  Bruno Haible  <bruno@clisp.org>
3882
3883         gnulib-tool: Refactor inctests variable.
3884         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3885         (func_modules_transitive_closure,
3886         func_modules_transitive_closure_separately,
3887         func_import, func_create_testdir): Update.
3888
3889         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3890         * gnulib-tool: Accept option --without-tests.
3891         (func_usage): Document --without-tests option. Rearrange.
3892         (inctests): Normalize according to the mode.
3893         * NEWS: Mention the change.
3894         Suggested by Simon Josefsson.
3895
3896 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3897
3898         parse-duration test: Avoid spurious output.
3899         * tests/test-parse-duration.sh: Reindent with leading tabs.
3900
3901 2012-06-21  Jim Meyering  <meyering@redhat.com>
3902
3903         maint: disable the strncpy prohibition
3904         * cfg.mk: Do not prohibit strncpy here.
3905
3906 2012-06-21  Bruno Haible  <bruno@clisp.org>
3907
3908         nonblocking: Avoid compilation error on mingw64.
3909         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3910         fscanf.
3911         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3912         * modules/vfscanf (configure.ac): Likewise.
3913         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3914         definition only if stdio.h has prepared it.
3915         Reported by Daniel P. Berrange <berrange@redhat.com>.
3916
3917 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3918
3919         gnulib-tool: Use readlink if it is available.
3920         * gnulib-tool (func_readlink): Choose function more appropriately.
3921
3922 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3923
3924         posixtm-tests: port to buggy compiler
3925         Problem reported by Simon Josefsson in
3926         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3927         * modules/posixtm-tests (Depends-on): Add stdint.
3928         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3929         Now of type int_least64_t, not int64_t, both because that's
3930         what INT64_C returns and because int_least64_t works even
3931         on 72-bit hosts.
3932         (T): Use INT64_C on constants outside the traditional int range,
3933         to work around compiler bug noted by Simon.
3934
3935         mktime: fix integer overflow in 'configure'-time test
3936         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3937         after integer overflow.  Problem reported by Rich Felker in
3938         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3939         Also, don't look for further instances of a bug if we've already
3940         found one instance; this helps 'configure' run faster.
3941
3942 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3943
3944         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3945         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3946         GetVersionEx correctly.
3947         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3948
3949 2012-06-20  Bruno Haible  <bruno@clisp.org>
3950
3951         fdopen: Allow implementations that don't reject invalid fd arguments.
3952         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3953         succeeds.
3954         Reported by Rich Felker <dalias@aerifal.cx>.
3955
3956 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3957
3958         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3959         bring in LIBINTL.
3960
3961 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3962
3963         init.sh: do not rely on autoupated PWD
3964         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3965         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3966         Although Nelson's bug was not necessarily fixed by this patch,
3967         it seems wise to make the change for safety.
3968         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3969         automagically after 'cd'; this is not reliable on older shells.
3970         (setup_): Fail if we cannot cd to temporary directory.
3971
3972 2012-06-19  Bruno Haible  <bruno@clisp.org>
3973
3974         stat, fstat: Avoid warnings on mingw64.
3975         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3976         redefining.
3977         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3978         Reported by Daniel P. Berrange <berrange@redhat.com>.
3979
3980 2012-06-19  Bruno Haible  <bruno@clisp.org>
3981
3982         stdioext: Add support for musl libc.
3983
3984         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3985         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3986
3987         * m4/fseterr.m4: New file.
3988         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3989         function exists.
3990         * modules/fseterr (Files): Add m4/fseterr.m4.
3991         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3992         __fseterr does not exist.
3993         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3994
3995         * lib/freadable.h: Update comment.
3996
3997         * lib/fwritable.h: Update comment.
3998
3999         * lib/freading.h: Update comment.
4000
4001         * lib/fwriting.h: Update comment.
4002
4003         * m4/freadahead.m4: New file.
4004         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4005         that function exists.
4006         * modules/freadahead (Files): Add m4/freadahead.m4.
4007         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4008         __freadahead does not exist.
4009         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4010
4011         * m4/freadptr.m4: New file.
4012         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4013         function exists.
4014         * modules/freadptr (Files): Add m4/freadptr.m4.
4015         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4016         __freadptr does not exist.
4017         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4018
4019         * m4/freadseek.m4: New file.
4020         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4021         exists.
4022         * modules/freadseek (Files): Add m4/freadseek.m4.
4023         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4024
4025         * lib/fpurge.c (fpurge): Update comment.
4026
4027         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4028
4029 2012-06-19  Bruno Haible  <bruno@clisp.org>
4030
4031         *printf-posix: Put more info into config.log.
4032         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4033         exit code into config.log.
4034
4035 2012-06-19  Bruno Haible  <bruno@clisp.org>
4036
4037         getopt-gnu: Fix exit code overflow in autoconf test.
4038         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4039         to keep them below < 128.
4040
4041 2012-06-17  Jim Meyering  <meyering@redhat.com>
4042
4043         maint.mk: fix typo in code to derive GPG key at release time
4044         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4045
4046 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4047
4048         regex: avoid warning when pointers are not long
4049         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4050         and uintptr_t, not long, for portability to hosts where pointers and
4051         long have different sizes.  Issue noted by Daniel P. Berrange in
4052         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4053         and fix suggested by Bruno Haible in
4054         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4055
4056 2012-06-17  Bruno Haible  <bruno@clisp.org>
4057
4058         dummy: Relicense into the public domain.
4059         * modules/dummy (License): Set to "public domain".
4060         Suggested by Reuben Thomas.
4061
4062 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4063
4064         announce-gen: VPATH issues
4065         * build-aux/announce-gen (--srcdir): New option, used to trim the
4066         $srcdir part of the path from $builddir to NEWS.
4067         * top/maint.mk (announcement): Adjust.
4068
4069 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
4070
4071         gnu-web-doc-update: VPATH builds
4072         * build-aux/gnu-web-doc-update (--builddir): New option.
4073         Revamp the handling of options.
4074         Prefer $(...) to `...`.
4075         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
4076         the template, and it is GNU mktemp specific.
4077         Prefer set -e to long series of &&.
4078         Restore the initial git branch, not "master".
4079         Properly initialize submodules (don't rely only on bootstrap).
4080         Do not reconfigure blindly, use config.status.
4081         * top/README-release: Update instructions for gnu-web-doc-update.
4082
4083 2012-06-11  Jim Meyering  <meyering@redhat.com>
4084
4085         maint.mk: revert most of the previous change re "all these"
4086         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
4087         For rationale, see the discussion at
4088         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
4089
4090 2012-06-10  Karl Berry  <karl@gnu.org>
4091
4092         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
4093
4094         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4095
4096 2012-06-10  Bruce Korb  <bkorb@gnu.org>
4097
4098         parse-duration: Relicense under LGPLv2+.
4099         * modules/parse-duration (License): Change to LGPLv2+.
4100
4101 2012-06-10  Jim Meyering  <meyering@redhat.com>
4102
4103         maint.mk: prohibit common grammar error: "all these"
4104         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
4105         the list of prohibited word sequences.  It should be "all of these".
4106         * lib/tempname.c (__gen_tempname): Fix one of them.
4107
4108 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4109
4110         do-release-commit-and-tag: support VPATH builds
4111         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
4112         (noteworthy): Defined earlier to factor its value.
4113         (noteworthy_stub): New.
4114         Use it to factor.
4115         (help_version): Split into...
4116         (help, version): these.
4117         Adjust the option processing part.
4118         Support "--option=value" in addition to "--option value".
4119         (builddir): New.
4120         (--builddir): New option.
4121         * top/README-release: Document this.
4122         Reword slightly so that the reader cannot understand that he
4123         has to do these steps before calling do-release-commit-and-tag.
4124
4125 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4126
4127         readme-release: also require announce-gen and maintainer-makefile
4128         * modules/readme-release (Depends-on): here.
4129         * modules/announce-gen, modules/do-release-commit-and-tag,
4130         modules/gnu-web-doc-update, modules/maintainer-makefile
4131         (Description): Point to readme-release.
4132
4133 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
4134
4135         maint.mk: fix VPATH issues.
4136         * top/maint.mk (news-check): GNU Make understand $< very well.
4137         (release-prep): NEWS is in $(srcdir).
4138
4139 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
4140
4141         readme-release: require the promoted modules.
4142         * modules/readme-release (Depends-on): Add
4143         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
4144         in this text.
4145
4146 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4147             Bruno Haible  <bruno@clisp.org>
4148
4149         error, strerror-override: Support mingw64 from Fedora 17.
4150         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
4151         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
4152         EINPROGRESS.
4153         * lib/strerror-override.h (strerror_override): Test it.
4154         * lib/strerror-override.c (strerror_override): Likewise.
4155         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
4156
4157 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4158             Bruno Haible  <bruno@clisp.org>
4159
4160         error, strerror-override: Support mingw64 from Fedora 17.
4161         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
4162         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
4163         * lib/strerror-override.h (strerror_override): Test it.
4164         * lib/strerror-override.c (strerror_override): Likewise.
4165
4166 2012-06-03  Bruno Haible  <bruno@clisp.org>
4167
4168         error, strerror-override: Support new errno values from POSIX:2008.
4169         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
4170         ENOTRECOVERABLE.
4171         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
4172         platforms.
4173         * lib/strerror-override.c (strerror_override): Conditionalize the
4174         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
4175         * lib/strerror-override.h (strerror_override): Declare also if
4176         GNULIB_defined_EOWNERDEAD is defined.
4177         * tests/test-errno.c (e130, e131): New variables.
4178         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
4179         ENOTRECOVERABLE.
4180         Reported by Paolo Bonzini.
4181
4182 2012-05-31  Jim Meyering  <meyering@redhat.com>
4183
4184         savewd: add missing dependency on sys_wait module
4185         * modules/savewd (Depends-on): Add sys_wait, needed at least
4186         for MSVC.  Report and suggested change by Michael Goffioul.
4187
4188 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
4189
4190         system-quote-tests: port to CentOS 5
4191         Problem reported by Tom G. Christensen in
4192         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
4193         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
4194
4195 2012-05-29  Jim Meyering  <meyering@redhat.com>
4196
4197         maint: fix typos in comments and ChangeLog
4198         Culprits identified and fixed mostly automatically using these commands:
4199         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
4200         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
4201         using http://github.com/lyda/misspell-check
4202         * ChangeLog: Fix typos.
4203         * doc/solaris-versions: Likewise.
4204         * lib/regexec.c (re_search_stub): Likewise.
4205         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
4206
4207 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
4208
4209         manywarnings: remove duplicate -Wmultichar entry
4210         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
4211         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
4212         so keep the entry marked as documented.
4213
4214 2012-05-27  Karl Berry  <karl@gnu.org>
4215
4216         * config/srclist.txt (mktime.c): remove last libc sync,
4217         perhaps just temporarily.
4218
4219 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         regex: don't assume uint64_t or uint32_t
4222         * lib/regcomp.c (init_word_char): Don't assume that the types
4223         uint64_t and uint32_t exist.  The C standard doesn't guarantee
4224         them, and on some 32-bit compilers there is no uint64_t.
4225         Problem reported by Gianluigi Tiesi in
4226         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
4227
4228 2012-05-25  Jim Meyering  <meyering@redhat.com>
4229
4230         maint.mk: add strncpy-prohibiting syntax-check rule
4231         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
4232
4233 2012-05-24  Jim Meyering  <meyering@redhat.com>
4234
4235         maint.mk: compute $(gpg_key_ID) more portably
4236         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
4237         That use of sed is not portable to some fringe systems.
4238         Reported by Paul Eggert in
4239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
4240
4241 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4242
4243         mktime: sync from glibc
4244         * config/srclist.txt: Uncomment mktime.c.
4245         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
4246         First, indent with tabs, since glibc uses tabs and doesn't want to
4247         change and we'd rather be identical to glibc.  Also, two small
4248         coding changes:
4249         (isdst_differ): Use &&, not &, as && is the usual style.
4250         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
4251         for clarity.
4252
4253 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4254
4255         announce-gen: du -h is more portable than du --human
4256         * build-aux/announce-gen (sizes): Invoke du with -h instead
4257         of --human.  Accept leading white space in its output.
4258
4259 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4260
4261         announce-gen: Improve diagnostics.
4262         * build-aux/announce-gen: When parsing command line options,
4263         prefer "announce-gen: option --release-type requires an argument"
4264         to "Option release-type requires an argument".
4265
4266 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
4267
4268         maint.mk: gpg_key_ID: use sed more portably
4269         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
4270         the closing brace.
4271         (refresh-po): Fuse two sed invocations into one.
4272
4273 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
4274
4275         gitlog-to-changelog: support the log message format used in Bison.
4276         * build-aux/gitlog-to-changelog: Support --strip-tab and
4277         --strip-cherry-picked.
4278
4279 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
4280
4281         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
4282         the rest of the current time slice to another thread in the current
4283         process. So if the thread that feeds the file decscriptor we're
4284         polling is not in the current process, we get busy-waiting.
4285         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
4286         Patch from Theodore Leblond.
4287         * lib/select.c: Split polling out of the loop that sets the output
4288         fd_sets.  Check for zero result and loop if the wait timeout is
4289         infinite.
4290
4291 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4292
4293         select: Fix build error on IRIX 6.5.
4294         * lib/select.c: Include stddef.h for NULL.
4295
4296 2012-05-21  Simon Josefsson  <simon@josefsson.org>
4297
4298         gc: fix libgcrypt detection on older machines.
4299         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
4300         copyright years because the file has been distributed every year
4301         since it was created.
4302
4303 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         crypto: fix bug in large buffer handling
4306         Problem reported by Serge Belyshev for glibc in
4307         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
4308         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
4309         * lib/md4.c (md4_process_block):
4310         * lib/md5.c (md5_process_block):
4311         * lib/sha1.c (sha1_process_block):
4312         * lib/sha256.c (sha256_process_block):
4313         Don't assume the buffer length is less than 2**32.
4314         * lib/sha512.c (sha512_process_block): Likewise.
4315         Here, the bug is present only in the rare case where the host does
4316         not support uint64_t or where size_t is wider than 64 bits.
4317         Use u64size to work around the problems.
4318         * lib/u64.h (u64size): New macro.
4319
4320 2012-05-15  Pádraig Brady  <P@draigBrady.com>
4321
4322         fsusage: fix block size returned on older Linux 2.6
4323
4324         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
4325         which is available since Linux 2.6.
4326         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
4327         when the member is available so it can be used as a fallback.
4328         * doc/posix-functions/statvfs.texi: Mention the hang issue
4329         on Linux < 2.6.36.
4330
4331 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         bootstrap: suppress stderr chatter
4334         * build-aux/bootstrap (insert_sorted_if_absent, main program):
4335         Omit unnecessary chatter to stderr.  The main program chatter
4336         was there only inadvertantly.
4337
4338         bootstrap: .gitignore files created by autopoint, libtool
4339         I ran into this problem when bootstrapping the latest diffutils.
4340         After './bootstrap', 'git status' reported lots of untracked files
4341         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
4342         autopoint and do not need to be version-controlled.
4343         * build-aux/bootstrap: Put into .gitignore the files that
4344         autopoint and libtool create, by keeping track of files that exist
4345         after but not before these programs are run.
4346         (version_controlled_file): Move up.  2nd arg is now full file
4347         name, not base name; this is more convenient.  Put CVS at the end,
4348         as it's now somewhat deprecated.
4349
4350 2012-05-14  Jim Meyering  <meyering@redhat.com>
4351
4352         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
4353         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
4354         definition.  Reported by Bruno Haible.
4355
4356 2012-05-13  Bruno Haible  <bruno@clisp.org>
4357             Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         binary-io: Define set_binary_mode function.
4360         * lib/binary-io.h (set_binary_mode): New function.
4361         (SET_BINARY): Define in terms of set_binary_mode.
4362         * modules/binary-io (configure.ac): Require AC_C_INLINE.
4363         * tests/test-binary-io.c (main): Accept an argument, and test either
4364         set_binary_mode or SET_BINARY depending on the argument.
4365         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
4366         argument. Clean up also t-bin-out0.tmp.
4367
4368 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
4369
4370         bootstrap: take advantage of POSIX shell features
4371
4372         The 'bootstrap' script offered by Gnulib script already uses POSIX
4373         shell features (like $((...)) arithmetic expansions) that are not
4374         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
4375         means that bootstrap must already be run using a proper POSIX shell,
4376         which will thus provide more features, like ${var#pattern} parameter
4377         expansion or inversion of a command exit status with '!'.  We can
4378         thus use these features to improve the clarity and the performances
4379         of the bootstrap script.
4380
4381         Suggested by Eric Blake.
4382
4383         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
4384         of sed/expr plus command substitutions, to save some forks.  While
4385         we are at it, prefer the POSIX $(...) form of command substitution,
4386         rather than the legacy form `...` (since the former is visually
4387         clearer and interacts better with quoting), and prefer the idiom:
4388           "if ! CMD; then ACTION ..."
4389         over the idiom:
4390           "if CMD; then :; else ACTION ..."
4391         which was required by legacy Bourne shells not supporting '!'.
4392
4393 2012-05-12  Bruno Haible  <bruno@clisp.org>
4394
4395         system-quote: Add more comments.
4396         * lib/system-quote.h: Add more comments about wilcards and limitations.
4397         Suggested by Eli Zaretskii <eliz@gnu.org>.
4398
4399         sh-quote, system-quote: Add comments about wildcards.
4400         * lib/sh-quote.h: Clarify what happens with wildcard characters.
4401         * lib/system-quote.h: Likewise.
4402         Reported by Eli Zaretskii <eliz@gnu.org>.
4403
4404 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4405
4406         fsusage: check for GNU/Linux statvfs problem dynamically
4407         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
4408         Define STAT_STATFS2_BSIZE too, since in this case the code now
4409         checks dynamically whether statvfs is reliable, falling back on
4410         Linux-style statfs otherwise.
4411         (statvfs_works): New function, for dynamically testing statvfs.
4412         (get_fs_usage) [STAT_STATVFS]: Use it.
4413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
4414         statvfs on GNU/Linux hosts, since it's now done dynamically.
4415
4416 2012-05-10  Bruno Haible  <bruno@clisp.org>
4417
4418         system-quote, execute, spawn-pipe: Escape '?' on Windows.
4419         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
4420         '?' character.
4421         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
4422         * tests/test-system-quote-main.c (check_all): Check also strings like
4423         "??????????".
4424         Reported by Eli Zaretskii <eliz@gnu.org>.
4425
4426 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4427
4428         _Noreturn: port config.h to gcc -Wundef
4429         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
4430         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
4431         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
4432
4433 2012-05-10  Bruno Haible  <bruno@clisp.org>
4434
4435         system-quote: Refactor.
4436         * lib/system-quote.h (system_quote_copy): Fix comment.
4437         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
4438         New functions, extracted from system_quote_copy.
4439         (system_quote_length, system_quote_copy): Use these functions.
4440         Reported by Paul Eggert.
4441
4442 2012-05-08  Bruno Haible  <bruno@clisp.org>
4443
4444         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
4445         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
4446
4447 2012-05-08  Bruno Haible  <bruno@clisp.org>
4448
4449         Tests for module 'system-quote'.
4450         * modules/system-quote-tests: New file.
4451         * tests/test-system-quote.sh: New file.
4452         * tests/test-system-quote-main.c: New file.
4453         * tests/test-system-quote-child.c: New file.
4454
4455         New module 'system-quote'.
4456         * lib/system-quote.h: New file.
4457         * lib/system-quote.c: New file.
4458         * modules/system-quote: New file.
4459
4460 2012-05-08  Bruno Haible  <bruno@clisp.org>
4461
4462         sh-quote: Make C++ safe and allow multiple inclusion.
4463         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
4464         declarations in extern "C".
4465
4466 2012-05-08  Bruno Haible  <bruno@clisp.org>
4467
4468         sh-quote tests: Make tests stricter.
4469         * tests/test-sh-quote.c (check_one): Check the return value of
4470         shell_quote_copy.
4471         (main): Check a string with a CR character. Check a string that
4472         contains UCHAR_MAX.
4473
4474 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
4475
4476         warnings.m4: provide a means to specify the program to compile.
4477         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
4478         (gl_WARN_ADD): here.
4479         Use gl_AS_VAR_APPEND.
4480         Support an argument to specify the program to compile.
4481         (gl_WARN_ADD): Accept an argument to specify the program to compile.
4482         AC_SUBST the WARN_CFLAGS when they are used.
4483         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
4484         leave this to gl_WARN_ADD.
4485
4486 2012-05-08  Eric Blake  <eblake@redhat.com>
4487
4488         doc: recommendations on gettext version
4489         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
4490         choice between versions.
4491         * DEPENDENCIES (gettext): Cover both approaches.
4492
4493 2012-05-08  Jim Meyering  <meyering@redhat.com>
4494
4495         init.sh: explain why EXEEXT support uses aliases rather than functions
4496         * tests/init.sh: Add a comment.
4497
4498         init.sh: don't let bash aliases interfere with tests
4499         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
4500         is bash.  This avoids problems for those who alias standard commands to
4501         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
4502         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
4503
4504 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
4505
4506         stdint: be more consistent with glibc, SunOS libc
4507         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
4508         (gl_int_fast16_t, gl_uint_fast16_t)
4509         (gl_int_fast32_t, gl_uint_fast32_t)
4510         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
4511         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
4512         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
4513         Be consistent with glibc by default, and with SunOS 5.10 and later
4514         if __sun is defined.  This lessens the likelihood of clashes if
4515         code compiled for older hosts is combined with code compiled for
4516         newer ones.  Problem reported by Niels Möller in
4517         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
4518
4519 2012-05-07  Eric Blake  <eblake@redhat.com>
4520
4521         isatty: relax license to LGPLv2+
4522         * modules/isatty (License): Relax license.
4523
4524 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         stat-size: comment fix
4527         * lib/stat-size.h: Remove obsolete comment about indenting.
4528
4529 2012-05-06  Bruno Haible  <bruno@clisp.org>
4530
4531         Tests for module 'sh-quote'.
4532         * modules/sh-quote-tests: New file.
4533         * tests/test-sh-quote.c: New file.
4534
4535 2012-05-06  Bruno Haible  <bruno@clisp.org>
4536
4537         sh-quote: Improve shell_quote_argv's signature.
4538         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
4539         * lib/sh-quote.c (shell_quote_argv): Likewise.
4540
4541 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4542
4543         stdint: document issues with int_fast8_t etc.
4544         * doc/posix-headers/stdint.texi (stdint.h): Say that other
4545         stdint.h substitutes may define these types differently.  See
4546         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
4547
4548 2012-05-05  Bruno Haible  <bruno@clisp.org>
4549
4550         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
4551         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
4552         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
4553         or 'guessing no (mishandles large arguments)'.
4554
4555 2012-05-05  Bruno Haible  <bruno@clisp.org>
4556
4557         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
4558         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
4559         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4560         set gl_cv_func_link_follows_symlink to "guessing no".
4561
4562 2012-05-05  Bruno Haible  <bruno@clisp.org>
4563
4564         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
4565         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
4566         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
4567         "guessing no".
4568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
4569
4570 2012-05-05  Bruno Haible  <bruno@clisp.org>
4571
4572         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
4573         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
4574         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
4575         set gl_cv_struct_dirent_d_ino to "guessing yes".
4576
4577 2012-05-05  Bruno Haible  <bruno@clisp.org>
4578
4579         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
4580         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
4581         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
4582         "guessing yes".
4583
4584 2012-05-05  Bruno Haible  <bruno@clisp.org>
4585
4586         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
4587         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
4588         compiling to a glibc system, set gl_cv_func_signbit and
4589         gl_cv_func_signbit_gcc to "guessing yes".
4590
4591 2012-05-05  Bruno Haible  <bruno@clisp.org>
4592
4593         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
4594         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
4595         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
4596         to "guessing yes".
4597         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
4598         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
4599
4600 2012-05-05  Bruno Haible  <bruno@clisp.org>
4601
4602         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
4603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
4604         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
4605         gl_cv_func_realpath_works to "guessing yes".
4606
4607 2012-05-05  Bruno Haible  <bruno@clisp.org>
4608
4609         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
4610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
4611         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
4612
4613 2012-05-04  Bruno Haible  <bruno@clisp.org>
4614
4615         Tweak last commit.
4616         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
4617         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4618
4619 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
4620
4621         unistd_h: make it easier to avoid sys_types_h
4622         This is useful for Emacs, which has its own method of porting to
4623         Windows, and which therefore does not need the sys_types_h module.
4624         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
4625         code moved here from gl_SYS_TYPES_H.
4626         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
4627         using the code directly.
4628         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
4629         gl_SYS_TYPES_H.
4630         * modules/sys_types (Files):
4631         * modules/unistd (Files): Add m4/off_t.m4.
4632
4633 2012-05-03  Bruno Haible  <bruno@clisp.org>
4634
4635         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
4636         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
4637         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
4638         "guessing yes" or "guessing no".
4639         (gl_FUNC_LSTAT): Update.
4640         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
4641         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4642         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
4643
4644 2012-05-03  Bruno Haible  <bruno@clisp.org>
4645
4646         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
4647         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
4648         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
4649         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
4650         cross-compiling, choose the first alternative on glibc systems.
4651         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
4652
4653 2012-05-03  Bruno Haible  <bruno@clisp.org>
4654
4655         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
4656         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
4657         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
4658
4659 2012-05-03  Bruno Haible  <bruno@clisp.org>
4660
4661         chown: Avoid "guessing no" when cross-compiling to glibc systems.
4662         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
4663
4664 2012-05-03  Bruno Haible  <bruno@clisp.org>
4665
4666         Avoid "guessing no" guesses when cross-compiling to glibc systems.
4667         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
4668         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
4669         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
4670         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
4671         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
4672         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
4673         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
4674         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
4675         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
4676         compiling to glibc systems, set gl_cv_func_chown_slash_works,
4677         gl_cv_func_chown_ctime_works to "guessing yes".
4678         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
4679         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
4680         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
4681         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
4682         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
4683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
4684         compiling to glibc systems, set gl_cv_func_open_directory_works to
4685         "guessing yes".
4686         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
4687         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
4688         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
4689         "guessing yes".
4690         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
4691         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
4692         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
4693         compiling to glibc systems, set gl_cv_func_floorf_ieee to
4694         "guessing yes".
4695         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
4696         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
4697         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
4698         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
4699         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
4700         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
4701         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
4702         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
4703         "guessing yes".
4704         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
4705         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
4706         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
4707         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
4708         "guessing yes".
4709         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
4710         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
4711         "guessing yes".
4712         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
4713         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
4714         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
4715         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
4716         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
4717         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
4718         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
4719         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
4720         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
4721         compiling to glibc systems, set gl_cv_func_log10f_ieee to
4722         "guessing yes".
4723         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
4724         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
4725         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
4726         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
4727         "guessing yes".
4728         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
4729         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
4730         "guessing yes".
4731         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
4732         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
4733         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
4734         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
4735         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
4736         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
4737         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
4738         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
4739         compiling to glibc systems, set gl_cv_func_mkfifo_works to
4740         "guessing yes".
4741         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
4742         compiling to glibc systems, set gl_cv_func_mknod_works to
4743         "guessing yes".
4744         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
4745         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
4746         "guessing yes".
4747         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
4748         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
4749         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
4750         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
4751         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
4752         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
4753         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
4754         compiling to glibc systems, set gl_cv_func_svid_putenv to
4755         "guessing yes".
4756         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
4757         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
4758         "guessing yes".
4759         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
4760         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
4761         "guessing yes".
4762         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
4763         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
4764         to "guessing yes".
4765         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
4766         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
4767         to "guessing yes".
4768         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
4769         compiling to glibc systems, set gl_cv_func_rmdir_works to
4770         "guessing yes".
4771         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
4772         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
4773         gl_cv_func_unlink_parent_fails to "guessing yes".
4774         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
4775         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
4776         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
4777         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
4778         gl_cv_func_rename_dest_works to "guessing yes".
4779         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
4780         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
4781         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
4782         compiling to glibc systems, set gl_cv_func_roundf_ieee to
4783         "guessing yes".
4784         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
4785         compiling to glibc systems, set gl_cv_func_roundl_ieee to
4786         "guessing yes".
4787         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
4788         compiling to glibc systems, set gl_cv_func_setenv_works to
4789         "guessing yes".
4790         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
4791         compiling to glibc systems, set gl_cv_func_unsetenv_works to
4792         "guessing yes".
4793         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
4794         compiling to glibc systems, set gl_cv_func_sleep_works to
4795         "guessing yes".
4796         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
4797         compiling to glibc systems, set gl_cv_func_stat_file_slash to
4798         "guessing yes".
4799         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
4800         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
4801         "guessing yes".
4802         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
4803         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
4804         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
4805         compiling to glibc systems, set gl_cv_func_truncf_ieee to
4806         "guessing yes".
4807         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
4808         compiling to glibc systems, set gl_cv_func_truncl_ieee to
4809         "guessing yes".
4810         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
4811         compiling to glibc systems, set gl_cv_func_usleep_works to
4812         "guessing yes".
4813         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
4814         compiling to glibc systems, set gl_cv_func_futimesat_works to
4815         "guessing yes".
4816
4817 2012-05-03  Bruno Haible  <bruno@clisp.org>
4818
4819         Say "guessing yes" or "guessing no" when cross-compiling.
4820         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
4821         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
4822         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
4823         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
4824         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
4825         am_cv_func_working_getline to "guessing yes" or "guessing no".
4826         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
4827         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
4828         (gl_FUNC_MEMMEM): When cross-compiling, set
4829         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
4830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
4831         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4833         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4834         "guessing no".
4835         (gl_FUNC_STRCASESTR): When cross-compiling, set
4836         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4837         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4838         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4839         (gl_FUNC_STRSTR): When cross-compiling, set
4840         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4841         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4842         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4843         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4844         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4845
4846 2012-05-01  Bruno Haible  <bruno@clisp.org>
4847
4848         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4849         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4850         * build-aux/reloc-ldflags: Likewise.
4851         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4852
4853 2012-05-01  Bruno Haible  <bruno@clisp.org>
4854
4855         gnulib-tool: Remove transitional code.
4856         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4857         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4858
4859 2012-05-01  Bruno Haible  <bruno@clisp.org>
4860
4861         getcwd: Fix misindentation.
4862         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4863
4864 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4865
4866         exclude: process exclude and include directives in order
4867         This restores the pre-2009 behavior, and is part of a fix of a
4868         grep bug reported by Quentin Arce in
4869         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4870         * lib/exclude.c (struct exclude): Remove 'tail' member.
4871         (new_exclude_segment): Prepend the new segment instead of appending.
4872         Return void, since that's now more convenient.
4873         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4874         (file_name_matches): Renamed from excluded_file_name_p.
4875         (file_pattern_matches, file_name_matches):
4876         Return true if the pattern matches, not if it excludes.
4877         All callers changed.
4878         (excluded_file_name): Process the list in reverse order;
4879         since the list is now reversed this restores the pre-2009 behavior.
4880         (add_exclude): Adjust to new reversed-order list.  Use local var
4881         rather than macro, for clarity.
4882         * tests/test-exclude7.sh: Adjust to corrected behavior.
4883
4884         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4885         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4886         it's not possible here.  Handle the case of \ at end of pattern
4887         without dumping core.
4888         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4889
4890         _Noreturn: future-proof non-GNU and non-MSVC compilers
4891         * build-aux/snippet/_Noreturn.h (_Noreturn):
4892         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4893         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4894         C11 or later.  This is more likely to work with random future C
4895         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4896         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4897
4898         exclude: handle wildcards with FNM_EXTMATCH
4899         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4900         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4901         comment that "has wildcards" really means "has or may have
4902         wildcards".  Simplify by avoiding the need to call strcspn.
4903
4904 2012-04-29  Bruno Haible  <bruno@clisp.org>
4905
4906         gnulib-tool: Fix list of authors.
4907         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4908
4909 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4910
4911         bootstrap: support Automake-NG in $buildreq
4912         * bootstrap (check_versions): Handle automake and aclocal from
4913         Automake-NG specially.  They can be specified as respectively
4914         the "automake-ng" and "aclocal-ng" requirements.
4915
4916 2012-04-25  Eric Blake  <eblake@redhat.com>
4917
4918         bootstrap: only force latest Makefile.in.in for gettext module
4919         * build-aux/bootstrap (with_gettext): Only install latest
4920         Makefile.in.in for projects requesting bleeding edge gettext.
4921
4922 2012-04-22  Bruno Haible  <bruno@clisp.org>
4923
4924         doc: Mention reason for replacement on glibc/Linux systems.
4925         * doc/posix-functions/dprintf.texi: Mention the problem with special
4926         'long double' values.
4927         * doc/posix-functions/fprintf.texi: Likewise.
4928         * doc/posix-functions/printf.texi: Likewise.
4929         * doc/posix-functions/snprintf.texi: Likewise.
4930         * doc/posix-functions/sprintf.texi: Likewise.
4931         * doc/posix-functions/vdprintf.texi: Likewise.
4932         * doc/posix-functions/vfprintf.texi: Likewise.
4933         * doc/posix-functions/vprintf.texi: Likewise.
4934         * doc/posix-functions/vsnprintf.texi: Likewise.
4935         * doc/posix-functions/vsprintf.texi: Likewise.
4936         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4937         platforms with F_DUPFD_CLOEXEC problems.
4938         * doc/posix-functions/glob.texi: Mention which platforms are affected
4939         by the problem with symbolic links.
4940         * doc/posix-functions/linkat.texi: Mention the problem with
4941         AT_SYMLINK_FOLLOW on Linux.
4942
4943 2012-04-22  Bruno Haible  <bruno@clisp.org>
4944
4945         pwrite: Don't replace on all platforms.
4946         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4947
4948 2012-04-22  Bruno Haible  <bruno@clisp.org>
4949
4950         rint* tests: Avoid gcc warnings.
4951         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4952         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4953         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4954
4955 2012-04-21  Bruno Haible  <bruno@clisp.org>
4956
4957         users.txt: Update.
4958         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4959         switched from CVS to git, bzr, or svn.
4960
4961 2012-04-21  Bruno Haible  <bruno@clisp.org>
4962
4963         Large File Support for native Windows platforms.
4964
4965         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4966         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4967
4968         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4969         type.
4970         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4971         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4972         * doc/posix-headers/sys_types.texi: Mention the effect of the
4973         'largefile' module.
4974
4975         * lib/fcntl.in.h: Add comments about off_t.
4976         * modules/fcntl-h (Depends-on): Add sys_types.
4977
4978         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4979         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4980         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4981         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4982         * modules/unistd (Depends-on): Add sys_types.
4983         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4984
4985         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4986         instead of lseek.
4987         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4988         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4989         * modules/lseek (Depends-on): Add sys_types.
4990
4991         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4992         msvc-nothrow.h.
4993         (SetFileSize): New function.
4994         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4995         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4996         if Large File Support is requested.
4997         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4998         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4999
5000         * lib/stdio.in.h: Add comments about off_t.
5001         * modules/stdio (Depends-on): Add sys_types.
5002
5003         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5004         instead of ftello.
5005         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5006         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5007         (gl_PREREQ_FTELLO): New macro.
5008         * modules/ftello (Depends-on): Add sys_types.
5009         (configure.ac): Incoke gl_PREREQ_FTELLO.
5010
5011         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5012         instead of fseeko.
5013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5014         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5015         (gl_PREREQ_FSEEKO): New macro.
5016         * modules/fseeko (Depends-on): Add sys_types.
5017         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5018
5019         * lib/sys_stat.in.h: Add comments about off_t.
5020         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5021         64-bit integer for st_size in 'struct stat'.
5022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5023         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5024         * modules/sys_stat (Depends-on): Add sys_types.
5025         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5026
5027         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5028         instead of stat or _stat.
5029
5030         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5031         'struct _stati64' instead of fstat and 'struct stat'.
5032         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5033         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5034
5035         Reported by Ray Satiro <raysatiro@yahoo.com>.
5036
5037 2012-04-19  Eric Blake  <eblake@redhat.com>
5038
5039         bootstrap: accommodate older libtool
5040         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5041         Reported by Daniel P. Berrange.
5042
5043 2012-04-19  Jim Meyering  <meyering@redhat.com>
5044
5045         announce-gen: avoid failure due to lack of Digest::SHA1
5046         Even with the preferred Digest::SHA available, this script
5047         would fail when the backup module, Digest::SHA1, was not installed.
5048         * build-aux/announce-gen: Quote the conditional use of "use".
5049         Reported by Reuben Thomas in:
5050         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5051
5052         bootstrap: don't let a user's CDPATH setting affect this script
5053         When CDPATH is set, cd will sometimes generate output.
5054         When "cd" is run in a subshell whose output matters, that
5055         surprising-to-some output can cause malfunction.
5056         Unsetting CDPATH turns off this shell "feature."
5057         * build-aux/bootstrap (CDPATH): Unset.
5058         Reported by Reuben Thomas in:
5059         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5060         and inspired by his patch here:
5061         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5062
5063 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
5064         and Jim Meyering  <meyering@redhat.com>
5065
5066         maint.mk: catch "see @xref{}" and similar
5067         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
5068         prohibit "See also @xref{", "Also see @pxref{", and similar.
5069
5070 2012-04-16  Jim Meyering  <meyering@redhat.com>
5071
5072         bootstrap: really use gnulib's po/Makefile.in.in
5073         * build-aux/bootstrap: Correct the source file name in previous change.
5074         Reported by Akim Demaille.
5075
5076         configmake: correct minor inconsistency in Makefile rule
5077         * modules/configmake (Makefile.am): All other rules like this one
5078         run the final "mv -f ..." in the same backslash-continued command
5079         as the one that does everything else.  This one put the mv -f ...
5080         command on a separate, non-backslash-continued line.
5081         Make it like the others.
5082
5083         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
5084         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
5085         the one from gettext.  Reported by Akim Demaille.
5086
5087 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
5088
5089         Fix recursion of install-* into po directories.
5090         Bison's install-pdf bug reported by Hans Aberg at
5091         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
5092         * build-aux/po/Makefile.in.in (install-dvi, install-html)
5093         (install-info, install-pdf, install-ps): New targets.
5094
5095 2012-04-16  Jim Meyering  <meyering@redhat.com>
5096
5097         maint: avoid spurious "make sc_maint" failure
5098         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
5099         exempt all *.class file names, for lib/javaversion.class.
5100
5101 2012-04-15  Bruno Haible  <bruno@clisp.org>
5102
5103         lseek: Make configure test independent of environment.
5104         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
5105         Windows, we know that lseek() on pipes is broken; skip the runtime
5106         test.
5107
5108 2012-04-14  Bruno Haible  <bruno@clisp.org>
5109
5110         stat: Bypass buggy override in mingw64.
5111         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
5112         * lib/stat.c (stat) [mingw64]: Define to _stat.
5113         * doc/posix-functions/stat.texi: Mention mingw64 bug.
5114
5115 2012-04-14  Bruno Haible  <bruno@clisp.org>
5116
5117         pathmax: Fix compilation error on MSVC 9.
5118         * modules/pathmax (Depends-on): Add unistd.
5119
5120 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         README: document pointer comparison assumption
5123         * README (Portability guidelines): Document assumption about
5124         pointer comparisons, in response to a recent bug-gnulib comment by
5125         Jeffrey Kegler.
5126
5127 2012-04-12  Bruno Haible  <bruno@clisp.org>
5128
5129         Tests for module 'getrusage'.
5130         * modules/getrusage-tests: New file.
5131         * tests/test-getrusage.c: New file.
5132
5133         New module 'getrusage'.
5134         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
5135         warn-on-use.h.
5136         (getrusage): New declaration.
5137         * lib/getrusage.c: New file.
5138         * m4/getrusage.m4: New file.
5139         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
5140         is declared.
5141         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
5142         HAVE_GETRUSAGE.
5143         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
5144         snippet/c++defs, snippet/warn-on-use.
5145         (Makefile.am): Update generation of sys/resource.h. Substitute
5146         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
5147         * modules/getrusage: New file.
5148         * doc/posix-functions/getrusage.texi: Mention the new module.
5149
5150 2012-04-12  Bruno Haible  <bruno@clisp.org>
5151
5152         Tests for module 'sys_resource'.
5153         * modules/sys_resource-tests: New file.
5154         * tests/test-sys_resource.c: New file.
5155
5156         New module 'sys_resource'.
5157         * lib/sys_resource.in.h: New file.
5158         * m4/sys_resource_h.m4: New file.
5159         * modules/sys_resource: New file.
5160         * doc/posix-headers/sys_resource.texi: Mention the new module.
5161
5162 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
5163
5164         ioctl: Fix compilation error on mingw.
5165         * lib/ioctl.c: Include <windows.h>.
5166         Also reported by Ray Satiro <raysatiro@yahoo.com>.
5167
5168 2012-04-04  Jim Meyering  <meyering@redhat.com>
5169
5170         regex: correct #pragma guard expression
5171         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
5172         not 4.3.  Correct its cpp guard expression.
5173
5174 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         regex: remove unnecessary type punning
5177         Problem reported by Vladimir Serbinenko in
5178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
5179         * lib/regex.h (struct re_pattern_buffer): Change the type of
5180         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
5181         Fix comment to match code.
5182         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
5183         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
5184         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
5185         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
5186         (set_regs):
5187         Omit no-longer-necessary casts.
5188
5189 2012-04-03  Bruno Haible  <bruno@clisp.org>
5190
5191         Tests for module 'ilogbl'.
5192         * modules/ilogbl-tests: New file.
5193         * tests/test-ilogbl.c: New file.
5194
5195         New module 'ilogbl'.
5196         * lib/math.in.h (ilogbl): New declaration.
5197         * lib/ilogbl.c: New file.
5198         * m4/ilogbl.m4: New file.
5199         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
5200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
5201         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
5202         Split sed invocation, to avoid the limit of 100 substitutions of
5203         HP-UX 'sed'.
5204         * modules/ilogbl: New file.
5205         * tests/test-math-c++.cc: Check the declaration of ilogbl.
5206         * doc/posix-functions/ilogbl.texi: Mention the new module.
5207
5208 2012-04-03  Bruno Haible  <bruno@clisp.org>
5209
5210         Tests for module 'ilogbf'.
5211         * modules/ilogbf-tests: New file.
5212         * tests/test-ilogbf.c: New file.
5213
5214         New module 'ilogbf'.
5215         * lib/math.in.h (ilogbf): New declaration.
5216         * lib/ilogbf.c: New file.
5217         * m4/ilogbf.m4: New file.
5218         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
5219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
5220         REPLACE_ILOGBF.
5221         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
5222         REPLACE_ILOGBF.
5223         * modules/ilogbf: New file.
5224         * tests/test-math-c++.cc: Check the declaration of ilogbf.
5225         * doc/posix-functions/ilogbf.texi: Mention the new module.
5226
5227 2012-04-03  Bruno Haible  <bruno@clisp.org>
5228
5229         Tests for module 'ilogb'.
5230         * modules/ilogb-tests: New file.
5231         * tests/test-ilogb.c: New file.
5232         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
5233         tests/test-logb-ieee.h.
5234
5235         New module 'ilogb'.
5236         * lib/math.in.h (ilogb): New declaration.
5237         * lib/ilogb.c: New file.
5238         * m4/ilogb.m4: New file.
5239         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
5240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
5241         REPLACE_ILOGB.
5242         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
5243         REPLACE_ILOGB.
5244         * modules/ilogb: New file.
5245         * tests/test-math-c++.cc: Check the declaration of ilogb.
5246         * doc/posix-functions/ilogb.texi: Mention the new module.
5247
5248 2012-04-03  Bruno Haible  <bruno@clisp.org>
5249
5250         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
5251         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
5252         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
5253         (main): Check their values.
5254         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
5255         problem.
5256
5257 2012-04-03  Bruno Haible  <bruno@clisp.org>
5258
5259         Tests for module 'logbl-ieee'.
5260         * modules/logbl-ieee-tests: New file.
5261         * tests/test-logbl-ieee.c: New file.
5262
5263         New module 'logbl-ieee'.
5264         * modules/logbl-ieee: New file.
5265
5266         Tests for module 'logb-ieee'.
5267         * modules/logb-ieee-tests: New file.
5268         * tests/test-logb-ieee.c: New file.
5269
5270         New module 'logb-ieee'.
5271         * modules/logb-ieee: New file.
5272
5273         Tests for module 'logbf-ieee'.
5274         * modules/logbf-ieee-tests: New file.
5275         * tests/test-logbf-ieee.c: New file.
5276         * tests/test-logb-ieee.h: New file.
5277
5278         New module 'logbf-ieee'.
5279         * modules/logbf-ieee: New file.
5280
5281 2012-04-03  Bruno Haible  <bruno@clisp.org>
5282
5283         Tests for module 'logbl'.
5284         * modules/logbl-tests: New file.
5285         * tests/test-logbl.c: New file.
5286
5287         New module 'logbl'.
5288         * lib/math.in.h (logbl): New declaration.
5289         * lib/logbl.c: New file.
5290         * m4/logbl.m4: New file.
5291         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
5292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
5293         REPLACE_LOGBL.
5294         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
5295         REPLACE_LOGBL.
5296         * modules/logbl: New file.
5297         * tests/test-math-c++.cc: Check the declaration of logbl.
5298         * doc/posix-functions/logbl.texi: Mention the new module.
5299
5300 2012-04-02  Bruno Haible  <bruno@clisp.org>
5301
5302         Tests for module 'logbf'.
5303         * modules/logbf-tests: New file.
5304         * tests/test-logbf.c: New file.
5305
5306         New module 'logbf'.
5307         * lib/math.in.h (logbf): New declaration.
5308         * lib/logbf.c: New file.
5309         * m4/logbf.m4: New file.
5310         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
5311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
5312         REPLACE_LOGBF.
5313         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
5314         REPLACE_LOGBF.
5315         * modules/logbf: New file.
5316         * tests/test-math-c++.cc: Check the declaration of logbf.
5317         * doc/posix-functions/logbf.texi: Mention the new module.
5318
5319 2012-04-02  Bruno Haible  <bruno@clisp.org>
5320
5321         logb tests: More tests.
5322         * tests/test-logb.h: New file, based on tests/test-logb.c and
5323         tests/test-frexp.h.
5324         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
5325         (main): Just invoke test_function.
5326         * modules/logb-tests (Files): Add tests/test-logb.h,
5327         tests/minus-zero.h, tests/randomd.c.
5328         (Makefile.am): Add randomd.c to test_logb_SOURCES.
5329
5330         logb: Provide replacement and workarounds.
5331         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
5332         is 1.
5333         * lib/logb.c: New file.
5334         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
5335         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
5336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
5337         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
5338         * modules/logb (Files): Add lib/logb.c.
5339         (Depends-on): Add isfinite, frexp, isnand.
5340         (configure.ac): Compile the replacement code logb.c if needed.
5341         * tests/test-math-c++.cc: Check the declaration of logb.
5342         * doc/posix-functions/logb.texi: Mention the replacement and the bug
5343         with subnormal numbers.
5344
5345 2012-04-02  Bruno Haible  <bruno@clisp.org>
5346
5347         log10* tests: Speed up.
5348         * tests/test-log10.h (test_function): Reduce amount of random numbers
5349         to test.
5350
5351 2012-04-01  Bruno Haible  <bruno@clisp.org>
5352
5353         logf-ieee: Fix test whether logf works.
5354         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
5355
5356 2012-04-01  Bruno Haible  <bruno@clisp.org>
5357
5358         log10l: Work around log10l-ieee test failure on IRIX 6.5.
5359         * lib/log10l.c: Include <float.h>
5360         (log10l): On IRIX, normalize the +Infinity value.
5361         * modules/log10l (Depends-on): Add 'float'.
5362         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
5363         +Infinity.
5364
5365         log10f-ieee: Work around test failure on NetBSD 5.1.
5366         * m4/log10f-ieee.m4: New file.
5367         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
5368         test whether log10f works with a negative argument. Replace it if not.
5369         * lib/log10f.c (log10f): For negative arguments, return NaN.
5370         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
5371         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
5372         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
5373
5374         log10f-ieee: Work around test failure on Solaris 9.
5375         * modules/log10f-ieee (Depends-on): Add log10-ieee.
5376         (configure.ac): Require gl_FUNC_LOG10F.
5377
5378         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5379         * m4/log10-ieee.m4: New file.
5380         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
5381         whether log10 works with a negative argument. Replace it if not.
5382         * lib/log10.c (log10): For negative arguments, return NaN.
5383         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
5384         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
5385         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
5386
5387         Tests for module 'log10l-ieee'.
5388         * modules/log10l-ieee-tests: New file.
5389         * tests/test-log10l-ieee.c: New file.
5390
5391         New module 'log10l-ieee'.
5392         * modules/log10l-ieee: New file.
5393
5394         Tests for module 'log10-ieee'.
5395         * modules/log10-ieee-tests: New file.
5396         * tests/test-log10-ieee.c: New file.
5397
5398         New module 'log10-ieee'.
5399         * modules/log10-ieee: New file.
5400
5401         Tests for module 'log10f-ieee'.
5402         * modules/log10f-ieee-tests: New file.
5403         * tests/test-log10f-ieee.c: New file.
5404         * tests/test-log10-ieee.h: New file.
5405
5406         New module 'log10f-ieee'.
5407         * modules/log10f-ieee: New file.
5408
5409 2012-04-01  Bruno Haible  <bruno@clisp.org>
5410
5411         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
5412         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
5413         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
5414         workaround.
5415         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
5416         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
5417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
5418         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
5419         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
5420         (Depends-on): Update conditions.
5421         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
5422         IRIX 6.5, OSF/1 5.1 problems.
5423
5424 2012-04-01  Bruno Haible  <bruno@clisp.org>
5425
5426         log10f: Work around OSF/1 5.1 bug.
5427         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
5428         * lib/log10f.c (log10f): If logf exists, use it and provide just the
5429         workaround.
5430         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
5431         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
5432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
5433         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
5434         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
5435         (Depends-on): Update conditions.
5436         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
5437
5438 2012-04-01  Bruno Haible  <bruno@clisp.org>
5439
5440         log10: Work around OSF/1 5.1 bug.
5441         * lib/math.in.h (log10): New declaration.
5442         * lib/log10.c: New file.
5443         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
5444         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
5445         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
5446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
5447         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
5448         * modules/log10 (Files): Add lib/log10.c.
5449         (Depends-on): Add math.
5450         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
5451         * tests/test-math-c++.cc: Check the declaration of log10.
5452         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
5453
5454 2012-03-31  Bruno Haible  <bruno@clisp.org>
5455
5456         log10l tests: More tests.
5457         * modules/log10l-tests (Files): Add tests/test-log10l.h,
5458         tests/minus-zero.h, tests/randoml.c.
5459         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
5460         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
5461         (main): Invoke test_function.
5462
5463         log10f tests: More tests.
5464         * modules/log10f-tests (Files): Add tests/test-log10.h,
5465         tests/minus-zero.h, tests/randomf.c.
5466         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
5467         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
5468         (main): Invoke test_function.
5469
5470         log10 tests: More tests.
5471         * tests/test-log10.h: New file.
5472         * modules/log10-tests (Files): Add tests/test-log10.h,
5473         tests/minus-zero.h, tests/randomd.c.
5474         (Makefile.am): Add randomd.c to test_log10_SOURCES.
5475         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
5476         (main): Invoke test_function.
5477
5478 2012-03-31  Simon Josefsson  <simon@josefsson.org>
5479
5480         fflush: Fix syntax error.
5481         * lib/fflush.c: Include unused-parameter.h, needed for
5482         _GL_UNUSED_PARAMETER.
5483         * modules/fflush (Depends-on): Add snippet/unused-parameter.
5484
5485 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
5486
5487         regex: pacify GCC when compiling GRUB
5488         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
5489         a diagnostic.  Reported by Vladimir Serbinenko in
5490         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
5491
5492 2012-03-29  Eric Blake  <eblake@redhat.com>
5493
5494         stdio: don't assume gets any more
5495         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
5496         support.
5497         * modules/stdio (Makefile.am): Likewise.
5498         * lib/stdio-read.c (gets): Likewise.
5499         * tests/test-stdio-c++.cc: Likewise.
5500         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
5501         * lib/stdio.in.h (gets): Make warning occur in more places.
5502         * doc/posix-functions/gets.texi (gets): Update documentation.
5503         Reported by Christer Solskogen.
5504
5505         maint.mk: fix syntax checks without exclusions
5506         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
5507         Reported by Daniel P. Berrange.
5508
5509         strerror_r: avoid compiler warning
5510         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
5511         level.
5512
5513         fflush: avoid compiler warning
5514         * lib/fflush.c (update_fpos_cache): Mark variables that are
5515         potentially unused.
5516
5517 2012-03-25  Bruno Haible  <bruno@clisp.org>
5518
5519         Tests for module 'localeconv'.
5520         * modules/localeconv-tests: New file.
5521         * tests/test-localeconv.c: New file.
5522
5523         New module 'localeconv'.
5524         * lib/locale.in.h (localeconv): New declaration.
5525         * lib/localeconv.c: New file.
5526         * m4/localeconv.m4: New file.
5527         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
5528         REPLACE_LOCALECONV.
5529         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
5530         REPLACE_LOCALECONV.
5531         * modules/localeconv: New file.
5532         * modules/nl_langinfo (Depends-on): Add localeconv.
5533         * modules/human (Depends-on): Likewise.
5534         * doc/posix-functions/localeconv.texi: Mention the new module.
5535
5536 2012-03-25  Bruno Haible  <bruno@clisp.org>
5537
5538         locale: Provide a complete 'struct lconv'.
5539         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5540         'struct lconv' does not contain int_p_cs_precedes.
5541         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5542         * doc/posix-headers/locale.texi: Update.
5543
5544         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
5545         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
5546         * doc/posix-headers/locale.texi: Update.
5547
5548         locale: Provide a working 'struct lconv'.
5549         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
5550         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
5551         'struct lconv' does not even contain decimal_point.
5552         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
5553         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
5554         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
5555         * doc/posix-headers/locale.texi: Mention the problems with
5556         'struct lconv'.
5557         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
5558
5559 2012-03-24  Bruno Haible  <bruno@clisp.org>
5560
5561         Enable common subexpression optimization in GCC.
5562         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
5563         macros.
5564         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
5565         GCC attribute 'const'.
5566         (uc_locale_language): Declare with GCC attribute 'pure'.
5567         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
5568         with GCC attribute 'const'.
5569         * lib/unictype.in.h (uc_is_general_category_withtable,
5570         uc_combining_class, uc_combining_class_name,
5571         uc_combining_class_long_name, uc_bidi_class_name,
5572         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
5573         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
5574         uc_decimal_value, uc_digit_value, uc_numeric_value,
5575         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
5576         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
5577         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
5578         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
5579         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
5580         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
5581         Declare with GCC attribute 'const'.
5582         (uc_general_category_name, uc_general_category_long_name,
5583         uc_general_category_byname, uc_general_category,
5584         uc_is_general_category, uc_combining_class_byname,
5585         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
5586         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
5587         Declare with GCC attribute 'pure'.
5588         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
5589         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
5590         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
5591         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
5592         with GCC attribute 'pure'.
5593         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
5594         'const'.
5595         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
5596         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
5597         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
5598         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
5599         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
5600         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
5601         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
5602         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
5603         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
5604         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
5605         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
5606         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
5607         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
5608         GCC attribute 'pure'.
5609         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
5610         'const'.
5611         * lib/uniwidth.in.h (uc_width): Simplify declaration.
5612         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
5613         u32_strwidth): Declare with GCC attribute 'pure'.
5614
5615         Enable common subexpression optimization in GCC.
5616         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5617         (alphasort): Declare with GCC attribute 'pure'.
5618         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5619         (atoll): Declare with GCC attribute 'pure'.
5620         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5621         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5622         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
5623         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
5624         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
5625         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
5626         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
5627
5628 2012-03-24  Bruno Haible  <bruno@clisp.org>
5629
5630         gnulib-tool: Avoid unintended error output from 'cmp'.
5631         * gnulib-tool (func_add_file, func_update_file, func_import): Use
5632         "cmp -s", not "cmp > /dev/null".
5633
5634 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
5635
5636         gnulib-tool: fix imprecise comments w.r.t. an automake bug
5637
5638         It's not just Automake versions < 1.9b that creates an empty
5639         pkgdatadir at installation time if pkgdata_DATA is specified
5640         to empty; modern automake versions do this as well, at least
5641         until automake 1.11.4 (not yet released at the moment of writing,
5642         but soon to appear).  That behaviour was generally considered a
5643         feature rather than a bug, at least until this discussion:
5644         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
5645
5646         See also automake bugs #10997 and #11030.
5647
5648         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
5649         reference to relevant automake bug numbers.
5650         (func_emit_tests_Makefile_am): Likewise.
5651
5652 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5653
5654         announce-gen: use Digest::SHA when possible
5655         * build-aux/announce-gen: Use Digest::SHA when possible, falling
5656         back to Digest::SHA1 if necessary.
5657
5658 2012-03-20  Jim Meyering  <meyering@redhat.com>
5659
5660         tests: avoid gcc warnings about argv vs. const initializers
5661         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
5662         warnings about discarding 'const' qualifier from pointer target type.
5663         * tests/test-posix_spawn2.c (main): Likewise.
5664
5665 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
5666
5667         README-release: simplify slightly
5668         * top/README-release: Run "git checkout master" only once.
5669
5670 2012-03-15  Mark Wielaard  <mark@klomp.org>
5671
5672         git-merge-changelog: add specific example on how to use with hg.
5673         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
5674
5675 2012-03-18  Mark Wielaard  <mark@klomp.org>
5676
5677         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
5678
5679 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
5680
5681         git-version-gen: don't let "prefix" envvar cause trouble
5682         * build-aux/git-version-gen (prefix): Initialize properly,
5683         so as not to use a value specified via the environment.
5684         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
5685
5686 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5687
5688         regex: diagnose too-large repeat counts in EREs
5689         Previously, the code did not diagnose the too-large repeat count
5690         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
5691         as if it were 'b\{1000000000}', which is unexpected.
5692         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
5693         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
5694         is a reasonable one for this problem.  Another option would be to
5695         create a new REG_OVERFLOW error for repeat counts that are too large.
5696         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
5697         count is too large, so that the caller can distinguish the two cases.
5698         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
5699         "Too large" return code, and that repeat counts are one example of this.
5700
5701 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
5702
5703         doc: some glibc x32 integer width issues
5704         * doc/posix-headers/sys_types.texi (sys/types.h):
5705         * doc/posix-headers/time.texi (time.h):
5706         Mention that glibc x32 does not conform to POSIX in a couple of
5707         areas related to integer widths.
5708
5709 2012-03-15  Bruno Haible  <bruno@clisp.org>
5710
5711         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
5712         * lib/fma.c (VOLATILE): New macro.
5713         (FUNC): Use it to work around a GCC compiler bug.
5714
5715 2012-03-13  Bruno Haible  <bruno@clisp.org>
5716
5717         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5718         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
5719         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
5720         REPLACE_HYPOTL to 1.
5721         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
5722
5723 2012-03-13  Bruno Haible  <bruno@clisp.org>
5724
5725         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5726         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
5727         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
5728         REPLACE_REMAINDERL to 1.
5729         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
5730         bug.
5731
5732 2012-03-13  Bruno Haible  <bruno@clisp.org>
5733
5734         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5735         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
5736         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
5737         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
5738         too big rounding errors.
5739         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
5740         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
5741         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
5742         (Depends-on): Update conditions.
5743         * tests/test-sqrtl.c (my_ldexpl): New function.
5744         (main): Add test of a particular value.
5745         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5746
5747 2012-03-13  Pádraig Brady  <P@draigBrady.com>
5748
5749         doc: Update timer_* platform portability notes.
5750         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
5751         that always return ENOSYS.
5752         * doc/posix-functions/timer_delete.texi: Likewise.
5753         * doc/posix-functions/timer_gettime.texi: Likewise.
5754         * doc/posix-functions/timer_settime.texi: Likewise.
5755
5756 2012-03-13  Bruno Haible  <bruno@clisp.org>
5757
5758         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
5759         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
5760         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
5761         REPLACE_CBRTL to 1.
5762         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
5763
5764 2012-03-13  Bruno Haible  <bruno@clisp.org>
5765
5766         remainderl: Avoid compilation error on AIX >= 5.2.
5767         * lib/math.in.h (remainderl): Undefine macro from the system header.
5768
5769 2012-03-13  Bruno Haible  <bruno@clisp.org>
5770
5771         Avoid compilation errors with MSVC option -fp:strict.
5772         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
5773         * lib/cbrtf.c: Likewise.
5774         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5775
5776 2012-03-12  Bruno Haible  <bruno@clisp.org>
5777
5778         uninorm: Don't crash in out-of-memory conditions.
5779         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
5780         gracefully.
5781         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
5782         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
5783
5784 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
5785
5786         quote: fix syntax-check
5787         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
5788         also exports quote_quoting_options.
5789
5790 2012-03-12  Simon Josefsson  <simon@josefsson.org>
5791
5792         Collapse list of copyright years to ranges.  See
5793         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
5794         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
5795         build-aux/csharpexec.sh.in, build-aux/gnupload,
5796         build-aux/install-reloc, build-aux/javacomp.sh.in,
5797         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
5798         build-aux/move-if-change, build-aux/reloc-ldflags,
5799         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
5800
5801 2012-03-11  Bruno Haible  <bruno@clisp.org>
5802
5803         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5804         * m4/log2f-ieee.m4: New file.
5805         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
5806         whether log2f works with a minus zero argument. Replace it if not.
5807         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
5808         (Depends-on): Add log2-ieee.
5809         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
5810         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
5811
5812         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
5813         * m4/log2-ieee.m4: New file.
5814         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
5815         whether log2 works with a minus zero argument. Replace it if not.
5816         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
5817         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
5818         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
5819
5820         Tests for module 'log2l-ieee'.
5821         * modules/log2l-ieee-tests: New file.
5822         * tests/test-log2l-ieee.c: New file.
5823
5824         New module 'log2l-ieee'.
5825         * modules/log2l-ieee: New file.
5826
5827         Tests for module 'log2-ieee'.
5828         * modules/log2-ieee-tests: New file.
5829         * tests/test-log2-ieee.c: New file.
5830
5831         New module 'log2-ieee'.
5832         * modules/log2-ieee: New file.
5833
5834         Tests for module 'log2f-ieee'.
5835         * modules/log2f-ieee-tests: New file.
5836         * tests/test-log2f-ieee.c: New file.
5837         * tests/test-log2-ieee.h: New file.
5838
5839         New module 'log2f-ieee'.
5840         * modules/log2f-ieee: New file.
5841
5842 2012-03-11  Bruno Haible  <bruno@clisp.org>
5843
5844         Tests for module 'log2l'.
5845         * modules/log2l-tests: New file.
5846         * tests/test-log2l.c: New file.
5847
5848         New module 'log2l'.
5849         * lib/math.in.h (log2l): New declaration.
5850         * lib/log2l.c: New file.
5851         * m4/log2l.m4: New file.
5852         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5854         REPLACE_LOG2L.
5855         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5856         REPLACE_LOG2L.
5857         * modules/log2l: New file.
5858         * tests/test-math-c++.cc: Check the declaration of log2l.
5859         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5860         and OSF/1 problems.
5861
5862 2012-03-11  Bruno Haible  <bruno@clisp.org>
5863
5864         Tests for module 'log2f'.
5865         * modules/log2f-tests: New file.
5866         * tests/test-log2f.c: New file.
5867
5868         New module 'log2f'.
5869         * lib/math.in.h (log2f): New declaration.
5870         * lib/log2f.c: New file.
5871         * m4/log2f.m4: New file.
5872         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5874         REPLACE_LOG2F.
5875         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5876         REPLACE_LOG2F.
5877         * modules/log2f: New file.
5878         * tests/test-math-c++.cc: Check the declaration of log2f.
5879         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5880         and OSF/1 and Cygwin problems.
5881
5882 2012-03-11  Bruno Haible  <bruno@clisp.org>
5883
5884         Tests for module 'log2'.
5885         * modules/log2-tests: New file.
5886         * tests/test-log2.c: New file.
5887         * tests/test-log2.h: New file.
5888
5889         New module 'log2'.
5890         * lib/math.in.h (log2): New declaration.
5891         * lib/log2.c: New file.
5892         * m4/log2.m4: New file.
5893         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5895         REPLACE_LOG2.
5896         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5897         REPLACE_LOG2.
5898         * modules/log2: New file.
5899         * tests/test-math-c++.cc: Check the declaration of log2.
5900         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5901         and OSF/1 and Cygwin problems.
5902
5903 2012-03-11  Bruno Haible  <bruno@clisp.org>
5904
5905         exp2* tests: More tests.
5906         * tests/test-exp2.h (test_function): Test all integral arguments that
5907         don't need to overflow or denormalized numbers.
5908         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5909         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5910         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5911
5912 2012-03-10  Bruno Haible  <bruno@clisp.org>
5913
5914         log1pl-ieee: Work around test failure on AIX 7.1.
5915         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5916
5917         log1pl-ieee: Work around test failure on IRIX 6.5.
5918         * m4/log1pl-ieee.m4: New file.
5919         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5920         test whether log1pl works with a minus zero argument. Replace it if
5921         not.
5922         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5924         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5925         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5926         (Depends-on): Update conditions.
5927         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5928         m4/signbit.m4.
5929         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5930         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5931
5932         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5933         * m4/log1pf-ieee.m4: New file.
5934         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5935         test whether log1pf works with a minus zero argument. Replace it if
5936         not.
5937         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5938         m4/signbit.m4.
5939         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5940         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5941
5942         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5943         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5944         (configure.ac): Require gl_FUNC_LOG1PF.
5945
5946         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5947         * m4/log1p-ieee.m4: New file.
5948         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5949         whether log1p works with a minus zero argument. Replace it if not.
5950         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5952         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5953         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5954         (Depends-on): Update conditions.
5955         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5956         m4/signbit.m4.
5957         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5958         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5959
5960         Tests for module 'log1pl-ieee'.
5961         * modules/log1pl-ieee-tests: New file.
5962         * tests/test-log1pl-ieee.c: New file.
5963
5964         New module 'log1pl-ieee'.
5965         * modules/log1pl-ieee: New file.
5966
5967         Tests for module 'log1p-ieee'.
5968         * modules/log1p-ieee-tests: New file.
5969         * tests/test-log1p-ieee.c: New file.
5970
5971         New module 'log1p-ieee'.
5972         * modules/log1p-ieee: New file.
5973
5974         Tests for module 'log1pf-ieee'.
5975         * modules/log1pf-ieee-tests: New file.
5976         * tests/test-log1pf-ieee.c: New file.
5977         * tests/test-log1p-ieee.h: New file.
5978
5979         New module 'log1pf-ieee'.
5980         * modules/log1pf-ieee: New file.
5981
5982 2012-03-10  Bruno Haible  <bruno@clisp.org>
5983
5984         Tests for module 'log1pl'.
5985         * modules/log1pl-tests: New file.
5986         * tests/test-log1pl.c: New file.
5987
5988         New module 'log1pl'.
5989         * lib/math.in.h (log1pl): New declaration.
5990         * lib/log1pl.c: New file.
5991         * m4/log1pl.m4: New file.
5992         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5994         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5995         * modules/log1pl: New file.
5996         * tests/test-math-c++.cc: Check the declaration of log1pl.
5997         * doc/posix-functions/log1pl.texi: Mention the new module.
5998
5999 2012-03-10  Bruno Haible  <bruno@clisp.org>
6000
6001         Tests for module 'log1pf'.
6002         * modules/log1pf-tests: New file.
6003         * tests/test-log1pf.c: New file.
6004
6005         New module 'log1pf'.
6006         * lib/math.in.h (log1pf): New declaration.
6007         * lib/log1pf.c: New file.
6008         * m4/log1pf.m4: New file.
6009         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6011         REPLACE_LOG1PF.
6012         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6013         REPLACE_LOG1PF.
6014         * modules/log1pf: New file.
6015         * tests/test-math-c++.cc: Check the declaration of log1pf.
6016         * doc/posix-functions/log1pf.texi: Mention the new module.
6017
6018 2012-03-10  Bruno Haible  <bruno@clisp.org>
6019
6020         log1p tests: More tests.
6021         * tests/test-log1p.h: New file.
6022         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6023         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6024         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6025         (main): Invoke test_function.
6026
6027         log1p: Provide replacement for Minix and MSVC.
6028         * lib/math.in.h (log1p): New declaration.
6029         * lib/log1p.c: New file.
6030         * m4/log1p.m4: New file.
6031         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6033         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6034         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6035         (Depends-on): Add math, isnand, log, round.
6036         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6037         HAVE_LOG1P is 0.
6038         * tests/test-math-c++.cc: Check the declaration of log1p.
6039         * doc/posix-functions/log1p.texi: Mention the replacement.
6040
6041 2012-03-10  Bruno Haible  <bruno@clisp.org>
6042
6043         math tests: Small simplification.
6044         * tests/test-exp.h (test_function): Use the same err_bound for
6045         'double' on platforms with sizeof (long double) == sizeof (double)
6046         than on platforms with sizeof (long double) > sizeof (double).
6047         * tests/test-exp2.h (test_function): Likewise.
6048         * tests/test-expm1.h (test_function): Likewise.
6049         * tests/test-log.h (test_function): Likewise.
6050
6051 2012-03-10  Bruno Haible  <bruno@clisp.org>
6052
6053         Fix some comments.
6054         * lib/expl.c: Fix an ambiguous comment.
6055         * lib/expm1.c: Likewise.
6056         * lib/expm1l.c: Likewise.
6057         * lib/exp2.c: Likewise.
6058         * lib/exp2l.c: Likewise.
6059
6060 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6061
6062         regex: allow inclusion of <regex.h> before <limits.h>
6063         Without this patch, portable programs had to include <limits.h> before
6064         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
6065         I ran into this problem with a test version of GNU grep on Solaris 8.
6066         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
6067         This is done conditionally so that this change can be merged
6068         back to glibc.
6069         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
6070         using the included regex.
6071
6072         fts: depend on fdopendir
6073         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
6074         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
6075         problem was introduced when fdopendir was split out.
6076
6077 2012-03-10  Bruno Haible  <bruno@clisp.org>
6078
6079         Remove unused variables.
6080         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
6081         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6082
6083 2012-03-10  Bruno Haible  <bruno@clisp.org>
6084
6085         isnanf-nolibm: Fix last commit.
6086         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
6087
6088         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
6089         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
6090
6091 2012-03-10  Bruno Haible  <bruno@clisp.org>
6092
6093         logf-ieee: Work around test failure on NetBSD 5.1.
6094         * m4/logf-ieee.m4: New file.
6095         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
6096         whether logf works with a negative argument. Replace it if not.
6097         * lib/logf.c (logf): For negative arguments, return NaN.
6098         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
6099         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
6100         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
6101
6102         logf-ieee: Work around test failure on Solaris 9.
6103         * modules/logf-ieee (Depends-on): Add log-ieee.
6104         (configure.ac): Require gl_FUNC_LOGF.
6105
6106         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6107         * m4/log-ieee.m4: New file.
6108         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
6109         log works with a negative argument. Replace it if not.
6110         * lib/log.c (log): For negative arguments, return NaN.
6111         * modules/log-ieee (Files): Add m4/log-ieee.m4.
6112         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
6113         * doc/posix-functions/log.texi: Mention the log-ieee module.
6114
6115         Tests for module 'logl-ieee'.
6116         * modules/logl-ieee-tests: New file.
6117         * tests/test-logl-ieee.c: New file.
6118
6119         New module 'logl-ieee'.
6120         * modules/logl-ieee: New file.
6121
6122         Tests for module 'log-ieee'.
6123         * modules/log-ieee-tests: New file.
6124         * tests/test-log-ieee.c: New file.
6125
6126         New module 'log-ieee'.
6127         * modules/log-ieee: New file.
6128
6129         Tests for module 'logf-ieee'.
6130         * modules/logf-ieee-tests: New file.
6131         * tests/test-logf-ieee.c: New file.
6132         * tests/test-log-ieee.h: New file.
6133
6134         New module 'logf-ieee'.
6135         * modules/logf-ieee: New file.
6136
6137 2012-03-10  Bruno Haible  <bruno@clisp.org>
6138
6139         log: Fix bug introduced on 2012-03-09.
6140         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
6141
6142 2012-03-10  Pádraig Brady  <P@draigBrady.com>
6143
6144         timer-time: link explicitly with pthreads on glibc
6145         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
6146         to support static linking, when newer glibc is
6147         detected, as that contains pthread emulation of
6148         POSIX timer functions where required.
6149         * modules/timer-time: Depend on threadlib to
6150         pull in the appropriate library to link.
6151
6152 2012-03-10  Bruno Haible  <bruno@clisp.org>
6153
6154         log* tests: More tests.
6155         * tests/test-log.h: New file.
6156         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
6157         (main): Invoke test_function.
6158         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
6159         (main): Invoke test_function.
6160         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
6161         (main): Invoke test_function.
6162         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6163         tests/randomd.c.
6164         (Makefile.am): Add randomd.c to test_log_SOURCES.
6165         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6166         tests/randomf.c.
6167         (Makefile.am): Add randomf.c to test_logf_SOURCES.
6168         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
6169         tests/randoml.c.
6170         (Depends-on): Add 'float'.
6171         (Makefile.am): Add randoml.c to test_logl_SOURCES.
6172
6173 2012-03-09  Bruno Haible  <bruno@clisp.org>
6174
6175         logl: Work around OSF/1 5.1 bug.
6176         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
6177         * lib/logl.c (logl): If logl exists, use it and provide just the
6178         workaround.
6179         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
6180         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
6181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
6182         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
6183         * modules/logl (configure.ac): Consider REPLACE_LOGL.
6184         (Depends-on): Update conditions.
6185         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
6186
6187 2012-03-09  Bruno Haible  <bruno@clisp.org>
6188
6189         logf: Work around OSF/1 5.1 bug.
6190         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
6191         * lib/logf.c (logf): If logf exists, use it and provide just the
6192         workaround.
6193         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
6194         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
6195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
6196         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
6197         * modules/logf (configure.ac): Consider REPLACE_LOGF.
6198         (Depends-on): Update conditions.
6199         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
6200
6201 2012-03-09  Bruno Haible  <bruno@clisp.org>
6202
6203         log: Work around OSF/1 5.1 bug.
6204         * lib/math.in.h (log): New declaration.
6205         * lib/log.c: New file.
6206         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
6207         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
6208         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
6209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
6210         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
6211         * modules/log (Files): Add lib/log.c.
6212         (Depends-on): Add math.
6213         (configure.ac): If REPLACE_LOG is 1, compile an override.
6214         * tests/test-math-c++.cc: Check the declaration of log.
6215         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
6216
6217 2012-03-09  Jim Meyering  <meyering@redhat.com>
6218
6219         readtokens.c: adjust wording in a comment
6220         * lib/readtokens.c: Insert omitted "that" in a comment.
6221
6222 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6223
6224         modechange: add notations +40, 00440, etc.
6225         * lib/modechange.c (mode_compile): Support new notations
6226         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
6227
6228 2012-03-08  Bruno Haible  <bruno@clisp.org>
6229
6230         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
6231         * m4/exp2l-ieee.m4: New file.
6232         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
6233         test whether exp2l works with a NaN argument and with a negative
6234         infinity argument. Replace it if not.
6235         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
6236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
6237         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
6238         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
6239         (Depends-on): Update conditions.
6240         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
6241         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
6242         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
6243
6244         Tests for module 'exp2l-ieee'.
6245         * modules/exp2l-ieee-tests: New file.
6246         * tests/test-exp2l-ieee.c: New file.
6247
6248         New module 'exp2l-ieee'.
6249         * modules/exp2l-ieee: New file.
6250
6251         Tests for module 'exp2-ieee'.
6252         * modules/exp2-ieee-tests: New file.
6253         * tests/test-exp2-ieee.c: New file.
6254
6255         New module 'exp2-ieee'.
6256         * modules/exp2-ieee: New file.
6257
6258         Tests for module 'exp2f-ieee'.
6259         * modules/exp2f-ieee-tests: New file.
6260         * tests/test-exp2f-ieee.c: New file.
6261         * tests/test-exp2-ieee.h: New file.
6262
6263         New module 'exp2f-ieee'.
6264         * modules/exp2f-ieee: New file.
6265
6266 2012-03-08  Bruno Haible  <bruno@clisp.org>
6267
6268         Tests for module 'exp2l'.
6269         * modules/exp2l-tests: New file.
6270         * tests/test-exp2l.c: New file.
6271
6272         New module 'exp2l'.
6273         * lib/math.in.h (exp2l): New declaration.
6274         * lib/exp2l.c: New file.
6275         * lib/expl-table.c: New file, extracted from lib/expl.c.
6276         * lib/expl.c (gl_expl_table): New declaration.
6277         (expl): Remove expl_table. Update reference.
6278         * m4/exp2l.m4: New file.
6279         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
6280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
6281         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
6282         * modules/exp2l: New file.
6283         * modules/expl (Files): Add lib/expl-table.c.
6284         (configure.ac): Compile also expl-table.c.
6285         * tests/test-math-c++.cc: Check the declaration of exp2l.
6286         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
6287         problem.
6288
6289 2012-03-08  Bruno Haible  <bruno@clisp.org>
6290
6291         Tests for module 'exp2f'.
6292         * modules/exp2f-tests: New file.
6293         * tests/test-exp2f.c: New file.
6294
6295         New module 'exp2f'.
6296         * lib/math.in.h (exp2f): New declaration.
6297         * lib/exp2f.c: New file.
6298         * m4/exp2f.m4: New file.
6299         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
6300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
6301         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
6302         * modules/exp2f: New file.
6303         * tests/test-math-c++.cc: Check the declaration of exp2f.
6304         * doc/posix-functions/exp2f.texi: Mention the new module and the
6305         IRIX problem.
6306
6307 2012-03-08  Bruno Haible  <bruno@clisp.org>
6308
6309         Tests for module 'exp2'.
6310         * modules/exp2-tests: New file.
6311         * tests/test-exp2.c: New file.
6312         * tests/test-exp2.h: New file.
6313
6314         New module 'exp2'.
6315         * lib/math.in.h (exp2): New declaration.
6316         * lib/exp2.c: New file.
6317         * m4/exp2.m4: New file.
6318         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
6319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
6320         REPLACE_EXP2.
6321         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
6322         REPLACE_EXP2.
6323         * modules/exp2: New file.
6324         * tests/test-math-c++.cc: Check the declaration of exp2.
6325         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
6326         and OpenBSD problems.
6327
6328 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
6329
6330         savedir: fix comment typo
6331         * lib/savedir.c (savedirstream): Fix typo in comment.
6332
6333 2012-03-08  Bruno Haible  <bruno@clisp.org>
6334
6335         test-readtokens.c: use const; remove unwarranted cast
6336         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
6337
6338 2012-03-08  Bruno Haible  <bruno@clisp.org>
6339
6340         fmal: Avoid compilation error on AIX.
6341         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
6342         AIX 5.2..7.1.
6343
6344 2012-03-08  Bruno Haible  <bruno@clisp.org>
6345
6346         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
6347         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
6348         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
6349         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
6350         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
6351         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
6352         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
6353
6354 2012-03-08  Bruno Haible  <bruno@clisp.org>
6355
6356         remainderf: Override buggy system function on IRIX 6.5.
6357         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
6358         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
6359         when it exists.
6360         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
6361
6362 2012-03-08  Jim Meyering  <meyering@redhat.com>
6363
6364         test-readtokens.c: avoid const-related compilation warnings
6365         * tests/test-readtokens.c: Avoid const-related compilation warnings.
6366
6367 2012-03-07  Jim Meyering  <meyering@redhat.com>
6368             Bruno Haible  <bruno@clisp.org>
6369
6370         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
6371         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
6372         tests/randomd.c.
6373         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
6374         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
6375         tests/randoml.c.
6376         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
6377
6378 2012-03-07  Bruno Haible  <bruno@clisp.org>
6379
6380         expm1l: Avoid compilation error on AIX.
6381         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
6382         AIX 5.2..7.1.
6383
6384 2012-03-07  Bruno Haible  <bruno@clisp.org>
6385
6386         expm1l: Don't override undeclared system function on IRIX 6.5.
6387         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
6388         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
6389         it exists. Set HAVE_DECL_EXPM1L.
6390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
6391         HAVE_EXPM1L.
6392         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
6393         HAVE_EXPM1L.
6394         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
6395
6396 2012-03-07  Bruno Haible  <bruno@clisp.org>
6397
6398         remainderl: Don't override undeclared system function on IRIX 6.5.
6399         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
6400         HAVE_REMAINDERL.
6401         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
6402         declared when it exists. Set HAVE_DECL_REMAINDERL.
6403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
6404         not HAVE_REMAINDERL.
6405         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
6406         HAVE_REMAINDERL.
6407         * doc/posix-functions/remainderl.texi: Mention missing declaration
6408         problem.
6409
6410 2012-03-07  Bruno Haible  <bruno@clisp.org>
6411
6412         rintf: Don't override undeclared system function on IRIX 6.5.
6413         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
6414         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
6415         exists. Set HAVE_DECL_RINTF.
6416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
6417         HAVE_RINTF.
6418         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
6419         HAVE_RINTF.
6420         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
6421
6422 2012-03-07  Bruno Haible  <bruno@clisp.org>
6423
6424         roundl: Avoid compilation error on AIX.
6425         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
6426         AIX 5.2..7.1.
6427
6428 2012-03-07  Bruno Haible  <bruno@clisp.org>
6429
6430         roundl: Don't override undeclared system function on IRIX 6.5.
6431         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
6432         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
6433         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6434         * modules/roundl (configure.ac): For replacement code, test
6435         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
6436         (Depends-on): Update conditions.
6437         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
6438
6439 2012-03-07  Bruno Haible  <bruno@clisp.org>
6440
6441         roundf: Don't override undeclared system function on IRIX 6.5.
6442         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
6443         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
6444         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6445         * modules/roundf (configure.ac): For replacement code, test
6446         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
6447         (Depends-on): Update conditions.
6448         * modules/roundf-ieee (Depends-on): Update conditions.
6449         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
6450
6451 2012-03-07  Bruno Haible  <bruno@clisp.org>
6452
6453         round: Don't override undeclared system function on IRIX 6.5.
6454         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
6455         argument.
6456         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
6457         also when it is not declared. Set HAVE_ROUND. For replacement code,
6458         test HAVE_ROUND, not HAVE_DECL_ROUND.
6459         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
6460         not HAVE_DECL_ROUND.
6461         (Depends-on): Update conditions.
6462         * modules/round-ieee (Depends-on): Update conditions.
6463         * doc/posix-functions/round.texi: Mention the IRIX problem.
6464
6465 2012-03-07  Bruno Haible  <bruno@clisp.org>
6466
6467         copysignf: Don't override undeclared system function on IRIX 6.5.
6468         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
6469         HAVE_COPYSIGNF.
6470         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
6471         declared when it exists. Set HAVE_DECL_COPYSIGNF.
6472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
6473         not HAVE_COPYSIGNF.
6474         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
6475         HAVE_COPYSIGNF.
6476         * doc/posix-functions/copysignf.texi: Mention missing declaration
6477         problem.
6478
6479 2012-03-07  Jim Meyering  <meyering@redhat.com>
6480
6481         readtokens: add tests
6482         * modules/readtokens-tests: New file.
6483         * tests/test-readtokens.c: New file.
6484
6485 2012-03-07  Jim Meyering  <meyering@redhat.com>
6486
6487         quotearg: the module must now include quote.h
6488         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
6489         So must the module.
6490         * modules/quotearg (Files): Add quote.h.
6491
6492 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
6493
6494         readtokens: avoid core dumps with unusual calling patterns
6495         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
6496         * lib/readtokens.c: Include limits.h.
6497         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
6498         (readtoken): Don't cache the delimiters; the cache code was buggy
6499         if !delim && saved_delim, or if the new n_delim differs from the old.
6500         Also, it wasn't thread-safe.
6501
6502 2012-03-07  Bruno Haible  <bruno@clisp.org>
6503
6504         quote: Adhere to common module description layout.
6505         * modules/quote (Makefile.am): Add back empty section.
6506
6507 2012-03-06  Akim Demaille  <demaille@gostai.com>
6508
6509         quote: fuse into quotearg
6510         This patch is made for the benefit of Bison.
6511         quote does not leave the choice of the quoting style to the user.
6512         quoting_style provides poor customizability, yet quoting_options,
6513         which is very rich, is hidden inside quotearg.c.  So in order to
6514         allow quote customization, move its implementation to quotearg.c.
6515         * lib/quote.c: Remove.
6516         * modules/quote: Adjust.
6517         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
6518         warning: provide all the members of literal structs.
6519         (quote_quoting_options): New.
6520         (quote, quote_n): Import implementation from quote.c.
6521         * lib/quote.h: Import the comments from quote.c.
6522         (quote_quoting_options): New.
6523
6524 2012-03-06  Bruno Haible  <bruno@clisp.org>
6525
6526         Tests for module 'expm1l-ieee'.
6527         * modules/expm1l-ieee-tests: New file.
6528         * tests/test-expm1l-ieee.c: New file.
6529
6530         New module 'expm1l-ieee'.
6531         * modules/expm1l-ieee: New file.
6532
6533         Tests for module 'expm1f-ieee'.
6534         * modules/expm1f-ieee-tests: New file.
6535         * tests/test-expm1f-ieee.c: New file.
6536
6537         New module 'expm1f-ieee'.
6538         * modules/expm1f-ieee: New file.
6539
6540         Tests for module 'expm1-ieee'.
6541         * modules/expm1-ieee-tests: New file.
6542         * tests/test-expm1-ieee.c: New file.
6543         * tests/test-expm1-ieee.h: New file.
6544
6545         New module 'expm1-ieee'.
6546         * modules/expm1-ieee: New file.
6547         * m4/expm1-ieee.m4: New file.
6548         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
6549         whether expm1 works with a minus zero argument. Replace it if not.
6550         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
6551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
6552         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
6553         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
6554         (Depends-on): Update conditions.
6555         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
6556         AIX problem.
6557
6558 2012-03-06  Bruno Haible  <bruno@clisp.org>
6559
6560         Work around expm1f bug on IRIX 6.5.
6561         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
6562         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
6563         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
6564         not work.
6565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
6566         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
6567         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
6568         (Depends-on): Update conditions.
6569         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
6570
6571 2012-03-06  Bruno Haible  <bruno@clisp.org>
6572
6573         Tests for module 'expm1l'.
6574         * modules/expm1l-tests: New file.
6575         * tests/test-expm1l.c: New file.
6576
6577         New module 'expm1l'.
6578         * lib/math.in.h (expm1l): New declaration.
6579         * lib/expm1l.c: New file.
6580         * m4/expm1l.m4: New file.
6581         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
6582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
6583         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
6584         * modules/expm1l: New file.
6585         * tests/test-math-c++.cc: Check the declaration of expm1l.
6586         * doc/posix-functions/expm1l.texi: Mention the new module.
6587
6588 2012-03-06  Bruno Haible  <bruno@clisp.org>
6589
6590         Tests for module 'expm1f'.
6591         * modules/expm1f-tests: New file.
6592         * tests/test-expm1f.c: New file.
6593
6594         New module 'expm1f'.
6595         * lib/math.in.h (expm1f): New declaration.
6596         * lib/expm1f.c: New file.
6597         * m4/expm1f.m4: New file.
6598         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
6599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
6600         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
6601         * modules/expm1f: New file.
6602         * tests/test-math-c++.cc: Check the declaration of expm1f.
6603         * doc/posix-functions/expm1f.texi: Mention the new module.
6604
6605 2012-03-06  Bruno Haible  <bruno@clisp.org>
6606
6607         Tests for module 'expm1'.
6608         * modules/expm1-tests: New file.
6609         * tests/test-expm1.c: New file.
6610         * tests/test-expm1.h: New file.
6611
6612         New module 'expm1'.
6613         * lib/math.in.h (expm1): New declaration.
6614         * lib/expm1.c: New file.
6615         * m4/expm1.m4: New file.
6616         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
6617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
6618         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
6619         * modules/expm1: New file.
6620         * tests/test-math-c++.cc: Check the declaration of expm1.
6621         * doc/posix-functions/expm1.texi: Mention the new module.
6622
6623 2012-03-06  Bruno Haible  <bruno@clisp.org>
6624
6625         math: Ensure declarations of math functions.
6626         * modules/acosf (Depends-on): Add 'extensions'.
6627         * modules/asinf (Depends-on): Likewise.
6628         * modules/atan2f (Depends-on): Likewise.
6629         * modules/atanf (Depends-on): Likewise.
6630         * modules/cbrt (Depends-on): Likewise.
6631         * modules/cbrtf (Depends-on): Likewise.
6632         * modules/cbrtl (Depends-on): Likewise.
6633         * modules/copysignf (Depends-on): Likewise.
6634         * modules/copysignl (Depends-on): Likewise.
6635         * modules/cosf (Depends-on): Likewise.
6636         * modules/coshf (Depends-on): Likewise.
6637         * modules/expf (Depends-on): Likewise.
6638         * modules/fabsf (Depends-on): Likewise.
6639         * modules/fabsl (Depends-on): Likewise.
6640         * modules/fmaf (Depends-on): Likewise.
6641         * modules/fmal (Depends-on): Likewise.
6642         * modules/fmodf (Depends-on): Likewise.
6643         * modules/fmodl (Depends-on): Likewise.
6644         * modules/frexpf (Depends-on): Likewise.
6645         * modules/frexpl (Depends-on): Likewise.
6646         * modules/hypot (Depends-on): Likewise.
6647         * modules/hypotf (Depends-on): Likewise.
6648         * modules/hypotl (Depends-on): Likewise.
6649         * modules/ldexpf (Depends-on): Likewise.
6650         * modules/ldexpl (Depends-on): Likewise.
6651         * modules/log10f (Depends-on): Likewise.
6652         * modules/log10l (Depends-on): Likewise.
6653         * modules/log1p (Depends-on): Likewise.
6654         * modules/logb (Depends-on): Likewise.
6655         * modules/logf (Depends-on): Likewise.
6656         * modules/modff (Depends-on): Likewise.
6657         * modules/modfl (Depends-on): Likewise.
6658         * modules/powf (Depends-on): Likewise.
6659         * modules/remainderf (Depends-on): Likewise.
6660         * modules/remainderl (Depends-on): Likewise.
6661         * modules/rintf (Depends-on): Likewise.
6662         * modules/rintl (Depends-on): Likewise.
6663         * modules/sinf (Depends-on): Likewise.
6664         * modules/sinhf (Depends-on): Likewise.
6665         * modules/sqrtf (Depends-on): Likewise.
6666         * modules/tanf (Depends-on): Likewise.
6667         * modules/tanhf (Depends-on): Likewise.
6668         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
6669         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
6670         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
6671         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
6672         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
6673         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
6674         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
6675         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
6676         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
6677         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
6678         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
6679         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
6680         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
6681         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
6682         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
6683         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
6684         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6685         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6686         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
6687         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
6688         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6689         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6690         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6691         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
6692         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6693         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6694         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
6695         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6696         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6697         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6698         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6699         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
6700         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6701         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6702         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6703         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6704         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
6705         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
6706         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
6707         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
6708         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
6709
6710 2012-03-06  Bruno Haible  <bruno@clisp.org>
6711
6712         math: Update module names in warnings.
6713         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6714         tanl): Use specific module name in warn-on-use warning.
6715
6716 2012-03-06  Bruno Haible  <bruno@clisp.org>
6717
6718         expl: Simplify computation.
6719         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
6720
6721 2012-03-05  Bruno Haible  <bruno@clisp.org>
6722
6723         exp* tests: More tests.
6724         * tests/test-exp.h: New file.
6725         * tests/test-exp.c: Include <float.h> and test-exp.h.
6726         (main): Invoke test_function.
6727         * tests/test-expf.c: Include <float.h> and test-exp.h.
6728         (main): Invoke test_function.
6729         * tests/test-expl.c: Include <float.h> and test-exp.h.
6730         (main): Invoke test_function.
6731         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
6732         (Makefile.am): Add randomd.c to test_exp_SOURCES.
6733         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
6734         (Makefile.am): Add randomf.c to test_expf_SOURCES.
6735         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
6736         (Depends-on): Add 'float'.
6737         (Makefile.am): Add randoml.c to test_expl_SOURCES.
6738
6739         expl: Fix precision of computed result.
6740         * lib/expl.c: Completely rewritten.
6741         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
6742         (Maintainer): Add me.
6743         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
6744
6745 2012-03-05  Bruno Haible  <bruno@clisp.org>
6746
6747         cbrt* tests: More tests.
6748         * tests/test-cbrt.h: New file.
6749         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
6750         (main): Invoke test_function.
6751         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
6752         (main): Invoke test_function.
6753         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
6754         (main): Invoke test_function.
6755         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
6756         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
6757         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
6758         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
6759         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
6760         (Depends-on): Add 'float'.
6761         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
6762
6763 2012-03-05  Bruno Haible  <bruno@clisp.org>
6764
6765         hypot* tests: More tests.
6766         * tests/test-hypot.h: New file, partially extracted from
6767         tests/test-hypotl.c.
6768         * tests/test-hypot.c: Include test-hypot.h.
6769         (main): Invoke test_function.
6770         * tests/test-hypotf.c: Include test-hypot.h.
6771         (main): Invoke test_function.
6772         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
6773         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
6774         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
6775         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
6776         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
6777         tests/randomf.c.
6778         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
6779         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
6780         tests/randoml.c.
6781         (Depends-on): Add 'fpucw', 'float'.
6782         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
6783
6784 2012-03-05  Bruno Haible  <bruno@clisp.org>
6785
6786         fpucw: Doc about FreeBSD.
6787         * lib/fpucw.h: Mention FreeBSD in comments.
6788
6789 2012-03-04  Bruno Haible  <bruno@clisp.org>
6790
6791         sqrt* tests: More tests.
6792         * tests/test-sqrt.h: New file.
6793         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
6794         (main): Invoke test_function.
6795         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
6796         (main): Invoke test_function.
6797         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
6798         (main): Invoke test_function.
6799         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
6800         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
6801         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
6802         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
6803         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
6804         (Depends-on): Add 'float'.
6805         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
6806
6807 2012-03-04  Bruno Haible  <bruno@clisp.org>
6808
6809         remainder* tests: More tests.
6810         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
6811         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
6812         (main): Invoke test_function.
6813         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
6814         (main): Invoke test_function.
6815         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
6816         (main): Invoke test_function.
6817         * modules/remainder-tests (Files): Add tests/test-remainder.h,
6818         tests/randomd.c.
6819         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
6820         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
6821         tests/randomf.c.
6822         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
6823         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
6824         tests/randoml.c.
6825         (Depends-on): Add 'float'.
6826         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
6827
6828 2012-03-04  Bruno Haible  <bruno@clisp.org>
6829
6830         remainder, remainderf, remainderl: Fix computation for large quotients.
6831         * lib/remainder.c: Completely rewritten.
6832         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6833         USE_FLOAT.
6834         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6835         USE_LONG_DOUBLE.
6836         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6837         isnand, isinf. Remove round, fma.
6838         * modules/remainderf (Files): Add lib/remainder.c.
6839         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6840         Remove roundf, fmaf.
6841         * modules/remainderl (Files): Add lib/remainder.c.
6842         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6843         isinf. Remove roundl, fmal.
6844         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6845         REMAINDER_LIBM.
6846         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6847         REMAINDERF_LIBM.
6848         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6849         REMAINDERL_LIBM.
6850
6851 2012-03-04  Bruno Haible  <bruno@clisp.org>
6852
6853         fmod* tests: More tests.
6854         * tests/test-fmod.h (my_ldexp): New function.
6855         (test_function): Reduce amount of random numbers to test. Add tests
6856         of very large quotients x / y.
6857         * tests/test-fmod.c (MAX_EXP): New macro.
6858         * tests/test-fmodf.c (MAX_EXP): Likewise.
6859         * tests/test-fmodl.c (MAX_EXP): Likewise.
6860
6861 2012-03-04  Bruno Haible  <bruno@clisp.org>
6862
6863         fmod, fmodl: Fix computation for large quotients x / y.
6864         * lib/fmod.c: Completely rewritten.
6865         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6866         USE_LONG_DOUBLE.
6867         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6868         isnand. Remove fma.
6869         * modules/fmodl (Files): Add lib/fmod.c.
6870         (Depends-on): Add float, isfinite, signbit, fabsl,
6871         frexpl, ldexpl, isnanl. Remove fma.
6872         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6873         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6874
6875 2012-03-03  Bruno Haible  <bruno@clisp.org>
6876
6877         fmod* tests: More tests.
6878         * tests/test-fmod.h: New file.
6879         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6880         (main): Invoke test_function.
6881         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6882         (main): Invoke test_function.
6883         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6884         (main): Invoke test_function.
6885         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6886         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6887         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6888         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6889         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6890         (Depends-on): Add 'float'.
6891         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6892
6893 2012-03-03  Bruno Haible  <bruno@clisp.org>
6894
6895         rint* tests: More tests.
6896         * tests/test-rint.h: New file, partially extracted from
6897         tests/test-rintl.c.
6898         * tests/test-rint.c: Include test-rint.h.
6899         (main): Invoke test_function.
6900         * tests/test-rintf.c: Include test-rint.h.
6901         (main): Invoke test_function.
6902         * tests/test-rintl.c: Include test-rint.h.
6903         (main): Invoke test_function.
6904         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6905         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6906         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6907         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6908         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6909         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6910
6911 2012-03-03  Bruno Haible  <bruno@clisp.org>
6912
6913         modf* tests: More tests.
6914         * tests/test-modf.h: New file.
6915         * tests/test-modf.c: Include <float.h> and test-modf.h.
6916         (main): Invoke test_function.
6917         * tests/test-modff.c: Include <float.h> and test-modf.h.
6918         (main): Invoke test_function.
6919         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6920         (main): Invoke test_function.
6921         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6922         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6923         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6924         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6925         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6926         (Depends-on): Add 'float'.
6927         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6928
6929 2012-03-03  Bruno Haible  <bruno@clisp.org>
6930
6931         fabs* tests: More tests.
6932         * tests/test-fabs.h: New file, partially extracted from
6933         tests/test-fabsl.c.
6934         * tests/test-fabs.c (RANDOM): New macro.
6935         * tests/test-fabsf.c (RANDOM): New macro.
6936         * tests/test-fabsl.c (RANDOM): New macro.
6937         * modules/fabs-tests (Files): Add tests/randomd.c.
6938         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6939         * modules/fabsf-tests (Files): Add tests/randomf.c.
6940         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6941         * modules/fabsl-tests (Files): Add tests/randoml.c.
6942         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6943
6944 2012-03-03  Bruno Haible  <bruno@clisp.org>
6945
6946         ldexp* tests: More tests.
6947         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6948         * tests/test-ldexp.c (RANDOM): New macro.
6949         * tests/test-ldexpf.c (RANDOM): New macro.
6950         * tests/test-ldexpl.c (RANDOM): New macro.
6951         * modules/ldexp-tests (Files): Add tests/randomd.c.
6952         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6953         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6954         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6955         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6956         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6957
6958 2012-03-03  Bruno Haible  <bruno@clisp.org>
6959
6960         frexp* tests: More tests.
6961         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6962         * tests/test-frexp.c (RANDOM): New macro.
6963         * tests/test-frexpf.c (RANDOM): New macro.
6964         * tests/test-frexpl.c (RANDOM): New macro.
6965         * modules/frexp-tests (Files): Add tests/randomd.c.
6966         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6967         * modules/frexpf-tests (Files): Add tests/randomf.c.
6968         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6969         * modules/frexpl-tests (Files): Add tests/randoml.c.
6970         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6971
6972 2012-03-03  Bruno Haible  <bruno@clisp.org>
6973
6974         Support for pseudo-random numbers in tests.
6975         * tests/randomf.c: New file.
6976         * tests/randomd.c: New file.
6977         * tests/randoml.c: New file.
6978         * tests/macros.h (randomf, randomd, randoml): New declarations.
6979
6980 2012-03-03  Bruno Haible  <bruno@clisp.org>
6981
6982         frexp* tests: Refactor.
6983         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6984         * tests/test-frexp.c: Include and use it.
6985         * tests/test-frexpf.c: Likewise.
6986         * tests/test-frexpl.c: Likewise.
6987         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6988         * modules/frexpf-tests (Files): Likewise.
6989         * modules/frexpl-tests (Files): Likewise.
6990
6991 2012-03-02  Jim Meyering  <meyering@redhat.com>
6992
6993         maint: don't specify XZ_OPT=-9ev in dist-related rule
6994         Using xz's -9 option is warranted only if you have a very large
6995         tarball (see xz's documentation for the sizes vs. presets), and
6996         requires 64MiB of memory at decompression time.
6997         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6998         Automake's default of just "-e" is fine.  Override on a
6999         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7000
7001 2012-03-01  Eric Blake  <eblake@redhat.com>
7002
7003         maint.mk: allow announcement for non-gnulib project
7004         * maint.mk (announcement): Skip gnulib version if not used.
7005
7006 2012-03-01  Jim Meyering  <meyering@redhat.com>
7007
7008         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7009         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7010         envvar settings cannot interfere.  Otherwise, setting envvars like
7011         prohibit=foo require=bar, etc. would cause spurious test failures.
7012
7013 2012-03-01  Eric Blake  <eblake@redhat.com>
7014
7015         maint.mk: add per-line exclusions to prohibitions
7016         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7017         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7018         (sc_const_long_option): Use it.
7019
7020 2012-03-01  Bruno Haible  <bruno@clisp.org>
7021
7022         Tests for module 'expl-ieee'.
7023         * modules/expl-ieee-tests: New file.
7024         * tests/test-expl-ieee.c: New file.
7025
7026         New module 'expl-ieee'.
7027         * modules/expl-ieee: New file.
7028
7029         Tests for module 'exp-ieee'.
7030         * modules/exp-ieee-tests: New file.
7031         * tests/test-exp-ieee.c: New file.
7032
7033         New module 'exp-ieee'.
7034         * modules/exp-ieee: New file.
7035
7036         Tests for module 'expf-ieee'.
7037         * modules/expf-ieee-tests: New file.
7038         * tests/test-expf-ieee.c: New file.
7039         * tests/test-exp-ieee.h: New file.
7040
7041         New module 'expf-ieee'.
7042         * modules/expf-ieee: New file.
7043
7044 2012-02-29  Bruno Haible  <bruno@clisp.org>
7045
7046         cbrtl-ieee: Work around test failure on IRIX 6.5.
7047         * m4/cbrtl-ieee.m4: New file.
7048         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7049         test whether cbrtl works with a minus zero argument. Replace it if not.
7050         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7052         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7053         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7054         (Depends-on): Update conditions.
7055         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7056         m4/signbit.m4.
7057         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7058         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7059         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7060
7061         Tests for module 'cbrtl-ieee'.
7062         * modules/cbrtl-ieee-tests: New file.
7063         * tests/test-cbrtl-ieee.c: New file.
7064
7065         New module 'cbrtl-ieee'.
7066         * modules/cbrtl-ieee: New file.
7067
7068         Tests for module 'cbrt-ieee'.
7069         * modules/cbrt-ieee-tests: New file.
7070         * tests/test-cbrt-ieee.c: New file.
7071
7072         New module 'cbrt-ieee'.
7073         * modules/cbrt-ieee: New file.
7074
7075         Tests for module 'cbrtf-ieee'.
7076         * modules/cbrtf-ieee-tests: New file.
7077         * tests/test-cbrtf-ieee.c: New file.
7078         * tests/test-cbrt-ieee.h: New file.
7079
7080         New module 'cbrtf-ieee'.
7081         * modules/cbrtf-ieee: New file.
7082
7083 2012-02-29  Bruno Haible  <bruno@clisp.org>
7084
7085         cbrtf: Work around bug in IRIX 6.5 system function.
7086         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
7087         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
7088         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
7089         work.
7090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
7091         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
7092         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
7093         (Depends-on): Update conditions.
7094         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
7095
7096 2012-02-29  Bruno Haible  <bruno@clisp.org>
7097
7098         Tests for module 'cbrtl'.
7099         * modules/cbrtl-tests: New file.
7100         * tests/test-cbrtl.c: New file.
7101
7102         New module 'cbrtl'.
7103         * lib/math.in.h (cbrtl): New declaration.
7104         * lib/cbrtl.c: New file.
7105         * m4/cbrtl.m4: New file.
7106         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
7107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
7108         HAVE_DECL_CBRTL.
7109         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
7110         HAVE_DECL_CBRTL.
7111         * modules/cbrtl: New file.
7112         * tests/test-math-c++.cc: Check the declaration of cbrtl.
7113         * doc/posix-functions/cbrtl.texi: Mention the new module.
7114
7115 2012-02-29  Bruno Haible  <bruno@clisp.org>
7116
7117         Tests for module 'cbrtf'.
7118         * modules/cbrtf-tests: New file.
7119         * tests/test-cbrtf.c: New file.
7120
7121         New module 'cbrtf'.
7122         * lib/math.in.h (cbrtf): New declaration.
7123         * lib/cbrtf.c: New file.
7124         * m4/cbrtf.m4: New file.
7125         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
7126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
7127         HAVE_DECL_CBRTF.
7128         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
7129         HAVE_DECL_CBRTF.
7130         * modules/cbrtf: New file.
7131         * tests/test-math-c++.cc: Check the declaration of cbrtf.
7132         * doc/posix-functions/cbrtf.texi: Mention the new module.
7133
7134 2012-02-29  Bruno Haible  <bruno@clisp.org>
7135
7136         cbrt: Provide replacement on MSVC and Minix.
7137         * lib/math.in.h (cbrt): New declaration.
7138         * lib/cbrt.c: New file.
7139         * m4/cbrt.m4: New file.
7140         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
7141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
7142         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
7143         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
7144         (Depends-on): Add dependencies.
7145         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
7146         * tests/test-math-c++.cc: Check the declaration of cbrt.
7147         * doc/posix-functions/cbrt.texi: Mention that the module provides a
7148         replacement.
7149
7150 2012-02-29  Bruno Haible  <bruno@clisp.org>
7151
7152         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
7153         * m4/hypotl-ieee.m4: New file.
7154         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
7155         test whether hypotl works with mixed NaN and Infinity arguments.
7156         Replace it if not.
7157         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
7158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
7159         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
7160         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
7161         (Depends-on): Update conditions.
7162         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
7163         (Depends-on): Add hypot-ieee.
7164         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
7165         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
7166
7167         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
7168         * m4/hypotf-ieee.m4: New file.
7169         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
7170         test whether hypotf works with mixed NaN and Infinity arguments.
7171         Replace it if not.
7172         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
7173         (Depends-on): Add hypot-ieee.
7174         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
7175         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
7176
7177         hypot-ieee: Work around test failure on OSF/1 and native Windows.
7178         * lib/math.in.h (hypot): New declaration.
7179         * lib/hypot.c: New file.
7180         * m4/hypot-ieee.m4: New file.
7181         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
7182         whether hypot works with mixed NaN and Infinity arguments. Replace it
7183         if not.
7184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
7185         REPLACE_HYPOT.
7186         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
7187         * modules/hypot (Files): Add lib/hypot.c.
7188         (Depends-on): Add dependencies.
7189         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
7190         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
7191         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
7192         * tests/test-math-c++.cc: Check the declaration of hypot.
7193         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
7194
7195         Tests for module 'hypotl-ieee'.
7196         * modules/hypotl-ieee-tests: New file.
7197         * tests/test-hypotl-ieee.c: New file.
7198
7199         New module 'hypotl-ieee'.
7200         * modules/hypotl-ieee: New file.
7201
7202         Tests for module 'hypot-ieee'.
7203         * modules/hypot-ieee-tests: New file.
7204         * tests/test-hypot-ieee.c: New file.
7205
7206         New module 'hypot-ieee'.
7207         * modules/hypot-ieee: New file.
7208
7209         Tests for module 'hypotf-ieee'.
7210         * modules/hypotf-ieee-tests: New file.
7211         * tests/test-hypotf-ieee.c: New file.
7212         * tests/test-hypot-ieee.h: New file.
7213
7214         New module 'hypotf-ieee'.
7215         * modules/hypotf-ieee: New file.
7216
7217 2012-02-29  Bruno Haible  <bruno@clisp.org>
7218
7219         Remove unused variables.
7220         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
7221         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7222         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
7223         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7224
7225 2012-02-29  Eric Blake  <eblake@redhat.com>
7226
7227         termios: fix pid_t always, not just for tcgetsid
7228         * doc/posix-headers/termios.texi (termios.h): Mention problem.
7229         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
7230         just when building tcgetsid.
7231
7232 2012-02-29  Bruno Haible  <bruno@clisp.org>
7233
7234         Tests for module 'hypotl'.
7235         * modules/hypotl-tests: New file.
7236         * tests/test-hypotl.c: New file.
7237
7238         New module 'hypotl'.
7239         * lib/math.in.h (hypotl): New declaration.
7240         * lib/hypotl.c: New file.
7241         * m4/hypotl.m4: New file.
7242         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
7244         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
7245         * modules/hypotl: New file.
7246         * tests/test-math-c++.cc: Check the hypotl declaration.
7247         * doc/posix-functions/hypotl.texi: Mention the new module.
7248
7249 2012-02-29  Eric Blake  <eblake@redhat.com>
7250
7251         tcgetsid: fix cygwin header bug
7252         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
7253
7254         docs: update cygwin progress
7255         * doc/posix-functions/llround.texi (llround): Added in cygwin
7256         1.7.8.
7257         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
7258         * doc/glibc-functions/program_invocation_name.texi
7259         (program_invocation_name): Likewise.
7260         * doc/glibc-functions/program_invocation_short_name.texi
7261         (program_invocation_short_name): Likewise.
7262         * doc/glibc-functions/madvise.texi (madvise): Likewise.
7263         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
7264         Likewise.
7265         * doc/posix-functions/pthread_spin_destroy.texi
7266         (pthread_spin_destroy): Added in cygwin 1.7.10.
7267         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
7268         Likewise.
7269         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
7270         Likewise.
7271         * doc/posix-functions/pthread_spin_trylock.texi
7272         (pthread_spin_trylock): Likewise.
7273         * doc/posix-functions/pthread_spin_unlock.texi
7274         (pthread_spin_unlock): Likewise.
7275         * doc/posix-functions/pthread_setschedprio.texi
7276         (pthread_setschedprio): Likewise.
7277         * doc/posix-functions/pthread_attr_getstack.texi
7278         (pthread_attr_getstack): Likewise.
7279         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
7280         (pthread_attr_getstackaddr): Likewise.
7281         * doc/glibc-functions/pthread_getattr_np.texi
7282         (pthread_getattr_np): Likewise.
7283         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
7284         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
7285         * doc/posix-functions/clock_settime.texi (clock_settime):
7286         Likewise.
7287         * doc/posix-functions/pthread_attr_getguardsize.texi
7288         (pthread_attr_getguardsize): Likewise.
7289         * doc/posix-functions/pthread_attr_setguardsize.texi
7290         (pthread_attr_setguardsize): Likewise.
7291         * doc/posix-functions/pthread_attr_setstack.texi
7292         (pthread_attr_setstack): Likewise.
7293         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
7294         (pthread_attr_setstackaddr): Likewise.
7295         * doc/posix-functions/clock_getcpuclockid.texi
7296         (clock_getcpuclockid): Likewise.
7297         * doc/posix-functions/pthread_getcpuclockid.texi
7298         (pthread_getcpuclockid): Likewise.
7299         * doc/glibc-functions/error.texi (error): Likewise.
7300         * doc/glibc-functions/error_at_line.texi (error_at_line):
7301         Likewise.
7302         * doc/glibc-functions/error_message_count.texi
7303         (error_message_count): Likewise.
7304         * doc/glibc-functions/error_one_per_line.texi
7305         (error_one_per_line): Likewise.
7306         * doc/glibc-functions/error_print_progname.texi
7307         (error_print_progname): Likewise.
7308         * doc/posix-functions/pthread_condattr_getclock.texi
7309         (pthread_condattr_getclock): Likewise.
7310         * doc/posix-functions/pthread_condattr_setclock.texi
7311         (pthread_condattr_setclock): Likewise.
7312         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
7313         Likewise.
7314         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
7315         * doc/glibc-functions/getpt.texi (getpt): Likewise.
7316         * doc/glibc-functions/get_current_dir_name.texi
7317         (get_current_dir_name): Likewise.
7318         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
7319         Likewise.
7320         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
7321         wrong return type.
7322         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
7323         1.7.11.
7324
7325 2012-02-29  Bruno Haible  <bruno@clisp.org>
7326
7327         Tests for module 'hypotf'.
7328         * modules/hypotf-tests: New file.
7329         * tests/test-hypotf.c: New file.
7330
7331         New module 'hypotf'.
7332         * lib/math.in.h (hypotf): New declaration.
7333         * lib/hypotf.c: New file.
7334         * m4/hypotf.m4: New file.
7335         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
7336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
7337         REPLACE_HYPOTF.
7338         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
7339         REPLACE_HYPOTF.
7340         * modules/hypotf: New file.
7341         * tests/test-math-c++.cc: Check the hypotf declaration.
7342         * doc/posix-functions/hypotf.texi: Mention the new module.
7343
7344         hypot: Prepare for hypotf module.
7345         * m4/hypot.m4: New file.
7346         * modules/hypot (Files): Add m4/hypot.m4.
7347         (configure.ac): Invoke gl_FUNC_HYPOT.
7348
7349 2012-02-29  Bruno Haible  <bruno@clisp.org>
7350
7351         hypot tests: More tests.
7352         * tests/test-hypot.c: Include <float.h>.
7353         (main): Add tests about overflow and underflow.
7354
7355 2012-02-29  Bruno Haible  <bruno@clisp.org>
7356
7357         math code: Add comments.
7358         * lib/acosl.c: Add comment about related glibc source files.
7359         * lib/asinl.c: Likewise.
7360         * lib/atanl.c: Likewise.
7361         * lib/expl.c: Likewise.
7362         * lib/logl.c: Likewise.
7363         * lib/sincosl.c: Likewise.
7364         * lib/sinl.c: Likewise.
7365         * lib/tanl.c: Likewise.
7366         * lib/trigl.c: Likewise.
7367         * lib/cosl.c: Likewise. Fix comments.
7368
7369 2012-02-28  Bruno Haible  <bruno@clisp.org>
7370
7371         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
7372         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
7373         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
7374         HUGE_VALL are defined.
7375         (numeric_equald): Renamed from numeric_equal.
7376         (numeric_equalf, numeric_equall): New functions.
7377         (main): Check also HUGE_VALF, HUGE_VALL.
7378         * modules/math-tests (Files): Add tests/macros.h.
7379         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
7380         HUGE_VALL.
7381
7382 2012-02-28  Bruno Haible  <bruno@clisp.org>
7383
7384         doc: Move ISO C11 feature notes into POSIX chapters.
7385         * doc/posix-functions/aligned_alloc.texi: Renamed from
7386         doc/glibc-functions/aligned_alloc.texi.
7387         * doc/posix-functions/quick_exit.texi: Renamed from
7388         doc/glibc-functions/quick_exit.texi.
7389         * doc/posix-headers/uchar.texi: Renamed from
7390         doc/glibc-headers/uchar.texi.
7391         * doc/posix-functions/c16rtomb.texi: Renamed from
7392         doc/glibc-functions/c16rtomb.texi.
7393         * doc/posix-functions/c32rtomb.texi: Renamed from
7394         doc/glibc-functions/c32rtomb.texi.
7395         * doc/posix-functions/mbrtoc16.texi: Renamed from
7396         doc/glibc-functions/mbrtoc16.texi.
7397         * doc/posix-functions/mbrtoc32.texi: Renamed from
7398         doc/glibc-functions/mbrtoc32.texi.
7399         * doc/gnulib.texi: Update.
7400         (Glibc uchar.h): Remove section.
7401         Suggested by Eric Blake.
7402
7403 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
7404
7405         stdnoreturn: port to MSVC better
7406         MSVC standard headers use __declspec(noreturn), so #define noreturn
7407         to empty on that platform.  Reported by Bruno Haible in
7408         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
7409         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
7410         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
7411
7412 2012-02-28  Bruno Haible  <bruno@clisp.org>
7413
7414         doc: Mention new glibc headers and functions.
7415         * doc/glibc-headers/uchar.texi: New file.
7416         * doc/glibc-functions/aligned_alloc.texi: New file.
7417         * doc/glibc-functions/c16rtomb.texi: New file.
7418         * doc/glibc-functions/c32rtomb.texi: New file.
7419         * doc/glibc-functions/clock_adjtime.texi: New file.
7420         * doc/glibc-functions/fanotify_init.texi: New file.
7421         * doc/glibc-functions/fanotify_mark.texi: New file.
7422         * doc/glibc-functions/inet6_opt_append.texi: New file.
7423         * doc/glibc-functions/inet6_opt_find.texi: New file.
7424         * doc/glibc-functions/inet6_opt_finish.texi: New file.
7425         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
7426         * doc/glibc-functions/inet6_opt_init.texi: New file.
7427         * doc/glibc-functions/inet6_opt_next.texi: New file.
7428         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
7429         * doc/glibc-functions/inet6_rth_add.texi: New file.
7430         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
7431         * doc/glibc-functions/inet6_rth_init.texi: New file.
7432         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
7433         * doc/glibc-functions/inet6_rth_segments.texi: New file.
7434         * doc/glibc-functions/inet6_rth_space.texi: New file.
7435         * doc/glibc-functions/login.texi: New file.
7436         * doc/glibc-functions/mbrtoc16.texi: New file.
7437         * doc/glibc-functions/mbrtoc32.texi: New file.
7438         * doc/glibc-functions/name_to_handle_at.texi: New file.
7439         * doc/glibc-functions/ntp_gettimex.texi: New file.
7440         * doc/glibc-functions/open_by_handle_at.texi: New file.
7441         * doc/glibc-functions/prlimit.texi: New file.
7442         * doc/glibc-functions/process_vm_readv.texi: New file.
7443         * doc/glibc-functions/process_vm_writev.texi: New file.
7444         * doc/glibc-functions/recvmmsg.texi: New file.
7445         * doc/glibc-functions/scandirat.texi: New file.
7446         * doc/glibc-functions/sendmmsg.texi: New file.
7447         * doc/glibc-functions/setns.texi: New file.
7448         * doc/glibc-functions/timespec_get.texi: New file.
7449         * doc/gnulib.texi: Include them.
7450         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
7451         sections.
7452         Reported by Eric Blake.
7453
7454 2012-02-28  Bruno Haible  <bruno@clisp.org>
7455
7456         Avoid compilation errors with MSVC option -fp:strict.
7457         * lib/floor.c: Use MSVC specific pragma fenv_access.
7458         * lib/ceil.c: Likewise.
7459         * lib/trunc.c: Likewise.
7460         * lib/round.c: Likewise.
7461         * lib/rint.c: Likewise.
7462         * lib/fma.c: Likewise.
7463         * lib/integer_length.c: Likewise.
7464         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7466         * tests/test-floor2.c: Likewise.
7467         * tests/test-floorf2.c: Likewise.
7468         * tests/test-ceil2.c: Likewise.
7469         * tests/test-ceilf2.c: Likewise.
7470         * tests/test-trunc2.c: Likewise.
7471         * tests/test-truncf2.c: Likewise.
7472         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7473
7474 2012-02-27  Bruno Haible  <bruno@clisp.org>
7475
7476         Tests for module 'sqrtl-ieee'.
7477         * modules/sqrtl-ieee-tests: New file.
7478         * tests/test-sqrtl-ieee.c: New file.
7479
7480         New module 'sqrtl-ieee'.
7481         * modules/sqrtl-ieee: New file.
7482
7483         Tests for module 'sqrt-ieee'.
7484         * modules/sqrt-ieee-tests: New file.
7485         * tests/test-sqrt-ieee.c: New file.
7486
7487         New module 'sqrt-ieee'.
7488         * modules/sqrt-ieee: New file.
7489
7490         Tests for module 'sqrtf-ieee'.
7491         * modules/sqrtf-ieee-tests: New file.
7492         * tests/test-sqrtf-ieee.c: New file.
7493         * tests/test-sqrt-ieee.h: New file.
7494
7495         New module 'sqrtf-ieee'.
7496         * modules/sqrtf-ieee: New file.
7497
7498 2012-02-27  Bruno Haible  <bruno@clisp.org>
7499
7500         remainderl-ieee: Work around test failure on OSF/1.
7501         * m4/remainderl-ieee.m4: New file.
7502         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
7503         present, test whether remainderl works with a zero second argument.
7504         Replace it if not.
7505         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
7506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
7507         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
7508         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
7509         (Depends-on): Update conditions.
7510         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
7511         (Depends-on): Add remainder-ieee.
7512         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
7513         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
7514         module.
7515
7516         remainderf-ieee: Work around test failure on OSF/1.
7517         * m4/remainderf-ieee.m4: New file.
7518         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
7519         present, test whether remainderf works with a zero second argument.
7520         Replace it if not.
7521         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
7522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
7523         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
7524         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
7525         (Depends-on): Update conditions.
7526         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
7527         (Depends-on): Add remainder-ieee.
7528         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
7529         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
7530         module.
7531
7532         remainder-ieee: Work around test failure on OSF/1.
7533         * m4/remainder-ieee.m4: New file.
7534         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
7535         present, test whether remainder works with a zero second argument.
7536         Replace it if not.
7537         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
7538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
7539         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
7540         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
7541         (Depends-on): Update dependencies.
7542         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
7543         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
7544         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
7545
7546         Tests for module 'remainderl-ieee'.
7547         * modules/remainderl-ieee-tests: New file.
7548         * tests/test-remainderl-ieee.c: New file.
7549
7550         New module 'remainderl-ieee'.
7551         * modules/remainderl-ieee: New file.
7552
7553         Tests for module 'remainder-ieee'.
7554         * modules/remainder-ieee-tests: New file.
7555         * tests/test-remainder-ieee.c: New file.
7556
7557         New module 'remainder-ieee'.
7558         * modules/remainder-ieee: New file.
7559
7560         Tests for module 'remainderf-ieee'.
7561         * modules/remainderf-ieee-tests: New file.
7562         * tests/test-remainderf-ieee.c: New file.
7563         * tests/test-remainder-ieee.h: New file.
7564
7565         New module 'remainderf-ieee'.
7566         * modules/remainderf-ieee: New file.
7567
7568 2012-02-27  Bruno Haible  <bruno@clisp.org>
7569
7570         modff, modfl: Fix configure syntax error.
7571         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
7572         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7573
7574 2012-02-27  Bruno Haible  <bruno@clisp.org>
7575
7576         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
7577         * m4/fmodl-ieee.m4: New file.
7578         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
7579         whether fmodl works with zero arguments. Replace it if not.
7580         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
7581         (Depends-on): Add fmod-ieee.
7582         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
7583         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
7584
7585         fmodf-ieee: Work around test failure on OSF/1.
7586         * m4/fmodf-ieee.m4: New file.
7587         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
7588         whether fmodf works with zero arguments. Replace it if not.
7589         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
7590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
7591         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
7592         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
7593         (Depends-on): Update dependencies.
7594         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
7595         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
7596         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
7597
7598         fmodf-ieee: Work around test failure on MSVC 9.
7599         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
7600         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
7601
7602         fmod-ieee: Work around test failures on OSF/1, mingw.
7603         * m4/fmod-ieee.m4: New file.
7604         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
7605         whether fmod works with zero arguments. Replace it if not.
7606         * lib/math.in.h (fmod): New declaration.
7607         * lib/fmod.c: New file.
7608         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
7609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
7610         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
7611         * modules/fmod (Files): Add lib/fmod.c.
7612         (Depends-on): Add math, isinf, trunc, fma.
7613         (configure.ac): Arrange to compile lib/fmod.c if needed.
7614         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
7615         m4/signbit.m4.
7616         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
7617         * tests/test-math-c++.cc: Check the declaration of fmod.
7618         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
7619
7620         fmodl-ieee: Fix test failures.
7621         * lib/fmodl.c (fmodl): Treat Inf specially.
7622         * modules/fmodl (Depends-on): Add isinf.
7623
7624         Tests for module 'fmodl-ieee'.
7625         * modules/fmodl-ieee-tests: New file.
7626         * tests/test-fmodl-ieee.c: New file.
7627
7628         New module 'fmodl-ieee'.
7629         * modules/fmodl-ieee: New file.
7630
7631         Tests for module 'fmod-ieee'.
7632         * modules/fmod-ieee-tests: New file.
7633         * tests/test-fmod-ieee.c: New file.
7634
7635         New module 'fmod-ieee'.
7636         * modules/fmod-ieee: New file.
7637
7638         Tests for module 'fmodf-ieee'.
7639         * modules/fmodf-ieee-tests: New file.
7640         * tests/test-fmodf-ieee.c: New file.
7641         * tests/test-fmod-ieee.h: New file.
7642
7643         New module 'fmodf-ieee'.
7644         * modules/fmodf-ieee: New file.
7645
7646 2012-02-27  Bruno Haible  <bruno@clisp.org>
7647
7648         Tests for module 'rintl-ieee'.
7649         * modules/rintl-ieee-tests: New file.
7650         * tests/test-rintl-ieee.c: New file.
7651
7652         New module 'rintl-ieee'.
7653         * modules/rintl-ieee: New file.
7654
7655         Tests for module 'rint-ieee'.
7656         * modules/rint-ieee-tests: New file.
7657         * tests/test-rint-ieee.c: New file.
7658
7659         New module 'rint-ieee'.
7660         * modules/rint-ieee: New file.
7661
7662         Tests for module 'rintf-ieee'.
7663         * modules/rintf-ieee-tests: New file.
7664         * tests/test-rintf-ieee.c: New file.
7665         * tests/test-rint-ieee.h: New file.
7666
7667         New module 'rintf-ieee'.
7668         * modules/rintf-ieee: New file.
7669
7670 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
7671
7672         regex: re_search etc. should return -2 when memory exhausted
7673         This bug was uncovered when testing 'grep'.  Without the fix,
7674         re_search and friends return -1 when memory is exhausted, but -1
7675         means no match, and this causes grep to falsely report no-match
7676         instead of memory-exhaustion.  See
7677         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
7678         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
7679         trouble; this can occur if re_search_internal ran out of memory.
7680
7681 2012-02-26  Bruno Haible  <bruno@clisp.org>
7682
7683         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
7684         * m4/modfl-ieee.m4: New file.
7685         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
7686         whether modfl works with Inf. Replace it if not.
7687         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
7688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
7689         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
7690         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
7691         (Depends-on): Update dependencies.
7692         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
7693         m4/signbit.m4.
7694         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
7695         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
7696
7697         modfl-ieee: Fix dependencies.
7698         * modules/modfl-ieee (Depends-on): Add modf-ieee.
7699
7700         modfl-ieee: Fix test failures.
7701         * lib/modfl.c (modfl): Treat NaN and Inf specially.
7702         * modules/modfl (Depends-on): Add isfinite, isinf.
7703
7704         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
7705         * m4/modff-ieee.m4: New file.
7706         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
7707         whether modff works with NaN and Inf. Replace it if not.
7708         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
7709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
7710         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
7711         * modules/modff (configure.ac): Consider REPLACE_MODFF.
7712         (Depends-on): Update dependencies.
7713         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
7714         m4/signbit.m4.
7715         (Depends-on): Add modf-ieee.
7716         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
7717         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
7718
7719         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
7720         * m4/modf-ieee.m4: New file.
7721         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
7722         whether modf works with NaN and Inf. Replace it if not.
7723         * lib/math.in.h (modf): New declaration.
7724         * lib/modf.c: New file.
7725         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
7726         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
7727         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
7728         * modules/modf (Files): Add lib/modf.c.
7729         (Depends-on): Add math, isfinite, trunc, isinf.
7730         (configure.ac): Addrange to compile lib/modf.c if needed.
7731         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
7732         m4/signbit.m4.
7733         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
7734         * tests/test-math-c++.cc: Check the declaration of modf.
7735         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
7736
7737         Tests for module 'modfl-ieee'.
7738         * modules/modfl-ieee-tests: New file.
7739         * tests/test-modfl-ieee.c: New file.
7740
7741         New module 'modfl-ieee'.
7742         * modules/modfl-ieee: New file.
7743
7744         Tests for module 'modf-ieee'.
7745         * modules/modf-ieee-tests: New file.
7746         * tests/test-modf-ieee.c: New file.
7747
7748         New module 'modf-ieee'.
7749         * modules/modf-ieee: New file.
7750
7751         Tests for module 'modff-ieee'.
7752         * modules/modff-ieee-tests: New file.
7753         * tests/test-modff-ieee.c: New file.
7754         * tests/test-modf-ieee.h: New file.
7755
7756         New module 'modff-ieee'.
7757         * modules/modff-ieee: New file.
7758
7759 2012-02-26  Bruno Haible  <bruno@clisp.org>
7760
7761         Tests for module 'fabsl-ieee'.
7762         * modules/fabsl-ieee-tests: New file.
7763         * tests/test-fabsl-ieee.c: New file.
7764
7765         New module 'fabsl-ieee'.
7766         * modules/fabsl-ieee: New file.
7767
7768         Tests for module 'fabs-ieee'.
7769         * modules/fabs-ieee-tests: New file.
7770         * tests/test-fabs-ieee.c: New file.
7771
7772         New module 'fabs-ieee'.
7773         * modules/fabs-ieee: New file.
7774
7775         Tests for module 'fabsf-ieee'.
7776         * modules/fabsf-ieee-tests: New file.
7777         * tests/test-fabsf-ieee.c: New file.
7778         * tests/test-fabs-ieee.h: New file.
7779
7780         New module 'fabsf-ieee'.
7781         * modules/fabsf-ieee: New file.
7782
7783 2012-02-26  Bruno Haible  <bruno@clisp.org>
7784
7785         Tests for module 'fmal-ieee'.
7786         * modules/fmal-ieee-tests: New file.
7787         * tests/test-fmal-ieee.c: New file.
7788
7789         New module 'fmal-ieee'.
7790         * modules/fmal-ieee: New file.
7791
7792         Tests for module 'fma-ieee'.
7793         * modules/fma-ieee-tests: New file.
7794         * tests/test-fma-ieee.c: New file.
7795
7796         New module 'fma-ieee'.
7797         * modules/fma-ieee: New file.
7798
7799         Tests for module 'fmaf-ieee'.
7800         * modules/fmaf-ieee-tests: New file.
7801         * tests/test-fmaf-ieee.c: New file.
7802         * tests/test-fma-ieee.h: New file.
7803
7804         New module 'fmaf-ieee'.
7805         * modules/fmaf-ieee: New file.
7806
7807 2012-02-26  Bruno Haible  <bruno@clisp.org>
7808
7809         Tests for module 'ldexpl-ieee'.
7810         * modules/ldexpl-ieee-tests: New file.
7811         * tests/test-ldexpl-ieee.c: New file.
7812
7813         New module 'ldexpl-ieee'.
7814         * modules/ldexpl-ieee: New file.
7815
7816         Tests for module 'ldexp-ieee'.
7817         * modules/ldexp-ieee-tests: New file.
7818         * tests/test-ldexp-ieee.c: New file.
7819
7820         New module 'ldexp-ieee'.
7821         * modules/ldexp-ieee: New file.
7822
7823         Tests for module 'ldexpf-ieee'.
7824         * modules/ldexpf-ieee-tests: New file.
7825         * tests/test-ldexpf-ieee.c: New file.
7826         * tests/test-ldexp-ieee.h: New file.
7827
7828         New module 'ldexpf-ieee'.
7829         * modules/ldexpf-ieee: New file.
7830
7831 2012-02-26  Bruno Haible  <bruno@clisp.org>
7832
7833         Refactor frexp*-ieee tests.
7834         * tests/test-frexp-ieee.h: New file.
7835         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7836         (main): Just call test_function.
7837         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7838         (main): Just call test_function.
7839         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7840         (main): Just call test_function.
7841         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7842         * modules/frexp-ieee-tests (Files): Likewise.
7843         * modules/frexpl-ieee-tests (Files): Likewise.
7844
7845         Tests for module 'frexpl-ieee'.
7846         * modules/frexpl-ieee-tests: New file.
7847         * tests/test-frexpl-ieee.c: New file.
7848
7849         New module 'frexpl-ieee'.
7850         * modules/frexpl-ieee: New file.
7851
7852         Tests for module 'frexp-ieee'.
7853         * modules/frexp-ieee-tests: New file.
7854         * tests/test-frexp-ieee.c: New file.
7855
7856         New module 'frexp-ieee'.
7857         * modules/frexp-ieee: New file.
7858
7859         Tests for module 'frexpf-ieee'.
7860         * modules/frexpf-ieee-tests: New file.
7861         * tests/test-frexpf-ieee.c: New file.
7862
7863         New module 'frexpf-ieee'.
7864         * modules/frexpf-ieee: New file.
7865
7866 2012-02-26  Bruno Haible  <bruno@clisp.org>
7867
7868         roundl-ieee tests: More tests.
7869         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7870         (main): Add tests for [MX] shaded specification in POSIX.
7871         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7872         (Depends-on): Add isnanl-nolibm.
7873
7874         round-ieee tests: More tests.
7875         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7876         (main): Add tests for [MX] shaded specification in POSIX.
7877         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7878         (Depends-on): Add isnand-nolibm.
7879
7880         roundf-ieee tests: More tests.
7881         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7882         (main): Add tests for [MX] shaded specification in POSIX.
7883         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7884         (Depends-on): Add isnanf-nolibm.
7885
7886         truncl-ieee tests: More tests.
7887         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7888         (main): Add tests for [MX] shaded specification in POSIX.
7889         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7890         (Depends-on): Add isnanl-nolibm.
7891
7892         trunc-ieee tests: More tests.
7893         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7894         (main): Add tests for [MX] shaded specification in POSIX.
7895         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7896         (Depends-on): Add isnand-nolibm.
7897
7898         truncf-ieee tests: More tests.
7899         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7900         (main): Add tests for [MX] shaded specification in POSIX.
7901         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7902         (Depends-on): Add isnanf-nolibm.
7903
7904         ceill-ieee tests: More tests.
7905         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7906         (main): Add tests for [MX] shaded specification in POSIX.
7907         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7908         (Depends-on): Add isnanl-nolibm.
7909
7910         ceil-ieee tests: More tests.
7911         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7912         (main): Add tests for [MX] shaded specification in POSIX.
7913         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7914         (Depends-on): Add isnand-nolibm.
7915
7916         ceilf-ieee tests: More tests.
7917         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7918         (main): Add tests for [MX] shaded specification in POSIX.
7919         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7920         (Depends-on): Add isnanf-nolibm.
7921
7922         floorl-ieee tests: More tests.
7923         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7924         (main): Add tests for [MX] shaded specification in POSIX.
7925         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7926         (Depends-on): Add isnanl-nolibm.
7927
7928         floor-ieee tests: More tests.
7929         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7930         (main): Add tests for [MX] shaded specification in POSIX.
7931         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7932         (Depends-on): Add isnand-nolibm.
7933
7934         floorf-ieee tests: More tests.
7935         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7936         (main): Add tests for [MX] shaded specification in POSIX.
7937         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7938         (Depends-on): Add isnanf-nolibm.
7939
7940 2012-02-26  Bruno Haible  <bruno@clisp.org>
7941
7942         fpieee: More comments.
7943         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7944
7945 2012-02-25  Bruno Haible  <bruno@clisp.org>
7946
7947         Tests for module 'log10l'.
7948         * modules/log10l-tests: New file.
7949         * tests/test-log10l.c: New file.
7950         * tests/test-math-c++.cc: Check the declaration of log10l.
7951
7952         New module 'log10l'.
7953         * lib/math.in.h (log10l): New declaration.
7954         * lib/log10l.c: New file.
7955         * m4/log10l.m4: New file.
7956         * modules/log10l: New file.
7957         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7959         HAVE_DECL_LOG10L.
7960         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7961         HAVE_DECL_LOG10L.
7962         * doc/posix-functions/log10l.texi: Mention the new module.
7963
7964 2012-02-25  Bruno Haible  <bruno@clisp.org>
7965
7966         fmodl, remainder*: Avoid wrong results due to rounding errors.
7967         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7968         expected bounds.
7969         * lib/remainderf.c (remainderf): Likewise.
7970         * lib/remainder.c (remainder): Likewise.
7971         * lib/remainderl.c (remainderl): Likewise.
7972
7973 2012-02-25  Bruno Haible  <bruno@clisp.org>
7974
7975         Tests for module 'remainderl'.
7976         * modules/remainderl-tests: New file.
7977         * tests/test-remainderl.c: New file.
7978         * tests/test-math-c++.cc: Check the declaration of remainderl.
7979
7980         New module 'remainderl'.
7981         * lib/math.in.h (remainderl): New declaration.
7982         * lib/remainderl.c: New file.
7983         * m4/remainderl.m4: New file.
7984         * modules/remainderl: New file.
7985         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7987         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7988         HAVE_REMAINDERL.
7989         * doc/posix-functions/remainderl.texi: Mention the new module.
7990
7991 2012-02-25  Bruno Haible  <bruno@clisp.org>
7992
7993         Tests for module 'remainderf'.
7994         * modules/remainderf-tests: New file.
7995         * tests/test-remainderf.c: New file.
7996         * tests/test-math-c++.cc: Check the declaration of remainderf.
7997
7998         New module 'remainderf'.
7999         * lib/math.in.h (remainderf): New declaration.
8000         * lib/remainderf.c: New file.
8001         * m4/remainderf.m4: New file.
8002         * modules/remainderf: New file.
8003         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8005         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8006         HAVE_REMAINDERF.
8007         * doc/posix-functions/remainderf.texi: Mention the new module.
8008
8009 2012-02-25  Bruno Haible  <bruno@clisp.org>
8010
8011         remainder: Support for MSVC.
8012         * lib/math.in.h (remainder): New declaration.
8013         * lib/remainder.c: New file.
8014         * m4/remainder.m4: New file.
8015         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8016         (Depends-on): Add math, round, fma.
8017         (configure.ac): Use results of gl_FUNC_REMAINDER.
8018         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8020         HAVE_DECL_REMAINDER.
8021         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8022         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8023         * tests/test-math-c++.cc: Check the declaration of remainder.
8024         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8025         problems are fixed.
8026
8027 2012-02-25  Bruno Haible  <bruno@clisp.org>
8028
8029         Tests for module 'fmodl'.
8030         * modules/fmodl-tests: New file.
8031         * tests/test-fmodl.c: New file.
8032         * tests/test-math-c++.cc: Check the declaration of fmodl.
8033
8034         New module 'fmodl'.
8035         * lib/math.in.h (fmodl): New declaration.
8036         * lib/fmodl.c: New file.
8037         * m4/fmodl.m4: New file.
8038         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8039         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8040         REPLACE_FMODL.
8041         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8042         REPLACE_FMODL.
8043         * modules/fmodl: New file.
8044         * doc/posix-functions/fmodl.texi: Mention the new module.
8045
8046 2012-02-25  Bruno Haible  <bruno@clisp.org>
8047
8048         Tests for module 'modfl'.
8049         * modules/modfl-tests: New file.
8050         * tests/test-modfl.c: New file.
8051         * tests/test-math-c++.cc: Check the declaration of modfl.
8052
8053         New module 'modfl'.
8054         * lib/math.in.h (modfl): New declaration.
8055         * lib/modfl.c: New file.
8056         * m4/modfl.m4: New file.
8057         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8059         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8060         * modules/modfl: New file.
8061         * doc/posix-functions/modfl.texi: Mention the new module.
8062
8063 2012-02-25  Bruno Haible  <bruno@clisp.org>
8064
8065         Tests for module 'fabsl'.
8066         * modules/fabsl-tests: New file.
8067         * tests/test-fabsl.c: New file.
8068         * tests/test-math-c++.cc: Check the declaration of fabsl.
8069
8070         New module 'fabsl'.
8071         * lib/math.in.h (fabsl): New declaration.
8072         * lib/fabsl.c: New file.
8073         * m4/fabsl.m4: New file.
8074         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
8075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
8076         REPLACE_FABSL.
8077         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
8078         REPLACE_FABSL.
8079         * modules/fabsl: New file.
8080         * doc/posix-functions/fabsl.texi: Mention the new module.
8081
8082 2012-02-25  Bruno Haible  <bruno@clisp.org>
8083
8084         fabs tests: More tests.
8085         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
8086         (zero): New variable.
8087         (main): Add tests for signed zero.
8088         * modules/fabs-tests (Files): Add tests/minus-zero.h.
8089
8090         fabsf tests: More tests.
8091         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
8092         (zero): New variable.
8093         (main): Add tests for signed zero.
8094         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
8095
8096 2012-02-24  Bruno Haible  <bruno@clisp.org>
8097
8098         atanl: Provide function definition on MSVC.
8099         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
8100         function pointer.
8101         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
8102
8103 2012-02-24  Bruno Haible  <bruno@clisp.org>
8104
8105         acosl: Provide function definition on MSVC.
8106         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
8107         function pointer.
8108         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
8109
8110 2012-02-24  Bruno Haible  <bruno@clisp.org>
8111
8112         asinl: Provide function definition on MSVC.
8113         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
8114         function pointer.
8115         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
8116
8117 2012-02-24  Bruno Haible  <bruno@clisp.org>
8118
8119         tanl: Provide function definition on MSVC.
8120         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
8121         function pointer.
8122         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
8123
8124 2012-02-24  Bruno Haible  <bruno@clisp.org>
8125
8126         cosl: Provide function definition on MSVC.
8127         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
8128         function pointer.
8129         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
8130
8131 2012-02-24  Bruno Haible  <bruno@clisp.org>
8132
8133         sinl: Provide function definition on MSVC.
8134         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
8135         function pointer.
8136         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
8137
8138 2012-02-24  Bruno Haible  <bruno@clisp.org>
8139
8140         logl: Provide function definition on MSVC.
8141         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
8142         function pointer.
8143         * lib/math.in.h (logl): Undefine if it does not exist as a function.
8144
8145 2012-02-24  Bruno Haible  <bruno@clisp.org>
8146
8147         expl: Provide function definition on MSVC.
8148         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
8149         function pointer.
8150         * lib/math.in.h (expl): Undefine if it does not exist as a function.
8151
8152 2012-02-24  Bruno Haible  <bruno@clisp.org>
8153
8154         sqrtl: Provide function definition on MSVC.
8155         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
8156         a function pointer.
8157         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
8158
8159 2012-02-24  Bruno Haible  <bruno@clisp.org>
8160
8161         ceill: Provide function definition on MSVC.
8162         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
8163         used as a function pointer.
8164         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
8165
8166 2012-02-24  Bruno Haible  <bruno@clisp.org>
8167
8168         floorl: Provide function definition on MSVC.
8169         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
8170         used as a function pointer.
8171         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
8172
8173 2012-02-24  Bruno Haible  <bruno@clisp.org>
8174
8175         ceilf: Provide function definition on MSVC.
8176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
8177         used as a function pointer.
8178         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
8179
8180 2012-02-24  Bruno Haible  <bruno@clisp.org>
8181
8182         floorf: Provide function definition on MSVC.
8183         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
8184         used as a function pointer.
8185         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
8186
8187 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8188
8189         stdnoreturn: new module
8190         This implements a replacement for C11's <stdnoreturn.h>.
8191         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
8192         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
8193         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8194         * tests/test-stdnoreturn.c: New files.
8195
8196 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
8197
8198         regex: fix false multibyte matches in some regular expressions
8199         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
8200         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
8201         * lib/regex_internal.c (re_string_skip_chars):
8202         Fix miscomputation of remain_len that may cause incomplete
8203         multi-byte character and false match.
8204
8205 2012-02-24  Jim Meyering  <meyering@redhat.com>
8206
8207         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
8208         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
8209         uses with "==" *before* the call, e.g., 0 == strcmp (...)
8210         Remove now-unnecessary str''cmp obfuscation.
8211         Suggested by Akim Demaille.
8212
8213 2012-02-24  Bruno Haible  <bruno@clisp.org>
8214
8215         streq: Rename macro.
8216         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
8217         * NEWS: Mention the change.
8218         * lib/mbrtowc.c (mbrtowc): Update.
8219         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
8220         * lib/wcwidth.c (wcwidth): Update.
8221         Suggested by Akim Demaille and Jim Meyering.
8222
8223 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8224
8225         regex: fix typo in definition of MIN
8226         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
8227         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
8228
8229 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8230             Bruno Haible  <bruno@clisp.org>
8231
8232         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
8233         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
8234         entries into a stack-allocated buffer directly.
8235         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
8236
8237 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
8238             Bruno Haible  <bruno@clisp.org>
8239
8240         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
8241
8242          - There were several instances of this pattern:
8243
8244              for (;;) {
8245                n = acl (f, GETACLCNT, 0, NULL);
8246                [ allocate an array A of size N ]
8247                if (acl (f, GETACL, n, a) == n)
8248                  break;
8249              }
8250
8251            This loop might never terminate if some other process is constantly
8252            manipulating the file's ACL.  The loop should be rewritten to
8253            terminate.
8254
8255          - The acl (... GETACLNT ...) call is merely an optimization; its value
8256            is merely a hint as to how big to make the array.  A better
8257            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
8258            and just guess a reasonably-big size, growing the size and trying
8259            again if it's not large enough.  This guarantees termination, and
8260            saves a system call.
8261
8262         * lib/acl-internal.h: Include <limits.h>.
8263         (MIN, SIZE_MAX): New macros.
8264         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
8265         a stack-allocated buffer, and use malloc if it does not fit. Don't
8266         use GETACLCNT.
8267         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8268
8269 2012-02-19  Bruno Haible  <bruno@clisp.org>
8270
8271         acl: Fix endless loop on Solaris with vxfs.
8272         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
8273         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
8274         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
8275         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
8276         * tests/test-sameacls.c (main)[Solaris]: Likewise.
8277         Reported by Bill Jones in
8278         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
8279
8280 2012-02-19  Bruno Haible  <bruno@clisp.org>
8281
8282         acl: Fix copy-acl test failure on Solaris 11 2011-11.
8283         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
8284         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
8285         that this function returns 0 in some more cases.
8286
8287 2012-02-19  Bruno Haible  <bruno@clisp.org>
8288
8289         acl: Update doc references.
8290         * doc/acl-resources.txt: Update links to Solaris documentation.
8291
8292 2012-02-19  Bruno Haible  <bruno@clisp.org>
8293
8294         Fix test failure in many locales on Solaris 11.
8295         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
8296         'tr' arguments.
8297         * tests/test-pipe-filter-ii1.c (main): Likewise.
8298         * build-aux/bootstrap (check_versions): Run 'tr' command with range
8299         expressions in the C locale.
8300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8301         * m4/host-os.m4 (gl_HOST_OS): Likewise.
8302
8303 2012-02-19  Bruno Haible  <bruno@clisp.org>
8304
8305         gnulib-tool: Improve usage message.
8306         * gnulib-tool (func_usage): Move doc of --help and --version to the
8307         section "Operation modes".
8308
8309 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
8310
8311         README-release: make it easier to execute commands
8312         * top/README-release: break commands out on to separate lines.
8313
8314 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
8315
8316         GNUmakefile: simplify detection of unconfigured trees
8317         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
8318         whether the tree make is being run from is already configured or
8319         not.  Related simplifications.
8320
8321 2012-02-13  Simon Josefsson  <simon@josefsson.org>
8322
8323         * gnulib-tool (func_usage): Document --help and --version.
8324
8325 2012-02-11  Jim Meyering  <meyering@redhat.com>
8326
8327         bootstrap: don't exit 0 upon gnulib-tool failure
8328         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
8329         its exit status, not 0.
8330
8331 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
8332
8333         README-release: various improvements
8334         * top/README-release: Give a command to push changes for the
8335         release.  Add "distcheck" to list of other pre-release checks.
8336         Fix instance of "make stable" which should be "make TYPE".
8337
8338 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8339
8340         maint: replace FSF snail-mail addresses with URLs
8341         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
8342         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
8343         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
8344         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
8345         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
8346         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
8347         * lib/check-version.c, lib/check-version.h, lib/config.charset:
8348         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
8349         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
8350         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
8351         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
8352         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
8353         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
8354         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
8355         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
8356         * lib/glthread/thread.c, lib/glthread/thread.h:
8357         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
8358         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
8359         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
8360         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
8361         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
8362         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
8363         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
8364         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
8365         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
8366         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
8367         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
8368         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
8369         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
8370         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
8371         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
8372         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
8373         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
8374         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
8375         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
8376         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
8377         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
8378         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
8379         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
8380         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
8381         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
8382         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
8383         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
8384         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
8385         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
8386         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
8387         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
8388         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
8389         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
8390         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
8391         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
8392         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
8393         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
8394         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
8395         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
8396         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
8397         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
8398         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
8399         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
8400         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
8401         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
8402         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
8403         * tests/test-poll.c, tests/test-quotearg-simple.c:
8404         * tests/test-quotearg.c, tests/test-quotearg.h:
8405         * tests/test-round-ieee.c, tests/test-round1.c:
8406         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
8407         * tests/test-roundl-ieee.c, tests/test-roundl.c:
8408         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
8409         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
8410         * tests/test-strerror.c, tests/test-strerror_r.c:
8411         * tests/test-strsignal.c, tests/test-strverscmp.c:
8412         * tests/test-xmemdup0.c:
8413         Replace FSF snail mail addresses with URLs, as per GNU coding
8414         standards.  See glibc bug
8415         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
8416
8417 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8418
8419         README-release: capitalize a word and split a line
8420         * top/README-release: Fix punctuation and spacing.
8421
8422 2012-02-08  Akim Demaille  <demaille@gostai.com>
8423
8424         fatal-signal: use C prototypes (with explicit void).
8425         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
8426         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
8427
8428 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8429
8430         regex: spelling fix
8431         * lib/regexec.c: spelling fix
8432
8433         regex: rely on stdint.h for SIZE_MAX
8434         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
8435
8436 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8437
8438         regex: merge glibc changes
8439
8440         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
8441         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
8442         (init_word_char): Work even if bitset words are not exactly 32 or
8443         64 bits wide.  Don't assume there are no padding bits.
8444         * lib/regex.c [_LIBC]: Do not include <config.h>.
8445         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
8446         and -Wtype-limits.
8447         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
8448         needless disagreement with glibc.  All uses changed.  Define it to
8449         1 only if _GNU_SOURCE, to match glibc.
8450         (_REG_RM_NAME): Remove; no longer needed, since the names in
8451         question are now all protected by __USE_GNU.
8452         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
8453         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
8454         * lib/regex_internal.h (MIN): New macro.
8455
8456         2012-01-03 Ulrich Drepper <drepper@gmail.com>
8457         * lib/regcomp.c (init_word_char): Optimize regex a bit.
8458
8459         2011-12-30 Jakub Jelinek <jakub@redhat.com>
8460         * lib/regex_internal.c (re_string_fetch_byte_case):
8461         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
8462         is miscompiled, and it turns out it is because of an incorrect
8463         attribute on re_string_fetch_byte_case.  Unlike
8464         re_string_peek_byte_case, this one is really not pure, it modifies
8465         memory (increments pstr->cur_idx), and with the pure attribute GCC
8466         assumed it doesn't and it cached the presumed value of
8467         regexp->cur_idx in a variable across the
8468          for (;; ++i)
8469            {
8470              if (i >= BRACKET_NAME_BUF_SIZE)
8471                return REG_EBRACK;
8472              if (token->type == OP_OPEN_CHAR_CLASS)
8473                ch = re_string_fetch_byte_case (regexp);
8474              else
8475                ch = re_string_fetch_byte (regexp);
8476              if (re_string_eoi(regexp))
8477                return REG_EBRACK;
8478              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
8479                break;
8480              elem->opr.name[i] = ch;
8481            }
8482
8483         2011-11-29 Andreas Schwab <schwab@redhat.com>
8484         * lib/regcomp.c (build_equiv_class):
8485         Fix access after end of search string in regex matcher.
8486
8487         2011-11-12 Ulrich Drepper <drepper@redhat.com>
8488         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
8489
8490         2011-10-12 Ulrich Drepper <drepper@redhat.com>
8491         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
8492
8493         2011-10-11 Ulrich Drepper <drepper@redhat.com>
8494         * lib/regcomp.c (parse_branch, parse_sub_exp):
8495         More regex memory leak fixes and tests.
8496         (parse_sub_exp, parse_bracket_exp):
8497         Fix memory leak for some invalid regular expressions.
8498
8499         2011-05-28 Ulrich Drepper <drepper@gmail.com>
8500         * lib/regex_internal.c, lib/regexec.c:
8501         Fix unnecessary overallocation due to incomplete character.  When
8502         incomplete characters are found at the end of a string the code
8503         ran amok and allocated lots of memory.  Stricter limits are now in
8504         place.
8505
8506         2011-05-20 Reuben Thomas <rrt@sc3d.org>
8507         * lib/regex.h: Update documentation.
8508
8509         2011-05-16 Aharon Robbins <arnold@skeeve.com>
8510         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
8511
8512         2010-05-05 Andreas Schwab <schwab@redhat.com>
8513         * lib/regexec.c (find_collation_sequence_value):
8514         Fix lookup of collation sequence value during regexp matching.
8515
8516         2010-01-22 Ulrich Drepper <drepper@redhat.com>
8517         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
8518
8519         2008-01-16 Ulrich Drepper <drepper@redhat.com>
8520         * lib/regex.h: Cleanup namespace.
8521
8522         2007-11-26 Ulrich Drepper <drepper@redhat.com>
8523         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
8524
8525         2007-08-26 Ulrich Drepper <drepper@redhat.com>
8526         * lib/regex_internal.h: Prevent some declarations and definitions
8527         to be seen when used in tests.
8528
8529         2005-05-06 Ulrich Drepper <drepper@redhat.com>
8530         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
8531         __libc_lock_* macros if not _LIBC.
8532         (struct re_dfa_t): Add lock.
8533
8534 2012-02-07  Eric Blake  <eblake@redhat.com>
8535
8536         maint.mk: also prohibit lower-case @var@
8537         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
8538         lower case, like @top_srcdir@.
8539
8540 2012-02-04  Eric Blake  <eblake@redhat.com>
8541
8542         canonicalize: avoid uninitialized memory use
8543         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
8544         random '/' left in dest.
8545         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
8546
8547 2012-02-04  Bruno Haible  <bruno@clisp.org>
8548
8549         isatty: Fix test failure of ptsname_r on native Windows.
8550         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
8551         and don't set errno.
8552         (isatty): Test first whether fd is valid. Set errno when returning 0.
8553
8554 2012-02-04  Bruno Haible  <bruno@clisp.org>
8555
8556         spawn-pipe tests: Fix a NULL program name in a diagnostic.
8557         * tests/test-spawn-pipe-main.c: Include progname.h.
8558         (main): Invoke set_program_name.
8559         * modules/spawn-pipe-tests (Depends-on): Add progname.
8560
8561         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
8562         * tests/test-nonblocking-socket-main.c: Include progname.h.
8563         (main): Invoke set_program_name.
8564         * modules/nonblocking-socket-tests (Depends-on): Add progname.
8565
8566         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
8567         * tests/test-nonblocking-pipe-main.c: Include progname.h.
8568         (main): Invoke set_program_name.
8569         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
8570
8571 2012-02-04  Eric Blake  <eblake@redhat.com>
8572
8573         canonicalize-lgpl: fix // handling
8574         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
8575
8576         canonicalize: fix // handling
8577         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
8578         /// to //, since only // is special.
8579
8580 2012-02-04  Bruno Haible  <bruno@clisp.org>
8581
8582         ioctl: Fix test failure on native Windows.
8583         * lib/ioctl.c: Include msvc-nothrow.h.
8584         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
8585
8586 2012-02-04  Bruno Haible  <bruno@clisp.org>
8587
8588         fsync: Avoid test failure on native Windows.
8589         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
8590         read-only.
8591
8592 2012-02-04  Bruno Haible  <bruno@clisp.org>
8593
8594         sys_select: Avoid syntax error on OpenBSD 5.0.
8595         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
8596         currently being included, just include the system's <sys/select.h>.
8597
8598 2012-02-04  Bruno Haible  <bruno@clisp.org>
8599
8600         sys_select: Avoid syntax error on OpenBSD 5.0.
8601         * lib/sys_select.in.h: Include <signal.h> only after the include_next
8602         <sys/select.h>, not before.
8603         Reported by Jiri B <jirib@devio.us>.
8604
8605 2012-02-04  Bruno Haible  <bruno@clisp.org>
8606
8607         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
8608         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
8609         global variables.
8610         * tests/test-get-rusage-data.c (main): Likewise.
8611         Reported by Jim Meyering.
8612
8613 2012-02-04  Bruno Haible  <bruno@clisp.org>
8614
8615         stdioext: Fix last commit.
8616         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
8617
8618 2012-02-03  Bruno Haible  <bruno@clisp.org>
8619
8620         stdioext: Add tentative support for Plan9.
8621         * lib/stdio-impl.h: Include <errno.h>.
8622         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
8623         * lib/freadable.c (freadable): Likewise.
8624         * lib/fwritable.c (fwritable): Likewise.
8625         * lib/fbufmode.c (fbufmode): Likewise.
8626         * lib/freading.c (freading): Likewise.
8627         * lib/fwriting.c (fwriting): Likewise.
8628         * lib/freadptr.c (freadptr): Likewise.
8629         * lib/freadseek.c (freadptrinc): Likewise.
8630         * lib/freadahead.c (freadahead): Likewise.
8631         * lib/fpurge.c (fpurge): Likewise.
8632         * lib/fseeko.c (rpl_fseeko): Likewise.
8633         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
8634         Reported by Jens Staal <staal1978@gmail.com>.
8635
8636 2012-02-02  Jim Meyering  <meyering@redhat.com>
8637
8638         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
8639         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
8640         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
8641         not even to try to add the attribute.  Instead, add a pragma to suppress
8642         the suggestion/warning.
8643
8644 2012-01-31  Karl Berry  <karl@gnu.org>
8645
8646         setstate doc: typo.
8647         * doc/posix-functions/setstate.texi (setstate): { not (.
8648
8649 2012-01-31  Bruno Haible  <bruno@clisp.org>
8650
8651         popen: Make more robust on Windows.
8652         * lib/popen.c: On native Windows, use the _popen based code even if
8653         HAVE_POPEN is set.
8654         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
8655         environment variable on native Windows.
8656
8657 2012-01-30  Bruno Haible  <bruno@clisp.org>
8658
8659         pclose: Fix typo.
8660         * lib/stdio.in.h (pclose): Fix typo in warning message.
8661
8662 2012-01-30  Bruno Haible  <bruno@clisp.org>
8663
8664         doc about getlogin_r, setstate.
8665         * doc/posix-functions/getlogin_r.texi: List the incompatible
8666         declaration problem under "not fixed by gnulib".
8667         * doc/posix-functions/setstate.texi: Mention incompatible declaration
8668         problem on Solaris 11 and other platforms.
8669
8670 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
8671             Bruno Haible  <bruno@clisp.org>
8672
8673         poll tests: Make test more robust.
8674         * tests/test-poll.c: Include macros.h.
8675         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
8676         return value of various I/O operations.
8677         * modules/poll-tests (Files): Add tests/macros.h.
8678
8679 2012-01-30  Bruno Haible  <bruno@clisp.org>
8680
8681         sys_stat: Fix support for mingw64 and MSVC.
8682         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
8683         header files already do it.
8684         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
8685         stat itself.
8686         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8687
8688 2012-01-30  Bruno Haible  <bruno@clisp.org>
8689
8690         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
8691         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
8692         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
8693
8694 2012-01-29  Bruno Haible  <bruno@clisp.org>
8695
8696         quotearg: Fix test failure on MacOS X 10.5.
8697         * tests/test-quotearg-simple.c: Include localcharset.h.
8698         (main): If the locale encoding is not ASCII, bypass the tests of
8699         locale_quoting_style and clocale_quoting_style.
8700         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
8701
8702 2012-01-29  Jim Meyering  <meyering@redhat.com>
8703
8704         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
8705         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
8706         detect uses of canonicalize_file_name.
8707
8708 2012-01-28  Bruno Haible  <bruno@clisp.org>
8709
8710         test-framework-sh: Fix test failure with AIX 7.1 diff.
8711         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
8712         in column 1, like 'diff -c' does.
8713         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
8714         whether 'diff -u' is used. Instead, test whether the output contains
8715         some '@' character.
8716
8717 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
8718
8719         strtoimax: eliminate need for stdint.h, inttypes.h checks
8720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
8721         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
8722         the prerequisites for a recently-introduced strtoimax test.
8723         I guess this might cause strtoimax to be replaced when not
8724         strictly necessary on older hosts, but this shouldn't introduce
8725         any bugs and it should make Emacs 'configure' faster on typical
8726         modern hosts.  Problem discovered when importing the latest gnulib
8727         to an Emacs test version.
8728         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
8729
8730 2012-01-28  Bruno Haible  <bruno@clisp.org>
8731
8732         sys_time: Override 'struct timeval' on some native Windows platforms.
8733         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
8734         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
8735         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
8736         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
8737         needs to be overridden.
8738         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
8739         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
8740         * tests/test-sys_select.c: Check that the tv_sec member has the same
8741         size as a 'time_t'.
8742         * tests/test-sys_time.c: Likewise.
8743         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
8744         is set, set also REPLACE_GETTIMEOFDAY.
8745         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
8746         convert the resulting 'struct timeval' before returning.
8747         * lib/select.c: Include <sys/time.h>.
8748         (select, timeval): Undefine at the right place.
8749         * modules/select (Depends-on): Add sys_time.
8750         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
8751         some Windows platforms.
8752         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
8753
8754 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8755
8756         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
8757         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
8758         an integer.
8759         * lib/fcntl.c (dupfd): Likewise.
8760         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
8761
8762 2012-01-28  Bruno Haible  <bruno@clisp.org>
8763
8764         fcntl: Avoid compilation error on native Windows.
8765         * modules/fcntl (Depends-on): Add 'close'.
8766
8767 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8768
8769         select, poll, isatty: Avoid warnings on x86_64 mingw64.
8770         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
8771         pointer to an integer.
8772         * lib/poll.c (IsConsoleHandle): Likewise.
8773         * lib/isatty.c (IsConsoleHandle): Likewise.
8774
8775 2012-01-28  Jim Meyering  <meyering@redhat.com>
8776
8777         doc: clarify README-release
8778         * top/README-release: Clarify: you should make a point to have
8779         the latest stable versions of build tools in your PATH, and the
8780         reference to buildreq is solely for its list of tool names, not
8781         for its minimal-functional version numbers.
8782         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
8783
8784         maint.mk: use more readable (yet functionally equivalent) quoting
8785         It is common to quote a single quote in a single quoted string like
8786         this:  '...'\''...'.  Unless you know the idiom, that looks like
8787         gibberish, so prefer to double-quote the string when possible.
8788         Then you can use a more readable, lone single quote: "...'..."
8789         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
8790         "don't" is more readable than the equivalent 'don'\''t'.
8791         (sc_cast_of_x_alloc_return_value): Likewise.
8792         (sc_cast_of_alloca_return_value): Likewise.
8793         (sc_makefile_path_separator_check): Similar: use ":" in '...',
8794         rather than '\'':'\''.
8795
8796 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8797
8798         stdalign: relax _Alignof and tighten _Alignas test
8799         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
8800         as it was too strict: alignof must divide offsetof, but it need
8801         not equal offsetof.  Inspired by Joseph S. Myers's comment
8802         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
8803         Conversely, tighten the _Alignas test a bit, as the resulting
8804         alignment must be exactly 8.
8805
8806 2012-01-27  Bruno Haible  <bruno@clisp.org>
8807
8808         stdalign: Document the last change.
8809         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
8810
8811 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8812
8813         stdalign: check that alignof and offsetof are consistent
8814         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
8815         Problem reported for gnulib by Richard W.M. Jones in
8816         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
8817
8818 2012-01-27  Jim Meyering  <meyering@redhat.com>
8819
8820         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
8821         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
8822         convert a sequence with gaps to the minimal containing range.
8823         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
8824         * tests/test-update-copyright.sh: Test for this.
8825         The FSF confirmed it is ok to do this, assuming there is at
8826         least one significant change per year in the affected range:
8827         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
8828
8829 2012-01-26  Bruno Haible  <bruno@clisp.org>
8830
8831         pipe2: refine doc about thread-safety
8832         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8833         multithread-safety problem.
8834         * doc/glibc-functions/accept4.texi: Likewise.
8835
8836 2012-01-26  Bruno Haible  <bruno@clisp.org>
8837
8838         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8839         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8840         In the test program, include <fcntl.h>, for O_RDONLY.
8841
8842 2012-01-26  Eric Blake  <eblake@redhat.com>
8843
8844         pipe2: document lack of thread-safety in replacement
8845         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8846         issue in replacement.
8847         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8848         Based on a report by Eric Wong.
8849
8850 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8851             Bruno Haible  <bruno@clisp.org>
8852
8853         malloca: Avoid warnings on x86_64 mingw64.
8854         * lib/malloca.c: Include <stdint.h>.
8855         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8856         * modules/malloca (Depends-on): Add stdint.
8857         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8858
8859 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8860
8861         obstack: remove __STDC__ conditionals
8862         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8863         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8864         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8865         m4/include_next.m4 as the only gnulib-maintained places that still
8866         refer to __STDC__.
8867
8868 2012-01-24  Bruno Haible  <bruno@clisp.org>
8869
8870         havelib: Modern quoting.
8871         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8872         the recent change to the GNU coding standards.
8873
8874 2012-01-24  Bruno Haible  <bruno@clisp.org>
8875
8876         stdint: Improve support for Android.
8877         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8878         Reported by Simon Josefsson <simon@josefsson.org>.
8879
8880 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8881
8882         doc: omit trailing empty lines from INSTALL etc.
8883         * doc/Makefile (INSTALL): Omit trailing empty lines.
8884         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8885         omit trailing empty lines.  This simplifies the build procedure.
8886
8887 2012-01-23  Jim Meyering  <meyering@redhat.com>
8888
8889         tests: avoid spurious warnings about gl_sockets_startup
8890         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8891         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8892         reporting a "statement with no effect".
8893         * tests/test-accept.c (main): Mark as "(void)".
8894         * tests/test-accept4.c (main): Likewise.
8895         * tests/test-bind.c (main): Likewise.
8896         * tests/test-connect.c (main): Likewise.
8897         * tests/test-getpeername.c (main): Likewise.
8898         * tests/test-getsockname.c (main): Likewise.
8899         * tests/test-getsockopt.c (main): Likewise.
8900         * tests/test-listen.c (main): Likewise.
8901         * tests/test-recv.c (main): Likewise.
8902         * tests/test-recvfrom.c (main): Likewise.
8903         * tests/test-send.c (main): Likewise.
8904         * tests/test-sendto.c (main): Likewise.
8905         * tests/test-setsockopt.c (main): Likewise.
8906         * tests/test-shutdown.c (main): Likewise.
8907
8908 2012-01-21  Bruno Haible  <bruno@clisp.org>
8909
8910         locale-fr.m4: Fix for Android.
8911         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8912         failure of the test program on Bionic libc.
8913
8914 2012-01-21  Jim Meyering  <meyering@redhat.com>
8915
8916         bootstrap: fail when bootstrap_post_import_hook fails
8917         Otherwise, it's far too easy to miss diagnostics emitted
8918         between gnulib-tool's output and that of running configure.
8919         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8920
8921 2012-01-17  Jim Meyering  <meyering@redhat.com>
8922
8923         maint: enable sc_trailing_blank
8924         * build-aux/pmccabe.css: Remove trailing blanks.
8925         * doc/acl-cygwin.txt: Likewise.
8926         * doc/gnu-oids.texi: Likewise
8927         * cfg.mk: Enable sc_trailing_blank.
8928         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8929
8930 2012-01-17  Jim Meyering  <meyering@redhat.com>
8931
8932         maint: enable sc_prohibit_openat_without_use
8933         * cfg.mk: Enable sc_prohibit_openat_without_use.
8934         Exempt lib/selinux-at.c.
8935
8936 2012-01-17  Jim Meyering  <meyering@redhat.com>
8937
8938         maint: enable sc_prohibit_cloexec_without_use
8939         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8940         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8941
8942 2012-01-17  Jim Meyering  <meyering@redhat.com>
8943
8944         maint: enable sc_prohibit_intprops_without_use
8945         * cfg.mk: Enable sc_prohibit_intprops_without_use
8946         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8947
8948 2012-01-17  Jim Meyering  <meyering@redhat.com>
8949
8950         maint: enable sc_prohibit_hash_pjw_without_use
8951         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8952         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8953         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8954         following " (".
8955
8956 2012-01-17  Jim Meyering  <meyering@redhat.com>
8957
8958         maint: enable double-word-prohibiting rule
8959         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8960         Exempt three files.
8961
8962 2012-01-17  Jim Meyering  <meyering@redhat.com>
8963
8964         maint: remove empty lines at EOF, but excluding modules/*
8965         Apply syntax rules at home as well as abroad.  Most changes
8966         were induced by running this:
8967           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8968             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8969             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8970         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8971         Exempt modules/* and two binary files.
8972         Also exempt doc/INSTALL*, per request from Bruno Haible.
8973         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8974         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8975         * doc/Copyright/request-assign.future: Likewise.
8976         * doc/Copyright/request-disclaim.changes: Likewise.
8977         * doc/INSTALL: Likewise.
8978         * doc/INSTALL.ISO: Likewise.
8979         * doc/INSTALL.UTF-8: Likewise.
8980         * doc/acl-cygwin.txt: Likewise.
8981         * doc/acl-resources.txt: Likewise.
8982         * doc/fdl-1.2.texi: Likewise.
8983         * doc/fdl-1.3.texi: Likewise.
8984         * doc/fdl.texi: Likewise.
8985         * lib/argp-pin.c: Likewise.
8986         * lib/round.c: Likewise.
8987         * lib/unicase/u16-totitle.c: Likewise.
8988         * lib/unictype/block_test.c: Likewise.
8989         * lib/uninorm/canonical-decomposition.c: Likewise.
8990         * m4/README: Likewise.
8991         * m4/relocatable-lib.m4: Likewise.
8992         * tests/test-isnand-nolibm.c: Likewise.
8993         * tests/test-isnand.c: Likewise.
8994         * tests/uninorm/NormalizationTest.txt: Likewise.
8995
8996 2012-01-17  Jim Meyering  <meyering@redhat.com>
8997
8998         maint: add framework to run syntax-check rules against gnulib sources
8999         * cfg.mk: New file, to disable all currently-failing tests.
9000         We'll enable them one by one, as they are made to pass.
9001         * Makefile (sc_maint): New rule.
9002
9003 2012-01-21  Bruno Haible  <bruno@clisp.org>
9004
9005         stdint: Add support for Android.
9006         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9007         include the system's <stdint.h>.
9008         Reported by Simon Josefsson <simon@josefsson.org>.
9009
9010 2012-01-19  Jim Meyering  <meyering@redhat.com>
9011
9012         bootstrap: add bootstrap_post_import_hook
9013         Bison does still need something like the gnulib_mk_hook whose
9014         invocation I had to remove along with slurp in commit 767ccd40.
9015         Technically, we could get along without it, but doing so would
9016         have required living with a warning and a mandatory post-bootstrap
9017         automake rerun.
9018         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9019         (bootstrap_post_import_hook): New function.
9020         Invoke it after gnulib-tool --import and before autoreconf.
9021
9022 2012-01-18  Jim Meyering  <meyering@redhat.com>
9023
9024         gitlog-to-changelog: don't use "no_"-prefixed variable name
9025         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9026         to enable both --cluster and --no-cluster.  Change variable name,
9027         s/\$no_cluster/$cluster/, and reverse usage to match.
9028
9029         gitlog-to-changelog: use "||", not "or" in expressions
9030         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9031         expressions.
9032
9033 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9034
9035         gitlog-to-changelog: new option --no-cluster
9036         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9037         clustering of adjacent commit messages.
9038
9039 2012-01-17  Jim Meyering  <meyering@redhat.com>
9040
9041         maint: spell file systems with two words, not one
9042         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9043         two words, not one.
9044
9045 2012-01-16  Jim Meyering  <meyering@redhat.com>
9046
9047         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9048         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9049
9050 2012-01-16  Eric Blake  <eblake@redhat.com>
9051
9052         bootstrap: cater to autoconf 2.59
9053         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9054         is not available.
9055
9056         bootstrap: properly check for libtool
9057         * build-aux/bootstrap (libtoolize): Also run libtool when older
9058         usage is detected.
9059
9060 2012-01-15  Bruno Haible  <bruno@clisp.org>
9061
9062         Improve support for MSVC 9.
9063         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
9064         clashes on MSVC.
9065         * lib/fcntl.in.h: Likewise.
9066         * lib/stdlib.in.h: Likewise.
9067         * lib/sys_stat.in.h: Likewise.
9068
9069 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
9070
9071         gnupload: we hold the master copy of this script now
9072         For motivation and more information, see:
9073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
9074         * build-aux/gnupload: Make it clear in the heading comments that the
9075         master copy of this file is maintained by gnulib.  Since we are at
9076         it, bump its copyright year and ...
9077         ($scriptversion): ... the date in its version.
9078         ($usage): Patches and bug reports should be sent to the gnulib list,
9079         not the automake one.
9080         * config/srclist.txt: Don't try to sync 'gnupload' from automake
9081         anymore.
9082
9083 2012-01-15  Bruno Haible  <bruno@clisp.org>
9084
9085         Fix module 'random'.
9086         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
9087         initstate, setstate are declared.
9088
9089 2012-01-14  Bruno Haible  <bruno@clisp.org>
9090
9091         Tests for module 'random'.
9092         * modules/random-tests: New file.
9093         * tests/test-random.c: New file, based on tests/test-random_r.c.
9094
9095         New module 'random'.
9096         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
9097         declarations.
9098         * lib/random.c: New file, based on glibc/stdlib/random.c.
9099         * m4/random.m4: New file.
9100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
9101         HAVE_RANDOM.
9102         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
9103         * modules/random: New file.
9104         * config/srclist.txt: Add an entry for random.c.
9105         * doc/posix-functions/random.texi: Mention the 'random' module.
9106         * doc/posix-functions/initstate.texi: Likewise.
9107         * doc/posix-functions/setstate.texi: Likewise.
9108         * doc/posix-functions/srandom.texi: Likewise.
9109
9110 2012-01-12  Bruno Haible  <bruno@clisp.org>
9111
9112         random_r: Use common idioms.
9113         * lib/random_r.c: Include <stdlib.h> first.
9114
9115         random_r: Override incompatible API on AIX, OSF/1.
9116         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
9117         Override the system function if REPLACE_RANDOM_R is 1.
9118         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
9119         and OSF/1, set REPLACE_RANDOM_R.
9120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
9121         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
9122         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
9123         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
9124         * doc/glibc-functions/random_r.texi: Likewise.
9125         * doc/glibc-functions/setstate_r.texi: Likewise.
9126
9127         random_r: Support for MSVC 9.
9128         * lib/random_r.c: Include stdint.h, not inttypes.h.
9129
9130 2012-01-12  Eric Blake  <eblake@redhat.com>
9131
9132         inet_ntop: guard extra work by IF_LINT
9133         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
9134         better code generation when not checking for warnings.
9135         Suggested by Paul Eggert and Jim Meyering.
9136
9137         strptime: fix regression on mingw
9138         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
9139         Fix regression.  Reported by Bruno Haible.
9140
9141 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
9142             Bruno Haible  <bruno@clisp.org>
9143
9144         copy-file: add error-code-returning variant.
9145         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
9146         (qcopy_file_preserving): New declaration.
9147         * lib/copy-file.c (qcopy_file_preserving): Renamed from
9148         copy_file_preserving. Change return type to 'int'. Don't emit an error
9149         message here.
9150         (copy_file_preserving): New function.
9151         * tests/test-copy-file.c: Include <stdlib.h>.
9152         (main): Test qcopy_file_preserving if the environment variable
9153         NO_STDERR_OUTPUT is set.
9154         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
9155         with NO_STDERR_OUTPUT
9156         * tests/test-copy-file-2.sh: Likewise.
9157
9158 2012-01-10  Bruno Haible  <bruno@clisp.org>
9159
9160         copy-file: Use 'quote' module consistently.
9161         * lib/copy-file.c (copy_file_preserving): Use quote().
9162
9163         copy-file: Refactor.
9164         * lib/copy-file.c: Include quote.h.
9165         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
9166         message here.
9167         * modules/copy-file (Depends-on): Add quote.
9168
9169         acl: Export qcopy_acl.
9170         * lib/acl.h (qcopy_acl): New declaration.
9171         * lib/copy-acl.c (qcopy_acl): Make non-static.
9172
9173         acl: Rename a local variable.
9174         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
9175
9176         acl: Align return values of copy_acl and qcopy_acl.
9177         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
9178         maybe < -1.
9179
9180 2012-01-11  Eric Blake  <eblake@redhat.com>
9181
9182         strptime: silence gcc warnings
9183         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
9184         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
9185         Reported by Daniel P. Berrange.
9186
9187         inet_ntop: silence gcc warning
9188         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
9189         Reported by Daniel P. Berrange.
9190
9191 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
9192
9193         getloadavg test: skip the test on GNU/Linux without /proc mounted
9194         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
9195         file.  When /proc is not mounted, it always fails with ENOENT.
9196         * tests/test-getloadavg.c (main): Treat ENOENT return code from
9197         getloadavg(3) the same way as ENOSYS and ENOTSUP.
9198
9199 2012-01-10  Bruno Haible  <bruno@clisp.org>
9200
9201         regex: Avoid link error on MSVC 9.
9202         * modules/regex (Depends-on): Add wctype.
9203
9204 2012-01-10  Bruno Haible  <bruno@clisp.org>
9205
9206         doc: Mention --with-tests option.
9207         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
9208         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
9209         --with-tests.
9210         Reported by Reuben Thomas.
9211
9212 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
9213
9214         users.txt: order package names lexicographically.
9215         * users.txt: Order package names lexicographically.
9216
9217 2012-01-10  Jim Meyering  <meyering@redhat.com>
9218
9219         maint.mk: fix description in comment
9220         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
9221
9222         ignore-value: remove deprecated ignore_ptr function
9223         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
9224         * NEWS: Note this.
9225
9226 2012-01-09  Jim Meyering  <meyering@redhat.com>
9227
9228         test-init.sh: avoid a subshell
9229         * tests/test-init.sh: Remove protective subshell.
9230         Suggested by Bernhard Voelker.  While a subshell is normally
9231         required to protect against older shells (Solaris, FreeBSD) that
9232         warn about a missing program before performing redirection, the
9233         shell-selection tests performed by init.sh probably exclude any
9234         offending shell.
9235
9236 2012-01-08  Bruno Haible  <bruno@clisp.org>
9237
9238         setlocale tests: Avoid test failure on Solaris 11 2011-11.
9239         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
9240         variable.
9241
9242 2012-01-08  Bruno Haible  <bruno@clisp.org>
9243
9244         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
9245         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9246         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9247         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
9248         macro.
9249         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
9250         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9251         * lib/spawn_faction_addopen.c: Add workaround implementation if
9252         HAVE_WORKING_POSIX_SPAWN.
9253         * modules/spawn (Makefile): Substitute
9254         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
9255         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
9256         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
9257         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
9258         (Depends-on): Update conditions.
9259         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
9260         the Solaris 11 bug.
9261
9262 2012-01-08  Bruno Haible  <bruno@clisp.org>
9263
9264         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
9265         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9266         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9267         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
9268         macro.
9269         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
9270         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9271         * lib/spawn_faction_adddup2.c: Add workaround implementation if
9272         HAVE_WORKING_POSIX_SPAWN.
9273         * modules/spawn (Makefile): Substitute
9274         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
9275         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
9276         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
9277         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
9278         (Depends-on): Update conditions.
9279         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
9280         the Solaris 11 bug.
9281
9282 2012-01-08  Bruno Haible  <bruno@clisp.org>
9283
9284         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
9285         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
9286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9287         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
9288         HAVE_WORKING_POSIX_SPAWN.
9289         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
9290         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
9291         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9292         * lib/spawn_faction_addclose.c: Add workaround implementation if
9293         HAVE_WORKING_POSIX_SPAWN.
9294         * modules/spawn (Makefile): Substitute
9295         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
9296         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
9297         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
9298         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
9299         (Depends-on): Update conditions.
9300         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
9301         the Solaris 11 bug.
9302
9303 2012-01-08  Bruno Haible  <bruno@clisp.org>
9304
9305         doc: Update for Solaris 11 2011-11.
9306         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
9307         * m4/printf.m4: Update comments.
9308
9309 2012-01-08  Bruno Haible  <bruno@clisp.org>
9310
9311         mktime: Avoid compilation error on Solaris 11.
9312         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
9313
9314 2012-01-08  Bruno Haible  <bruno@clisp.org>
9315
9316         doc: Small fix.
9317         * doc/posix-headers/nl_types.texi: Correct platforms list.
9318
9319 2012-01-08  Simon Josefsson  <simon@josefsson.org>
9320
9321         Add lgpl-3.0 module.
9322         * MODULES.html.sh (Support for building documentation): Add
9323         lgpl-3.0.
9324         * modules/lgpl-3.0: New file.
9325
9326 2012-01-08  Jim Meyering  <meyering@redhat.com>
9327
9328         select.c: indent with spaces, not TABs
9329         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
9330
9331 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9332
9333         quotearg: do not use grave accent for left quote
9334         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
9335         locale_quoting_style.
9336         (quotearg_buffer_restyled): Fix example.
9337         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
9338
9339 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9340
9341         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
9342         Most programs do not have translation catalogs for English and much
9343         less separate catalogs for British and American English.  Drop the
9344         suggestion to translators about these two, and provide it
9345         automatically for Unicode locales.  Like most programs, even those
9346         using American English, we use single quotation marks.  This conflicts
9347         with the American typographic convention, but works better when you
9348         cite the entire error message within double quotes.  It also tries not
9349         to clash with established practice and with what non-gnulib programs
9350         will usually do.
9351         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
9352         using an UTF-8 or GB-18030 locale.  The list of other locales with
9353         quotes was provided by Bruno Haible.
9354         (quotearg_buffer_restyled): Adjust instructions to translators.
9355         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
9356         text, since this would be wrong when using Unicode.
9357         * modules/quotearg: Depend on c-strcaseeq.
9358
9359 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
9360
9361         quotearg: fix Wikipedia link
9362         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
9363
9364 2012-01-07  Simon Josefsson  <simon@josefsson.org>
9365
9366         Fix for mingw with MSVC9.
9367         * m4/ld-version-script.m4: Check that compiler rejects version
9368         scripts with syntax errors.  Reported by Bruno Haible
9369         <bruno@clisp.org>.
9370
9371 2012-01-06  Bruno Haible  <bruno@clisp.org>
9372
9373         Talk about "native Windows API", not "Woe32".
9374         * lib/accept4.c: Update comments to mention native Windows.
9375         * lib/execute.c: Likewise.
9376         * lib/fatal-signal.c: Likewise.
9377         * lib/localcharset.c: Likewise.
9378         * lib/nanosleep.c: Likewise.
9379         * lib/nl_langinfo.c: Likewise.
9380         * lib/pclose.c: Likewise.
9381         * lib/pipe-filter-gi.c: Likewise.
9382         * lib/pipe-filter-ii.c: Likewise.
9383         * lib/pipe.c: Likewise.
9384         * lib/pipe2.c: Likewise.
9385         * lib/popen.c: Likewise.
9386         * lib/progreloc.c: Likewise.
9387         * lib/relocatable.c: Likewise.
9388         * lib/sigaction.c: Likewise.
9389         * lib/sigprocmask.c: Likewise.
9390         * lib/spawn-pipe.h: Likewise.
9391         * lib/spawn-pipe.c: Likewise.
9392         * lib/spawni.c: Likewise.
9393         * lib/stat-time.h: Likewise.
9394         * lib/w32spawn.h: Likewise.
9395         * tests/test-isatty.c: Likewise.
9396         * lib/config.charset: More comments.
9397         * doc/gnulib-intro.texi: Mention native Windows.
9398         * doc/posix-functions/_Exit_C99.texi: Likewise.
9399         * doc/posix-headers/fcntl.texi: Likewise.
9400
9401 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
9402
9403         argp: Avoid crash if translator uses % characters in a translation.
9404         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
9405         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9406
9407 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9408
9409         doc: C11 and C++11 are now official
9410         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
9411         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
9412         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
9413         * modules/stdalign:
9414         Replace references to draft C1X to C11, and to draft C++0X to C++11.
9415
9416 2012-01-06  Bruno Haible  <bruno@clisp.org>
9417
9418         uc-is-grapheme-break tests: Tweak.
9419         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
9420         message.
9421
9422 2012-01-06  Bruno Haible  <bruno@clisp.org>
9423
9424         test-init.sh: correct the test for diff -u
9425         * tests/test-init.sh: Also redirect stdout to /dev/null.
9426
9427 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
9428
9429         Use ', not `, for quoting output.
9430         * build-aux/announce-gen (usage, sizes, print_news_deltas)
9431         (print_changelog_deltas, get_tool_versions, main program):
9432         * build-aux/git-version-gen:
9433         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
9434         * build-aux/move-if-change (help):
9435         * build-aux/useless-if-before-free (usage, main program):
9436         * check-module (parse_module_file, usage)
9437         (find_included_lib_files, check_module):
9438         * lib/argmatch.c (main) [TEST]:
9439         * lib/argp-help.c (_help):
9440         * lib/getopt1.c (main) [TEST]:
9441         * lib/git-merge-changelog.c (usage):
9442         * lib/xstrtol-error.c (xstrtol_error):
9443         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
9444         * m4/argz.m4 (gl_FUNC_ARGZ):
9445         * m4/bison.m4 (gl_BISON):
9446         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
9447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9448         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9449         * m4/fpending.m4 (gl_PREREQ_FPENDING):
9450         * m4/gc-random.m4 (gl_GC_RANDOM):
9451         * m4/intl.m4 (gt_CHECK_DECL):
9452         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
9453         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
9454         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
9455         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
9456         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9457         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
9458         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
9459         * tests/test-dirname.c (main):
9460         * tests/test-getpass.c (main):
9461         * tests/test-iconvme.c (main):
9462         * tests/test-parse-datetime.c (LOG):
9463         * tests/test-xstrtoimax.sh:
9464         * tests/test-xstrtol.sh:
9465         * tests/test-xstrtoll.sh:
9466         * tests/test-xstrtoumax.sh:
9467         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
9468         * top/GNUmakefile (abort-due-to-no-makefile):
9469         Quote 'like this', not `like this', as per the recent change to
9470         the GNU coding standards.
9471
9472 2012-01-05  Bruno Haible  <bruno@clisp.org>
9473
9474         strtoimax: Don't force a replacement on systems where intmax_t is int.
9475         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
9476         'intmax_t' is not larger than 'int'.
9477         Reported by Pádraig Brady <P@draigBrady.com>.
9478
9479 2012-01-05  Bruno Haible  <bruno@clisp.org>
9480
9481         doc: Mention NetBSD bugs.
9482         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
9483         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
9484
9485 2012-01-05  Bruno Haible  <bruno@clisp.org>
9486
9487         strtoumax tests: Enhance tests.
9488         * tests/test-strtoumax.c (main): Add tests for large values.
9489
9490 2012-01-05  Bruno Haible  <bruno@clisp.org>
9491
9492         strtoimax: Work around AIX 5.1 bug.
9493         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
9494         definition.
9495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
9496         Set HAVE_STRTOIMAX.
9497         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
9498         REPLACE_STRTOIMAX.
9499         * modules/inttypes-incomplete (Makefile.am): Substitute
9500         REPLACE_STRTOIMAX.
9501         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
9502         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
9503         (Depends-on): Update conditions.
9504         * tests/test-strtoimax.c (main): Add tests for large values.
9505         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
9506
9507 2012-01-05  Bruno Haible  <bruno@clisp.org>
9508
9509         inttypes: Modernize.
9510         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
9511         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
9512         (Makefile.am): Update inttypes.h rule.
9513
9514 2012-01-05  Jim Meyering  <meyering@redhat.com>
9515
9516         init.sh: don't waste a subshell just to redirect stderr
9517         * tests/init.sh: In testing for diff -u and diff -c, use a
9518         stderr-redirecting exec inside `...` rather than a subshell.
9519
9520         test-init.sh: avoid failure on HP-UX 11.00
9521         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
9522         resolves to diff -c or cmp.  Reported by Bruno Haible.
9523
9524 2012-01-05  Bruno Haible  <bruno@clisp.org>
9525
9526         Tests for module 'strtoull'.
9527         * modules/strtoull-tests: New file.
9528         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
9529
9530 2012-01-05  Bruno Haible  <bruno@clisp.org>
9531
9532         Tests for module 'strtoll'.
9533         * modules/strtoll-tests: New file.
9534         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
9535
9536 2012-01-05  Bruno Haible  <bruno@clisp.org>
9537
9538         Tests for module 'strtoul'.
9539         * modules/strtoul-tests: New file.
9540         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
9541
9542 2012-01-05  Bruno Haible  <bruno@clisp.org>
9543
9544         Tests for module 'strtol'.
9545         * modules/strtol-tests: New file.
9546         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
9547
9548 2012-01-04  Jim Meyering  <meyering@redhat.com>
9549
9550         test-init.sh: accommodate Solaris 5.10's different diff -u output
9551         * tests/test-init.sh: Also exempt @@ lines from the comparison
9552         of diff output, since Solaris 5.10 and GNU diff formats differ.
9553         Reported by Stefano Lattarini.
9554
9555 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9556
9557         test-posixtm: don't assume signed integer wraparound
9558         * tests/test-posixtm.c (main): Don't assume wraparound semantics
9559         after signed integer overflow.  Inspired by (though it may not
9560         fix) Bruno Haible's bug report in
9561         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
9562
9563         Spell out "Windows 9x" and "Windows XP".
9564         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
9565         "Windows 9x" and "WinXP" with "Windows XP".
9566
9567 2012-01-04  Jim Meyering  <meyering@redhat.com>
9568
9569         test-vc-list-files-cvs.sh: remove obsolete comment
9570         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
9571         double exit.  Now that's all encapsulated via skip_ and Exit.
9572
9573 2012-01-04  Bruno Haible  <bruno@clisp.org>
9574
9575         Talk about "native Windows API", not "Win32".
9576         * lib/classpath.c: Update comments to mention native Windows.
9577         * lib/csharpexec.c: Likewise.
9578         * lib/dup2.c: Likewise.
9579         * lib/error.c: Likewise.
9580         * lib/fcntl.c: Likewise.
9581         * lib/filename.h: Likewise.
9582         * lib/findprog.c: Likewise.
9583         * lib/get-rusage-as.c: Likewise.
9584         * lib/get-rusage-data.c: Likewise.
9585         * lib/getpagesize.c: Likewise.
9586         * lib/javaexec.c: Likewise.
9587         * lib/msvc-inval.c: Likewise.
9588         * lib/msvc-nothrow.c: Likewise.
9589         * lib/nanosleep.c: Likewise.
9590         * lib/nonblocking.c: Likewise.
9591         * lib/printf-parse.c: Likewise.
9592         * lib/setlocale.c: Likewise.
9593         * lib/sigaction.c: Likewise.
9594         * lib/strerror_r.c: Likewise.
9595         * lib/tmpdir.c: Likewise.
9596         * lib/vasnprintf.c: Likewise.
9597         * lib/w32spawn.h: Likewise.
9598         * lib/waitpid.c: Likewise.
9599         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
9600         * m4/locale-ar.m4: Likewise.
9601         * m4/locale-fr.m4: Likewise.
9602         * m4/locale-ja.m4: Likewise.
9603         * m4/locale-tr.m4: Likewise.
9604         * m4/locale-zh.m4: Likewise.
9605         * m4/printf.m4: Likewise.
9606         * tests/test-cloexec.c: Likewise.
9607         * tests/test-copy-acl.sh: Likewise.
9608         * tests/test-copy-file.sh: Likewise.
9609         * tests/test-file-has-acl.sh: Likewise.
9610         * tests/test-set-mode-acl.sh: Likewise.
9611         * tests/test-dup-safer.c: Likewise.
9612         * tests/test-dup2.c: Likewise.
9613         * tests/test-dup3.c: Likewise.
9614         * tests/test-fcntl.c: Likewise.
9615         * tests/test-nonblocking-pipe.h: Likewise.
9616         * tests/test-nonblocking-socket.h: Likewise.
9617         * tests/test-pipe.c: Likewise.
9618         * tests/test-pipe2.c: Likewise.
9619         * tests/test-spawn-pipe-child.c: Likewise.
9620         * doc/acl-resources.txt: Likewise.
9621         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9622         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
9623         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
9624         * lib/localcharset.c: Update comments to mention native Windows.
9625         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9626         * lib/localename.c: Likewise.
9627         * lib/progreloc.c: Likewise.
9628         * lib/relocatable.c: Likewise.
9629         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
9630         (windows_compute_revents): Renamed from win32_compute_revents.
9631         (windows_compute_revents_socket): Renamed from
9632         win32_compute_revents_socket.
9633         * lib/select.c: Update comments to mention native Windows.
9634         (windows_poll_handle): Renamed from win32_poll_handle.
9635         * m4/threadlib.m4: Update comments to mention native Windows.
9636         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
9637         --enable-threads=windows instead of --enable-threads=win32. Set
9638         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
9639         * lib/glthread/lock.h: Update comments to mention native Windows.
9640         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
9641         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
9642         USE_WIN32_THREADS.
9643         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
9644         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
9645         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
9646         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
9647         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
9648         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
9649         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
9650         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
9651         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
9652         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
9653         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
9654         * tests/test-tls.c: Likewise.
9655         Rationale:
9656         Microsoft renamed the "Win32 API" to "Windows API", as it is available
9657         on both 32-bit and 64-bit Windows systems.
9658         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
9659         line of distinction is between "native Windows" on one side and Unix/
9660         POSIX systems on the other side. More details in
9661         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
9662         Suggested by Paul Eggert.
9663
9664 2012-01-03  Bruno Haible  <bruno@clisp.org>
9665
9666         isatty: Support for MSVC 9.
9667         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
9668         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
9669         (_isatty_nothrow): New function.
9670         (isatty): Use it instead of _isatty.
9671         (IsConsoleHandle): Add comment, from Paolo Bonzini.
9672         * lib/poll.c (IsConsoleHandle): Likewise.
9673         * lib/select.c (IsConsoleHandle): Likewise.
9674         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
9675         (gl_PREREQ_ISATTY): New macro.
9676         * modules/isatty (Depends-on): Add msvc-inval.
9677         (configure.ac): Invoke gl_PREREQ_ISATTY.
9678
9679 2012-01-03  Jim Meyering  <meyering@redhat.com>
9680
9681         maint.mk: remove temporary transition aid from over 1.5 years ago
9682         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
9683         purpose was to aid in the transition (avoiding silent malfunction)
9684         from that old name to the new _sc_search_regexp.  This shim was
9685         added by commit 219c504b.
9686
9687         init.sh: do not try to accommodate compare arguments starting with "-"
9688         * tests/init.sh (compare_dev_null_): Do not try to accommodate
9689         compare arguments that start with "-".  Besides, we do not worry
9690         about this when invoking diff or cmp; why start now with sed?
9691         Using "--" to separate options from argument would trigger sed
9692         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
9693         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
9694
9695 2012-01-02  Bruno Haible  <bruno@clisp.org>
9696
9697         Enhance tests for module 'isatty'.
9698         * modules/isatty-tests (Depends-on): Add pipe-posix.
9699         * tests/test-isatty.c: Include <fcntl.h>.
9700         (DEV_NULL): New macro.
9701         (main): Test the resut of isatty() also on regular files, pipes, and
9702         /dev/null.
9703
9704         New module 'isatty'.
9705         * lib/unistd.in.h (isatty): New declaration.
9706         * lib/isatty.c: New file, based on an idea of
9707         Bastien Roucariès <roucaries.bastien@gmail.com>.
9708         * m4/isatty.m4: New file.
9709         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
9710         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
9711         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
9712         REPLACE_ISATTY.
9713         * modules/isatty: New file.
9714         * doc/posix-functions/isatty.texi: Mention the new module.
9715         Suggested by Paolo Bonzini.
9716
9717 2012-01-02  Bruno Haible  <bruno@clisp.org>
9718
9719         canonicalize: Tweak 2011-12-29 commit.
9720         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
9721         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
9722
9723 2012-01-02  Jim Meyering  <meyering@redhat.com>
9724
9725         gitlog-to-changelog: describe input syntax in --help output
9726         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
9727
9728         gitlog-to-changelog: fix typo in --help: show backslash before email @
9729         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
9730         in sources, but not in actual output.
9731
9732 2011-12-30  Jim Meyering  <meyering@redhat.com>
9733
9734         gitlog-to-changelog: don't malfunction when name contains %-directive
9735         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
9736         in a name string cause trouble.  E.g., with a user name of "%s",
9737         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
9738
9739 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
9740
9741         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
9742         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
9743         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
9744         the "  (tiny change)" notation that is appended to the standard
9745         ChangeLog "date  name  email" header line.
9746
9747 2012-01-01  Jim Meyering  <meyering@redhat.com>
9748
9749         test-framework-sh: init.sh: fix "make dist" failure
9750         When using gnulib-tool's --with-tests option and any module that
9751         depends on test-framework-sh, "make dist" would fail due to the
9752         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
9753         in the gltests directory, and not in the gllib/ directory.
9754         One way to work around that is to move the EXTRA_DIST += init.sh
9755         from the primary module to the -tests one:
9756         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
9757         * modules/test-framework-sh (Makefile.am): ...not here.
9758         Reported by Tom G. Christensen in
9759         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
9760
9761         version-etc: update copyright year reported by --version
9762         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
9763
9764 2011-12-31  Pádraig Brady  <P@draigBrady.com>
9765
9766         canonicalize: only stat() if required
9767         * lib/canonicalize.c (canonicalize_filename_mode):
9768         Avoid calling l?stat() when both CAN_MISSING,
9769         and CAN_NOLINKS are set, as we neither need
9770         to resolve symlinks or test component existence.
9771
9772 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
9773
9774         doc: cover st_ino issues once; add OpenVMS etc.
9775         * doc/posix-functions/stat.texi (stat):
9776         * doc/posix-functions/lstat.texi (lstat):
9777         * doc/posix-functions/fstatat.texi (fstatat):
9778         * doc/posix-functions/fstat.texi (fstat):
9779         Move general 'struct stat' stuff to sys_stat.texi,
9780         leaving behind a pointer.
9781         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9782         Merge duplicate info about 'struct stat' problems into here.
9783         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
9784         and suggest partial workarounds.
9785
9786         same-inode: port to OpenVMS
9787         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
9788         three st_ino values.
9789
9790 2011-12-30  Pádraig Brady  <P@draigBrady.com>
9791
9792         canonicalize: fix references to stat() and lstat()
9793         * lib/canonicalize.c (canonicalize_filename_mode):
9794         Ensure references always resolve to a replacement
9795         function if required (even via a macro).
9796
9797 2011-12-30  Jim Meyering  <meyering@redhat.com>
9798
9799         gitlog-to-changelog: remove a little duplication
9800         * build-aux/gitlog-to-changelog (main): Grep @lines once,
9801         rather than twice.
9802
9803 2011-12-29  Pádraig Brady  <P@draigBrady.com>
9804
9805         canonicalize: add support for not resolving symlinks
9806         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
9807         indicate we don't want to follow symlinks.  Also
9808         provide CAN_MODE_MASK to aid setting these existing
9809         mutually exclusive values.
9810         * lib/canonicalize.c (canonicalize_filename_mode):
9811         Extract the flags from can_mode parameter, which
9812         are currently just used to select between stat()
9813         and lstat().  Also ensure that mutually exclusive
9814         values are flagged immediately as invalid.
9815         * tests/test-canonicalize.c: Verify symlinks are
9816         not followed, and that invalid flag combinations
9817         are diagnosed.
9818
9819 2011-12-25  Jim Meyering  <meyering@redhat.com>
9820
9821         gitlog-to-changelog: do not clump multi-paragraph entries
9822         Identical header lines (date,name,email+coauthors) are suppressed,
9823         thus putting all entries with those same characteristics under
9824         a single header.  However, when a log entry consists of two or
9825         more paragraphs, it may not be clear where it starts and ends.
9826         This change makes it so that such an entry is always separated
9827         from others by a header line, even when that header would
9828         otherwise be suppressed.
9829         * build-aux/gitlog-to-changelog: Implement the above.
9830         Inspired by a related request from Stefano Lattarini in
9831         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9832
9833 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         announce-gen: fix `cmd' typo in diagnostic
9836         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9837         diagnostic: a missing '$' meant that the command was not output.
9838
9839 2011-12-23  Jim Meyering  <meyering@redhat.com>
9840
9841         test-framework-sh: distribute init.sh
9842         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9843         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9844         fail due to the lack of init.sh.
9845
9846         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9847         * modules/atexit-tests: Rather than listing tests/init.sh,
9848         now that there's a module for it, simply depend on that new module.
9849         * modules/closein-tests: Likewise.
9850         * modules/exclude-tests: Likewise.
9851         * modules/getcwd-tests: Likewise.
9852         * modules/perror-tests: Likewise.
9853         * modules/pread-tests: Likewise.
9854         * modules/pwrite-tests: Likewise.
9855         * modules/vc-list-files-tests: Likewise.
9856         * modules/verify-tests: Likewise.
9857         * modules/xalloc-die-tests: Likewise.
9858         * modules/xstrtoimax-tests: Likewise.
9859         * modules/xstrtol-tests: Likewise.
9860         * modules/xstrtoll-tests: Likewise.
9861         * modules/xstrtoumax-tests: Likewise.
9862         * modules/yesno-tests: Likewise.
9863
9864 2011-12-22  Jim Meyering  <meyering@redhat.com>
9865
9866         test-framework-sh: add minimal tests of init.sh's compare function
9867         * modules/test-framework-sh-tests: New file.
9868         * tests/test-init.sh: New file.
9869
9870         test-framework-sh: new module
9871         * modules/test-framework-sh: New file.
9872         * MODULES.html.sh (Support for maintaining and releasing projects):
9873         List it.
9874
9875         init.sh: do not emit simulated diff output to stderr
9876         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9877
9878 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9879
9880         .gitignore: ignore gnulib.dvi and regex.info
9881         * doc/.gitignore:add gnulib.dvi and regex.info
9882
9883 2011-12-22  Jim Meyering  <meyering@redhat.com>
9884
9885         init.sh: correct previous change
9886         * tests/init.sh (compare): My previous change was wrong.
9887         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9888
9889         init.sh: avoid unwarranted test failure when using "set -e"
9890         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9891         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9892         a use like "compare exp out" would get evoke an unconditional failure.
9893
9894 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9895
9896         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9897         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9898         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9899         autoreconf that did not.
9900         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9901         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9902
9903 2011-12-17  Jim Meyering  <meyering@redhat.com>
9904
9905         bootstrap: remove some now-unneeded code
9906         This script arose back when gnulib-tool was young.
9907         Since then, it has seen improvements that render much of this
9908         script unnecessary.  In particular, it can now make symlinks
9909         to the files it uses.  Also, I no longer see as much value in
9910         marking files as read-only via comments.
9911         If you relied on the symlink-creation feature of the preceding
9912         version of this script, you can get most of that functionality
9913         by adding the --symlink option to the definition of
9914         gnulib_tool_option_extras in your bootstrap.conf file.
9915         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9916         Run autopoint and libtoolize *before* gnulib-tool.
9917         After it, run an abbreviated autoreconf, rather than a loop around
9918         all tools.
9919         (slirp, bt_mark_as_generated): Remove functions.
9920
9921 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9922
9923         ftoastr: fix typo
9924         * lib/ftoastr.h: Fix misspelling in comment.
9925
9926 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9927
9928         * top/README-release: fix punctuation.
9929
9930 2011-12-17  Jim Meyering  <meyering@redhat.com>
9931
9932         bootstrap: correct the recent buildreq change
9933         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9934         had no effect.
9935         * build-aux/bootstrap (buildreq): Bracket each search term with
9936         "*...*", so that the shell "case" statement works as intended.
9937         Add comments.
9938
9939 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9940
9941         build: let bootstrap resort to wget when downloading .po files
9942         * build-aux/bootstrap (download_po_files): Fallback to wget when
9943         downloading the .po files via rsync fails.  This is necessary to
9944         bootstrap from behind a strict firewall.
9945
9946 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9947
9948         stdint: don't assume C++11 when compiling with g++
9949         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9951         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9952         work also in C++ before C++11, as that improperly inhibits
9953         generating a substitute stdint.h for that case.
9954
9955 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9956
9957         alloca: protect comment from gnulib-tool
9958         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9959         that gnulib-tool doesn't think it's a license, and munge it to
9960         say "GCC version 3".
9961
9962 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9963
9964         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9965         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9966         $(abs_top_builddir) instead of $(top_builddir).
9967
9968 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9969
9970         strftime-tests: also test nanoseconds
9971         * tests/test-strftime.c (T): Add a test of %N.
9972
9973 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9974
9975         inttypes, stdint: add C++11 support
9976         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9977         when including inttypes.h and stdint.h.  Support this change to
9978         the standard.
9979         * doc/posix-headers/inttypes.texi (inttypes.h):
9980         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9981         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9982         Define if not defined already, for the benefit of pre-C++11 hosts.
9983         Define the standard format macros (e.g., PRId8) always.
9984         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9985         Likewise, if __cpluspus.  Define the standard constant and limit
9986         macros (e.g., INT8_C, INT8_MAX) always.
9987         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9988         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9989         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9990         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9991         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9992         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9993         Likewise.
9994
9995 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9996
9997         nonblocking tests: Fix test failure on Linux/PPC.
9998         Suggested by Prerna Saxena in
9999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10000         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10001         Set to 1100000.
10002
10003 2011-12-12  Jim Meyering  <meyering@redhat.com>
10004
10005         argmatch: don't hard-code `' when listing valid option arguments
10006         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10007         use the quote function to add quotes.  Use fputs rather than
10008         fprintf for the format string with no format directive.
10009
10010 2011-12-07  Eric Blake  <eblake@redhat.com>
10011
10012         bootstrap: detect tools required by gnulib-tool
10013         * build-aux/bootstrap (buildreq): Provide minimum implicit
10014         dependencies.
10015         * DEPENDENCIES: Mention patch as a prereq.
10016
10017 2011-12-04  Bruno Haible  <bruno@clisp.org>
10018
10019         sethostname: Port to Windows platforms.
10020         * lib/sethostname.c: Provide an alternate implementation for Windows
10021         platforms.
10022         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10023         (main): Skip the test if sethostname() fails with EPERM. On Windows
10024         platforms, don't check the result of gethostname().
10025
10026 2011-12-04  Bruno Haible  <bruno@clisp.org>
10027             Jim Meyering  <meyering@redhat.com>
10028
10029         tests: Avoid spurious error message on platforms without mktemp program.
10030         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10031
10032 2011-12-04  Bruno Haible  <bruno@clisp.org>
10033
10034         sethostname: Fix documentation.
10035         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10036         "not fixed" section.
10037
10038 2011-12-03  Bruno Haible  <bruno@clisp.org>
10039
10040         gnulib-tool: Verify that the License field is present and non-empty.
10041         * gnulib-tool (func_get_license_raw): New function, extracted from
10042         func_get_license.
10043         (func_get_license): Use it. Warn if the module is not a test module and
10044         has no license.
10045         Suggested by Jim Meyering.
10046
10047 2011-12-03  Bruno Haible  <bruno@clisp.org>
10048
10049         sethostname tests: Fix link error on mingw.
10050         * tests/test-sethostname1.c: New file, extracted from
10051         tests/test-sethostname.c.
10052         * tests/test-sethostname2.c: New file, extracted from
10053         tests/test-sethostname.c.
10054         * tests/test-sethostname.c: Remove file.
10055         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10056         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10057         (Depends-on): Add gethostname.
10058         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10059         Link the latter with $(GETHOSTNAME_LIB).
10060
10061         sethostname tests: Fix compilation error on mingw.
10062         * tests/test-sethostname.c: Don't include <sys/types.h>.
10063         (geteuid): Use a dummy value without uid_t.
10064         * modules/sethostname-tests (Depends-on): Remove sys_types.
10065
10066         sethostname tests: Avoid a gcc warning.
10067         * tests/test-sethostname.c (main): Remove an unused variable.
10068
10069         Tweak last commit.
10070         * modules/sethostname-tests (Files): Sort by decreasing importance.
10071         (configure.ac): Check for geteuid.
10072         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
10073         the test when there's nothing to test. Drop an unnecessary cast.
10074         Improve an error message. Verify that the final sethostname() call
10075         succeeds.
10076
10077 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10078
10079         Add a test suite for the sethostname module.
10080         * modules/sethostname-tests: New file.  A test program
10081         for the sethostname module.
10082         * tests/test-sethostname.c: Likewise.
10083
10084 2011-12-03  Bruno Haible  <bruno@clisp.org>
10085
10086         Tweak last commit.
10087         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
10088         Fix preprocessor directives indentation. Fix typos.
10089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
10090         * modules/unistd (Makefile): Likewise.
10091
10092 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10093
10094         Integrate the sethostname module into unistd.
10095         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
10096         into the unistd.h header.
10097         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
10098         preprocessor directives.
10099         * modules/unistd: Setup the Makefile substitutions of the
10100         SETHOSTNAME preprocessor directives.
10101
10102 2011-12-03  Bruno Haible  <bruno@clisp.org>
10103
10104         Tweak last commit.
10105         * lib/sethostname.c: Don't include <string.h>.
10106         (sethostname): No need to copy the argument string to the stack. Don't
10107         call clearerr. Preserve errno when fprintf failed.
10108         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
10109         Don't invoke AC_REPLACE_FUNCS.
10110         * modules/sethostname (Link): Remove empty section.
10111         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
10112         failure problem.
10113
10114 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10115
10116         New module 'sethostname'.
10117         * lib/sethostname.c (sethostname): New file.  Provide sethostname
10118         for systems that lack it.
10119         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
10120         sethostname declaration and function.
10121         * modules/sethostname: New file.  Define the sethostname module.
10122
10123 2011-12-03  Bruno Haible  <bruno@clisp.org>
10124
10125         Tweak last commit.
10126         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
10127
10128 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
10129
10130         Split the HOST_NAME_MAX detection into a separate m4 macro.
10131         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
10132         macro so it can be used by the pending sethostname module.
10133
10134 2011-12-03  Bruno Haible  <bruno@clisp.org>
10135
10136         Fix module descriptions syntax.
10137         * modules/argv-iter (License): Fix syntax.
10138         * modules/di-set (License): Likewise.
10139         * modules/ino-map (License): Likewise.
10140         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
10141
10142 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10143
10144         stdalign: port to Clang 3.0
10145         Problem reported by Simon Josefsson in
10146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
10147         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
10148         which has <stdalign.h> but which does not define alignof.
10149         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
10150
10151 2011-12-01  Eric Blake  <eblake@redhat.com>
10152
10153         mktempd: silence dd usage
10154         * build-aux/mktempd (rand_bytes): Silence dd.
10155
10156 2011-11-30  Simon Josefsson  <simon@josefsson.org>
10157
10158         manywarnings: Don't mention gcc version in docstring.
10159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
10160         Jim Meyering <meyering@redhat.com>.
10161
10162 2011-11-30  Jim Meyering  <meyering@redhat.com>
10163
10164         hash: mark a few floating point constants with "f" suffix
10165         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
10166         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
10167         floating point constants with "f", since they're destined to be
10168         saved/used as "float"s.
10169
10170 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
10171
10172         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
10173         * tests/test-float.c (test_long_double): Correct and re-enable the
10174         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
10175
10176 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
10177
10178         Avoid subtracting two pointers that don't point into the same block.
10179         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
10180         only pointers into the same memory block are subtracted. We cannot
10181         assume that sizeof (ptrdiff_t) == sizeof (void *).
10182
10183 2011-11-29  Eric Blake  <eblake@redhat.com>
10184
10185         maint.mk: add syntax check for use of compare from init.sh
10186         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
10187         moved here from coreutils.
10188
10189         manywarnings: drop -Wunsuffixed-float-constants
10190         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
10191         '1.0D', which is the only way to silence this warning for 'double'.
10192
10193 2011-11-29  Jim Meyering  <meyering@redhat.com>
10194
10195         hash: mark compute_bucket_size with the pure attribute
10196         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
10197
10198         quotearg, propername: correct pragma guard expression
10199         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
10200         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
10201
10202 2011-11-28  Jim Meyering  <meyering@redhat.com>
10203
10204         propername: do not mark proper_name with the const attribute
10205         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
10206         since it examines data pointed to by its parameter.
10207         * lib/propername.c (proper_name): Instead, add a pragma to suppress
10208         the suggestion from -Wsuggest-attribute=const.
10209
10210         propername: mark one more function as const
10211         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
10212
10213 2011-11-27  Jim Meyering  <meyering@redhat.com>
10214
10215         mark functions with const and pure attributes
10216
10217         Mark functions per suggestions from gcc-4.6 when using these options:
10218         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
10219         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
10220         Follow these guidelines: when possible, apply the attribute to
10221         an extern declaration, not to its definition.  Apply it to the
10222         definition only when the definition is static.
10223         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
10224         * lib/argv-iter.h (argv_iter_n_args): Likewise.
10225         * lib/base64.h (isbase64): Likewise.
10226         * lib/basename-lgpl.c (last_component, base_len): Likewise.
10227         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
10228         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
10229         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
10230         (c_tolower, c_toupper): Likewise.
10231         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
10232         * lib/chdir-long.c (find_non_slash): Likewise.
10233         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
10234         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
10235         * lib/file-type.h (file_type): Likewise.
10236         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
10237         * lib/filevercmp.c (verrevcmp): Likewise.
10238         * lib/freadahead.h (freadahead): Likewise.
10239         * lib/fts.c (fts_maxarglen): Likewise.
10240         * lib/hash-pjw.h (hash_pjw): Likewise.
10241         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
10242         * lib/hash.c (is_prime, next_prime): Likewise.
10243         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
10244         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
10245         (hash_table_ok, hash_get_first, hash_string): Likewise.
10246         (compute_bucket_size): Likewise.
10247         * lib/i-ring.h (i_ring_empty): Likewise.
10248         * lib/isnan.c (isnanl): Likewise.
10249         * lib/math.h (isnanl, rpl_isnanl): Likewise.
10250         * lib/memcasecmp.h (memcasecmp): Likewise.
10251         * lib/memchr2.h (memchr2): Likewise.
10252         * lib/memcmp2.h (memcmp2): Likewise.
10253         * lib/parse-datetime.y (lookup_zone): Likewise.
10254         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
10255         [!WINDOWS_SOCKETS]: Likewise.
10256         * lib/strnlen1.h (strnlen1): Likewise.
10257         * lib/uniwidth.in.h (uc_width): Likewise.
10258         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
10259         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
10260         (quoting_options_from_style): Add a comment.
10261         * lib/propername.h (proper_name): Add a comment.
10262
10263 2011-11-27  Bruno Haible  <bruno@clisp.org>
10264
10265         Remove unused macros from !_LIBC code in glibc-borrowed files.
10266         * lib/fnmatch.c (STRCOLL): Remove macro.
10267         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
10268         * lib/glob.c (__stat, __readdir64): Remove macros.
10269         * lib/tempname.c (__open64, __xstat64): Remove macros.
10270         Suggested by Paul Eggert.
10271
10272 2011-11-27  Bruno Haible  <bruno@clisp.org>
10273
10274         getcwd: Fix link error on MSVC 9.
10275         * modules/getcwd (Depends-on): Add readdir, rewinddir.
10276
10277 2011-11-27  Bruno Haible  <bruno@clisp.org>
10278
10279         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
10280         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
10281         HAVE_OPENDIR is 0.
10282         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
10283         HAVE_CLOSEDIR is 0.
10284         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
10285         is 0.
10286         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
10287
10288 2011-11-27  Bruno Haible  <bruno@clisp.org>
10289
10290         getcwd: Fix bug from 2011-08-17.
10291         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
10292         platforms that need it.
10293         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
10294         code of 4 to be a failure, not a success. This ensures that
10295         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
10296
10297 2011-11-27  Bruno Haible  <bruno@clisp.org>
10298
10299         binary-io tests: Avoid test failure on mingw when libtool is used.
10300         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
10301         Don't verify the size of t-bin-out1.tmp here.
10302         * tests/test-binary-io.sh: Verify it here.
10303         Reported by Simon Josefsson.
10304
10305 2011-11-26  Bruno Haible  <bruno@clisp.org>
10306
10307         Fix conflict between two instantiations of module 'unistd'.
10308         * gnulib-tool (func_emit_autoconf_snippet): Substitute
10309         ${include_guard_prefix} also in the autoconf snippet.
10310         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
10311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
10312         GNULIB_UNISTD_H_GETOPT.
10313         * modules/getopt-posix (configure.ac): Set the
10314         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
10315         * modules/getopt-gnu (configure.ac): Likewise.
10316         * modules/unistd (Makefile.am): Change the substitution value of
10317         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
10318         Reported by Simon Josefsson.
10319
10320 2011-11-25  Bruno Haible  <bruno@clisp.org>
10321
10322         pagealign_alloc: Doc and comments.
10323         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
10324         module.
10325         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
10326
10327 2011-11-25  Jim Meyering  <meyering@redhat.com>
10328
10329         test-update-copyright.sh: avoid false-positive failure
10330         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
10331         around false positive failure on Cygwin/Windows.  The latter was
10332         matching erroneously-created files with names like
10333         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
10334
10335 2011-11-25  Simon Josefsson  <simon@josefsson.org>
10336
10337         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
10338         * m4/valgrind-tests.m4: Check that the parameters that will be
10339         used works, not just a subset of them.  Reported by Bruno Haible
10340         <bruno@clisp.org>.
10341
10342 2011-11-24  Jim Meyering  <meyering@redhat.com>
10343
10344         test-stdalign.c: comment out long double tests
10345         * tests/test-stdalign.c: Don't try to reduce alignment of long double
10346         variables.  That provokes errors like this from gcc-4.7.0 20111124:
10347         error: '_Alignas' specifiers cannot reduce alignment of \
10348         'static_longdouble_alignas'.
10349
10350 2011-11-22  Jim Meyering  <meyering@redhat.com>
10351
10352         init.sh: make "compare /dev/null FILE" output more readable
10353         * tests/init.sh (compare_): Document the preferred order of arguments.
10354         (emit_diff_u_header_): New function.
10355         (compare_dev_null_): Emit a simulated diff, rather than just the
10356         contents of the unexpected file.  Suggestion from Bruno Haible.
10357
10358 2011-11-21  Jim Meyering  <meyering@redhat.com>
10359             Eric Blake  <eblake@redhat.com>
10360
10361         init.sh: work around OSF/1 5.1's mishandling of /dev/null
10362         * tests/init.sh: Make our compare function slightly more portable.
10363         Reported by Bruno Haible in
10364         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
10365
10366 2011-11-21  Simon Josefsson  <simon@josefsson.org>
10367
10368         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
10369         before using it, in code that ends up in config.h.
10370
10371 2011-11-20  Bruno Haible  <bruno@clisp.org>
10372
10373         getcwd: Work around getcwd bug on AIX 5..7.
10374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
10375         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
10376         Use a different value for gl_cv_func_getcwd_path_max. Move the
10377         definition of HAVE_PARTLY_WORKING_GETCWD from here...
10378         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
10379         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
10380         Define HAVE_MINIMALLY_WORKING_GETCWD.
10381         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
10382         where it is not even minimally working, that is, on AIX.
10383         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
10384         m4/getcwd-path-max.m4.
10385         (main): Update exit code computation.
10386         * doc/posix-functions/getcwd.texi: Mention list of platforms where
10387         getcwd does not handle long file names.
10388
10389 2011-11-20  Bruno Haible  <bruno@clisp.org>
10390
10391         getcwd: Fix bug from 2009-09-10.
10392         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
10393         like "no".
10394
10395 2011-11-20  Simon Josefsson  <simon@josefsson.org>
10396
10397         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
10398
10399 2011-11-20  Bruno Haible  <bruno@clisp.org>
10400
10401         fma tests: Avoid shadowing local variables.
10402         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
10403         expected.
10404
10405 2011-11-20  Bruno Haible  <bruno@clisp.org>
10406
10407         copysignf tests: Fix.
10408         * tests/test-copysignf.c: Fix signature check.
10409
10410 2011-11-20  Bruno Haible  <bruno@clisp.org>
10411
10412         fma: Remove unused code.
10413         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
10414         unused macros.
10415
10416 2011-11-20  Bruno Haible  <bruno@clisp.org>
10417
10418         sethostname: Fix doc about AIX.
10419         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
10420         sethostname; it has it.
10421
10422         sethostname: Mention more portability problems.
10423         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
10424         problem.
10425         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
10426
10427 2011-11-19  Bruno Haible  <bruno@clisp.org>
10428
10429         Depend on module fcntl-h when AT_FDCWD is used.
10430         * modules/utimens (Depends-on): Add fcntl-h.
10431         * modules/areadlinkat (Depends-on): Likewise.
10432         * modules/areadlinkat-with-size (Depends-on): Likewise.
10433         * modules/faccessat (Depends-on): Likewise.
10434         * modules/fchmodat (Depends-on): Likewise.
10435         * modules/fchownat (Depends-on): Likewise.
10436         * modules/getcwd (Depends-on): Likewise.
10437         * modules/mkdirat (Depends-on): Likewise.
10438         * modules/mkfifoat (Depends-on): Likewise.
10439         * modules/readlinkat (Depends-on): Likewise.
10440         * modules/symlinkat (Depends-on): Likewise.
10441         * modules/dup2-tests (Depends-on): Likewise.
10442         * modules/fdutimensat-tests (Depends-on): Likewise.
10443         * modules/futimens-tests (Depends-on): Likewise.
10444
10445 2011-11-19  Bruno Haible  <bruno@clisp.org>
10446
10447         euidaccess: Update a comment.
10448         * lib/euidaccess.c: Update comment about platforms with faccessat.
10449
10450 2011-11-19  Bruno Haible  <bruno@clisp.org>
10451
10452         openat: Fix file list.
10453         * modules/openat (Files): Remove lib/at-func.c.
10454
10455 2011-11-19  Bruno Haible  <bruno@clisp.org>
10456
10457         fstatat: Simplify.
10458         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
10459         gnulib should define rpl_fstatat, there is a
10460         "#define fstatat rpl_fstatat" in <sys/stat.h>.
10461
10462 2011-11-19  Bruno Haible  <bruno@clisp.org>
10463
10464         Ensure 'inline' can be used in tests/test-utimens-common.h.
10465         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
10466         * modules/futimens-tests (configure.ac): Likewise.
10467         * modules/utimens-tests (configure.ac): Likewise.
10468         * modules/utimensat-tests (configure.ac): Likewise.
10469
10470 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10471
10472         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
10473         not hash_insert0.
10474         (hash_insert_if_absent): Doc fix.
10475
10476 2011-11-19  Simon Josefsson  <simon@josefsson.org>
10477
10478         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
10479
10480 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10481
10482         test-getcwd: disambiguate exit status
10483         * tests/test-getcwd.c (test_long_name): Return 0..7.
10484         (main): Exit with an unambiguous exit status.  The old
10485         code yielded a mysterious mixture of two failure codes.
10486
10487         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
10488         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
10489         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
10490         rpl_fstatat or fstatat.  This should fix the other problem
10491         reported by Kai Habel in
10492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10493         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
10494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
10495         and I reproduced it on a Solaris 8 host we still have in production.
10496
10497 2011-11-18  Jim Meyering  <meyering@redhat.com>
10498
10499         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
10500         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
10501         Add a sentence to the comment.
10502         (hash_insert0): New function that simply calls hash_insert_if_absent.
10503         * lib/hash.h (hash_insert_if_absent): Declare it.
10504         (hash_insert0): Add deprecation attribute.
10505         (_GL_ATTRIBUTE_DEPRECATED): Define.
10506         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
10507         not hash_insert0.
10508         * NEWS: Mention it, even though it's not really an incompatible change.
10509
10510 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
10511
10512         openat: avoid compilation failure due to lack of <errno.h> inclusion
10513         * lib/openat.c: Include <errno.h>.
10514
10515 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
10516
10517         * modules/getcwd (Depends-on): Add fdopendir.
10518         This fixes one of the two problems reported by Kai Habel in
10519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
10520
10521         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
10522         stdalign problem reported by Ian Beckwith in
10523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
10524         * modules/crypto/gc-arcfour (Depends-on):
10525         Depend conditionally on crypto/arcfour.
10526         * modules/crypto/gc-arctwo (Depends-on):
10527         Depend conditionally on crypto/arctwo.
10528         * modules/crypto/gc-des (Depends-on):
10529         Depend conditionally on crypto/des.
10530         * modules/crypto/gc-hmac-md5 (Depends-on):
10531         Depend conditionally on crypto/hmac-md5.
10532         * modules/crypto/gc-hmac-sha1 (Depends-on):
10533         Depend conditionally on crypto/hmac-sha1.
10534         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
10535         * modules/crypto/gc-md4 (Depends-on):
10536         Depend conditionally on crypto/md4.
10537         * modules/crypto/gc-md5 (Depends-on):
10538         Depend conditionally on crypto/md5.
10539         * modules/crypto/gc-rijndael (Depends-on):
10540         Depend conditionally on crypto/rijndael.
10541         * modules/crypto/gc-sha1 (Depends-on):
10542         Depend conditionally on crypto/sha1.
10543         * modules/crypto/gc-arcfour:
10544         * modules/crypto/gc-arctwo:
10545         * modules/crypto/gc-des:
10546         * modules/crypto/gc-hmac-md5:
10547         * modules/crypto/gc-hmac-sha1:
10548         * modules/crypto/gc-md2:
10549         * modules/crypto/gc-md4:
10550         * modules/crypto/gc-md5:
10551         * modules/crypto/gc-rijndael:
10552         * modules/crypto/gc-sha1:
10553         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
10554         now that the conditional dependencies do the work for us.
10555
10556 2011-11-17  Jim Meyering  <meyering@redhat.com>
10557
10558         tests: factor st_ctime-comparison out of two headers
10559         * tests/test-utimens-common.h (ctime_compare): Define.
10560         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
10561         * tests/test-lutimens.h (test_lutimens): Likewise.
10562         * tests/test-utimens.h (test_utimens): Likewise.
10563
10564         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
10565         Invoke the test program via an init.sh-using wrapper.
10566         * tests/test-getcwd.sh: New file.
10567         * modules/getcwd-tests (Files): Add it.
10568         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
10569
10570 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
10571
10572         gitlog-to-changelog: support multi-author commits.
10573         The FSF cares about keeping track of all authors of patches to its
10574         projects, but Git doesn't provide obvious support for multi-author
10575         changesets. Consensus seems to be forming around the use of extra
10576         Signed-off-by inspired lines in the log message formatted as
10577         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
10578         multi-author commits between version control systems.
10579         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
10580         log message and output in standard ChangeLog multi-author format.
10581         Reported by Peter Rosin <peda@lysator.liu.se>
10582
10583 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
10584             Bruno Haible  <bruno@clisp.org>
10585
10586         Fix some modules' file list.
10587         * modules/fstatat (Files): Add m4/lstat.m4.
10588         * modules/openat (Files): Likewise.
10589         * modules/unlinkat (Files): Likewise.
10590
10591 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
10592
10593         maint.mk: fix tight-scope.mk generation in VPATH builds.
10594         * top/maint.mk (tight-scope.mk): Make sure to prefix file
10595         reference with $(srcdir) so that the file is found correctly even
10596         when running `make syntax-check' in a VPATH build.
10597
10598 2011-11-13  Bruno Haible  <bruno@clisp.org>
10599             Jim Meyering  <meyering@redhat.com>
10600
10601         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
10602         * tests/init.sh (compare): Remove "No differences encountered" or
10603         synonymous output from the 'diff' program.
10604
10605 2011-11-13  Bruno Haible  <bruno@clisp.org>
10606
10607         Makefile: Tweak indentation.
10608         * Makefile: Use tab as first character in every line that contains rule
10609         commands.
10610
10611 2011-11-13  Bruno Haible  <bruno@clisp.org>
10612
10613         Syntax check for copyright statements.
10614         * check-copyright: New file.
10615         * Makefile (sc_check_copyright): New rule.
10616
10617 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10618
10619         * build-aux/git-version-gen: Add --prefix to configure the tag
10620         match string.
10621
10622 2011-11-13  Simon Josefsson  <simon@josefsson.org>
10623
10624         * build-aux/git-version-gen: Add --help and --version.
10625
10626 2011-11-12  Jim Meyering  <meyering@redhat.com>
10627
10628         revamp the other test-exclude?.sh scripts to use init.sh, too
10629         * tests/test-exclude1.sh: Use init.sh.
10630         * tests/test-exclude2.sh: Likewise.
10631         * tests/test-exclude3.sh: Likewise.
10632         * tests/test-exclude4.sh: Likewise.
10633         * tests/test-exclude5.sh: Likewise.
10634         * tests/test-exclude6.sh: Likewise.
10635         * tests/test-exclude7.sh: Likewise.
10636         * tests/test-exclude8.sh: Likewise.
10637         * modules/exclude-tests (Files): List init.sh.
10638
10639         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
10640         These shell scripts ignored failure of the binary test-exclude,
10641         so making the latter return 77 didn't cause them to be skipped.
10642         * tests/test-exclude5.sh: Exit with test-exclude's error status
10643         when that program fails.  Revamp to use init.sh.
10644         * tests/test-exclude2.sh: Likewise.
10645
10646         test-exclude: fix a typo
10647         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
10648
10649 2011-11-11  Bruno Haible  <bruno@clisp.org>
10650
10651         obstack: Fix compilation error on MSVC 9.
10652         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
10653
10654 2011-11-11  Jim Meyering  <meyering@redhat.com>
10655
10656         test-exclude: skip tests rather than failing on deficient systems
10657         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
10658         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
10659         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
10660         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
10661
10662 2011-11-10  Bruno Haible  <bruno@clisp.org>
10663
10664         ptsname_r test: Avoid gcc warning on glibc systems.
10665         * tests/test-ptsname_r.c (null_ptr): New function.
10666         (test_errors): Use it.
10667
10668 2011-11-10  Bruno Haible  <bruno@clisp.org>
10669
10670         ptsname_r: Avoid compilation error on OSF/1 5.1.
10671         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
10672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
10673         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
10674         function is not declared or incompatibly declared.
10675         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
10676         * modules/ptsname_r (Depends-on, configure.ac): Update.
10677         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
10678
10679 2011-11-10  Bruno Haible  <bruno@clisp.org>
10680
10681         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
10682         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
10683         When cross-compiling, guess yes on all platforms except AIX.
10684         Reported by Ludovic Courtès <ludo@gnu.org>.
10685
10686 2011-11-09  Bruno Haible  <bruno@clisp.org>
10687
10688         ptsname_r tests: Fix bugs.
10689         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
10690         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
10691
10692 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10693
10694         fstatat: work with cross-compilation
10695         Problem reported by Ludovic Courtès in
10696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
10697         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
10698         "cross-compiling" and assume the bug is present.  Replace
10699         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
10700         an inverted sense, to be more conservative about our assumptions.
10701         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
10702
10703 2011-11-09  Bruno Haible  <bruno@clisp.org>
10704
10705         Improve MODULES.html output.
10706         * modules/mkfifoat (Description): Use the word "function".
10707         * modules/readlinkat (Description): Likewise.
10708         * modules/symlinkat (Description): Likewise.
10709
10710 2011-11-09  Eric Blake  <eblake@redhat.com>
10711
10712         ptsname_r-tests: new test module
10713         * modules/ptsname_r-tests: New module.
10714         * tests/test-ptsname_r.c: New file.
10715
10716         ptsname_r: new module
10717         * modules/ptsname_r: New module.
10718         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
10719         * lib/ptsname.c (__ptsname_r): Split...
10720         * lib/ptsname_r.c: ...into new file.
10721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10722         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
10723         * modules/stdlib (Makefile.am): Substitute witnesses.
10724         * lib/stdlib.in.h (ptsname_r): Declare it.
10725         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
10726         * MODULES.html.sh (Misc): Likewise.
10727         * modules/ptsname (Depends-on): Alter dependency.
10728         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
10729
10730 2011-11-09  Jim Meyering  <meyering@redhat.com>
10731
10732         announce-gen: be more concise when there's only one URL+tarball
10733         * build-aux/announce-gen (get_tool_versions): When you distribute
10734         only one type of tarball, combine the first two "Here are..."
10735         sections and make the key-checking grammar independent of
10736         how many tarballs there are.
10737
10738 2011-11-09  Eric Blake  <eblake@redhat.com>
10739
10740         openpty: provide a stub on mingw
10741         * lib/pty.in.h (includes): Provide forward declarations.
10742         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
10743
10744         raise: fix mingw handling of SIGPIPE
10745         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
10746
10747 2011-11-08  Bruno Haible  <bruno@clisp.org>
10748
10749         More conditional dependencies.
10750         * modules/faccessat (Depends-on): Add conditions.
10751         * modules/fchmodat (Depends-on): Likewise.
10752         * modules/fchownat (Depends-on): Likewise.
10753         * modules/fstatat (Depends-on): Likewise.
10754         * modules/mkfifoat (Depends-on): Likewise.
10755         * modules/readlinkat (Depends-on): Likewise.
10756         * modules/symlinkat (Depends-on): Likewise.
10757         * modules/unlinkat (Depends-on): Likewise.
10758         * modules/utimensat (Depends-on): Likewise.
10759         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
10760         * modules/linkat (Depends-on): Refine the conditions.
10761         * modules/renameat (Depends-on): Likewise.
10762
10763 2011-11-08  Bruno Haible  <bruno@clisp.org>
10764
10765         faccessat: Move AC_LIBOBJ invocation to module description.
10766         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
10767         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
10768         invocation from here...
10769         * modules/faccessat (configure.ac): ... to here. Invoke
10770         gl_PREREQ_FACCESSAT.
10771
10772 2011-11-08  Bruno Haible  <bruno@clisp.org>
10773
10774         faccessat: Simplify autoconf macro.
10775         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
10776         gl_FUNC_EUIDACCESS.
10777
10778 2011-11-08  Bruno Haible  <bruno@clisp.org>
10779
10780         renameat: Fix dependencies.
10781         * modules/renameat (Depends-on): Add stdbool.
10782
10783 2011-11-08  Bruno Haible  <bruno@clisp.org>
10784
10785         mkfifoat: Fix module description.
10786         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
10787         not gl_UNISTD_MODULE_INDICATOR.
10788
10789 2011-11-08  Bruno Haible  <bruno@clisp.org>
10790
10791         fstatat: Remove unused dependency.
10792         * modules/fstatat (Depends-on): Remove fstat.
10793
10794 2011-11-08  Simon Josefsson  <simon@josefsson.org>
10795
10796         GNUmakefile: behave when Makefile is missing.
10797         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
10798
10799 2011-11-08  Bruno Haible  <bruno@clisp.org>
10800
10801         openat: Conditionalize dependencies.
10802         * lib/openat.c: Reduce the scope of some #includes.
10803         * modules/openat (Depends-on): Add conditions.
10804
10805 2011-11-07  Jim Meyering  <meyering@redhat.com>
10806
10807         maint.mk: extract GPG key ID without using a temporary file
10808         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
10809         without using a temporary file.  Based on a suggestion from Werner Koch
10810         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
10811
10812 2011-11-07  Eric Blake  <eblake@redhat.com>
10813
10814         grantpt: fix typo
10815         * lib/stdlib.in.h (grantpt): Check correct function.
10816
10817         maint.mk: silence new syntax check
10818         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
10819
10820 2011-11-06  Bruno Haible  <bruno@clisp.org>
10821
10822         Doc about floating-point and math API.
10823         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
10824         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
10825
10826 2011-11-06  Bruno Haible  <bruno@clisp.org>
10827
10828         stdalign tests: Skip the test when compiled by Sun C.
10829         * tests/test-stdalign.c (main): Skip the test on Sun C.
10830
10831 2011-11-06  Bruno Haible  <bruno@clisp.org>
10832
10833         ansi-c++-opt: Complete the 2011-06-05 change.
10834         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10835         does not support namespaces, set the variable to "no", not to ":".
10836
10837 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10838
10839         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10840
10841 2011-11-06  Bruno Haible  <bruno@clisp.org>
10842
10843         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10844         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10845         (minus_zerol) [HP-UX]: New macro.
10846         (unary_minus) [HP-UX]: New function.
10847         (copysignl) [HP-UX]: Use unary_minus function.
10848
10849 2011-11-06  Bruno Haible  <bruno@clisp.org>
10850
10851         ldexp, ldexpf, ldexpl: Enhance tests.
10852         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10853         and tests/test-ldexpl.c.
10854         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10855         LDEXP, MIN_EXP, MAX_EXP): New macros.
10856         Include test-ldexp.h.
10857         (main): Just call test_function.
10858         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10859         infinity.h, nan.h.
10860         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10861         MAX_EXP): New macros.
10862         Include test-ldexp.h.
10863         (x, y): Remove variables.
10864         (main): Just call test_function.
10865         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10866         infinity.h, nan.h.
10867         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10868         MAX_EXP): New macros.
10869         Include test-ldexp.h.
10870         (x, y): Remove variables.
10871         (main): Just call test_function.
10872         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10873         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10874         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10875         (Depends-on): Add isnand-nolibm, signbit, float.
10876         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10877         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10878         (Depends-on): Add isnanf-nolibm, signbit, float.
10879
10880 2011-11-06  Bruno Haible  <bruno@clisp.org>
10881
10882         math tests: Cosmetics.
10883         * tests/test-math-c++.cc: Reorder declarations.
10884
10885 2011-11-05  Bruno Haible  <bruno@clisp.org>
10886
10887         fma*: Simplify test.
10888         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10889         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10890
10891         Tests for module 'fmal'.
10892         * modules/fmal-tests: New file.
10893         * tests/test-fmal1.c: New file.
10894         * tests/test-fmal2.c: New file.
10895
10896         New module 'fmal'.
10897         * lib/math.in.h (fmal): New declaration.
10898         * lib/fmal.c: New file.
10899         * m4/fmal.m4: New file.
10900         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10902         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10903         REPLACE_FMAL.
10904         * modules/fmal: New file.
10905         * doc/posix-functions/fmal.texi: Mention the new module and the various
10906         bugs.
10907
10908         Tests for module 'fmaf'.
10909         * modules/fmaf-tests: New file.
10910         * tests/test-fmaf1.c: New file.
10911         * tests/test-fmaf2.c: New file.
10912
10913         New module 'fmaf'.
10914         * lib/math.in.h (fmaf): New declaration.
10915         * lib/fmaf.c: New file.
10916         * m4/fmaf.m4: New file.
10917         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10919         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10920         REPLACE_FMAF.
10921         * modules/fmaf: New file.
10922         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10923         bugs.
10924
10925         Tests for module 'fma'.
10926         * modules/fma-tests: New file.
10927         * tests/test-fma1.c: New file.
10928         * tests/test-fma1.h: New file.
10929         * tests/test-fma2.c: New file.
10930         * tests/test-fma2.h: New file.
10931
10932         New module 'fma'.
10933         * lib/math.in.h (fma): New declaration.
10934         * lib/fma.c: New file.
10935         * m4/fma.m4: New file.
10936         * m4/fegetround.m4: New file.
10937         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10939         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10940         REPLACE_FMA.
10941         * modules/fma: New file.
10942         * doc/posix-functions/fma.texi: Mention the new module and the various
10943         bugs.
10944
10945         Extend gl_MATHFUNC.
10946         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10947         Support 'void' as argument type.
10948         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10949
10950 2011-11-05  Jim Meyering  <meyering@redhat.com>
10951
10952         maint.mk: also prohibit inclusion of dirent.h without use
10953         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10954
10955 2011-11-05  Bruno Haible  <bruno@clisp.org>
10956
10957         ldexpl tests: Avoid test failure on MSVC 9.
10958         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10959         value. Needed in order to enforce the conversion from a value greater
10960         than LDBL_MAX to Infinity.
10961
10962 2011-11-05  Bruno Haible  <bruno@clisp.org>
10963
10964         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10965         * modules/at-internal: New file, extracted from modules/openat.
10966         * modules/openat-h: New file.
10967         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10968         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10969         * modules/openat (Description): Add reference to POSIX function.
10970         (Files): Remove lib/openat.h, lib/openat-proc.c.
10971         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10972         intprops, unistd.
10973         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10974         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10975         gl_FCNTL_MODULE_INDICATOR.
10976         (Include): Remove unistd.h, openat.h.
10977         * modules/areadlinkat (Files): Add lib/at-func.c.
10978         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10979         openat-die, openat-h, save-cwd.
10980         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10981         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10982         openat-die, openat-h, save-cwd, unistd.
10983         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10984         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10985         openat-h, save-cwd. Remove fcntl-h, openat.
10986         * modules/fchmodat (Files): Remove lib/openat.h.
10987         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10988         openat, stdbool, unistd.
10989         * modules/fchownat (Files): Remove lib/openat.h.
10990         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10991         openat, stdbool, sys_stat.
10992         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10993         lib/openat-proc.c.
10994         (Depends-on): Add at-internal.
10995         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10996         * modules/fstatat (Files): Remove lib/openat.h.
10997         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10998         stdbool, unistd.
10999         * modules/fts (Depends-on): Add openat-h.
11000         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11001         openat.
11002         * modules/mkdirat (Files): Remove lib/openat.h.
11003         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11004         openat, stdbool, sys_stat.
11005         * modules/mkfifoat (Files): Add lib/at-func.c.
11006         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11007         openat-h, save-cwd. Remove fcntl-h, openat.
11008         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11009         * modules/readlinkat (Files): Add lib/at-func.c.
11010         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11011         openat-h, save-cwd. Remove fcntl-h, openat.
11012         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11013         openat.
11014         * modules/selinux-at (Files): Add lib/at-func.c.
11015         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11016         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11017         * modules/symlinkat (Files): Add lib/at-func.c.
11018         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11019         openat-h, save-cwd. Remove fcntl-h, openat.
11020         * modules/unlinkat (Files): Remove lib/openat.h.
11021         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11022         stdbool.
11023         * modules/utimensat (Files): Add lib/at-func.c.
11024         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11025         openat-die, openat-h, save-cwd.
11026         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11027         * modules/fdutimensat-tests (Depends-on): Add openat.
11028         * modules/fstatat-tests (Depends-on): Add openat-h.
11029         * modules/readlinkat-tests (Depends-on): Add openat.
11030         * modules/symlinkat-tests (Depends-on): Add openat.
11031
11032 2011-11-05  Bruno Haible  <bruno@clisp.org>
11033
11034         openat: Include <stdbool.h>.
11035         * lib/openat.c: Include <stdbool.h>.
11036
11037 2011-11-04  Bruno Haible  <bruno@clisp.org>
11038
11039         fchownat, renameat, unlinkat: Fix dependencies.
11040         * modules/fchownat (Depends-on): Add fstatat.
11041         * modules/renameat (Depends-on): Likewise.
11042         * modules/unlinkat (Depends-on): Likewise.
11043
11044 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11045
11046         openat: remove direct dependency on dirent
11047         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11048         and hasn't been needed ever since fdopendir was split into its own
11049         module on 2009-08-31.
11050         * modules/openat (Depends-on): Remove dirent.
11051
11052 2011-11-04  Bruno Haible  <bruno@clisp.org>
11053
11054         renameat: Optimize code size.
11055         * modules/renameat (configure.ac): Don't compile at-func2.c if
11056         REPLACE_RENAMEAT is 1.
11057
11058 2011-11-04  Bruno Haible  <bruno@clisp.org>
11059
11060         openat tests: Fix file list.
11061         * modules/openat-tests (Files): Add tests/test-open.h.
11062
11063 2011-11-04  Bruno Haible  <bruno@clisp.org>
11064
11065         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
11066         * modules/fchmodat (Depends-on): Add openat-die.
11067         * modules/fchownat (Depends-on): Likewise.
11068         * modules/linkat (Depends-on): Likewise.
11069         * modules/renameat (Depends-on): Likewise.
11070         * modules/openat (Depends-on): Add dirent.
11071
11072 2011-11-04  Jim Meyering  <meyering@redhat.com>
11073
11074         at-func*.c: fix comments
11075         * lib/at-func2.c: Correct/improve first-line comment.
11076         * lib/at-func.c: Correct grammar in first-line comment.
11077
11078 2011-11-04  Bruno Haible  <bruno@clisp.org>
11079
11080         New module 'mkdirat', split off from module 'openat'.
11081         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
11082         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
11083         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
11084         * modules/mkdirat: New file, extracted from modules/openat.
11085         * modules/openat (Files): Remove lib/mkdirat.c.
11086         (Depends-on): Remove mkdir.
11087         (configure.ac): Remove AC_LIBOBJ of mkdirat.
11088         (Include): Remove <sys/stat.h>.
11089         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
11090         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
11091         tests/test-mkdir.h.
11092         (Depends-on): Remove ignore-value.
11093         (Makefile.am): Remove rules for test-mkdirat.
11094         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
11095         of module 'openat'.
11096         * NEWS: Mention the change.
11097
11098 2011-11-04  Bruno Haible  <bruno@clisp.org>
11099
11100         closedir: Avoid warning on mingw.
11101         * lib/closedir.c: Include <unistd.h>.
11102
11103 2011-11-04  Bruno Haible  <bruno@clisp.org>
11104
11105         New module 'fstatat', split off from module 'openat'.
11106         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
11107         defined.
11108         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
11109         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
11110         gl_FUNC_FSTATAT.
11111         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
11112         * modules/fstatat: New file, extracted from modules/openat.
11113         * modules/openat (Files): Remove lib/fstatat.c.
11114         (Depends-on): Remove lstat.
11115         (configure.ac): Remove AC_LIBOBJ of fstatat.
11116         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
11117         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
11118         tests/test-lstat.h, tests/test-stat.h.
11119         (Depends-on): Remove getcwd-lgpl.
11120         (Makefile.am): Remove rules for test-fstatat.
11121         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
11122         of module 'openat'.
11123         * NEWS: Mention the change.
11124         * modules/getcwd (Depends-on): Add fstatat.
11125         * modules/linkat (Depends-on): Likewise.
11126         * modules/mkfifoat-tests (Depends-on): Likewise.
11127         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
11128
11129 2011-11-03  Bruno Haible  <bruno@clisp.org>
11130
11131         New module 'unlinkat', split off from module 'openat'.
11132         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
11133         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
11134         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
11135         * modules/unlinkat: New file, extracted from modules/openat. Correct
11136         the dependency conditions.
11137         * modules/openat (Files): Remove lib/unlinkat.c.
11138         (Depends-on): Remove rmdir, unlink.
11139         (configure.ac): Remove AC_LIBOBJ of unlinkat.
11140         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
11141         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
11142         tests/test-rmdir.h, tests/test-unlink.h.
11143         (Depends-on): Remove unlinkdir.
11144         (Makefile.am): Remove rules for test-unlinkat.
11145         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
11146         of module 'openat'.
11147         * NEWS: Mention the change.
11148         * modules/linkat-tests (Depends-on): Add unlinkat.
11149         * modules/mkfifoat-tests (Depends-on): Likewise.
11150         * modules/readlinkat-tests (Depends-on): Likewise.
11151
11152 2011-11-02  Bruno Haible  <bruno@clisp.org>
11153
11154         New module 'fchmodat', split off from module 'openat'.
11155         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
11156         defined.
11157         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
11158         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
11159         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
11160         * modules/fchmodat: New file, extracted from modules/openat.
11161         * modules/openat (Files): Remove lib/fchmodat.c.
11162         (configure.ac): Remove AC_LIBOBJ of fchmodat.
11163         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
11164         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
11165         (Makefile.am): Remove rules for test-fchmodat.
11166         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
11167         of module 'openat'.
11168         * NEWS: Mention the change.
11169
11170 2011-11-02  Jim Meyering  <meyering@redhat.com>
11171
11172         putenv: indent #definition of "environ" to placate cppi
11173         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
11174
11175         gitlog-to-changelog: provide a ChangeLog-repair mechanism
11176         Git logs are often treated as immutable, because editing them
11177         changes the SHA1 checksums of all descendants.  Thus, errors in
11178         git logs tend to stay there forever.  However, when we generate
11179         a ChangeLog file -- typically for distribution -- from that git log,
11180         we can actually make corrections in the generated file.  The key
11181         lies in recording in machine-readable/applicable form the desired
11182         corrections.  See --help for description and an example.
11183         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
11184         (usage): Describe it; alphabetize option descriptions.
11185         (main): Honor the new option, carefully.
11186
11187 2011-11-01  Jim Meyering  <meyering@redhat.com>
11188
11189         gitlog-to-changelog: avoid an infloop
11190         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
11191         that ends up being empty.
11192
11193 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11194
11195         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
11196         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
11197         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
11198         contains (possibly-quoted) backslashes.  This should avoid
11199         all-too-common shell bugs if COMPLICATED contains backslashes in
11200         the "wrong" places.  Reported by David Evans in
11201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
11202         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
11203         because we want ASCII ranges.  Is there some reason we don't use
11204         the C locale everywhere in this script?
11205         (func_module, top level): Avoid unwanted pathname expansion when
11206         $repo_url_prefix or $repo_url_suffix_repl contain shell
11207         metacharacters like '?' and '*'.
11208
11209 2011-11-01  Bruno Haible  <bruno@clisp.org>
11210
11211         fchownat: Improve description.
11212         * modules/fchownat (Description): Add link to function.
11213
11214 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11215
11216         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
11217         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
11218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
11219         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
11220
11221 2011-11-01  Bruno Haible  <bruno@clisp.org>
11222
11223         alignof: Avoid collision with stdalign module.
11224         * lib/alignof.h (alignof): Remove macro.
11225         * NEWS: Mention the change.
11226         Reported by Paul Eggert.
11227
11228 2011-11-01  Bruno Haible  <bruno@clisp.org>
11229
11230         New module 'fchownat', split off from module 'openat'.
11231         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
11232         defined.
11233         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
11234         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
11235         invoke gl_FUNC_FCHOWNAT.
11236         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
11237         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
11238         * modules/fchownat: New file, extracted from modules/openat.
11239         * modules/openat (Files): Remove lib/fchownat.c.
11240         (Depends-on): Remove lchown.
11241         (configure.ac): Remove AC_LIBOBJ of fchownat.
11242         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
11243         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
11244         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
11245         (Depends-on): Remove mgetgroups, usleep, stat-time.
11246         (configure.ac): Remove test for getegid.
11247         (Makefile.am): Remove rules for test-fchownat.
11248         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
11249         of module 'openat'.
11250         * NEWS: Mention the change.
11251
11252 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11253
11254         stdalign: port better to MSVC and to Sun C 5.11
11255         This fixes some of the problems reported by Bruno Haible in
11256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
11257         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
11258         shortcomings of MSVC and of Sun C 5.11.
11259         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
11260         around __declspec arg.
11261         * modules/stdalign-tests (Files): Add tests/macros.h.
11262         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
11263         Include macros.h, for ASSERT.
11264         (DECLARE_ALIGNED): Remove.
11265         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
11266         to catch bug), and to 1 if not (simplifies the rest of the code).
11267         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
11268         (CHECK_AUTO): Remove.
11269         (CHECK_ALIGNED): Check only the alignment of the static vars,
11270         since auto var alignment isn't supported by Sun C 5.11.
11271         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
11272         ASSERT failures are easier to diagnose.
11273
11274 2011-10-31  Bruno Haible  <bruno@clisp.org>
11275
11276         doc about some IRIX 5.3 problems.
11277         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
11278         on IRIX 5.3.
11279         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
11280         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
11281         5.3.
11282         * doc/posix-functions/grantpt.texi: Likewise.
11283         * doc/posix-functions/unlockpt.texi: Likewise.
11284         * doc/posix-functions/lgamma.texi: Likewise.
11285         * doc/posix-functions/nextafter.texi: Likewise.
11286         * doc/posix-functions/remainder.texi: Likewise.
11287         * doc/posix-functions/select.texi: Mention misplaced declaration on
11288         IRIX 5.3.
11289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11290
11291 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
11292
11293         gitlog-to-changelog: fix git-log invocation.
11294         git-log mishandles date strings before 1970-01-01 UTC, and there is
11295         no use to specify --since=1970-01-01 by default anyway.
11296         * build-aux/gitlog-to-changelog: By default, when no --since option
11297         was given, do not specify explicit --since option to git-log.
11298
11299 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
11300
11301         gitlog-to-changelog: new option --append-dot.
11302         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
11303         first non-blank line of each commit message terminated with a dot.
11304
11305 2011-10-30  Bruno Haible  <bruno@clisp.org>
11306
11307         ffsl, ffsll: Avoid compilation error due to 'restrict'.
11308         * lib/ffsl.h: Include <config.h>.
11309         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
11310
11311 2011-10-30  Jim Meyering  <meyering@redhat.com>
11312
11313         GNUmakefile: reenable "make syntax-check" for most projects
11314         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
11315         build-aux variable", "syntax-check" would do nothing but succeed with
11316         the "No version control files detected..." diagnostic (unless you
11317         happened to override _build-aux via cfg.mk).
11318         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
11319         to precede inclusion of maint.mk.  Otherwise, these variables would
11320         be used undefined in any project that does not override the default.
11321
11322 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
11323
11324         gitlog-to-changelog: treat a message with only blank lines as empty.
11325         * build-aux/gitlog-to-changelog: Move the code that removes leading and
11326         trailing blank lines before the code that issues a warning about an
11327         empty commit message.
11328
11329 2011-10-30  Jim Meyering  <meyering@redhat.com>
11330
11331         test-parse-datetime.c: avoid new DST-related false positive test failure
11332         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
11333         based on the time/date we'll convert, not the current time.
11334         Otherwise, the moment we cross a DST boundary like today's in
11335         Europe, (CEST to CET), that offset ends up being one hour off.
11336
11337 2011-10-27  Bruno Haible  <bruno@clisp.org>
11338
11339         fstat: Tweak documentation.
11340         * modules/fstat (Description): More precise description.
11341
11342 2011-10-27  Bruno Haible  <bruno@clisp.org>
11343
11344         Update documentation regarding 'largefile' module.
11345         * doc/posix-functions/fstat.texi: Tweak wording.
11346         * doc/posix-functions/opendir.texi: Mention that the module fixes the
11347         problems with huge directories and/or small ino_t types.
11348         * doc/posix-functions/readdir.texi: Likewise.
11349         * doc/posix-functions/rewinddir.texi: Likewise.
11350
11351 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
11352
11353         maint.mk: don't maintain a second build-aux variable.
11354         * maint.mk (build_aux): Removed.  The maintainer-makefile module
11355         depends on GNUmakefile, which already maintains a cfg.mk
11356         overridable $(_build-aux) for projects with a non-standard
11357         build-aux directory location, although without the $(srcdir)
11358         prefix.  Use that variable consistently instead of introducing a
11359         second one.  Adjust all call sites.
11360
11361 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
11362
11363         Add stdalign module and use it in other modules.
11364         This is based on a previous proposal by Bruno Haible
11365         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
11366
11367         stdalign: new module
11368         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
11369         * modules/stdalign: New files.
11370         * MODULES.html.sh (c1x_core_properties): Add stdalign.
11371         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
11372
11373         stdalign-tests: new module
11374         * modules/stdalign-tests, tests/test-stdalign.c: New files.
11375
11376         argp: use stdalign
11377         * lib/argp-parse.c: Include <stdalign.h>.
11378         (alignof): Remove.
11379         * modules/argp (Depends-on): Add stdalign.
11380
11381         crypto libraries: use stdalign
11382         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
11383         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
11384         Do not include <stdlib.h> twice, in md4.c.
11385         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
11386         because we are accessing a pointer's bit-pattern, not a size.
11387         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
11388         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
11389         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
11390         * modules/crypto/sha512: Likewise.
11391
11392         sys_socket: use stdalign, not alignof
11393         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
11394         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
11395
11396 2011-10-27  Bruno Haible  <bruno@clisp.org>
11397
11398         raise test: Avoid a test failure on Linux/MIPS.
11399         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
11400         because 99 is a valid signal on Linux/MIPS.
11401
11402 2011-10-27  Bruno Haible  <bruno@clisp.org>
11403
11404         nonblocking tests: Fix test failure on Linux/MIPS.
11405         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
11406         Set to 270000.
11407
11408 2011-10-27  Bruno Haible  <bruno@clisp.org>
11409
11410         utimensat: Work around problem on Linux/hppa.
11411         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
11412         values.
11413         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
11414
11415 2011-10-25  Jim Meyering  <meyering@redhat.com>
11416
11417         maint.mk: fix a bug in sc_prohibit_stddef_without_use
11418         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
11419         after symbols like NULL, size_t, etc.
11420         Reported by Alfred M. Szmidt.
11421
11422         maint.mk: exempt ENODATA from a syntax-check rule
11423         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
11424         from the sc_prohibit_always-defined_macros syntax-check rule.
11425         Add a comment.  See this for more details:
11426         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
11427
11428 2011-10-23  Jim Meyering  <meyering@redhat.com>
11429
11430         fts: close parent dir FD before returning from post-traversal fts_read
11431         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
11432         unlink A, even though an FD open on A remained.  This is suboptimal
11433         (holding a file descriptor open longer than needed), but otherwise not
11434         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
11435         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
11436         that represents a real problem: it causes the removal of A to fail
11437         with e.g., "rm: cannot remove `A': Device or resource busy"
11438
11439         fts visits each directory twice and keeps a cache (fts_fd_ring) of
11440         directory file descriptors.  After completing the final, FTS_DP,
11441         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
11442         cache, but then proceeded to add a new FD to it via the subsequent
11443         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
11444         final file descriptor would be closed only via fts_close's call to
11445         fd_ring_clear.  Now, it is usually closed earlier, via the final
11446         FTS_DP-returning fts_read call.
11447         * lib/fts.c (restore_initial_cwd): New function, converted from
11448         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
11449         Update callers.
11450         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
11451         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
11452
11453 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
11454             Bruno Haible  <bruno@clisp.org>
11455             Jim Meyering  <jim@meyering.net>
11456
11457         readme-release: improve safety of release prep instructions.
11458         * README-release: Don't git pull all branches when only master
11459         is needed for the release process.
11460         Run make maintainer-clean before changing trees and merging.
11461         Don't try to run ./configure right after git pull in case files
11462         that influence the bootstrap process have changed, move the
11463         ./configure step to after running ./bootstrap.
11464         Don't bootstrap "one last time"... it's the first time!
11465
11466 2011-10-22  Bruno Haible  <bruno@clisp.org>
11467
11468         errno, strerror-override: Support for MSVC 10.
11469         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
11470         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
11471         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
11472         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
11473         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
11474         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
11475         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
11476         Assign values compatible with MSVC 10.
11477         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
11478         New macros.
11479         (GNULIB_defined_EWINSOCK): New macro.
11480         * lib/strerror-override.c (strerror_override): Update accordingly.
11481         * lib/strerror-override.h: Likewise.
11482         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
11483         longer equal to the corresponding errno value.
11484         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11485
11486 2011-10-22  Bruno Haible  <bruno@clisp.org>
11487
11488         perror: Recognize when test program crashes.
11489         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
11490         strerror, set gl_cv_func_perror_works to no.
11491         Reported by Daniel Richard G. <skunk@iskunk.org>.
11492
11493         perror: Fix indentation.
11494         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
11495
11496 2011-10-22  Bruno Haible  <bruno@clisp.org>
11497
11498         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
11499         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
11500         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
11501         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
11502         functions, not as a macro.
11503         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
11504         macros.
11505         (isfinite, isinf, isnan, signbit): Check overloaded functions and
11506         absence of macro.
11507         Suggested by Eric Blake.
11508         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
11509
11510 2011-10-21  Bruno Haible  <bruno@clisp.org>
11511
11512         relocatable-prog-wrapper: Don't leave object files behind.
11513         * build-aux/install-reloc: Re-synchronize list of .o files to be
11514         removed with list of compilation units.
11515
11516 2011-10-20  Bruno Haible  <bruno@clisp.org>
11517
11518         openpty, posix_openpt: Remove code duplication.
11519         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
11520         * lib/openpty.c: Include <stdlib.h>.
11521         (openpty): Use posix_openpt on all platforms except IRIX.
11522         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
11523
11524 2011-10-20  Bruno Haible  <bruno@clisp.org>
11525
11526         unlockpt: Detect invalid argument.
11527         * lib/unlockpt.c: Include <fcntl.h>.
11528         (unlockpt): Check whether fd is valid, using fcntl().
11529         * modules/unlockpt (Depends-on): Add fcntl-h.
11530
11531 2011-10-20  Bruno Haible  <bruno@clisp.org>
11532
11533         openpty: Avoid compilation error on AIX 6.1.
11534         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
11535
11536 2011-10-20  Bruno Haible  <bruno@clisp.org>
11537
11538         posix_openpt: Support for OpenBSD.
11539         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
11540         (posix_openpt) [OpenBSD]: New code.
11541         * lib/grantpt.c: Include <fcntl.h>.
11542         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
11543         * modules/grantpt (Depends-on): Add fcntl-h.
11544
11545 2011-10-20  Bruno Haible  <bruno@clisp.org>
11546
11547         posix_openpt test: Coding style.
11548         * tests/test-posix_openpt.c: Use GNU coding style.
11549
11550 2011-10-20  Bruno Haible  <bruno@clisp.org>
11551
11552         grantpt: Support --avoid=pt_chown.
11553         * modules/grantpt (Files): Add lib/pty-private.h.
11554
11555 2011-10-20  Bruno Haible  <bruno@clisp.org>
11556
11557         posix_openpt: Fix autoconf macro.
11558         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
11559         unneeded check for _getpty.
11560
11561 2011-10-20  Bruno Haible  <bruno@clisp.org>
11562
11563         openpty: Update comments.
11564         * lib/openpty.c: Add comments about Minix.
11565
11566 2011-10-19  Eric Blake  <eblake@redhat.com>
11567
11568         openpty: relax license
11569         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
11570
11571         pt_chown: use configmake to simplify build
11572         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
11573
11574         ptsname and others: relax license
11575         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
11576         * modules/unlockpt (License): Likewise.
11577         * modules/pt_chown (License): Likewise.
11578         * modules/ptsname (License): Likewise.
11579         * modules/ttyname_r (License): Likewise.
11580
11581 2011-10-19  Jim Meyering  <meyering@redhat.com>
11582
11583         posix_openpt: remove spurious #endif
11584         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
11585
11586 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
11587
11588         maint.mk: Respect $(build_aux) in web-manual rule.
11589         * top/maint.mk (web-manual): Find gen-announce script in user's
11590         $(build_aux) directory instead of hard-coding 'build-aux'.
11591
11592 2011-10-19  Bruno Haible  <bruno@clisp.org>
11593
11594         posix_openpt: Fix compilation error.
11595         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
11596         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
11597         Mention the openpty module as an alternative.
11598
11599 2011-10-19  Bruno Haible  <bruno@clisp.org>
11600
11601         Support for old NeXTstep 3.3 frexp().
11602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
11603         execution time of the test to 5 seconds.
11604         Reported by Daniel Richard G. <skunk@iskunk.org>.
11605
11606 2011-10-19  Bruno Haible  <bruno@clisp.org>
11607
11608         Support for old NeXTstep 3.3 sed.
11609         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
11610         part, use /.../, not \|...|. Escape periods in the header file name.
11611         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11612         Reported by Daniel Richard G. <skunk@iskunk.org>.
11613
11614 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11615
11616         Support for old NeXTstep 3.3 gcc.
11617         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
11618         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
11619         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
11620         * lib/spawn.in.h (_Restrict_arr_): Likewise.
11621         * lib/regex.h (_Restrict_arr_): Likewise.
11622         * lib/regex_internal.h (re_token_t): Likewise.
11623         * lib/regexec.c (check_node_accept_bytes): Likewise.
11624         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
11625
11626 2011-10-18  Eric Blake  <eblake@redhat.com>
11627
11628         posix_openpt: new module
11629         * modules/posix_openpt: New module.
11630         * m4/posix_openpt.m4: New file.
11631         * lib/posix_openpt.c: Likewise.
11632         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11633         (gl_STDLIB_H_DEFAULTS): Set defaults.
11634         * modules/stdlib (Makefile.am): Substitute macros.
11635         * lib/stdlib.in.h (posix_openpt): Declare.
11636         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
11637         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
11638         * modules/posix_openpt-tests: New test module.
11639         * tests/test-posix_openpt.c: New test.
11640
11641 2011-10-15  Bruno Haible  <bruno@clisp.org>
11642
11643         xstrtoll: Fix compilation failure.
11644         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
11645         from lib/strtol.c.
11646         * doc/posix-headers/limits.texi: Mention missing numerical limits on
11647         some platforms.
11648         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11649
11650 2011-10-15  Bruno Haible  <bruno@clisp.org>
11651
11652         vasnprintf: Optimize bit search operation.
11653         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
11654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
11655         gl_DOUBLE_EXPONENT_LOCATION.
11656         * modules/vasnprintf (Files): Add m4/exponentd.m4.
11657         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11658         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11659         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11660         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11661         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11662         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11663         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11664         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
11665
11666 2011-10-15  Bruno Haible  <bruno@clisp.org>
11667
11668         vasnprintf: Fix comments.
11669         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
11670
11671 2011-10-14  Bruno Haible  <bruno@clisp.org>
11672
11673         Tests for module 'integer_length_ll'.
11674         * modules/integer_length_ll-tests: New file.
11675         * tests/test-integer_length_ll.c: New file.
11676
11677         New module 'integer_length_ll'.
11678         * lib/integer_length_ll.c: New file.
11679         * modules/integer_length_ll: New file.
11680
11681 2011-10-14  Bruno Haible  <bruno@clisp.org>
11682
11683         Tests for module 'integer_length_l'.
11684         * modules/integer_length_l-tests: New file.
11685         * tests/test-integer_length_l.c: New file.
11686
11687         New module 'integer_length_l'.
11688         * lib/integer_length_l.c: New file.
11689         * modules/integer_length_l: New file.
11690
11691 2011-10-14  Bruno Haible  <bruno@clisp.org>
11692
11693         Tests for module 'integer_length'.
11694         * modules/integer_length-tests: New file.
11695         * tests/test-integer_length.c: New file.
11696
11697         New module 'integer_length'.
11698         * lib/integer_length.h: New file.
11699         * lib/integer_length.c: New file.
11700         * modules/integer_length: New file.
11701
11702 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11703
11704         popen: Fix dependency conditions.
11705         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
11706
11707 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
11708
11709         perror: Fix autoconf test.
11710         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
11711         <stdlib.h> and <string.h>.
11712
11713 2011-10-14  Bruno Haible  <bruno@clisp.org>
11714
11715         ffsl: Optimize on 64-bit platforms.
11716         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
11717         unrolling.
11718
11719 2011-10-13  Bruno Haible  <bruno@clisp.org>
11720
11721         ffsl: Optimize on 32-bit platforms.
11722         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
11723         use ffs() without a loop.
11724
11725         ffsl, ffsll: Optimize for GCC.
11726         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
11727         * lib/ffsl.c (GCC_BUILTIN): New macro.
11728         * lib/ffsll.c (GCC_BUILTIN): Likewise.
11729
11730 2011-10-13  Bruno Haible  <bruno@clisp.org>
11731
11732         ffs, bcopy, memset: Support symbol renaming via config.h.
11733         * lib/ffs.c: Include <config.h>.
11734         * lib/bcopy.c: Likewise.
11735         * lib/memset.c: Likewise.
11736
11737 2011-10-10  Bruno Haible  <bruno@clisp.org>
11738
11739         atanl: Simplify for platforms where 'long double' == 'double'.
11740         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11741         alternative implementation.
11742         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11743         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11744         * modules/atanl (Depends-on): Add atan. Update conditions.
11745
11746 2011-10-10  Bruno Haible  <bruno@clisp.org>
11747
11748         acosl: Simplify for platforms where 'long double' == 'double'.
11749         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11750         alternative implementation.
11751         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11752         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11753         * modules/acosl (Depends-on): Add acos. Update conditions.
11754
11755 2011-10-10  Bruno Haible  <bruno@clisp.org>
11756
11757         asinl: Simplify for platforms where 'long double' == 'double'.
11758         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11759         alternative implementation.
11760         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11761         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11762         * modules/asinl (Depends-on): Add asin. Update conditions.
11763
11764 2011-10-10  Bruno Haible  <bruno@clisp.org>
11765
11766         tanl: Simplify for platforms where 'long double' == 'double'.
11767         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11768         implementation.
11769         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11770         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11771         * modules/tanl (Depends-on): Add tan. Update conditions.
11772         (configure.ac): Don't compile trigl.c if
11773         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11774
11775 2011-10-10  Bruno Haible  <bruno@clisp.org>
11776
11777         cosl: Simplify for platforms where 'long double' == 'double'.
11778         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11779         implementation.
11780         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11781         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11782         * modules/cosl (Depends-on): Add cos. Update conditions.
11783         (configure.ac): Don't compile sincosl.c and trigl.c if
11784         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11785
11786 2011-10-10  Bruno Haible  <bruno@clisp.org>
11787
11788         sinl: Simplify for platforms where 'long double' == 'double'.
11789         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11790         implementation.
11791         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11792         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11793         * modules/sinl (Depends-on): Add sin. Update conditions.
11794         (configure.ac): Don't compile sincosl.c and trigl.c if
11795         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11796
11797 2011-10-10  Bruno Haible  <bruno@clisp.org>
11798
11799         logl: Simplify for platforms where 'long double' == 'double'.
11800         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11801         implementation.
11802         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11803         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11804         * modules/logl (Depends-on): Add log. Update conditions.
11805
11806 2011-10-10  Bruno Haible  <bruno@clisp.org>
11807
11808         expl: Simplify for platforms where 'long double' == 'double'.
11809         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
11810         implementation.
11811         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11812         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11813         * modules/expl (Depends-on): Add exp. Update conditions.
11814
11815 2011-10-10  Bruno Haible  <bruno@clisp.org>
11816
11817         sqrtl: Simplify for platforms where 'long double' == 'double'.
11818         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11819         alternative implementation.
11820         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11821         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11822         * modules/sqrtl (Depends-on): Update conditions.
11823
11824 2011-10-10  Bruno Haible  <bruno@clisp.org>
11825
11826         ldexpl: Simplify for platforms where 'long double' == 'double'.
11827         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11828         alternative implementation.
11829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11830         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11831         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11832
11833 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11834
11835         ffsll: set correct witness
11836         * modules/ffsll (configure.ac): Fix typo.
11837
11838 2011-10-10  Bruno Haible  <bruno@clisp.org>
11839
11840         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11841         * lib/printf-frexpl.c: Include <config.h>.
11842         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11843         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11844         second time.
11845         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11846         gl_LONG_DOUBLE_VS_DOUBLE.
11847         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11848         conditions.
11849
11850 2011-10-10  Bruno Haible  <bruno@clisp.org>
11851
11852         frexpl: Simplify for platforms where 'long double' == 'double'.
11853         * lib/frexpl.c: Include <config.h>.
11854         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11855         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11856         time.
11857         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11858         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11859         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11860         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11861         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11862         conditions.
11863
11864 2011-10-10  Jim Meyering  <meyering@redhat.com>
11865
11866         test-renameat: don't leave behind a temporary file
11867         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11868           ERROR: files left in build directory after distclean:
11869           ./gltests/test-renameat.too
11870           make[1]: *** [distcleancheck] Error 1
11871         Reported by Tom G. Christensen.
11872
11873 2011-10-09  Bruno Haible  <bruno@clisp.org>
11874
11875         rint: Determine RINT_LIBM correctly on AIX 7.
11876         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11877         directly, not only through a function pointer. Also accept an optional
11878         4th argument with extra code.
11879         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11880         rintf() call by gcc when optimizing.
11881
11882         mathfunc.m4: Refactor.
11883         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11884         m4 variable.
11885
11886 2011-10-09  Bruno Haible  <bruno@clisp.org>
11887
11888         rintl: Simplify for platforms where 'long double' == 'double'.
11889         * lib/rintl.c: Include <config.h>.
11890         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11891         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11892         time.
11893         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11894         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11895         * modules/rintl (Depends-on): Add rint. Update conditions.
11896
11897 2011-10-09  Bruno Haible  <bruno@clisp.org>
11898
11899         roundl: Simplify for platforms where 'long double' == 'double'.
11900         * lib/roundl.c: Include <config.h>.
11901         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11902         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11903         time.
11904         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11905         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11906         * modules/roundl (Depends-on): Add round. Update conditions.
11907
11908 2011-10-09  Bruno Haible  <bruno@clisp.org>
11909
11910         truncl: Simplify for platforms where 'long double' == 'double'.
11911         * lib/truncl.c: Include <config.h>.
11912         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11913         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11914         time.
11915         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11916         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11917         * modules/truncl (Depends-on): Add trunc. Update conditions.
11918
11919 2011-10-09  Bruno Haible  <bruno@clisp.org>
11920
11921         ceill: Simplify for platforms where 'long double' == 'double'.
11922         * lib/ceill.c: Include <config.h>.
11923         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11924         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11925         time.
11926         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11927         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11928         * modules/ceill (Depends-on): Add ceil. Update conditions.
11929
11930 2011-10-09  Bruno Haible  <bruno@clisp.org>
11931
11932         floorl: Simplify for platforms where 'long double' == 'double'.
11933         * lib/floorl.c: Include <config.h>.
11934         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11935         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11936         time.
11937         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11938         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11939         * modules/floorl (Depends-on): Add floor. Update conditions.
11940
11941 2011-10-09  Bruno Haible  <bruno@clisp.org>
11942
11943         rint: Fix ordering constraints.
11944         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11945         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11946         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11947
11948 2011-10-09  Bruno Haible  <bruno@clisp.org>
11949
11950         copysignl: Simplify for platforms where 'long double' == 'double'.
11951         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11952         alternative.
11953         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11954         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11955         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11956
11957 2011-10-09  Bruno Haible  <bruno@clisp.org>
11958
11959         Tests for module 'rintl'.
11960         * modules/rintl-tests: New file.
11961         * tests/test-rintl.c: New file.
11962
11963         New module 'rintl'.
11964         * lib/math.in.h (rintl): New declaration.
11965         * lib/rintl.c: New file.
11966         * m4/rintl.m4: New file.
11967         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11969         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11970         * modules/rintl: New file.
11971         * tests/test-math-c++.cc: Check the declaration of rintl.
11972         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11973         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11974         * doc/posix-functions/rintl.texi: Mention the new module.
11975
11976 2011-10-09  Bruno Haible  <bruno@clisp.org>
11977
11978         Tests for module 'rintf'.
11979         * modules/rintf-tests: New file.
11980         * tests/test-rintf.c: New file.
11981
11982         New module 'rintf'.
11983         * lib/math.in.h (rintf): New declaration.
11984         * lib/rintf.c: New file.
11985         * m4/rintf.m4: New file.
11986         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11988         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11989         * modules/rintf: New file.
11990         * tests/test-math-c++.cc: Check the declaration of rintf.
11991         * doc/posix-functions/rintf.texi: Mention the new module.
11992
11993 2011-10-09  Bruno Haible  <bruno@clisp.org>
11994
11995         rint: Support for MSVC.
11996         * lib/math.in.h (rint): New declaration.
11997         * lib/rint.c: New file.
11998         * m4/rint.m4: New file.
11999         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12000         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12001         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12002         * modules/rint (Description): Fix.
12003         (Files): Add lib/rint.c, m4/rint.m4.
12004         (Depends-on): Add math.
12005         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12006         gl_MATH_MODULE_INDICATOR.
12007         * tests/test-math-c++.cc: Check the declaration of rint.
12008         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12009         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12010         * doc/posix-functions/rint.texi: Mention the replacement provided by
12011         the module.
12012
12013         rint tests: More tests.
12014         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12015         minus-zero.h, infinity.h, nan.h.
12016         (main): Skip the test if the current rounding mode is not standard. Add
12017         tests for negative numbers, minus zero, infinity, NaN.
12018         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12019         tests/nan.h.
12020         (Depends-on): Add isnand-nolibm.
12021
12022 2011-10-09  Bruno Haible  <bruno@clisp.org>
12023
12024         Tests for module 'copysignl'.
12025         * modules/copysignl-tests: New file.
12026         * tests/test-copysignl.c: New file.
12027
12028         New module 'copysignl'.
12029         * lib/math.in.h (copysignl): New declaration.
12030         * lib/copysignl.c: New file.
12031         * m4/copysignl.m4: New file.
12032         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12034         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12035         HAVE_COPYSIGNL.
12036         * modules/copysignl: New file.
12037         * tests/test-math-c++.cc: Check the declaration of copysignl.
12038         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12039         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12040         * doc/posix-functions/copysignl.texi: Mention the new module.
12041
12042 2011-10-09  Bruno Haible  <bruno@clisp.org>
12043
12044         Tests for module 'copysignf'.
12045         * modules/copysignf-tests: New file.
12046         * tests/test-copysignf.c: New file.
12047
12048         New module 'copysignf'.
12049         * lib/math.in.h (copysignf): New declaration.
12050         * lib/copysignf.c: New file.
12051         * m4/copysignf.m4: New file.
12052         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12053         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12054         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12055         HAVE_COPYSIGNF.
12056         * modules/copysignf: New file.
12057         * tests/test-math-c++.cc: Check the declaration of copysignf.
12058         * doc/posix-functions/copysignf.texi: Mention the new module.
12059
12060 2011-10-09  Bruno Haible  <bruno@clisp.org>
12061
12062         Ensure that HAVE_* variables are set to 1 before they are set to 0.
12063         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
12064         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
12065         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12066         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
12067         gl_SIGNAL_H_DEFAULTS.
12068
12069 2011-10-09  Bruno Haible  <bruno@clisp.org>
12070
12071         poll: Make macro safer.
12072         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
12073         ac_cv_header_poll_h is not set.
12074
12075 2011-10-09  Bruno Haible  <bruno@clisp.org>
12076
12077         copysign: Provide replacement.
12078         * lib/math.in.h (copysign): New declaration.
12079         * lib/copysign.c: New file.
12080         * m4/copysign.m4: New file.
12081         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
12082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
12083         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
12084         HAVE_COPYSIGN.
12085         * modules/copysign (Description): Clarify.
12086         (Files): Add lib/copysign.c, m4/copysign.m4.
12087         (Depends-on): Add math, signbit.
12088         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
12089         gl_MATH_MODULE_INDICATOR.
12090         * tests/test-math-c++.cc: Check the declaration of copysign.
12091         * doc/posix-functions/copysign.texi: Mention the effects of the module
12092         on Minix and MSVC.
12093
12094 2011-10-09  Bruno Haible  <bruno@clisp.org>
12095
12096         isinf: Ensure macro on AIX 5.1.
12097         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
12098         macro.
12099         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
12100
12101 2011-10-09  Bruno Haible  <bruno@clisp.org>
12102
12103         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
12104         * modules/snprintf-posix-tests (configure.ac): Require
12105         gl_LONG_DOUBLE_VS_DOUBLE.
12106         * modules/sprintf-posix-tests (configure.ac): Likewise.
12107         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
12108         * modules/vasprintf-posix-tests (configure.ac): Likewise.
12109         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
12110         * modules/vsprintf-posix-tests (configure.ac): Likewise.
12111         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
12112         tests on platforms where 'long double' is the same as 'double'.
12113         * tests/test-sprintf-posix.h (test_function): Likewise.
12114         * tests/test-vasnprintf-posix.c (test_function): Likewise.
12115         * tests/test-vasprintf-posix.c (test_function): Likewise.
12116
12117         *printf: Fix for platforms where 'long double' == 'double'.
12118         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
12119         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
12120         * modules/dprintf-posix (Files): Add m4/math_h.m4.
12121         * modules/fprintf-posix (Files): Likewise.
12122         * modules/obstack-printf-posix (Files): Likewise.
12123         * modules/snprintf-posix (Files): Likewise.
12124         * modules/sprintf-posix (Files): Likewise.
12125         * modules/vasnprintf (Files): Likewise.
12126         * modules/vasnprintf-posix (Files): Likewise.
12127         * modules/vasprintf-posix (Files): Likewise.
12128         * modules/vdprintf-posix (Files): Likewise.
12129         * modules/vfprintf-posix (Files): Likewise.
12130         * modules/vsnprintf-posix (Files): Likewise.
12131         * modules/vsprintf-posix (Files): Likewise.
12132         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12133         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12134         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12135         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12136         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12137         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12138         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12139
12140         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
12141         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
12142         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12143         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
12144         'long double'.
12145         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
12146
12147         isinf: Fix for platforms where 'long double' == 'double'.
12148         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12149         Don't blindly assume 80-bit 'long double'.
12150
12151         isfinite: Fix for platforms where 'long double' == 'double'.
12152         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
12153         Don't blindly assume 80-bit 'long double'.
12154
12155         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
12156         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
12157         * modules/isfinite-tests (configure.ac): Require
12158         gl_LONG_DOUBLE_VS_DOUBLE.
12159         * modules/isinf-tests (configure.ac): Likewise.
12160         * modules/isnan-tests (configure.ac): Likewise.
12161         * modules/isnanl-tests (configure.ac): Likewise.
12162         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
12163         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
12164         tests on platforms where 'long double' is the same as 'double'.
12165         * tests/test-isinf.c (test_isinfl): Likewise.
12166         * tests/test-isnan.c (test_long_double): Likewise.
12167         * tests/test-isnanl.h (main): Likewise.
12168
12169 2011-10-08  Bruno Haible  <bruno@clisp.org>
12170
12171         Tests for module 'tanhf'.
12172         * modules/tanhf-tests: New file.
12173         * tests/test-tanhf.c: New file.
12174
12175         New module 'tanhf'.
12176         * lib/math.in.h (tanhf): New declaration.
12177         * lib/tanhf.c: New file.
12178         * m4/tanhf.m4: New file.
12179         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
12180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
12181         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
12182         * modules/tanhf: New file.
12183         * tests/test-math-c++.cc: Check the declaration of tanhf.
12184         * doc/posix-functions/tanhf.texi: Mention the new module.
12185
12186         tanh: Use a .m4 file.
12187         * m4/tanh.m4: New file.
12188         * modules/tanh (Files): Add it.
12189         (configure.ac): Just invoke gl_FUNC_TANH.
12190
12191 2011-10-08  Bruno Haible  <bruno@clisp.org>
12192
12193         Tests for module 'coshf'.
12194         * modules/coshf-tests: New file.
12195         * tests/test-coshf.c: New file.
12196
12197         New module 'coshf'.
12198         * lib/math.in.h (coshf): New declaration.
12199         * lib/coshf.c: New file.
12200         * m4/coshf.m4: New file.
12201         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
12202         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
12203         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
12204         * modules/coshf: New file.
12205         * tests/test-math-c++.cc: Check the declaration of coshf.
12206         * doc/posix-functions/coshf.texi: Mention the new module.
12207
12208         cosh: Use a .m4 file.
12209         * m4/cosh.m4: New file.
12210         * modules/cosh (Files): Add it.
12211         (configure.ac): Just invoke gl_FUNC_COSH.
12212
12213 2011-10-08  Bruno Haible  <bruno@clisp.org>
12214
12215         Tests for module 'sinhf'.
12216         * modules/sinhf-tests: New file.
12217         * tests/test-sinhf.c: New file.
12218
12219         New module 'sinhf'.
12220         * lib/math.in.h (sinhf): New declaration.
12221         * lib/sinhf.c: New file.
12222         * m4/sinhf.m4: New file.
12223         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
12224         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
12225         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
12226         * modules/sinhf: New file.
12227         * tests/test-math-c++.cc: Check the declaration of sinhf.
12228         * doc/posix-functions/sinhf.texi: Mention the new module.
12229
12230         sinh: Use a .m4 file.
12231         * m4/sinh.m4: New file.
12232         * modules/sinh (Files): Add it.
12233         (configure.ac): Just invoke gl_FUNC_SINH.
12234
12235 2011-10-08  Bruno Haible  <bruno@clisp.org>
12236
12237         Tests for module 'atan2f'.
12238         * modules/atan2f-tests: New file.
12239         * tests/test-atan2f.c: New file.
12240
12241         New module 'atan2f'.
12242         * lib/math.in.h (atan2f): New declaration.
12243         * lib/atan2f.c: New file.
12244         * m4/atan2f.m4: New file.
12245         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
12246         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
12247         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
12248         * modules/atan2f: New file.
12249         * tests/test-math-c++.cc: Check the declaration of atan2f.
12250         * doc/posix-functions/atan2f.texi: Mention the new module.
12251
12252         atan2: Use a .m4 file.
12253         * m4/atan2.m4: New file.
12254         * modules/atan2 (Files): Add it.
12255         (configure.ac): Just invoke gl_FUNC_ATAN2.
12256
12257 2011-10-08  Bruno Haible  <bruno@clisp.org>
12258
12259         Tests for module 'atanf'.
12260         * modules/atanf-tests: New file.
12261         * tests/test-atanf.c: New file.
12262
12263         New module 'atanf'.
12264         * lib/math.in.h (atanf): New declaration.
12265         * lib/atanf.c: New file.
12266         * m4/atanf.m4: New file.
12267         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
12268         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
12269         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
12270         * modules/atanf: New file.
12271         * tests/test-math-c++.cc: Check the declaration of atanf.
12272         * doc/posix-functions/atanf.texi: Mention the new module.
12273
12274         atan: Use a .m4 file.
12275         * m4/atan.m4: New file.
12276         * modules/atan (Files): Add it.
12277         (configure.ac): Just invoke gl_FUNC_ATAN.
12278
12279 2011-10-08  Bruno Haible  <bruno@clisp.org>
12280
12281         Tests for module 'acosf'.
12282         * modules/acosf-tests: New file.
12283         * tests/test-acosf.c: New file.
12284
12285         New module 'acosf'.
12286         * lib/math.in.h (acosf): New declaration.
12287         * lib/acosf.c: New file.
12288         * m4/acosf.m4: New file.
12289         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
12290         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
12291         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
12292         * modules/acosf: New file.
12293         * tests/test-math-c++.cc: Check the declaration of acosf.
12294         * doc/posix-functions/acosf.texi: Mention the new module.
12295
12296         acos: Use a .m4 file.
12297         * m4/acos.m4: New file.
12298         * modules/acos (Files): Add it.
12299         (configure.ac): Just invoke gl_FUNC_ACOS.
12300
12301 2011-10-08  Bruno Haible  <bruno@clisp.org>
12302
12303         Tests for module 'asinf'.
12304         * modules/asinf-tests: New file.
12305         * tests/test-asinf.c: New file.
12306
12307         New module 'asinf'.
12308         * lib/math.in.h (asinf): New declaration.
12309         * lib/asinf.c: New file.
12310         * m4/asinf.m4: New file.
12311         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
12312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
12313         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
12314         * modules/asinf: New file.
12315         * tests/test-math-c++.cc: Check the declaration of asinf.
12316         * doc/posix-functions/asinf.texi: Mention the new module.
12317
12318         asin: Use a .m4 file.
12319         * m4/asin.m4: New file.
12320         * modules/asin (Files): Add it.
12321         (configure.ac): Just invoke gl_FUNC_ASIN.
12322
12323 2011-10-08  Bruno Haible  <bruno@clisp.org>
12324
12325         Tests for module 'tanf'.
12326         * modules/tanf-tests: New file.
12327         * tests/test-tanf.c: New file.
12328
12329         New module 'tanf'.
12330         * lib/math.in.h (tanf): New declaration.
12331         * lib/tanf.c: New file.
12332         * m4/tanf.m4: New file.
12333         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
12334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
12335         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
12336         * modules/tanf: New file.
12337         * tests/test-math-c++.cc: Check the declaration of tanf.
12338         * doc/posix-functions/tanf.texi: Mention the new module.
12339
12340         tan: Use a .m4 file.
12341         * m4/tan.m4: New file.
12342         * modules/tan (Files): Add it.
12343         (configure.ac): Just invoke gl_FUNC_TAN.
12344
12345 2011-10-08  Bruno Haible  <bruno@clisp.org>
12346
12347         Tests for module 'cosf'.
12348         * modules/cosf-tests: New file.
12349         * tests/test-cosf.c: New file.
12350
12351         New module 'cosf'.
12352         * lib/math.in.h (cosf): New declaration.
12353         * lib/cosf.c: New file.
12354         * m4/cosf.m4: New file.
12355         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
12356         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
12357         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
12358         * modules/cosf: New file.
12359         * tests/test-math-c++.cc: Check the declaration of cosf.
12360         * doc/posix-functions/cosf.texi: Mention the new module.
12361
12362         cos: Use a .m4 file.
12363         * m4/cos.m4: New file.
12364         * modules/cos (Files): Add it.
12365         (configure.ac): Just invoke gl_FUNC_COS.
12366
12367 2011-10-08  Bruno Haible  <bruno@clisp.org>
12368
12369         Tests for module 'sinf'.
12370         * modules/sinf-tests: New file.
12371         * tests/test-sinf.c: New file.
12372
12373         New module 'sinf'.
12374         * lib/math.in.h (sinf): New declaration.
12375         * lib/sinf.c: New file.
12376         * m4/sinf.m4: New file.
12377         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
12378         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
12379         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
12380         * modules/sinf: New file.
12381         * tests/test-math-c++.cc: Check the declaration of sinf.
12382         * doc/posix-functions/sinf.texi: Mention the new module.
12383
12384         sin: Use a .m4 file.
12385         * m4/sin.m4: New file.
12386         * modules/sin (Files): Add it.
12387         (configure.ac): Just invoke gl_FUNC_SIN.
12388
12389 2011-10-08  Bruno Haible  <bruno@clisp.org>
12390
12391         Tests for module 'powf'.
12392         * modules/powf-tests: New file.
12393         * tests/test-powf.c: New file.
12394
12395         New module 'powf'.
12396         * lib/math.in.h (powf): New declaration.
12397         * lib/powf.c: New file.
12398         * m4/powf.m4: New file.
12399         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
12400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
12401         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
12402         * modules/powf: New file.
12403         * tests/test-math-c++.cc: Check the declaration of powf.
12404         * doc/posix-functions/powf.texi: Mention the new module.
12405
12406         pow: Use a .m4 file.
12407         * m4/pow.m4: New file.
12408         * modules/pow (Files): Add it.
12409         (configure.ac): Just invoke gl_FUNC_POW.
12410
12411 2011-10-08  Bruno Haible  <bruno@clisp.org>
12412
12413         Tests for module 'log10f'.
12414         * modules/log10f-tests: New file.
12415         * tests/test-log10f.c: New file.
12416
12417         New module 'log10f'.
12418         * lib/math.in.h (log10f): New declaration.
12419         * lib/log10f.c: New file.
12420         * m4/log10f.m4: New file.
12421         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
12422         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
12423         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
12424         * modules/log10f: New file.
12425         * tests/test-math-c++.cc: Check the declaration of log10f.
12426         * doc/posix-functions/log10f.texi: Mention the new module.
12427
12428         log10: Use a .m4 file.
12429         * m4/log10.m4: New file.
12430         * modules/log10 (Files): Add it.
12431         (configure.ac): Just invoke gl_FUNC_LOG10.
12432
12433 2011-10-08  Bruno Haible  <bruno@clisp.org>
12434
12435         Tests for module 'logf'.
12436         * modules/logf-tests: New file.
12437         * tests/test-logf.c: New file.
12438
12439         New module 'logf'.
12440         * lib/math.in.h (logf): New declaration.
12441         * lib/logf.c: New file.
12442         * m4/logf.m4: New file.
12443         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
12444         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
12445         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
12446         * modules/logf: New file.
12447         * tests/test-math-c++.cc: Check the declaration of logf.
12448         * doc/posix-functions/logf.texi: Mention the new module.
12449
12450         log: Use a .m4 file.
12451         * m4/log.m4: New file.
12452         * modules/log (Files): Add it.
12453         (configure.ac): Just invoke gl_FUNC_LOG.
12454
12455 2011-10-08  Bruno Haible  <bruno@clisp.org>
12456
12457         Tests for module 'expf'.
12458         * modules/expf-tests: New file.
12459         * tests/test-expf.c: New file.
12460
12461         New module 'expf'.
12462         * lib/math.in.h (expf): New declaration.
12463         * lib/expf.c: New file.
12464         * m4/expf.m4: New file.
12465         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
12466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
12467         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
12468         * modules/expf: New file.
12469         * tests/test-math-c++.cc: Check the declaration of expf.
12470         * doc/posix-functions/expf.texi: Mention the new module.
12471
12472         exp: Use a .m4 file.
12473         * m4/exp.m4: New file.
12474         * modules/exp (Files): Add it.
12475         (configure.ac): Just invoke gl_FUNC_EXP.
12476
12477 2011-10-08  Bruno Haible  <bruno@clisp.org>
12478
12479         Tests for module 'sqrtf'.
12480         * modules/sqrtf-tests: New file.
12481         * tests/test-sqrtf.c: New file.
12482
12483         New module 'sqrtf'.
12484         * lib/math.in.h (sqrtf): New declaration.
12485         * lib/sqrtf.c: New file.
12486         * m4/sqrtf.m4: New file.
12487         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
12488         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
12489         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
12490         * modules/sqrtf: New file.
12491         * tests/test-math-c++.cc: Check the declaration of sqrtf.
12492         * doc/posix-functions/sqrtf.texi: Mention the new module.
12493
12494 2011-10-08  Bruno Haible  <bruno@clisp.org>
12495
12496         Tests: Avoid link failures w.r.t. libintl.
12497         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
12498         $(LIBINTL).
12499         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
12500         $(LIBINTL).
12501         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
12502         against $(LIBINTL).
12503         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
12504         $(LIBINTL).
12505         * modules/openat-tests (Makefile.am): Link test-fchmodat against
12506         $(LIBINTL).
12507         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
12508
12509 2011-10-08  Bruno Haible  <bruno@clisp.org>
12510
12511         pow tests: Defeat compiler optimizations.
12512         * tests/test-pow.c (main): Assign arguments to x and y before use.
12513
12514 2011-10-08  Bruno Haible  <bruno@clisp.org>
12515
12516         gnulib-tool: Improve last commit.
12517         * gnulib-tool (func_modules_transitive_closure): Simplify code.
12518         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
12519         ignore dependencies that are not among the modules list.
12520
12521 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
12522
12523         gnulib-tool: don't follow dependencies to avoided modules
12524         This fixes a bug that is related to the previous one.
12525         * gnulib-tool (func_modules_transitive_closure)
12526         (func_emit_autoconf_snippets):
12527         Check whether a dependency is acceptable before using it.
12528         (--extract-dependencies): Report an error if --avoid is also used,
12529         since this combination of options is not yet supported.
12530
12531         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
12532         Problem reported by Peter Dyballa in
12533         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
12534         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
12535         when echoing "$condition".
12536
12537 2011-10-07  Bruno Haible  <bruno@clisp.org>
12538
12539         Fix documentation about math functions on MacOS X.
12540         * doc/posix-functions/exp2.texi: Don't say the function is missing on
12541         MacOS X 10.5.
12542         * doc/posix-functions/fdim.texi: Likewise.
12543         * doc/posix-functions/feclearexcept.texi: Likewise.
12544         * doc/posix-functions/fegetenv.texi: Likewise.
12545         * doc/posix-functions/fegetround.texi: Likewise.
12546         * doc/posix-functions/feholdexcept.texi: Likewise.
12547         * doc/posix-functions/feraiseexcept.texi: Likewise.
12548         * doc/posix-functions/fesetenv.texi: Likewise.
12549         * doc/posix-functions/fesetround.texi: Likewise.
12550         * doc/posix-functions/fetestexcept.texi: Likewise.
12551         * doc/posix-functions/feupdateenv.texi: Likewise.
12552         * doc/posix-functions/fmax.texi: Likewise.
12553         * doc/posix-functions/fmin.texi: Likewise.
12554         * doc/posix-functions/log2.texi: Likewise.
12555         * doc/posix-functions/modff.texi: Likewise.
12556         * doc/posix-functions/nan.texi: Likewise.
12557         * doc/posix-functions/nanf.texi: Likewise.
12558         * doc/posix-functions/nextafterf.texi: Likewise.
12559         * doc/posix-functions/remquo.texi: Likewise.
12560
12561 2011-10-07  Bruno Haible  <bruno@clisp.org>
12562
12563         modff: Drop assumption about library that defines modff.
12564         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
12565         AC_CHECK_FUNCS.
12566         * modules/modff (Files): Add m4/mathfunc.m4.
12567
12568 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
12569
12570         raise tests: Avoid a GCC warning.
12571         * tests/test-raise.c (handler): Use _Noreturn.
12572
12573 2011-10-07  Bruno Haible  <bruno@clisp.org>
12574
12575         Tests for module 'ldexpf'.
12576         * modules/ldexpf-tests: New file.
12577         * tests/test-ldexpf.c: New file.
12578
12579         New module 'ldexpf'.
12580         * lib/math.in.h (ldexpf): New declaration.
12581         * lib/ldexpf.c: New file.
12582         * m4/ldexpf.m4: New file.
12583         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
12584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
12585         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
12586         * modules/ldexpf: New file.
12587         * tests/test-math-c++.cc: Check the declaration of ldexpf.
12588         * doc/posix-functions/ldexpf.texi: Mention the new module.
12589
12590 2011-10-06  Bruno Haible  <bruno@clisp.org>
12591
12592         frexpf: Work around problems on IRIX and mingw.
12593         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
12594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
12595         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
12596         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
12597         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
12598         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
12599         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
12600
12601 2011-10-06  Bruno Haible  <bruno@clisp.org>
12602
12603         fabsf: Drop assumption about library that defines fabsf.
12604         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
12605         AC_CHECK_FUNCS.
12606         * modules/fabsf (Files): Add m4/mathfunc.m4.
12607
12608 2011-10-06  Bruno Haible  <bruno@clisp.org>
12609
12610         frexpf: Drop assumption about library that defines frexpf.
12611         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
12612         'int *', 'float *', 'long double *', 'float', 'long double'.
12613         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
12614         AC_CHECK_FUNCS.
12615         * modules/frexpf (Files): Add m4/mathfunc.m4.
12616
12617         Tests for module 'frexpf'.
12618         * modules/frexpf-tests: New file.
12619         * tests/test-frexpf.c: New file.
12620
12621         New module 'frexpf'.
12622         * lib/math.in.h (frexpf): New declaration.
12623         * lib/frexpf.c: New file.
12624         * m4/frexpf.m4: New file.
12625         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
12626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
12627         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
12628         * modules/frexpf: New file.
12629         * tests/test-math-c++.cc: Check the declaration of frexpf.
12630         * doc/posix-functions/frexpf.texi: Mention the new module.
12631
12632 2011-10-06  Bruno Haible  <bruno@clisp.org>
12633
12634         math: Sort function declarations of math.in.h.
12635         * lib/math.in.h (frexp, logb): Move declarations.
12636
12637 2011-10-05  Bruno Haible  <bruno@clisp.org>
12638
12639         Tests for module 'modff'.
12640         * modules/modff-tests: New file.
12641         * tests/test-modff.c: New file.
12642
12643         New module 'modff'.
12644         * lib/math.in.h (modff): New declaration.
12645         * lib/modff.c: New file.
12646         * m4/modff.m4: New file.
12647         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
12648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
12649         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
12650         * modules/modff: New file.
12651         * tests/test-math-c++.cc: Check the declaration of modff.
12652         * doc/posix-functions/modff.texi: Mention the new module.
12653
12654         modf tests: Make test sharper.
12655         * tests/test-modf.c (main): Strengthen upper bound.
12656
12657         modf: Use a .m4 file.
12658         * m4/modf.m4: New file.
12659         * modules/modf (Files): Add it.
12660         (configure.ac): Just invoke gl_FUNC_MODF.
12661
12662 2011-10-05  Bruno Haible  <bruno@clisp.org>
12663
12664         Tests for module 'fmodf'.
12665         * modules/fmodf-tests: New file.
12666         * tests/test-fmodf.c: New file.
12667
12668         New module 'fmodf'.
12669         * lib/math.in.h (fmodf): New declaration.
12670         * lib/fmodf.c: New file.
12671         * m4/fmodf.m4: New file.
12672         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
12673         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
12674         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
12675         * modules/fmodf: New file.
12676         * tests/test-math-c++.cc: Check the declaration of fmodf.
12677         * doc/posix-functions/fmodf.texi: Mention the new module.
12678
12679         fmod: Use a .m4 file.
12680         * m4/fmod.m4: New file.
12681         * modules/fmod (Files): Add it.
12682         (configure.ac): Just invoke gl_FUNC_FMOD.
12683
12684 2011-10-05  Bruno Haible  <bruno@clisp.org>
12685
12686         Tests for module 'fabsf'.
12687         * modules/fabsf-tests: New file.
12688         * tests/test-fabsf.c: New file.
12689
12690         New module 'fabsf'.
12691         * lib/math.in.h (fabsf): New declaration.
12692         * lib/fabsf.c: New file.
12693         * m4/fabsf.m4: New file.
12694         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
12695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
12696         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
12697         * modules/fabsf: New file.
12698         * tests/test-math-c++.cc: Check the declaration of fabsf.
12699         * doc/posix-functions/fabsf.texi: Mention the new module.
12700
12701         fabs: Use a .m4 file.
12702         * m4/fabs.m4: New file.
12703         * modules/fabs (Files): Add it.
12704         (configure.ac): Just invoke gl_FUNC_FABS.
12705
12706 2011-10-05  Jim Meyering  <meyering@redhat.com>
12707
12708         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
12709         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
12710         ls -lL regression introduced in coreutils-8.12, it does so at the
12711         cost of an additional stat call in the common case.  Besides, now
12712         that the kernel change that prompted commit 95f7c57f has been reverted
12713         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
12714         we have no use for commit 95f7c57f, "file-has-acl: use
12715         acl_extended_file_nofollow if available".
12716
12717 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
12718
12719         file-has-acl: revert unintended change in behavior of ls -L
12720         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
12721         derived from...
12722         (file_has_acl): ...code here.  Call it.
12723         This problem was introduced with 2011-07-22 commit 95f7c57f,
12724         "file-has-acl: use acl_extended_file_nofollow if available".
12725         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
12726
12727 2011-10-03  Bruno Haible  <bruno@clisp.org>
12728
12729         poll: Avoid link errors on MSVC.
12730         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
12731         * modules/poll (Depends-on): Add sockets.
12732         (Link): New section.
12733         * NEWS: Mention the change.
12734         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
12735         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
12736         $(LIB_POLL) instead of $(LIBSOCKET).
12737
12738 2011-10-03  Bruno Haible  <bruno@clisp.org>
12739
12740         sys_select tests: Fix link error on MSVC 9.
12741         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
12742         with $(LIB_SELECT) instead of $(LIBSOCKET).
12743
12744 2011-10-03  Bruno Haible  <bruno@clisp.org>
12745
12746         sys_select: Fix compilation error on mingw.
12747         * lib/sys_select.in.h: On native Windows, include <io.h>.
12748
12749 2011-10-03  Bruno Haible  <bruno@clisp.org>
12750
12751         wmemset: Support for MSVC.
12752         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
12753         whether wmemset() exists.
12754
12755 2011-10-03  Bruno Haible  <bruno@clisp.org>
12756
12757         wmemmove: Support for MSVC.
12758         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
12759         whether wmemmove() exists.
12760
12761 2011-10-03  Bruno Haible  <bruno@clisp.org>
12762
12763         wmemcpy: Support for MSVC.
12764         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
12765         whether wmemcpy() exists.
12766
12767 2011-10-03  Bruno Haible  <bruno@clisp.org>
12768
12769         wmemcmp: Support for MSVC.
12770         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
12771         whether wmemcmp() exists.
12772
12773 2011-10-03  Bruno Haible  <bruno@clisp.org>
12774
12775         wmemchr: Support for MSVC.
12776         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
12777         whether wmemchr() exists.
12778
12779 2011-10-03  Bruno Haible  <bruno@clisp.org>
12780
12781         glthread/*, strsignal: Support for MSVC.
12782         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
12783         including <winsock.h> on MSVC 9.
12784         * lib/glthread/lock.h: Likewise.
12785         * lib/glthread/thread.h: Likewise.
12786         * lib/glthread/tls.h: Likewise.
12787         * lib/glthread/yield.h: Likewise.
12788         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
12789         if HAVE_UNISTD_H is false.
12790         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
12791
12792 2011-10-03  Bruno Haible  <bruno@clisp.org>
12793
12794         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
12795         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
12796         Set to 100000.
12797
12798 2011-10-03  Bruno Haible  <bruno@clisp.org>
12799
12800         acl: Fix specification.
12801         * lib/file-has-acl.c (file_has_acl): Fix specification.
12802
12803 2011-10-03  Bruno Haible  <bruno@clisp.org>
12804
12805         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
12806         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
12807         (compute_curr_prefix, shared_library_fullname,
12808         find_shared_library_fullname, get_shared_library_fullname, relocate):
12809         Use it together with PIC && INSTALLDIR.
12810         Reported by <jojelino@gmail.com>
12811         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
12812
12813 2011-10-01  Jim Meyering  <meyering@redhat.com>
12814
12815         maint.mk: adjust a release-related rule not to require use of gzip
12816         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
12817         Instead, check each file in $(DIST_ARCHIVES).  This is better for
12818         projects that build only .tar.xz files.  Also fix an erroneous test.
12819
12820         test-linkat: don't leave behind a temporary file
12821         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
12822         Otherwise, coreutils' "make distcheck" would fail with this:
12823           Only in /c/cu/tests/torture/coreutils/test/\
12824             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
12825           make[2]: *** [my-distcheck] Error 1
12826
12827         float, math: add omitted file
12828         * lib/itold.c: Add file, required for yesterday's float change.
12829
12830 2011-10-01  Bruno Haible  <bruno@clisp.org>
12831
12832         isinf: Fix for OpenBSD/x86.
12833         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12834         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12835         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12836
12837 2011-10-01  Bruno Haible  <bruno@clisp.org>
12838
12839         isfinite: Fix syntax error in configure test.
12840         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12841
12842         isfinite: Fix typo.
12843         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12844         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12845
12846 2011-10-01  Bruno Haible  <bruno@clisp.org>
12847
12848         nonblocking tests: Fix test failure on Linux/IA-64.
12849         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12850         Set to 270000.
12851
12852 2011-10-01  Bruno Haible  <bruno@clisp.org>
12853
12854         mkfifoat tests: Fix a test failure on mingw.
12855         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12856         with error ENOSYS.
12857
12858 2011-09-30  Bruno Haible  <bruno@clisp.org>
12859
12860         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12861         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12862         'long double'. Set REPLACE_ITOLD.
12863         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12864         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12865         * lib/itold.c: New file.
12866         * modules/float (Files): Add lib/itold.c.
12867         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12868         (Makefile.am): Substitute REPLACE_ITOLD.
12869         * modules/math (Depends-on): Add float.
12870         (Makefile.am): Substitute REPLACE_ITOLD.
12871         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12872         * doc/posix-headers/math.texi: Likewise.
12873         * doc/posix-functions/logl.texi: Likewise.
12874
12875 2011-09-30  Bruno Haible  <bruno@clisp.org>
12876
12877         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12878         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12879         Set to 140000.
12880
12881 2011-09-30  Bruno Haible  <bruno@clisp.org>
12882
12883         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12884         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12885         invocation, say "right after AC_PROG_CC_STDC", not "right after
12886         AC_PROG_CC".
12887         Reported by Gary V. Vaughan <gary@gnu.org>.
12888
12889 2011-09-30  Bruno Haible  <bruno@clisp.org>
12890
12891         Centralize C99 requirement.
12892         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12893         * modules/stdarg (configure.ac-early): Invoke it instead of
12894         AC_PROG_CC_STDC.
12895         Reported by Gary V. Vaughan and Paul Eggert.
12896
12897 2011-09-29  Bruno Haible  <bruno@clisp.org>
12898
12899         float: Fix LDBL_MAX value on Linux/PowerPC.
12900         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12901         on Linux/PowerPC.
12902         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12903         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12904         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12905         platform.
12906         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12907
12908 2011-09-29  Bruno Haible  <bruno@clisp.org>
12909
12910         doc: Improve doc about gl_EARLY.
12911         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12912         AC_PROG_CC_STDC invocation.
12913         Reported by Gary V. Vaughan <gary@gnu.org>.
12914
12915 2011-09-28  Bruno Haible  <bruno@clisp.org>
12916
12917         fgetc, fputc, fread, fwrite tests: Fix link error.
12918         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12919         on non-MSVC platforms.
12920         * tests/test-fputc.c (main): Likewise.
12921         * tests/test-fread.c (main): Likewise.
12922         * tests/test-fwrite.c (main): Likewise.
12923         Reported by Jim Meyering.
12924
12925 2011-09-27  Bruno Haible  <bruno@clisp.org>
12926
12927         fputc, fwrite tests: Avoid test failure on MSVC.
12928         * tests/test-fgetc.c: Include msvc-inval.h.
12929         (main): Invoke gl_msvc_inval_ensure_handler.
12930         * tests/test-fputc.c: Include msvc-inval.h.
12931         (main): Invoke gl_msvc_inval_ensure_handler.
12932         * tests/test-fread.c: Include msvc-inval.h.
12933         (main): Invoke gl_msvc_inval_ensure_handler.
12934         * tests/test-fwrite.c: Include msvc-inval.h.
12935         (main): Invoke gl_msvc_inval_ensure_handler.
12936         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12937         * modules/fputc-tests (Depends-on): Likewise.
12938         * modules/fread-tests (Depends-on): Likewise.
12939         * modules/fwrite-tests (Depends-on): Likewise.
12940
12941 2011-09-27  Bruno Haible  <bruno@clisp.org>
12942
12943         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12944         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12945         (raise): Remove older, duplicated declaration.
12946         (_gl_raise_SIGPIPE): New declaration.
12947         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12948         (rpl_raise): Remove function.
12949         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12950         a gnulib-defined SIGPIPE here.
12951         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12952         'sigprocmask' has detected missing signal-blocking and the module
12953         'sigpipe' is enabled.
12954         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12955
12956 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12957
12958         base64-tests: avoid memory leak
12959         * tests/test-base64.c (main): Plug memory leak.
12960
12961         base32: new module
12962         * modules/base32: New module.
12963         * lib/base32.c: New file.
12964         * lib/base32.h: Likewise.
12965         * m4/base32.m4: Likewise.
12966         * modules/base32-tests: New test.
12967         * tests/test-base32.c: Likewise.
12968         * MODULES.html.sh (Misc): Mention it.
12969
12970 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12971
12972         gnulib: use more-standard license notice wording
12973         * gnulib-tool (func_emit_copyright_notice): When emitting a
12974         license notice into a file, use the standard wording as suggested
12975         by the current information for GNU maintainers, except say "file"
12976         rather than "program".  The new wording gives a license version
12977         number, which addresses an issue raised by Glenn Morris in
12978         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12979         * m4/onceonly.m4: Use that same wording here, too.
12980
12981         dup2: minor simplification
12982         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12983         as lib/dup2.c no longer uses 'inline'.
12984
12985 2011-09-25  Bruno Haible  <bruno@clisp.org>
12986
12987         strings: Fix compilation error on MSVC.
12988         * lib/strings.in.h: Include <stddef.h> for size_t.
12989
12990 2011-09-25  Bruno Haible  <bruno@clisp.org>
12991
12992         fflush et al.: Document limitation on MSVC.
12993         * doc/posix-functions/fflush.texi: Document possible crash in handling
12994         mode other than DEFAULT_HANDLING.
12995         * doc/posix-functions/fgetc.texi: Likewise.
12996         * doc/posix-functions/fputc.texi: Likewise.
12997         * doc/posix-functions/fread.texi: Likewise.
12998         * doc/posix-functions/fwrite.texi: Likewise.
12999
13000 2011-09-25  Bruno Haible  <bruno@clisp.org>
13001
13002         msvc-inval: Allow three invalid parameter handling modes.
13003         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13004         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13005         macros.
13006         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13007         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13008         SANE_LIBRARY_HANDLING as a no-op.
13009         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13010         <stdlib.h>.
13011         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13012
13013 2011-09-25  Bruno Haible  <bruno@clisp.org>
13014
13015         msvc-inval: Make handler multithread-safe.
13016         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13017         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13018         declarations.
13019         (gl_msvc_inval_current): New declaration.
13020         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13021         Operate on the structure returned by gl_msvc_inval_current().
13022         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13023         Remove varaiables.
13024         (tls_index, tls_initialized): New variables.
13025         (not_per_thread): New variable.
13026         (gl_msvc_inval_current): New function.
13027         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13028         returned by gl_msvc_inval_current().
13029
13030 2011-09-25  Bruno Haible  <bruno@clisp.org>
13031
13032         msvc-inval: Install handler globally.
13033         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13034         !_MSC_VER.
13035         (gl_msvc_invalid_parameter_handler): Remove declaration.
13036         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13037         declarations.
13038         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13039         Install the handler globally, don't uninstall it.
13040         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13041         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13042         currently valid, call RaiseException instead.
13043         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13044         for !_MSC_VER.
13045
13046 2011-09-25  Bruno Haible  <bruno@clisp.org>
13047
13048         strerror_r-posix: Fix for MSVC 9.
13049         * lib/strerror_r.c (local_snprintf): New function.
13050         (snprintf): Define to local_snprintf, not to _snprintf.
13051
13052 2011-09-25  Bruno Haible  <bruno@clisp.org>
13053
13054         ftruncate: Support for MSVC 9.
13055         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13056         (chsize_nothrow): New function.
13057         (chsize): Redefine as a macro.
13058         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13059         * modules/ftruncate (Depends-on): Add msvc-inval.
13060
13061 2011-09-25  Bruno Haible  <bruno@clisp.org>
13062
13063         New module 'fstat'.
13064         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
13065         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
13066         * lib/fchdir.c (rpl_fstat): Remove function.
13067         * m4/fstat.m4: New file.
13068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
13069         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
13070         declared.
13071         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
13072         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
13073         * modules/fstat: New file.
13074         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
13075         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
13076         is set.
13077         * doc/posix-functions/fstat.texi: Mention the new module and the
13078         problem on MSVC.
13079         * NEWS: Mention the change.
13080         * modules/acl (Depends-on): Add fstat.
13081         * modules/chdir-safer (Depends-on): Likewise.
13082         * modules/chown (Depends-on): Likewise.
13083         * modules/copy-file (Depends-on): Likewise.
13084         * modules/fchdir (Depends-on): Likewise.
13085         * modules/fdopendir (Depends-on): Likewise.
13086         * modules/fopen (Depends-on): Likewise.
13087         * modules/fts (Depends-on): Likewise.
13088         * modules/getcwd (Depends-on): Likewise.
13089         * modules/isapipe (Depends-on): Likewise.
13090         * modules/linkat (Depends-on): Likewise.
13091         * modules/lseek (Depends-on): Likewise.
13092         * modules/mkdir-p (Depends-on): Likewise.
13093         * modules/open (Depends-on): Likewise.
13094         * modules/openat (Depends-on): Likewise.
13095         * modules/read-file (Depends-on): Likewise.
13096         * modules/renameat (Depends-on): Likewise.
13097         * modules/utimens (Depends-on): Likewise.
13098
13099 2011-09-25  Bruno Haible  <bruno@clisp.org>
13100
13101         linkat: Fix compilation on MSVC 9.
13102         * lib/linkat.c: Don't include <stdint.h>.
13103
13104 2011-09-25  Bruno Haible  <bruno@clisp.org>
13105
13106         fclose: Support for MSVC 9.
13107         * lib/fclose.c: Include msvc-inval.h.
13108         (fclose_nothrow): New function.
13109         (rpl_fclose): Use it.
13110         * modules/fclose (Depends-on): Add msvc-inval.
13111         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
13112
13113 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
13114
13115         dup2: minor simplifications
13116         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
13117         that it's a performance win.
13118         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
13119         ! defined __CYGWIN__)" to "ifdef F_GETFL".
13120
13121 2011-09-24  Jim Meyering  <meyering@redhat.com>
13122
13123         test-futimens: avoid a warning from gcc -Wshadow
13124         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
13125         to avoid a shadowing warning.
13126
13127 2011-09-24  Bruno Haible  <bruno@clisp.org>
13128
13129         fdopen: Support for MSVC 9.
13130         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
13131         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
13132         * lib/fdopen.c: Include msvc-inval.h.
13133         (fdopen_nothrow): New function.
13134         (rpl_fdopen): Use it.
13135         * modules/fdopen (Depends-on): Add msvc-inval.
13136         * modules/fclose-tests (Depends-on): Add fdopen.
13137         * modules/fflush-tests (Depends-on): Likewise.
13138         * modules/fgetc-tests (Depends-on): Likewise.
13139         * modules/fputc-tests (Depends-on): Likewise.
13140         * modules/fread-tests (Depends-on): Likewise.
13141         * modules/freopen-tests (Depends-on): Likewise.
13142         * modules/fseeko-tests (Depends-on): Likewise.
13143         * modules/ftello-tests (Depends-on): Likewise.
13144         * modules/fwrite-tests  (Depends-on): Likewise.
13145         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
13146
13147 2011-09-24  Bruno Haible  <bruno@clisp.org>
13148
13149         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
13150         * modules/fgetc-tests (Depends-on): Add unistd.
13151         * modules/fputc-tests (Depends-on): Likewise.
13152         * modules/fread-tests (Depends-on): Likewise.
13153         * modules/fwrite-tests (Depends-on): Likewise.
13154
13155 2011-09-24  Bruno Haible  <bruno@clisp.org>
13156
13157         dup: Simplify autoconf test.
13158         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
13159         on gl_MSVC_INVAL's result.
13160
13161 2011-09-24  Bruno Haible  <bruno@clisp.org>
13162
13163         Tests for function fwrite().
13164         * modules/fwrite-tests: New file.
13165         * tests/test-fwrite.c: New file.
13166         * modules/stdio-tests (Depends-on): Add fwrite-tests.
13167
13168         Tests for function fread().
13169         * modules/fread-tests: New file.
13170         * tests/test-fread.c: New file.
13171         * modules/stdio-tests (Depends-on): Add fread-tests.
13172
13173         Activate fputc tests.
13174         * modules/stdio-tests (Depends-on): Add fputc-tests.
13175
13176         Enhance fgetc, fputc tests.
13177         * tests/test-fgetc.c (main): Also test the stream's error indicator.
13178         * tests/test-fputc.c (main): Likewise.
13179
13180 2011-09-24  Bruno Haible  <bruno@clisp.org>
13181
13182         write: Support for MSVC 9.
13183         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13184         is not 1.
13185         * lib/write.c (write_nothrow): New function.
13186         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
13187         not 1. Use write_nothrow.
13188         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
13189         invalid parameter handler.
13190         (gl_PREREQ_WRITE): New macro.
13191         * modules/write (Depends-on): Add msvc-inval.
13192         (configure.ac): Invoke gl_PREREQ_WRITE.
13193         * doc/posix-functions/write.texi: Mention the problem on MSVC.
13194
13195 2011-09-24  Bruno Haible  <bruno@clisp.org>
13196
13197         read: Fix last commit.
13198         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
13199
13200 2011-09-24  Bruno Haible  <bruno@clisp.org>
13201
13202         dup2: Fix last commit.
13203         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
13204         (rpl_dup2): Disable fcntl workaround on native Windows.
13205
13206         sigprocmask: Make code safer.
13207         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
13208         section that changes macro definitions for this compilation unit.
13209
13210 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13211
13212         dup2: clarify by coalescing Windows-specific material
13213         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
13214         "msvc-nothrow.h"' to the Windows-specific section, so that the
13215         Emacs source need not contain these include files.
13216         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
13217         Windows-specific fixes into this function rather than just the
13218         nothrow fix, as this shortens and clarifies the code.  Always
13219         define as a function, as that's a bit cleaner than having it be
13220         sometimes a function and sometimes a macro.
13221         (rpl_dup2): Move the Windows-specific stuff out of here and into
13222         ms_windows_dup2.  Don't protect the Haiku-related fix with
13223         "#if !defined __linux__", as the same code also works around
13224         a Linux kernel bug, and it doesn't add any system calls on any
13225         platform.  Add comment about FreeBSD 6.1.
13226
13227         sigprocmask: move #include directive
13228         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
13229         Windows-specific section, so that the Emacs source need not
13230         contain msvc-inval.h.
13231
13232 2011-09-23  Bruno Haible  <bruno@clisp.org>
13233
13234         read: Support for MSVC 9.
13235         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
13236         is not 1.
13237         * lib/read.c (read_nothrow): New function.
13238         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
13239         read_nothrow.
13240         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
13241         invalid parameter handler.
13242         (gl_PREREQ_READ): New macro.
13243         * modules/read (Depends-on): Add msvc-inval.
13244         (configure.ac): Invoke gl_PREREQ_READ.
13245         * doc/posix-functions/read.texi: Mention the problem on MSVC.
13246
13247 2011-09-23  Bruno Haible  <bruno@clisp.org>
13248
13249         close: Support for MSVC 9.
13250         * lib/close.c: Include <errno.h>, msvc-inval.h.
13251         (close_nothrow): New function.
13252         (rpl_close): Use it.
13253         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
13254         invalid parameter handler.
13255         * modules/close (Depends-on): Add msvc-inval.
13256         * modules/dup2-tests (Depends-on): Add close.
13257         * modules/dup3-tests (Depends-on): Likewise.
13258         * modules/fcntl-tests (Depends-on): Likewise.
13259         * modules/spawn-pipe-tests (Depends-on): Likewise.
13260         * modules/unistd-safer-tests (Depends-on): Likewise.
13261         * doc/posix-functions/close.texi: Mention the problem on MSVC.
13262
13263 2011-09-23  Bruno Haible  <bruno@clisp.org>
13264
13265         New module 'dup'.
13266         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
13267         Allow replacement.
13268         * lib/dup.c: New file.
13269         * lib/fchdir.c (rpl_dup): Remove function.
13270         * m4/dup.m4: New file.
13271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
13272         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
13273         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
13274         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
13275         * modules/dup: New file.
13276         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
13277         'dup' module is in use.
13278         * modules/fdopendir (Depends-on): Add dup.
13279         * modules/fdutimensat-tests (Depends-on): Likewise.
13280         * modules/fts (Depends-on): Likewise.
13281         * modules/futimens-tests (Depends-on): Likewise.
13282         * modules/posix_spawnp-tests (Depends-on): Likewise.
13283         * modules/unistd-safer-tests (Depends-on): Likewise.
13284         * modules/utimens-tests (Depends-on): Likewise.
13285         * doc/posix-functions/dup.texi: Mention the new module and the problem
13286         on MSVC.
13287
13288 2011-09-23  Bruno Haible  <bruno@clisp.org>
13289
13290         getdtablesize: Support for MSVC 9.
13291         * lib/getdtablesize.c: Include msvc-inval.h.
13292         (_setmaxstdio_nothrow): New function.
13293         (_setmaxstdio): Redefine it.
13294         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
13295         * modules/getdtablesize (Depends-on): Add msvc-inval.
13296         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
13297
13298 2011-09-23  Bruno Haible  <bruno@clisp.org>
13299
13300         signal-h: Rename from signal.
13301         * modules/signal-h: Renamed from modules/signal.
13302         * modules/pthread_sigmask (Depends-on): Update.
13303         * modules/raise (Depends-on): Likewise.
13304         * modules/sigaction (Depends-on): Likewise.
13305         * modules/sigpipe (Depends-on): Likewise.
13306         * modules/sigprocmask (Depends-on): Likewise.
13307         * modules/sys_select (Depends-on): Likewise.
13308         * modules/signal-h-tests: Renamed from modules/signal-tests.
13309         (Files, Depends-on, Makefile.am): Update.
13310         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
13311         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
13312         (Files, Makefile.am): Update.
13313         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
13314         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
13315         * modules/signal: New placeholder file.
13316         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
13317         * doc/posix-headers/signal.texi: Update.
13318         * NEWS: Mention the change.
13319
13320 2011-09-23  Bruno Haible  <bruno@clisp.org>
13321
13322         sigprocmask: Avoid crashes through signal() on MSVC 9.
13323         * lib/sigprocmask.c: Include msvc-inval.h.
13324         (signal_nothrow): New function.
13325         (signal): Redefine it.
13326         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
13327         * modules/sigprocmask (Depends-on): Add msvc-inval.
13328         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
13329
13330 2011-09-23  Bruno Haible  <bruno@clisp.org>
13331
13332         Tests for module 'raise'.
13333         * modules/raise-tests: New file.
13334         * tests/test-raise.c: New file.
13335
13336         raise: Support for MSVC.
13337         * lib/signal.in.h (raise): New declaration.
13338         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
13339         for native Windows platforms.
13340         * m4/raise.m4: New file.
13341         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
13342         HAVE_RAISE, REPLACE_RAISE.
13343         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
13344         REPLACE_RAISE.
13345         * modules/raise (Status, Notice): Remove fields.
13346         (Files): Add m4/raise.m4.
13347         (Depends-on): Add signal, msvc-inval.
13348         (configure.ac): Use the common idioms.
13349         (Maintainer): Add me.
13350         * tests/test-signal-c++.cc: Check the signature of raise.
13351         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
13352
13353 2011-09-23  Bruno Haible  <bruno@clisp.org>
13354
13355         pipe2: Fix compilation on pre-C99 compilers.
13356         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
13357
13358 2011-09-23  Bruno Haible  <bruno@clisp.org>
13359
13360         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
13361         * lib/msvc-nothrow.h: New file.
13362         * lib/msvc-nothrow.c: New file.
13363         * m4/msvc-nothrow.m4: New file.
13364         * modules/msvc-nothrow: New file.
13365         * lib/dup2.c: Include msvc-nothrow.h.
13366         (rpl_dup2): No need to protect _get_osfhandle call here.
13367         * lib/accept4.c: Include msvc-nothrow.h.
13368         * lib/error.c: Likewise.
13369         * lib/fcntl.c: Likewise.
13370         * lib/lseek.c: Likewise.
13371         * lib/nonblocking.c: Likewise.
13372         * lib/poll.c: Likewise.
13373         * lib/read.c: Likewise.
13374         * lib/select.c: Likewise.
13375         * lib/sockets.h: Likewise.
13376         * lib/sockets.c: Likewise.
13377         * lib/stdio-read.c: Likewise.
13378         * lib/stdio-write.c: Likewise.
13379         * lib/write.c: Likewise.
13380         * lib/w32sock.h: Likewise.
13381         * lib/w32spawn.h: Likewise.
13382         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
13383         * lib/fsync.c: Likewise.
13384         * lib/isapipe.c: Likewise.
13385         * modules/dup2 (Depends-on): Add msvc-nothrow.
13386         * modules/accept4 (Depends-on): Likewise.
13387         * modules/error (Depends-on): Likewise.
13388         * modules/fcntl (Depends-on): Likewise.
13389         * modules/lseek (Depends-on): Likewise.
13390         * modules/nonblocking (Depends-on): Likewise.
13391         * modules/poll (Depends-on): Likewise.
13392         * modules/read (Depends-on): Likewise.
13393         * modules/select (Depends-on): Likewise.
13394         * modules/sockets (Depends-on): Likewise.
13395         * modules/sigpipe (Depends-on): Likewise.
13396         * modules/write (Depends-on): Likewise.
13397         * modules/accept (Depends-on): Likewise.
13398         * modules/bind (Depends-on): Likewise.
13399         * modules/connect (Depends-on): Likewise.
13400         * modules/gethostname (Depends-on): Likewise.
13401         * modules/getpeername (Depends-on): Likewise.
13402         * modules/getsockname (Depends-on): Likewise.
13403         * modules/getsockopt (Depends-on): Likewise.
13404         * modules/ioctl (Depends-on): Likewise.
13405         * modules/listen (Depends-on): Likewise.
13406         * modules/recv (Depends-on): Likewise.
13407         * modules/recvfrom (Depends-on): Likewise.
13408         * modules/send (Depends-on): Likewise.
13409         * modules/sendto (Depends-on): Likewise.
13410         * modules/setsockopt (Depends-on): Likewise.
13411         * modules/shutdown (Depends-on): Likewise.
13412         * modules/socket (Depends-on): Likewise.
13413         * modules/execute (Depends-on): Likewise.
13414         * modules/spawn-pipe (Depends-on): Likewise.
13415         * modules/flock (Depends-on): Likewise.
13416         * modules/fsync (Depends-on): Likewise.
13417         * modules/isapipe (Depends-on): Likewise.
13418         * tests/test-cloexec.c: Include msvc-nothrow.h.
13419         * tests/test-dup-safer.c: Likewise.
13420         * tests/test-dup2.c: Likewise.
13421         * tests/test-dup3.c: Likewise.
13422         * tests/test-fcntl.c: Likewise.
13423         * tests/test-pipe.c: Likewise.
13424         * tests/test-pipe2.c: Likewise.
13425         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
13426         * modules/unistd-safer-tests (Depends-on): Likewise.
13427         * modules/dup2-tests (Depends-on): Likewise.
13428         * modules/dup3-tests (Depends-on): Likewise.
13429         * modules/fcntl-tests (Depends-on): Likewise.
13430         * modules/pipe-posix-tests (Depends-on): Likewise.
13431         * modules/pipe2-tests (Depends-on): Likewise.
13432
13433 2011-09-23  Bruno Haible  <bruno@clisp.org>
13434
13435         dup2: Make code more maintainable.
13436         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
13437         (rpl_dup2): Use it.
13438         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
13439         * modules/dup2 (configure.ac): Invoke it.
13440         Reported by Paul Eggert.
13441
13442 2011-09-23  Bruno Haible  <bruno@clisp.org>
13443
13444         msvc-inval: Fix compilation error.
13445         * lib/msvc-inval.h: Include <excpt.h>.
13446
13447 2011-09-23  Bruno Haible  <bruno@clisp.org>
13448
13449         mkdir: Tweak for MSVC 9.
13450         * lib/sys_stat.in.h: Update comments.
13451         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
13452
13453         Tests for module 'chdir'.
13454         * modules/chdir-tests: New file.
13455         * tests/test-chdir.c: New file.
13456
13457         New module 'chdir'.
13458         * modules/chdir: New file.
13459         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
13460         (chdir): New declaration.
13461         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
13462         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
13463         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
13464         * tests/test-unistd-c++.cc: Check signature of chdir.
13465         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
13466         * modules/chdir-long (Depends-on): Add chdir.
13467         * modules/fchdir (Depends-on): Likewise.
13468         * modules/rename (Depends-on): Likewise.
13469         * modules/savewd (Depends-on): Likewise.
13470
13471         rmdir: Support for mingw, MSVC 9.
13472         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
13473         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
13474
13475         getcwd: Tweak for MSVC 9.
13476         * lib/unistd.in.h: Update comments.
13477         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
13478
13479 2011-09-22  Bruno Haible  <bruno@clisp.org>
13480
13481         strerror_r-posix: Avoid a link error on MSVC.
13482         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
13483         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
13484
13485 2011-09-22  Bruno Haible  <bruno@clisp.org>
13486
13487         select: Avoid link errors on MSVC.
13488         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
13489         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
13490         * modules/pselect (Link): Likewise.
13491         * NEWS: Mention the change.
13492         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
13493         test-select-stdin against $(LIB_SELECT).
13494         * modules/pselect-tests (Makefile.am): Link test-pselect against
13495         $(LIB_SELECT).
13496
13497 2011-09-22  Bruno Haible  <bruno@clisp.org>
13498
13499         select: Avoid compilation error on MSVC.
13500         * lib/select.c: Don't include <stdbool.h>.
13501
13502 2011-09-21  Bruno Haible  <bruno@clisp.org>
13503
13504         Consolidate all uses of PATH_MAX in *.m4 files.
13505         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
13506         macros.
13507         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
13508         and gl_PATHMAX_SNIPPET.
13509         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13510         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13511         * modules/chdir-long (Files): Add m4/pathmax.m4.
13512         * modules/getcwd (Files): Likewise.
13513
13514 2011-09-21  Bruno Haible  <bruno@clisp.org>
13515
13516         ftruncate: Un-deprecate, concentrate on Win32 support.
13517         * modules/ftruncate (Status, Notice): Remove sections.
13518         (Depends-on): Add largefile.
13519         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
13520         non-mingw platforms.
13521         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
13522         include <io.h>.
13523         * modules/perror-tests (Depends-on): Add ftruncate.
13524         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
13525         'ftruncate' module.
13526
13527 2011-09-21  Bruno Haible  <bruno@clisp.org>
13528
13529         Add dependencies to new dirent related modules.
13530         * modules/opendir (Depends-on): Add closedir.
13531         * modules/getcwd (Depends-on): Add opendir, closedir.
13532         * modules/dirent-safer-tests (Depends-on): Likewise.
13533         * modules/fdopendir-tests (Depends-on): Likewise.
13534         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
13535         * modules/renameat-tests (Depends-on): Likewise.
13536
13537 2011-09-21  Bruno Haible  <bruno@clisp.org>
13538
13539         opendir: Avoid compilation error on mingw.
13540         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
13541         * modules/opendir (Depends-on): Add unistd.
13542
13543 2011-09-21  Bruno Haible  <bruno@clisp.org>
13544
13545         ftruncate tests: Avoid a test failure on mingw.
13546         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
13547
13548 2011-09-21  Bruno Haible  <bruno@clisp.org>
13549
13550         select tests: Avoid test failures on OSF/1 5.1 and mingw.
13551         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
13552         native Windows.
13553
13554 2011-09-21  Bruno Haible  <bruno@clisp.org>
13555
13556         New module 'fdopen'.
13557         * lib/stdio.in.h (fdopen): New declaration.
13558         * lib/fdopen.c: New file.
13559         * m4/fdopen.m4: New file.
13560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
13561         REPLACE_FDOPEN.
13562         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
13563         REPLACE_FDOPEN.
13564         * modules/fdopen: New file.
13565         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
13566         * tests/test-stdio-c++.cc: Check signature of fdopen.
13567         * doc/posix-functions/fdopen.texi: Mention the new module.
13568
13569 2011-09-21  Bruno Haible  <bruno@clisp.org>
13570
13571         unlockpt tests: Avoid test failure on NetBSD 5.1.
13572         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
13573         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
13574
13575 2011-09-21  Bruno Haible  <bruno@clisp.org>
13576
13577         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
13578         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
13579         * tests/test-getlogin_r.c (main): Likewise.
13580
13581 2011-09-20  Bruno Haible  <bruno@clisp.org>
13582
13583         time tests: Don't require pid_t.
13584         * doc/posix-headers/time.texi: Revert last change.
13585         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
13586         * tests/test-time.c: Comment out the check for pid_t.
13587
13588 2011-09-20  Bruno Haible  <bruno@clisp.org>
13589
13590         fsync tests: Avoid a test failure on mingw.
13591         * tests/test-fsync.c (main): Allow a failure with EIO.
13592
13593 2011-09-20  Bruno Haible  <bruno@clisp.org>
13594
13595         euidaccess: Update comments.
13596         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
13597
13598 2011-09-20  Bruno Haible  <bruno@clisp.org>
13599
13600         Ensure EBADF returns for socket functions on mingw.
13601         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
13602         descriptor is invalid.
13603         * lib/bind.c (rpl_bind): Likewise.
13604         * lib/connect.c (rpl_connect): Likewise.
13605         * lib/getpeername.c (rpl_getpeername): Likewise.
13606         * lib/getsockname.c (rpl_getsockname): Likewise.
13607         * lib/getsockopt.c (rpl_getsockopt): Likewise.
13608         * lib/listen.c (rpl_listen): Likewise.
13609         * lib/recv.c (rpl_recv): Likewise.
13610         * lib/recvfrom.c (rpl_recvfrom): Likewise.
13611         * lib/send.c (rpl_send): Likewise.
13612         * lib/sendto.c (rpl_sendto): Likewise.
13613         * lib/setsockopt.c (rpl_setsockopt): Likewise.
13614         * lib/shutdown.c (rpl_shutdown): Likewise.
13615
13616 2011-09-20  Bruno Haible  <bruno@clisp.org>
13617
13618         select tests: EBADF tests.
13619         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
13620         test_bad_fd): New functions.
13621         (test_function): Invoke also test_bad_fd.
13622
13623 2011-09-20  Bruno Haible  <bruno@clisp.org>
13624
13625         Tests for module 'posix_spawn_file_actions_addopen.
13626         * modules/posix_spawn_file_actions_addopen-tests: New file.
13627         * tests/test-posix_spawn_file_actions_addopen.c: New file.
13628
13629         Tests for module 'posix_spawn_file_actions_adddup2'.
13630         * modules/posix_spawn_file_actions_adddup2-tests: New file.
13631         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
13632
13633         Tests for module 'posix_spawn_file_actions_addclose'.
13634         * modules/posix_spawn_file_actions_addclose-tests: New file.
13635         * tests/test-posix_spawn_file_actions_addclose.c: New file.
13636
13637 2011-09-20  Bruno Haible  <bruno@clisp.org>
13638
13639         Tests for module 'unlockpt'.
13640         * modules/unlockpt-tests: New file.
13641         * tests/test-unlockpt.c: New file.
13642         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
13643
13644         Tests for module 'grantpt'.
13645         * modules/grantpt-tests: New file.
13646         * tests/test-grantpt.c: New file.
13647         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
13648
13649 2011-09-20  Bruno Haible  <bruno@clisp.org>
13650
13651         freopen tests: EBADF tests.
13652         * tests/test-freopen.c: Include errno.h, unistd.h.
13653         (main): Add tests for EBADF, commented out for the moment.
13654
13655         fclose tests: EBADF tests.
13656         * tests/test-fclose.c (main): Add tests for EBADF.
13657
13658         fflush tests: EBADF tests.
13659         * tests/test-fflush.c: Include errno.h, macros.h.
13660         (main): Add tests for EBADF.
13661
13662         ftello tests: EBADF tests.
13663         * tests/test-ftello4.sh: New file.
13664         * tests/test-ftello4.c: New file.
13665         * modules/ftello-tests (Files): Add them.
13666         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
13667
13668         fseeko tests: EBADF tests.
13669         * tests/test-fseeko4.sh: New file.
13670         * tests/test-fseeko4.c: New file.
13671         * modules/fseeko-tests (Files): Add them.
13672         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
13673
13674         Tests for function fputc().
13675         * modules/fputc-tests: New file.
13676         * tests/test-fputc.c: New file.
13677         * modules/stdio-tests (Depends-on): Add fputc-tests.
13678
13679         Tests for function fgetc().
13680         * modules/fgetc-tests: New file.
13681         * tests/test-fgetc.c: New file.
13682         * modules/stdio-tests (Depends-on): Add fgetc-tests.
13683
13684         Tests for function fdopen().
13685         * modules/fdopen-tests: New file.
13686         * tests/test-fdopen.c: New file.
13687         * modules/stdio-tests (Depends-on): Add fdopen-tests.
13688
13689         Tests for module 'vdprintf'.
13690         * modules/vdprintf-tests: New file.
13691         * tests/test-vdprintf.c: New file.
13692
13693         Tests for module 'dprintf'.
13694         * modules/dprintf-tests: New file.
13695         * tests/test-dprintf.c: New file.
13696
13697 2011-09-20  Bruno Haible  <bruno@clisp.org>
13698
13699         Tests for module 'ioctl'.
13700         * modules/ioctl-tests: New file.
13701         * tests/test-ioctl.c: New file.
13702
13703 2011-09-20  Bruno Haible  <bruno@clisp.org>
13704
13705         fcntl tests: EBADF tests.
13706         * tests/test-fcntl.c (main): Add more tests for EBADF.
13707
13708 2011-09-20  Bruno Haible  <bruno@clisp.org>
13709
13710         utimensat tests: EBADF tests.
13711         * tests/test-utimensat.c (main): Add tests for EBADF.
13712
13713         renameat tests: EBADF tests.
13714         * tests/test-renameat.c (main): Add tests for EBADF.
13715
13716         mkfifoat tests: EBADF tests.
13717         * tests/test-mkfifoat.c (main): Add tests for EBADF.
13718
13719         readlinkat tests: EBADF tests.
13720         * tests/test-readlinkat.c (main): Add tests for EBADF.
13721
13722         symlinkat tests: EBADF tests.
13723         * tests/test-symlinkat.c (main): Add tests for EBADF.
13724
13725         linkat tests: EBADF tests.
13726         * tests/test-linkat.c (main): Add tests for EBADF.
13727
13728         Tests for module 'faccessat'.
13729         * modules/faccessat-tests: New file.
13730         * tests/test-faccessat.c: New file.
13731
13732         fdopendir tests: EBADF tests.
13733         * tests/test-fdopendir.c (main): Add more tests for EBADF.
13734
13735         openat tests: EBADF tests.
13736         * tests/test-fchownat.c (main): Add tests for EBADF.
13737         * tests/test-fstatat.c (main): Likewise.
13738         * tests/test-mkdirat.c (main): Likewise.
13739         * tests/test-openat.c (main): Likewise.
13740         * tests/test-unlinkat.c (main): Likewise.
13741         * tests/test-fchmodat.c: New file.
13742         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
13743         (Makefile.am): Also run 'test-fchmodat'.
13744
13745 2011-09-20  Bruno Haible  <bruno@clisp.org>
13746
13747         utimens, futimens, fdutimensat tests: EBADF tests.
13748         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
13749
13750         Tests for function fstat().
13751         * modules/fstat-tests: New file.
13752         * tests/test-fstat.c: New file.
13753         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
13754
13755 2011-09-20  Bruno Haible  <bruno@clisp.org>
13756
13757         test-ttyname_r tests: EBADF tests.
13758         * tests/test-ttyname_r.c (main): Add tests for EBADF.
13759
13760         Tests for module 'isatty'.
13761         * modules/isatty-tests: New file.
13762         * tests/test-isatty.c: New file.
13763
13764         Tests for module 'write'.
13765         * modules/write-tests: New file.
13766         * tests/test-write.c: New file.
13767
13768         Tests for module 'read'.
13769         * modules/read-tests: New file.
13770         * tests/test-read.c: New file.
13771
13772         pwrite tests: EBADF tests.
13773         * tests/test-pwrite.c (main): Add tests for EBADF.
13774
13775         pread tests: EBADF tests.
13776         * tests/test-pread.c (main): Add tests for EBADF.
13777
13778         lseek tests: EBADF tests.
13779         * tests/test-lseek.c (main): Add more tests for EBADF.
13780
13781         Tests for module 'ftruncate'.
13782         * modules/ftruncate-tests: New file.
13783         * tests/test-ftruncate.sh: New file.
13784         * tests/test-ftruncate.c: New file.
13785
13786         fsync tests: EBADF tests.
13787         * tests/test-fsync.c (main): Add more tests for EBADF.
13788
13789         fdatasync tests: EBADF tests.
13790         * tests/test-fdatasync.c (main): Add more tests for EBADF.
13791
13792         Tests for module 'fchown'.
13793         * modules/fchown-tests: New file.
13794         * tests/test-fchown.c: New file.
13795
13796         Tests for module 'fchmod'.
13797         * modules/fchmod-tests: New file.
13798         * tests/test-fchmod.c: New file.
13799
13800         fchdir tests: EBADF tests.
13801         * tests/test-fchdir.c (main): Add more tests for EBADF.
13802
13803         dup2 tests: EBADF tests.
13804         * tests/test-dup2.c (main): Add more tests for EBADF.
13805
13806         Tests for module 'dup'.
13807         * modules/dup-tests: New file.
13808         * tests/test-dup.c: New file.
13809
13810         Tests for module 'close'.
13811         * modules/close-tests: New file.
13812         * tests/test-close.c: New file.
13813
13814 2011-09-20  Bruno Haible  <bruno@clisp.org>
13815
13816         Tests for module 'shutdown'.
13817         * modules/shutdown-tests: New file.
13818         * tests/test-shutdown.c: New file.
13819
13820         Tests for module 'setsockopt'.
13821         * modules/setsockopt-tests: New file.
13822         * tests/test-setsockopt.c: New file.
13823
13824         Tests for module 'sendto'.
13825         * modules/sendto-tests: New file.
13826         * tests/test-sendto.c: New file.
13827
13828         Tests for module 'send'.
13829         * modules/send-tests: New file.
13830         * tests/test-send.c: New file.
13831
13832         Tests for module 'recvfrom'.
13833         * modules/recvfrom-tests: New file.
13834         * tests/test-recvfrom.c: New file.
13835
13836         Tests for module 'recv'.
13837         * modules/recv-tests: New file.
13838         * tests/test-recv.c: New file.
13839
13840         Tests for module 'listen'.
13841         * modules/listen-tests: New file.
13842         * tests/test-listen.c: New file.
13843
13844         Tests for module 'getsockopt'.
13845         * modules/getsockopt-tests: New file.
13846         * tests/test-getsockopt.c: New file.
13847
13848         Tests for module 'getsockname'.
13849         * modules/getsockname-tests: New file.
13850         * tests/test-getsockname.c: New file.
13851
13852         Tests for module 'getpeername'.
13853         * modules/getpeername-tests: New file.
13854         * tests/test-getpeername.c: New file.
13855
13856         Tests for module 'connect'.
13857         * modules/connect-tests: New file.
13858         * tests/test-connect.c: New file.
13859
13860         Tests for module 'bind'.
13861         * modules/bind-tests: New file.
13862         * tests/test-bind.c: New file.
13863
13864         accept4 tests: Fix for native Windows.
13865         * tests/test-accept4.c: Include sockets.h.
13866         (main): Invoke gl_sockets_startup.
13867         * modules/accept4-tests (Depends-on): Add sockets.
13868
13869         accept tests: Fix for native Windows.
13870         * tests/test-accept.c: Include sockets.h.
13871         (main): Invoke gl_sockets_startup.
13872         * modules/accept-tests (Depends-on): Add sockets.
13873
13874 2011-09-19  Bruno Haible  <bruno@clisp.org>
13875
13876         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13877         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13878         do...while(0).
13879         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13880         Suggested by Paul Eggert.
13881
13882 2011-09-19  Bruno Haible  <bruno@clisp.org>
13883
13884         sched: Ensure pid_t is defined.
13885         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13886         not define pid_t.
13887         * lib/sched.in.h: Include <sys/types.h>.
13888         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13889         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13890
13891 2011-09-19  Bruno Haible  <bruno@clisp.org>
13892
13893         msvc-inval: Ensure the entire expansion is a single statement.
13894         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13895         of braces.
13896
13897 2011-09-19  Jim Meyering  <meyering@redhat.com>
13898
13899         tests: use printf, not echo in init.sh's warn_ function
13900         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13901         misbehave when given strings containing a backslash or starting
13902         with e.g., -n.  James Youngman suggested setting IFS.
13903
13904 2011-09-19  Eric Blake  <eblake@redhat.com>
13905
13906         futimens: enhance test
13907         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13908         closed non-negative fd.
13909
13910         date: accept 'hence' as opposite of 'ago'
13911         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13912         * tests/test-parse-datetime.c (main): Enhance test.
13913         Suggested by Jesse Wilson.
13914
13915 2011-09-19  Jim Meyering  <meyering@redhat.com>
13916
13917         getcwd: don't fail in a deep directory on a system without openat
13918         Before this change, getcwd would fail when called from a directory
13919         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13920         the non-openat implementation used "..", "../..", "../../..", etc.
13921         to access ancestor directories.  With too many, that string would
13922         be longer than PATH_MAX.
13923         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13924         using gnulib's openat replacement.
13925         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13926         we're using the replacement function.
13927
13928 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13929
13930         maint.mk: avoid warnings from perl about missing files
13931         * top/maint.mk (def_sym_regex): Ignore files listed in
13932         $(gl_other_headers_) that do not exist, say because a project
13933         does not use a corresponding module.
13934
13935 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13936
13937         stat: use pathmax.h only if needed
13938         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13939         This is better for Emacs, which does not have a mingw port and
13940         therefore can avoid the pathmax module.
13941
13942         utimens: remove dependency on dup2
13943         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13944         to work around the Linux kernel bug.
13945         * modules/utimens (Depends-on): Remove dup2.
13946
13947 2011-09-18  Bruno Haible  <bruno@clisp.org>
13948
13949         inet_ntop, inet_pton: Look for it also in libresolv.
13950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13951         libnsl, search for it in libresolv.
13952         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13953         Needed on Solaris 7.
13954
13955 2011-09-18  Bruno Haible  <bruno@clisp.org>
13956
13957         accept, accept4 tests: Avoid link error on Solaris.
13958         * modules/accept-tests (Makefile.am): Link test-accept against
13959         $(LIBSOCKET).
13960         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13961         $(LIBSOCKET).
13962
13963         accept4: Avoid link error on Solaris.
13964         * modules/accept4 (Link): New section.
13965
13966         socket functions: Avoid link errors on Solaris.
13967         * modules/accept (Depends-on): Add socketlib.
13968         (Link): New section.
13969         * modules/bind (Depends-on): Add socketlib.
13970         (Link): New section.
13971         * modules/connect (Depends-on): Add socketlib.
13972         (Link): New section.
13973         * modules/getpeername (Depends-on): Add socketlib.
13974         (Link): New section.
13975         * modules/getsockname (Depends-on): Add socketlib.
13976         (Link): New section.
13977         * modules/getsockopt (Depends-on): Add socketlib.
13978         (Link): New section.
13979         * modules/listen (Depends-on): Add socketlib.
13980         (Link): New section.
13981         * modules/recv (Depends-on): Add socketlib.
13982         (Link): New section.
13983         * modules/recvfrom (Depends-on): Add socketlib.
13984         (Link): New section.
13985         * modules/send (Depends-on): Add socketlib.
13986         (Link): New section.
13987         * modules/sendto (Depends-on): Add socketlib.
13988         (Link): New section.
13989         * modules/setsockopt (Depends-on): Add socketlib.
13990         (Link): New section.
13991         * modules/shutdown (Depends-on): Add socketlib.
13992         (Link): New section.
13993         * modules/socket (Depends-on): Add socketlib.
13994         (Link): New section.
13995
13996 2011-09-18  Bruno Haible  <bruno@clisp.org>
13997
13998         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13999         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14000         than 5 seconds.
14001         * modules/ptsname-tests (configure.ac): Test for alarm.
14002
14003 2011-09-18  Bruno Haible  <bruno@clisp.org>
14004
14005         posix_spawn_file_actions_add*: Fix module dependencies.
14006         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14007         posix_spawn_file_actions_init.
14008         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14009         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14010
14011 2011-09-18  Bruno Haible  <bruno@clisp.org>
14012
14013         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14014         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14015         * tests/test-renameat.c (main): Likewise.
14016
14017 2011-09-18  Bruno Haible  <bruno@clisp.org>
14018
14019         Tests for module 'accept4'.
14020         * modules/accept4-tests: New file.
14021         * tests/test-accept4.c: New file.
14022
14023 2011-09-18  Bruno Haible  <bruno@clisp.org>
14024
14025         Tests for module 'accept'.
14026         * modules/accept-tests: New file.
14027         * tests/test-accept.c: New file.
14028
14029 2011-09-18  Bruno Haible  <bruno@clisp.org>
14030
14031         dup2: Support for MSVC.
14032         * lib/dup2.c: Include msvc-inval.h.
14033         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14034         _get_osfhandle calls.
14035         * modules/dup2 (Depends-on): Add msvc-inval.
14036         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14037
14038         New module 'msvc-inval'.
14039         * lib/msvc-inval.h: New file.
14040         * lib/msvc-inval.c: New file.
14041         * m4/msvc-inval.m4: New file.
14042         * modules/msvc-inval: New file.
14043
14044 2011-09-17  Bruno Haible  <bruno@clisp.org>
14045
14046         Tests for module 'pclose'.
14047         * modules/pclose-tests: New file.
14048
14049         New module 'pclose'.
14050         * lib/stdio.in.h (pclose): New declaration.
14051         * lib/pclose.c: New file.
14052         * m4/pclose.m4: New file.
14053         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14054         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14055         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14056         * modules/pclose: New file.
14057         * modules/popen-tests (Depends-on): Add pclose.
14058         * modules/popen-safer-tests (Depends-on): Likewise.
14059         * doc/posix-functions/pclose.texi: Mention the new module.
14060
14061 2011-09-17  Bruno Haible  <bruno@clisp.org>
14062
14063         popen: Support for MSVC.
14064         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
14065         * lib/popen.c (popen): Provide alternate definition for native Windows.
14066         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
14067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
14068         * modules/popen (Depends-on, configure.ac): Update condition.
14069         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
14070         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
14071         fixed.
14072
14073 2011-09-17  Bruno Haible  <bruno@clisp.org>
14074
14075         isnanl, isnand, isnanf: Work around MSVC bug.
14076         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
14077
14078 2011-09-17  Bruno Haible  <bruno@clisp.org>
14079
14080         sys_socket tests: Fix recent mistake.
14081         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
14082
14083 2011-09-17  Bruno Haible  <bruno@clisp.org>
14084
14085         putenv: Support for MSVC.
14086         * modules/putenv (Depends-on): Add environ.
14087         * lib/putenv.c (environ): Disable declaration.
14088         * lib/unistd.in.h: Update comment.
14089
14090 2011-09-17  Bruno Haible  <bruno@clisp.org>
14091
14092         math: Avoid macro redefinition warnings on MSVC.
14093         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
14094         Undefine before redefining.
14095
14096 2011-09-17  Bruno Haible  <bruno@clisp.org>
14097
14098         doc: Mention functions which are declared as macros.
14099         * doc/posix-functions/*[fl].texi: Mention that some functions are
14100         defined as macros with arguments only.
14101
14102 2011-09-17  Bruno Haible  <bruno@clisp.org>
14103
14104         Add dependencies to new dirent related modules.
14105         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
14106         * modules/fts (Depends-on): Likewise.
14107         * modules/glob (Depends-on): Likewise.
14108         * modules/savedir (Depends-on): Likewise.
14109         * modules/scandir (Depends-on): Likewise.
14110         * modules/dirent-safer (Depends-on): Add opendir, closedir.
14111         * modules/fdopendir (Depends-on): Add opendir.
14112
14113 2011-09-17  Bruno Haible  <bruno@clisp.org>
14114
14115         inet_pton: Support for MSVC on Windows Vista or newer.
14116         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
14117         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
14118         HAVE_DECL_INET_PTON is defined.
14119         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14120         On platforms with <winsock2.h>, test whether inet_pton is declared in
14121         <ws2tcpip.h>. If so, arrange to replace it.
14122         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14123         REPLACE_INET_PTON.
14124         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
14125         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
14126         (Depends-on, configure.ac): Update condition.
14127         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
14128
14129 2011-09-17  Bruno Haible  <bruno@clisp.org>
14130
14131         inet_ntop: Support for MSVC on Windows Vista or newer.
14132         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
14133         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
14134         HAVE_DECL_INET_NTOP is defined.
14135         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
14136         On platforms with <winsock2.h>, test whether inet_ntop is declared in
14137         <ws2tcpip.h>. If so, arrange to replace it.
14138         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
14139         REPLACE_INET_NTOP.
14140         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
14141         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
14142         (Depends-on, configure.ac): Update condition.
14143         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
14144
14145 2011-09-16  Eric Blake  <eblake@redhat.com>
14146
14147         test-fsync: yet another enhancement
14148         * tests/test-fsync.c (main): Also test behavior on read-only text
14149         file.
14150
14151 2011-09-16  Bruno Haible  <bruno@clisp.org>
14152
14153         Enhance fsync, fdatasync tests.
14154         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
14155         * tests/test-fdatasync.c (main): Likewise.
14156
14157 2011-09-16  Bruno Haible  <bruno@clisp.org>
14158
14159         Support for MSVC compiler: Ensure mode_t gets defined.
14160         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
14161         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14163         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
14164         * tests/test-fcntl-h.c: Check that mode_t is defined.
14165         * tests/test-sys_stat.c: Likewise.
14166         * tests/test-sys_types.c: Likewise.
14167         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
14168         * doc/posix-headers/sys_stat.texi: Likewise.
14169         * doc/posix-headers/sys_types.texi: Likewise.
14170
14171 2011-09-16  Bruno Haible  <bruno@clisp.org>
14172
14173         sys_stat: Support for MSVC.
14174         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
14175         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
14176         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
14177         MSVC.
14178
14179 2011-09-16  Bruno Haible  <bruno@clisp.org>
14180
14181         Support for MSVC compiler: Ensure off_t gets defined.
14182         * lib/unistd.in.h: Include <sys/types.h>.
14183         * tests/test-fcntl-h.c: Check that off_t is defined.
14184         * tests/test-sys_stat.c: Likewise.
14185         * tests/test-sys_types.c: Likewise.
14186
14187 2011-09-16  Eric Blake  <eblake@redhat.com>
14188
14189         fdatasync: port to Solaris
14190         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
14191         * modules/fdatasync (Link): Document it.
14192         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
14193
14194         fdatasync: port to MacOS X 10.7
14195         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
14196         declared.
14197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
14198         * modules/unistd (Makefile.am): Substitute it.
14199         * lib/unistd.in.h (fdatasync): Declare on MacOS.
14200         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
14201
14202         fdatasync: minor improvements
14203         * modules/fdatasync (Depends-on): Add condition for fsync.
14204         * lib/fdatasync.c (fdatasync): Add comment.
14205         * tests/test-unistd-c++.cc: Test fdatasync.
14206
14207         unistd: update refs to newer POSIX
14208         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
14209         Suggested by Bruno Haible.
14210
14211         fdatasync: new module
14212         * modules/fsync (Description): Document difference to fdatasync.
14213         * modules/fdatasync: New module.
14214         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
14215         * lib/fdatasync.c (fdatasync): Likewise.
14216         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
14217         defaults.
14218         * modules/unistd (Makefile.am): Set witnesses.
14219         * lib/unistd.in.h (fdatasync): Declare.
14220         * MODULES.html.sh: Document it.
14221         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
14222         * modules/fdatasync-tests: New test.
14223         * tests/test-fdatasync.c: Likewise.
14224
14225 2011-09-16  Eric Blake  <eblake@redhat.com>
14226
14227         test-fsync: enhance tests
14228         * modules/fsync-tests (Depends-on): Add errno, for mingw.
14229         * tests/test-fsync.c (main): Enhance test.
14230
14231 2011-09-15  Bruno Haible  <bruno@clisp.org>
14232
14233         Support for MSVC compiler: Ensure ssize_t gets defined.
14234         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
14235         * doc/posix-headers/stdio.texi: Likewise.
14236         * modules/stdio (Depends-on): Add ssize_t.
14237         * modules/sys_socket (Depends-on): Likewise.
14238         * modules/sys_types (Depends-on): Likewise.
14239         * modules/sys_uio (Depends-on): Likewise.
14240         * modules/unistd (Depends-on): Likewise.
14241         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
14242         * tests/test-sys_types.c: Check that ssize_t is defined.
14243
14244 2011-09-14  Bruno Haible  <bruno@clisp.org>
14245
14246         Avoid using #, the m4 comment starter character, near brackets.
14247         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
14248         delimiter character in sed expressions.
14249         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
14250         Suggested by Eric Blake.
14251
14252         Properly quote AC_CHECK_DECLS' 4th argument.
14253         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
14254         argument.
14255         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14256         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14257         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14258         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14259         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14260         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
14261         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
14262         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
14263         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
14264         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14265         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
14266         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14267         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14268         * m4/isinf.m4 (gl_ISINF): Likewise.
14269         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
14270         * m4/readutmp.m4 (gl_READUTMP): Likewise.
14271         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14272         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14274         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14275         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
14276         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14277         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
14278         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14279         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14281         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
14282         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14284         Reported by Eric Blake.
14285
14286         Properly quote AC_CHECK_DECL's 4th argument.
14287         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
14288         argument.
14289         * m4/argp.m4 (gl_ARGP): Likewise.
14290         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
14291         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
14292         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
14293         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
14294         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
14295         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
14296         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
14297         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
14298         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
14299         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
14300         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
14301         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
14302         Reported by Eric Blake.
14303
14304 2011-09-14  Eric Blake  <eblake@redhat.com>
14305
14306         opendir: avoid compile warning
14307         * lib/opendir.c (includes): Always include errno.h.
14308         Reported by Tatsuro MATSUOKA.
14309
14310 2011-09-14  Jim Meyering  <meyering@redhat.com>
14311
14312         maint.mk: sc_tight_scope: propagate failure from sub-make
14313         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
14314         Reported by Martin von Gagern.
14315
14316 2011-09-13  Bruno Haible  <bruno@clisp.org>
14317
14318         tempname: Support for MSVC.
14319         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
14320         MSVC.
14321         * modules/tempname (Depends-on): Add fcntl-h.
14322
14323 2011-09-13  Bruno Haible  <bruno@clisp.org>
14324
14325         sys_time: Support for MSVC.
14326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
14327         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
14328         include <winsock2.h>.
14329         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
14330         function declarations that collide with POSIX.
14331         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
14332         (Makefile.am): Substitute HAVE_WINSOCK2_H.
14333
14334 2011-09-13  Bruno Haible  <bruno@clisp.org>
14335
14336         stat: Support for MSVC.
14337         * lib/stat.c: Include pathmax.h.
14338         * modules/stat (Depends-on): Add pathmax.
14339
14340         pathmax: Support for native Windows.
14341         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
14342
14343 2011-09-12  Bruno Haible  <bruno@clisp.org>
14344
14345         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
14346         * lib/dirent.in.h (struct dirent): New type.
14347         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
14348         DT_WHT): New macros.
14349         (DIR): New type.
14350         (opendir, closedir): Declare only if the module 'opendir' is enabled.
14351         (readdir, rewinddir): New declarations.
14352         * lib/dirent-private.h: New file.
14353         * lib/opendir.c: New file.
14354         * lib/readdir.c: New file.
14355         * lib/rewinddir.c: New file.
14356         * lib/closedir.c: New file.
14357         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
14358         * m4/opendir.m4: New file.
14359         * m4/readdir.m4: New file.
14360         * m4/rewinddir.m4: New file.
14361         * m4/closedir.m4: New file.
14362         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
14363         REPLACE_CLOSEDIR here.
14364         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
14365         readdir, rewinddir are declared.
14366         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
14367         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
14368         HAVE_REWINDDIR, HAVE_CLOSEDIR.
14369         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
14370         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
14371         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
14372         * modules/opendir: New file.
14373         * modules/readdir: New file.
14374         * modules/rewinddir: New file.
14375         * modules/closedir: New file.
14376         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
14377         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
14378         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
14379         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
14380         * NEWS: Mention the 'fchdir' change.
14381
14382 2011-09-11  Bruno Haible  <bruno@clisp.org>
14383
14384         asm-underscore.m4: Support for MSVC.
14385         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
14386         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
14387
14388 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
14389
14390         Doc about crypt functions.
14391         * doc/posix-functions/crypt.texi: Expand range of glibc versions
14392         needing for _GNU_SOURCE to get crypt.
14393         * doc/posix-functions/encrypt.texi: Likewise.
14394         * doc/posix-functions/setkey.texi: Likewise.
14395
14396 2011-09-11  Bruno Haible  <bruno@clisp.org>
14397
14398         doc: Update regarding MSVC 9.
14399         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
14400         tested".
14401         * doc/posix-functions/*.texi: Update with info about MSVC 9.
14402         * doc/posix-headers/*.texi: Likewise.
14403         * doc/pastposix-functions/*.texi: Likewise.
14404         * doc/glibc-functions/*.texi: Likewise.
14405         * doc/glibc-headers/*.texi: Likewise.
14406
14407 2011-09-11  Bruno Haible  <bruno@clisp.org>
14408
14409         unistd et al.: Don't assume <unistd.h> exists.
14410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
14411         does not exist.
14412         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
14413         exist. But include <stdlib.h>.
14414         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
14415         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
14416         symlink() does not exist.
14417         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
14418         include <io.h> instead.
14419         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
14420         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
14421         include <direct.h> instead.
14422         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14423         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14424         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
14425         <io.h> instead.
14426         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
14427         correctly if the system does not have hard links.
14428         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
14429         <direct.h> instead.
14430         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
14431         it when looking for function declarations.
14432         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
14433         <direct.h> and <io.h> instead.
14434         * doc/posix-headers/unistd.texi: More details about MSVC problem.
14435
14436 2011-09-11  Bruno Haible  <bruno@clisp.org>
14437
14438         strcase: Support for MSVC.
14439         * modules/strcase (Status, Notice): Remove obsoletion mark.
14440         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
14441         * doc/posix-functions/strncasecmp.texi: Likewise.
14442
14443         strings: Don't assume <strings.h> exists.
14444         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
14445         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
14446         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
14447         * doc/posix-headers/strings.texi: Mention the MSVC problem.
14448
14449 2011-09-11  Bruno Haible  <bruno@clisp.org>
14450
14451         dirent: Don't assume <dirent.h> exists.
14452         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
14453         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14454         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
14455         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
14456
14457 2011-09-11  Bruno Haible  <bruno@clisp.org>
14458
14459         Fix wint_t on MSVC.
14460         * lib/wchar.in.h (wint_t): On MSVC, override it.
14461         * lib/wctype.in.h (wint_t): Likewise.
14462         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
14463         MSVC.
14464         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
14465         * doc/posix-headers/wctype.texi: Likewise.
14466
14467 2011-09-11  Bruno Haible  <bruno@clisp.org>
14468
14469         sys_types: Fix typo.
14470         * lib/sys_types.in.h: Fix typo in comment.
14471         Reported by Paul Eggert.
14472
14473         Support for MSVC compiler: Ensure size_t gets defined.
14474         * modules/strings (Depends-on): Add 'sys_types'.
14475         * modules/sys_uio (Depends-on): Likewise.
14476         * lib/sys_uio.in.h: Update comment.
14477
14478         C++ tests for module 'sys_types'.
14479         * modules/sys_types-c++-tests: New file.
14480         * tests/test-sys_types-c++.cc: New file.
14481
14482         Tests for module 'sys_types'.
14483         * modules/sys_types-tests: New file.
14484         * tests/test-sys_types.c: New file.
14485
14486         New module 'sys_types'.
14487         * lib/sys_types.in.h: New file.
14488         * m4/sys_types_h.m4: New file.
14489         * modules/sys_types: New file.
14490         * doc/posix-headers/sys_types.texi: Mention the new module and the
14491         size_t problem on MSVC 9.
14492
14493 2011-09-11  Bruno Haible  <bruno@clisp.org>
14494
14495         Support for MSVC compiler: Avoid division by a literal 0.
14496         * lib/math.in.h (NAN): Define through a function call also on MSVC.
14497         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
14498         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
14499         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
14500         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
14501         * tests/infinity.h: New file.
14502         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
14503         on MSVC.
14504         * tests/test-ceilf1.c: Include infinity.h.
14505         (main): Use Infinityf.
14506         * tests/test-ceil1.c: Include infinity.h.
14507         (main): Use Infinityd.
14508         * tests/test-ceill.c: Include infinity.h.
14509         (main): Use Infinityl.
14510         * tests/test-dprintf-posix.c: Include infinity.h.
14511         (test_function): Use Infinityd.
14512         * tests/test-floorf1.c: Include infinity.h.
14513         (main): Use Infinityf.
14514         * tests/test-floor1.c: Include infinity.h.
14515         (main): Use Infinityd.
14516         * tests/test-floorl.c: Include infinity.h.
14517         (main): Use Infinityl.
14518         * tests/test-fprintf-posix.c: Include infinity.h.
14519         (test_function): Use Infinityd.
14520         * tests/test-frexp.c: Include infinity.h.
14521         (main): Use Infinityd.
14522         * tests/test-frexpl.c: Include infinity.h.
14523         (main): Use Infinityl.
14524         * tests/test-isfinite.c: Include infinity.h.
14525         (test_isfinitef): Use Infinityf.
14526         (test_isfinited): Use Infinityd.
14527         (test_isfinitel): Use Infinityl.
14528         * tests/test-isinf.c: Include infinity.h.
14529         (test_isinff): Use Infinityf.
14530         (test_isinfd): Use Infinityd.
14531         (test_isinfl): Use Infinityl.
14532         * tests/test-isnan.c: Include infinity.h.
14533         (test_float): Use Infinityf.
14534         (test_double): Use Infinityd.
14535         (test_long_double): Use Infinityl.
14536         * tests/test-isnanf.h: Include infinity.h.
14537         (main): Use Infinityf.
14538         * tests/test-isnand.h: Include infinity.h.
14539         (main): Use Infinityd.
14540         * tests/test-isnanl.h: Include infinity.h.
14541         (main): Use Infinityl.
14542         * tests/test-ldexpl.c: Include infinity.h.
14543         (main): Use Infinityl.
14544         * tests/test-printf-posix.h: Include infinity.h.
14545         (test_function): Use Infinityd.
14546         * tests/test-roundf1.c: Include infinity.h.
14547         (main): Use Infinityf.
14548         * tests/test-round1.c: Include infinity.h.
14549         (main): Use Infinityd.
14550         * tests/test-roundl.c: Include infinity.h.
14551         (main): Use Infinityl.
14552         * tests/test-signbit.c: Include infinity.h.
14553         (test_signbitf): Use Infinityf.
14554         (test_signbitd): Use Infinityd.
14555         (test_signbitl): Use Infinityl.
14556         * tests/test-snprintf-posix.h: Include infinity.h.
14557         (test_function): Use Infinityd, Infinityl.
14558         * tests/test-sprintf-posix.h: Include infinity.h.
14559         (test_function): Use Infinityd, Infinityl.
14560         * tests/test-truncf1.c: Include infinity.h.
14561         (main): Use Infinityf.
14562         * tests/test-trunc1.c: Include infinity.h.
14563         (main): Use Infinityd.
14564         * tests/test-truncl.c: Include infinity.h.
14565         (main): Use Infinityl.
14566         * tests/test-vasnprintf-posix.c: Include infinity.h.
14567         (test_function): Use Infinityd, Infinityl.
14568         * tests/test-vasprintf-posix.c: Include infinity.h.
14569         (test_function): Use Infinityd, Infinityl.
14570         * modules/ceilf-tests (Files): Add tests/infinity.h.
14571         * modules/ceil-tests (Files): Likewise.
14572         * modules/ceill-tests (Files): Likewise.
14573         * modules/dprintf-posix-tests (Files): Likewise.
14574         * modules/floorf-tests (Files): Likewise.
14575         * modules/floor-tests (Files): Likewise.
14576         * modules/floorl-tests (Files): Likewise.
14577         * modules/fprintf-posix-tests (Files): Likewise.
14578         * modules/frexp-tests (Files): Likewise.
14579         * modules/frexp-nolibm-tests (Files): Likewise.
14580         * modules/frexpl-tests (Files): Likewise.
14581         * modules/frexpl-nolibm-tests (Files): Likewise.
14582         * modules/isfinite-tests (Files): Likewise.
14583         * modules/isinf-tests (Files): Likewise.
14584         * modules/isnan-tests (Files): Likewise.
14585         * modules/isnanf-tests (Files): Likewise.
14586         * modules/isnanf-nolibm-tests (Files): Likewise.
14587         * modules/isnand-tests (Files): Likewise.
14588         * modules/isnand-nolibm-tests (Files): Likewise.
14589         * modules/isnanl-tests (Files): Likewise.
14590         * modules/isnanl-nolibm-tests (Files): Likewise.
14591         * modules/ldexpl-tests (Files): Likewise.
14592         * modules/printf-posix-tests (Files): Likewise.
14593         * modules/roundf-tests (Files): Likewise.
14594         * modules/round-tests (Files): Likewise.
14595         * modules/roundl-tests (Files): Likewise.
14596         * modules/signbit-tests (Files): Likewise.
14597         * modules/snprintf-posix-tests (Files): Likewise.
14598         * modules/sprintf-posix-tests (Files): Likewise.
14599         * modules/truncf-tests (Files): Likewise.
14600         * modules/trunc-tests (Files): Likewise.
14601         * modules/truncl-tests (Files): Likewise.
14602         * modules/vasnprintf-posix-tests (Files): Likewise.
14603         * modules/vasprintf-posix-tests (Files): Likewise.
14604         * modules/vdprintf-posix-tests (Files): Likewise.
14605         * modules/vfprintf-posix-tests (Files): Likewise.
14606         * modules/vprintf-posix-tests (Files): Likewise.
14607         * modules/vsnprintf-posix-tests (Files): Likewise.
14608         * modules/vsprintf-posix-tests (Files): Likewise.
14609         * modules/xprintf-posix-tests (Files): Likewise.
14610
14611 2011-09-11  Bruno Haible  <bruno@clisp.org>
14612
14613         Ensure pid_t gets defined.
14614         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
14615         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
14616         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14617         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14618         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
14619         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
14620         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14621         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14622         * tests/test-fcntl-h.c: Check that pid_t is defined.
14623         * tests/test-sched.c: Likewise.
14624         * tests/test-termios.c: Likewise.
14625         * tests/test-time.c: Likewise.
14626         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
14627         * doc/posix-headers/signal.texi: Likewise.
14628         * doc/posix-headers/sys_types.texi: Likewise.
14629         * doc/posix-headers/time.texi: Likewise.
14630
14631 2011-09-11  Bruno Haible  <bruno@clisp.org>
14632
14633         acl: Fix compilation on Solaris 10 (older version).
14634         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
14635         of ACE_EVERYONE.
14636         * lib/set-mode-acl.c (qset_acl): Likewise.
14637         Reported by Christian Jullien <eligis@orange.fr>.
14638
14639 2011-09-10  Bruno Haible  <bruno@clisp.org>
14640
14641         iconv, unsetenv: Add support for MSVC compiler.
14642         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
14643         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
14644
14645 2011-09-10  Bruno Haible  <bruno@clisp.org>
14646
14647         *printf: Add support for MSVC compiler.
14648         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
14649         handles the exception caused by the %n directive. When cross-compiling,
14650         guess no on native Windows.
14651         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
14652         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
14653         emulate it through vsnprintf.
14654         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
14655         * doc/posix-functions/dprintf.texi: Update documentation regarding
14656         MSVC 9.
14657         * doc/posix-functions/fprintf.texi: Likewise.
14658         * doc/posix-functions/printf.texi: Likewise.
14659         * doc/posix-functions/snprintf.texi: Likewise.
14660         * doc/posix-functions/sprintf.texi: Likewise.
14661         * doc/posix-functions/swprintf.texi: Likewise.
14662         * doc/posix-functions/vdprintf.texi: Likewise.
14663         * doc/posix-functions/vfprintf.texi: Likewise.
14664         * doc/posix-functions/vprintf.texi: Likewise.
14665         * doc/posix-functions/vsnprintf.texi: Likewise.
14666         * doc/posix-functions/vsprintf.texi: Likewise.
14667         * doc/glibc-functions/asprintf.texi: Likewise.
14668         * doc/glibc-functions/obstack_printf.texi: Likewise.
14669         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14670         * doc/glibc-functions/vasprintf.texi: Likewise.
14671
14672 2011-09-10  Bruno Haible  <bruno@clisp.org>
14673
14674         nocrash: Add support for native Windows.
14675         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
14676
14677 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
14678             Bruno Haible  <bruno@clisp.org>
14679
14680         absolute-header, include-next: Add support for MSVC compiler.
14681         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
14682         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
14683         directory separator in #line directives.
14684         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
14685         recognize also backslash as directory separator in #line directives.
14686
14687 2011-09-08  Jim Meyering  <meyering@redhat.com>
14688
14689         maint.mk: mark the post-release commit log with "maint: " prefix
14690         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
14691         one-line commit-log summary.
14692
14693 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
14694             Bruno Haible  <bruno@clisp.org>
14695
14696         Doc about crypt functions.
14697         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
14698         systems.
14699         * doc/posix-functions/encrypt.texi: Likewise.
14700         * doc/posix-functions/setkey.texi: Likewise.
14701
14702 2011-09-08  Simon Josefsson  <simon@josefsson.org>
14703
14704         * lib/gc.h: Fix copyright header.
14705
14706 2011-09-07  Bruno Haible  <bruno@clisp.org>
14707
14708         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
14709         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
14710         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
14711
14712 2011-09-07  Bruno Haible  <bruno@clisp.org>
14713
14714         openat: Work around compilation error with OSF/1 5.1 DTK cc.
14715         * lib/fopen.c: Use different syntax for include of <stdio.h>.
14716         * lib/freopen.c: Likewise.
14717         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
14718         * lib/lstat.c: Likewise.
14719         * lib/stat.c: Likewise.
14720         * lib/open.c: Use different syntax for include of <fcntl.h>.
14721         * lib/openat.c: Include fcntl.h again, explicitly.
14722
14723 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
14724
14725         parse-datetime: document the newly accepted format
14726         * doc/parse-datetime.texi (Combined date and time of day items):
14727         New section.
14728
14729 2011-09-06  Bruno Haible  <bruno@clisp.org>
14730
14731         acl: Fix a test failure on newer Solaris 10 with ZFS.
14732         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
14733         ENOSYS as no ACL.
14734         Reported by Jim Meyering.
14735
14736 2011-09-06  Bruno Haible  <bruno@clisp.org>
14737
14738         acl: Update for AIX >= 5.3 with NFS.
14739         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
14740         ENOSYS as no ACL.
14741
14742         acl: Fix a test failure on AIX >= 5.3 with NFS.
14743         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
14744         as no ACL.
14745
14746 2011-09-06  Bruno Haible  <bruno@clisp.org>
14747
14748         acl: Fix a test failure on IRIX 6.5 with NFS.
14749         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
14750         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
14751         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
14752         * lib/copy-acl.c (qcopy_acl): Likewise.
14753
14754 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         openat: port to AIX 7.1 with large files
14757         AIX 7.1 does a "#define openat open64at" if large files are in use,
14758         so we can't simply #undef openat.  Use the orig_openat trick (similar
14759         to orig_open in lib/open.c) to work around the problem.  Problem
14760         reported by Kevin Brott for GNU tar, in the thread containing
14761         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
14762         * lib/openat.c (__need_system_fcntl_h): Define first.
14763         Include <fcntl.h> and <sys/types.h> before undefining.
14764         (orig_openat) [HAVE_OPENAT]: New inline function.
14765         (openat) [HAVE_OPENAT]: Do not undef.
14766         (rpl_openat): Use orig_openat, not openat.
14767
14768 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
14769             Bruno Haible  <bruno@clisp.org>
14770
14771         acl: Avoid errors on NonStop Kernel.
14772         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
14773         ENOTSUP errors.
14774
14775 2011-09-05  Bruno Haible  <bruno@clisp.org>
14776
14777         acl: Clean up Solaris code.
14778         * lib/acl-internal.h: Remove no-op #if.
14779         * lib/file-has-acl.c: Likewise.
14780         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
14781         * lib/copy-acl.c (qcopy_acl): Likewise.
14782
14783 2011-09-05  Bruno Haible  <bruno@clisp.org>
14784
14785         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
14786         binaries built on the original Solaris 10.
14787         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
14788         trivial.
14789
14790 2011-09-05  Bruno Haible  <bruno@clisp.org>
14791
14792         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14793         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
14794         10.
14795         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
14796         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
14797         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
14798         instead of acl_get, facl_get, acl_set, facl_set.
14799
14800 2011-09-05  Bruno Haible  <bruno@clisp.org>
14801
14802         copy-file: Try unit tests on more file systems.
14803         * tests/test-copy-file-1.sh: New file.
14804         * tests/test-copy-file-2.sh: New file.
14805         * modules/copy-file-tests (Files): Add them.
14806         (Makefile.am): Add them to TESTS.
14807
14808         acl: Try unit tests on more file systems.
14809         * tests/test-file-has-acl-1.sh: New file.
14810         * tests/test-file-has-acl-2.sh: New file.
14811         * tests/test-set-mode-acl-1.sh: New file.
14812         * tests/test-set-mode-acl-2.sh: New file.
14813         * tests/test-copy-acl-1.sh: New file.
14814         * tests/test-copy-acl-2.sh: New file.
14815         * modules/acl-tests (Files): Add them.
14816         (Makefile.am): Add them to TESTS.
14817
14818 2011-09-04  Bruno Haible  <bruno@clisp.org>
14819
14820         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
14821         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
14822         10.
14823         (OLD_ALLOW, OLD_DENY): New macros.
14824         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
14825         ACE_ACCESS_ALLOWED_ACE_TYPE.
14826         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
14827         ACE_ACCESS_DENIED_ACE_TYPE.
14828         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
14829         (NEW_ACE_EXECUTE): Fix value.
14830         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
14831         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14832         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14833         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14834         NEW_ACE_SYNCHRONIZE): New macros.
14835         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14836         instead of acl_fromtext, acl_set, facl_set.
14837         Fixes a coreutils/tests/cp/perm failure.
14838
14839 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         openat: test for fstatat (..., 0) bug
14842         Further testing with tar suggests that fstatat (..., 0)
14843         does not work in general, on AIX 7.1; see
14844         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14845         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14846         replacement fstatat (which is what older AIX releases were using
14847         anyway).
14848         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14849         use is now changed to orig_fstatat.  This was probably the right
14850         thing to do anyway.
14851         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14852         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14853         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14854         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14855         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14856         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14857         if the bug is found.
14858
14859         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14860         This tests for another fstatat bug on AIX 7.1:
14861         fstatat (AT_FDCWD, ..., 0) does not work.  See
14862         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14863         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14864         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14865         (rpl_fstatat): Adjust so that it works around either (or both)
14866         bugs if present.
14867         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14868
14869 2011-09-03  Karl Berry  <karl@gnu.org>
14870
14871         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14872         in index entries.
14873
14874 2011-09-02  Bruno Haible  <bruno@clisp.org>
14875
14876         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14877         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14878         values of AR, ARFLAGS, RANLIB.
14879         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14880
14881 2011-09-02  Bruno Haible  <bruno@clisp.org>
14882
14883         Find 'ar' program that fits with --host argument.
14884         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14885
14886 2011-09-02  Bruno Haible  <bruno@clisp.org>
14887
14888         tests: init.sh: Support any non-GNU diff.
14889         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14890         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14891         Solaris 8.
14892
14893 2011-09-02  Bruno Haible  <bruno@clisp.org>
14894
14895         tests: init.sh: work also with any non-GNU diff that supports -u
14896         * tests/init.sh: Relax check for diff -u support.
14897         Rather than checking for GNU diff via --version, simply check
14898         for support for -u itself.  Useful at least on OpenBSD 4.9,
14899         AIX 7.1, IRIX 6.5, and Solaris 10.
14900
14901 2011-09-01  Bruno Haible  <bruno@clisp.org>
14902
14903         strtoimax, strtoumax: Document problem on HP-UX 11.
14904         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14905         * doc/posix-functions/strtoumax.texi: Likewise.
14906
14907 2011-09-01  Bruno Haible  <bruno@clisp.org>
14908
14909         strtoumax: Avoid link error on OSF/1 with DTK cc.
14910         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14911         defined as a function.
14912         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14913         strtoumax is defined, not whether it is declared.
14914
14915 2011-09-01  Bruno Haible  <bruno@clisp.org>
14916
14917         strtoimax: Avoid link error on OSF/1 with DTK cc.
14918         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14919         defined as a function.
14920         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14921         strtoimax is defined, not whether it is declared.
14922
14923 2011-09-01  Bruno Haible  <bruno@clisp.org>
14924
14925         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14926         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14927         as a function.
14928         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14929         whether it is declared.
14930
14931 2011-09-01  Bruno Haible  <bruno@clisp.org>
14932
14933         imaxabs: Avoid link error on OSF/1 with DTK cc.
14934         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14935         as a function.
14936         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14937         whether it is declared.
14938
14939 2011-09-01  Bruno Haible  <bruno@clisp.org>
14940
14941         Tests for module 'strtoumax'.
14942         * modules/strtoumax-tests: New file.
14943         * tests/test-strtoumax.c: New file.
14944
14945         Tests for module 'strtoimax'.
14946         * modules/strtoimax-tests: New file.
14947         * tests/test-strtoimax.c: New file.
14948
14949         Tests for module 'imaxdiv'.
14950         * modules/imaxdiv-tests: New file.
14951         * tests/test-imaxdiv.c: New file.
14952
14953         Tests for module 'imaxabs'.
14954         * modules/imaxabs-tests: New file.
14955         * tests/test-imaxabs.c: New file.
14956
14957 2011-09-01  Bruno Haible  <bruno@clisp.org>
14958
14959         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14960         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14961         pthread_create.
14962
14963 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14964
14965         openat: work around AIX 7.1 fstatat issue
14966         This should fix the problem that was not properly fixed
14967         in the previous change, dated 2011-08-30.
14968         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14969         __need_system_stat_h defined.
14970         (orig_fstatat) [HAVE_FSTATAT]: New function.
14971         (rpl_fstatat): Go back to the old way of doing things,
14972         except call orig_fstatat instead of fstatat.
14973         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14974         Remove unnecessary check whether fstatat fills in st_size etc.
14975
14976 2011-09-01  Bruno Haible  <bruno@clisp.org>
14977
14978         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14979         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14980         just include the system's header.
14981
14982 2011-08-31  Jim Meyering  <meyering@redhat.com>
14983
14984         tests: avoid spurious assertion failure in test-float.c on ppc64
14985         * tests/test-float.c (test_long_double): Comment out an assertion,
14986         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14987         with gcc-4.4.4.
14988
14989         maint: indent with spaces, not TABs
14990         I need to get in the habit of running gnulib's "make check".
14991         Both of these would have been caught.
14992         * m4/largefile.m4: Indent with spaces, not TABs.
14993         * lib/parse-datetime.y (iso_8601_time): Likewise.
14994         Spotted by Pádraig Brady.
14995
14996         test-parse-datetime.c: accommodate a relatively strict gcc warning
14997         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14998         to avoid a warning from gcc's -Werror=missing-declarations.
14999         Insert a few spaces-before-funcall-parenthesis.
15000
15001 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15002
15003         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15004         The parser now accepts ISO 8601 date-time strings with "T" as the
15005         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15006         with a space between the date and time strings.  Now it also parses
15007         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15008         variants like "2004-02-29T16:21:42.333-07:00"
15009         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15010         of day representation using the 'T' separator character.
15011         * doc/parse-datetime.texi (General date syntax): replace use of
15012         deprecated --iso-8601 option with --rfc-3339 in example of date
15013         command output formats that can be parsed.
15014         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15015         lib/parse-datetime.y.
15016         (gmt_offset): New function.
15017         (main): Add additional test cases to validate ISO8601 extended
15018         date and time of day parsing.
15019
15020 2011-08-31  Bruno Haible  <bruno@clisp.org>
15021
15022         freopen: Documentation.
15023         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15024         name.
15025         Reported by Claudio Bley <claudio.bley@gmail.com>.
15026
15027 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15028
15029         freopen: Don't crash if the filename argument is NULL.
15030         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15031         NULL.
15032
15033 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         openat: work around AIX 7.1 fstatat bug
15036         Problem reported by Kevin Brott for GNU tar, in the thread containing
15037         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15038         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15039         FSTATAT_ST_SIZE_ETC_BROKEN.
15040         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15041         rpl_fstatat.
15042         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15043         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15044         AC_CHECK_FUNCS_ONCE for fstatat.
15045         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15046         fchmodat, mkdirat, openat and unlinkat.
15047
15048 2011-08-30  Bruno Haible  <bruno@clisp.org>
15049
15050         Avoid endless recursions if config.h includes some header files.
15051         * lib/fopen.c (__need_FILE): Define already before including config.h.
15052         * lib/freopen.c (__need_FILE): Likewise.
15053         * lib/open.c (__need_system_fcntl_h): Likewise.
15054         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15055         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15056         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15057
15058 2011-08-25  Karl Berry  <karl@gnu.org>
15059
15060         * config/srclist.txt (ylwrap): new try.
15061         * build-aux/ylwrap: new file.
15062
15063 2011-08-23  Bruno Haible  <bruno@clisp.org>
15064
15065         tmpdir: Use a good default directory on native Windows.
15066         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
15067         (P_tmpdir): Default to _P_tmpdir on native Windows.
15068         (path_search): On native Windows, try the value returned by GetTempPath
15069         before trying P_tmpdir.
15070         * modules/tmpdir (Depends-on): Add pathmax.
15071         Suggested by John Darrington <john@darrington.wattle.id.au>.
15072
15073 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
15074
15075         doc: fix typo in README-release
15076         * top/README-release: Capitalize first word of a sentence.
15077
15078 2011-08-19  Jim Meyering  <meyering@redhat.com>
15079
15080         fts: do not exhaust memory when processing million-entry directories
15081         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
15082         directory would require about 256*N bytes of memory.  Thus, it was
15083         easy to construct a directory too large to be processed by any of
15084         those tools.  With this change, fts' maximum memory utilization is
15085         now limited to around 30MB.
15086         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
15087         (fts_read): When we've processed the final entry (i.e., when
15088         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
15089         using the parent entry to read any remaining entries.  Dispatch
15090         depending on what fts_build returns:
15091         - NULL+stop, aka failure: stop
15092         - NULL otherwise: move up in the dir hierarchy
15093         - non-NULL: handle this new entry
15094         (fts_build): Declare and use new local, continue_readdir.
15095         Prepare to be called from fts_read, when the entries
15096         from a partially-read directory have just been exhausted.
15097         In that case, we'll skip the opendir and instead use the parent's
15098         fts_dirp and derive dir_fd from that.
15099         Finally, in the readdir loop, if we read max_entries entries,
15100         exit the loop ensuring *not* to call closedir.  This is required
15101         so that fts_dirp can be reused on a subsequent call.
15102         Prompted by Ben England's report of memory exhaustion in find
15103         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
15104
15105         maint: fts: move decl of `dp' down into while loop; split a long line
15106         * lib/fts.c (fts_build): No semantic change.
15107
15108         fts: add/use new struct member, fts_dirp
15109         We are about to use this to manage any directory with
15110         too many entries to read all of them into memory at once.
15111         To do that, we'll need to save the DIR* pointer in each
15112         affected FTSENT struct.
15113         * lib/fts_.h: Include <dirent.h>.
15114         (struct FTSENT) [fts_dirp]: New member.
15115         * lib/fts.c (closedir_and_clear): Define.
15116         Use it in place of closedir so that we are sure to
15117         clear the new fts_dirp member when done with it.
15118         (fts_alloc): Initialize the new member.
15119         (fts_lfree): Free, if needed.
15120
15121         maint: fts: give __opendir2 a new parameter and rename
15122         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
15123         than surreptitiously using sole caller's "dir_fd".
15124         (fts_opendir): Rename from __opendir2.
15125
15126         maint: fts.c: remove __opendir2's now-unused parameter, oflag
15127         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
15128
15129         maint: fts.c: correct off-by-one indentation
15130         * lib/fts.c (fts_build): Correct indentation, change style
15131         of a couple of block comments, and bracing style.
15132
15133         maint: fts.c: move __opendir2 #define "up" out of function body
15134         * lib/fts.c (__opendir2): Move "up".  No semantic change.
15135
15136         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
15137         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
15138         out for a long time and besides was useful only on BSD systems.
15139
15140 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15141
15142         regex: port to Stratus OpenVOS
15143         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
15144         define to empty, rather than attempting nonportable optimizations.
15145         Problem reported by Paul Green in:
15146         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
15147         and fix suggested by Eric Blake in:
15148         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
15149
15150 2011-08-17  Eric Blake  <eblake@redhat.com>
15151
15152         getcwd: fix test failures on mingw
15153         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
15154         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
15155         test if long directory cannot be created, and allow mingw errno.
15156
15157         getcwd-lgpl: fix m4 to match relaxed test for BSD
15158         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
15159         (gl_FUNC_GETCWD_SIGNATURE): New macro.
15160         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
15161         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
15162         signature problem.
15163
15164         getcwd: fix compilation on mingw64
15165         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
15166         getcwd.
15167         Reported by Marc-André Lureau.
15168
15169         pipe2: silence compiler warning
15170         * lib/pipe2.c (pipe2): Hide label if it is not used.
15171
15172 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
15173
15174         relocatable-prog: fix link error
15175         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
15176         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
15177         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
15178         into modules/relocatable-lib without noticing that
15179         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
15180         also needs to build relocatable.c.
15181
15182 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15183
15184         getaddrinfo: fix sh typo in gai_strerrorA decl checking
15185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
15186         shell code: it contained a 'break' that was not in a loop.
15187         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
15188         via a shell-language loop; this may have been true in old Autoconf
15189         versions, but it's not true in Autoconf 2.68.  I found this bug
15190         when testing coreutils git on Solaris 8, whose shell complains
15191         about the syntax error.
15192
15193 2011-08-12  Simon Josefsson  <simon@josefsson.org>
15194
15195         * lib/base64.c: Fix comment to reference RFC 4648.
15196         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
15197         <gvtulder@gmail.com>.
15198
15199 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
15202
15203         po/Makefile.in.in: fix make -q problem
15204         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
15205         rule, since there's no file named 'check-macro-version' and its
15206         use as a file breaks make -q.
15207         (all): Don't depend on check-macro-version.
15208         (CHECK_MACRO_VERSION): New macro.
15209         (stamp-po): Use it.
15210
15211         configmake: fix make -q problem
15212         * modules/configmake (configmake.h): Update configmake.h's time stamp
15213         even if the file does not change.  Otherwise, 'make -q' fails.
15214         Problem reported by Simon Josefsson in
15215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
15216
15217 2011-08-11  Jim Meyering  <meyering@redhat.com>
15218
15219         git-version-gen: correct the advice in a comment
15220         * build-aux/git-version-gen: Correct comment.
15221         Don't recommend to list .tarball-version in .gitignore.
15222
15223 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
15224
15225         base64: fix off-by-one buffer size bug
15226         Problem and (trivial) fix reported by Gijs van Tulder in
15227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
15228         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
15229         * tests/test-base64.c (main): Catch the bug.
15230
15231 2011-08-10  Eric Blake  <eblake@redhat.com>
15232
15233         closein: correct comments
15234         * lib/closein.c (close_stdin): Improve comments.
15235
15236 2011-08-09  Bruno Haible  <bruno@clisp.org>
15237
15238         More tests for 'fseeko'.
15239         * tests/test-fseeko3.c: New file, from Eric Blake.
15240         * tests/test-fseeko3.sh: New file.
15241         * modules/fseeko-tests (Files): Add them.
15242         (TESTS): Add test-fseeko3.sh.
15243         (check_PROGRAMS): Add test-fseeko3.
15244
15245 2011-08-09  Eric Blake  <eblake@redhat.com>
15246
15247         fseeko: remove unneeded hack
15248         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
15249
15250         fseeko: fix bug on glibc
15251         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
15252         Reported by John W. Eaton.
15253
15254 2011-08-08  Bruno Haible  <bruno@clisp.org>
15255
15256         unictype/base: Fix interoperability with preinstalled libunistring.
15257         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
15258         Reported by Simon Josefsson.
15259
15260 2011-08-08  Bruno Haible  <bruno@clisp.org>
15261
15262         iswblank: Detect declaration correctly.
15263         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
15264         AC_CHECK_DECLS invocation.
15265
15266 2011-08-08  Bruno Haible  <bruno@clisp.org>
15267
15268         tcgetsid: Detect declaration correctly.
15269         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
15270         AC_CHECK_DECLS invocation.
15271         Reported by Simon Josefsson.
15272
15273 2011-08-08  Eric Blake  <eblake@redhat.com>
15274
15275         largefile: fix typo that regressed large file support
15276         * modules/largefile (configure.ac-early): Fix section name.
15277
15278 2011-08-06  Karl Berry  <karl@gnu.org>
15279
15280         * MODULES.html.sh (func_all_files): _Noreturn is no longer
15281         a separate module.
15282
15283 2011-08-05  Simon Josefsson  <simon@josefsson.org>
15284
15285         openat: Fix warnings and commens when building unlinkat.c on Hurd.
15286         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
15287         get prototype for free.
15288
15289 2011-08-04  Bruno Haible  <bruno@clisp.org>
15290
15291         Tests for module 'pathmax'.
15292         * modules/pathmax-tests: New file.
15293         * tests/test-pathmax.c: New file.
15294
15295         canonicalize-lgpl: Support larger filenames on the Hurd.
15296         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
15297         Reported by Paul Eggert.
15298
15299         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
15300         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
15301         * lib/chdir-long.h: Include pathmax.h.
15302         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
15303         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
15304         (PATH_MAX): Remove code that is done by pathmax.h.
15305         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
15306         * lib/tmpfile.c: Add a comment.
15307         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
15308         * modules/chdir-long (Depends-on): Add pathmax.
15309         * modules/getcwd (Depends-on): Add pathmax.
15310         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
15311         is not defined.
15312         * doc/posix-headers/limits.texi: Mention the pathmax module.
15313         * NEWS: Mention the change.
15314
15315 2011-08-02  Bruno Haible  <bruno@clisp.org>
15316
15317         pthread_sigmask: Actually use results of gl_THREADLIB.
15318         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
15319         gl_THREADLIB, not gl_[]THREADLIB.
15320         Reported by Eric Blake.
15321
15322 2011-08-02  Jim Meyering  <meyering@redhat.com>
15323
15324         maint.mk: relax the default _gl_TS_function_match regexp
15325         * top/maint.mk (_gl_TS_function_match): Don't require at least one
15326         space between function name and "(" in an "extern" declaration.
15327         That would fail to match a decl with no space there: extern void foo();
15328
15329 2011-07-31  Iain Nicol  <iain@thenicols.net>
15330
15331         git-version-gen: document that EXTRA_DIST must include .version
15332         * build-aux/git-version-gen: In the how-to-use comment, document
15333         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
15334         will fail when run from an unpacked distribution tarball.
15335
15336 2011-08-01  Bruno Haible  <bruno@clisp.org>
15337
15338         wctype-h: Fix last change.
15339         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
15340         REPLACE_TOWLOWER to 0.
15341         Reported by Sam Steingold <sds@gnu.org>.
15342
15343 2011-07-31  Bruno Haible  <bruno@clisp.org>
15344
15345         frexpl: Update autoconf test.
15346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
15347         according to changes of 2011-06-20.
15348
15349 2011-07-31  Bruno Haible  <bruno@clisp.org>
15350
15351         sys_utsname: Add support for Minix.
15352         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
15353         <sys/utsname.h>.
15354         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15355         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
15356
15357 2011-07-31  Bruno Haible  <bruno@clisp.org>
15358
15359         strings: Add support for Minix.
15360         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
15361         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
15362         * doc/posix-headers/strings.texi: Document the Minix problem.
15363
15364 2011-07-31  Bruno Haible  <bruno@clisp.org>
15365
15366         wctype-h: Add support for Minix.
15367         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
15368         REPLACE_TOWLOWER.
15369         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
15370         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
15371         REPLACE_ISWCNTRL.
15372
15373 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
15376         This is a performance improvement for 64-bit hosts: it causes the
15377         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
15378
15379 2011-07-31  Bruno Haible  <bruno@clisp.org>
15380
15381         stdioext: Add support for Minix.
15382         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
15383         * lib/fpurge.c (fpurge): Likewise.
15384         * lib/freadahead.c (freadahead): Likewise.
15385         * lib/freadable.c (freadable): Likewise.
15386         * lib/freading.c (freading): Likewise.
15387         * lib/freadptr.c (freadptr): Likewise.
15388         * lib/freadseek.c (freadptrinc): Likewise.
15389         * lib/fseeko.c (rpl_fseeko): Likewise.
15390         * lib/fseterr.c (fseterr): Likewise.
15391         * lib/fwritable.c (fwritable): Likewise.
15392         * lib/fwriting.c (fwriting): Likewise.
15393         * lib/fflush.c (clear_ungetc_buffer): Update comment.
15394         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
15395
15396 2011-07-31  Bruno Haible  <bruno@clisp.org>
15397
15398         errno: Port to Minix.
15399         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
15400         ECONNABORTED are defined.
15401         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
15402         GNULIB_defined_ECONNABORTED): New macros.
15403         * lib/strerror-override.h (strerror_override): Test also
15404         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
15405         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
15406         ECONNABORTED.
15407         * doc/posix-headers/errno.texi: Mention the Minix problem.
15408
15409 2011-07-31  Bruno Haible  <bruno@clisp.org>
15410
15411         Work around declaration collisions on Minix.
15412         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
15413         defined, set REPLACE_MBSINIT.
15414         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
15415         defined, set REPLACE_MBRTOWC.
15416         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
15417         set REPLACE_MBRLEN.
15418         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
15419         defined, set REPLACE_MBSRTOWCS.
15420         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
15421         defined, set REPLACE_WCRTOMB.
15422         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
15423         defined, set REPLACE_WCSRTOMBS.
15424
15425 2011-07-31  Bruno Haible  <bruno@clisp.org>
15426
15427         Add support for Minix with ACK compiler.
15428         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
15429         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
15430         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
15431
15432 2011-07-31  Bruno Haible  <bruno@clisp.org>
15433
15434         Documentation about Minix.
15435         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
15436         * doc/glibc-headers/*.texi: Likewise.
15437         * doc/posix-functions/*.texi: Likewise.
15438         * doc/glibc-functions/*.texi: Likewise.
15439
15440 2011-07-31  Bruno Haible  <bruno@clisp.org>
15441
15442         snippet/warn-on-use: Fix indentation.
15443         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
15444
15445 2011-07-25  Jim Meyering  <meyering@redhat.com>
15446
15447         tests: test-update-copyright.sh: remove unnecessary "rm" commands
15448         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
15449         commands.
15450
15451 2011-07-27  Jim Meyering  <meyering@redhat.com>
15452
15453         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
15454         * top/maint.mk (gl_extract_significant_defines_): Now that
15455         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
15456         gnulib/lib/signal.in.h, and now that we recommend to
15457         define-if-undefined those two symbols in application code,
15458         we must filter them out of the "significant" list.
15459         This avoids a "make syntax-check" failure in coreutils.
15460
15461 2011-07-26  Eric Blake  <eblake@redhat.com>
15462
15463         warnings: add comments about previous patch
15464         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
15465         * m4/include_next.m4: Likewise.
15466         * m4/warn-on-use.m4: Likewise.
15467         * m4/warnings.m4: Likewise, and simplify use.
15468         Suggested by Stefano Lattarini.
15469
15470         include-next, warnings: support older autoconf
15471         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
15472         AS_VAR_PUSHDEF in a way that works with older autoconf.
15473         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
15474         Reported by Daniel P. Berrange.
15475
15476 2011-07-25  Bruno Haible  <bruno@clisp.org>
15477
15478         fseek, ftell: Fix doc.
15479         * doc/posix-functions/fseek.texi: Reword statement about
15480         AC_SYS_LARGEFILE.
15481         * doc/posix-functions/ftell.texi: Likewise.
15482
15483 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15484             Bruno Haible  <bruno@clisp.org>
15485
15486         Add dependencies to the 'largefile' module.
15487         * modules/fopen (Depends-on): Add 'largefile'.
15488         * modules/freopen (Depends-on): Likewise.
15489         * modules/fseeko (Depends-on): Likewise.
15490         * modules/ftello (Depends-on): Likewise.
15491         * modules/glob (Depends-on): Likewise.
15492         * modules/lseek (Depends-on): Likewise.
15493         * modules/lstat (Depends-on): Likewise.
15494         * modules/mkostemp (Depends-on): Likewise.
15495         * modules/mkostemps (Depends-on): Likewise.
15496         * modules/mkstemp (Depends-on): Likewise.
15497         * modules/mkstemps (Depends-on): Likewise.
15498         * modules/open (Depends-on): Likewise.
15499         * modules/openat (Depends-on): Likewise.
15500         * modules/pread (Depends-on): Likewise.
15501         * modules/pwrite (Depends-on): Likewise.
15502         * modules/scandir (Depends-on): Likewise.
15503         * modules/stat (Depends-on): Likewise.
15504         * modules/tmpfile (Depends-on): Likewise.
15505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
15506         since the containing module now depends on the largefile module.
15507         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
15508         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
15509         off_t is fixed by gnulib.
15510         * doc/posix-functions/freopen.texi: Likewise.
15511         * doc/posix-functions/fseeko.texi: Likewise.
15512         * doc/posix-functions/fstatat.texi: Likewise.
15513         * doc/posix-functions/ftello.texi: Likewise.
15514         * doc/posix-functions/glob.texi: Likewise.
15515         * doc/posix-functions/lseek.texi: Likewise.
15516         * doc/posix-functions/lstat.texi: Likewise.
15517         * doc/posix-functions/mkstemp.texi: Likewise.
15518         * doc/posix-functions/open.texi: Likewise.
15519         * doc/posix-functions/openat.texi: Likewise.
15520         * doc/posix-functions/pread.texi: Likewise.
15521         * doc/posix-functions/pwrite.texi: Likewise.
15522         * doc/posix-functions/scandir.texi: Likewise.
15523         * doc/posix-functions/stat.texi: Likewise.
15524         * doc/posix-functions/tmpfile.texi: Likewise.
15525         * doc/glibc-functions/mkostemp.texi: Likewise.
15526         * doc/glibc-functions/mkostemps.texi: Likewise.
15527         * doc/glibc-functions/mkstemps.texi: Likewise.
15528
15529 2011-07-25  Bruno Haible  <bruno@clisp.org>
15530
15531         fcntl: Move AC_LIBOBJ invocation to module description.
15532         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
15533         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
15534
15535         fcntl: Remove call-in from fchdir.m4.
15536         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
15537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
15538
15539         dup3: Remove potential call-in from fchdir.m4.
15540         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
15541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
15542
15543         dup2: Move AC_LIBOBJ invocation to module description.
15544         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
15545         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
15546         Don't invoke AC_LIBOBJ.
15547         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
15548
15549         dup2: Remove call-in from fchdir.m4.
15550         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
15551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
15552
15553         fclose: Move AC_LIBOBJ invocation to module description.
15554         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
15555         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
15556         to 1.
15557         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
15558
15559         fclose: Remove call-in from close.m4.
15560         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
15561         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
15562
15563         close: Move AC_LIBOBJ invocation to module description.
15564         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
15565         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
15566         1.
15567         * modules/close (configure.ac): Invoke AC_LIBOBJ.
15568
15569         close: Remove call-in from fchdir.m4.
15570         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
15571         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
15572
15573         open: Move AC_LIBOBJ invocation to module description.
15574         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
15575         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
15576         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
15577
15578         open: Remove call-in from fchdir.m4.
15579         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
15580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
15581
15582         fchdir: Start to remove gl_REPLACE_* idiom.
15583         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
15584         (gl_FUNC_FCHDIR): Invoke it.
15585
15586 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
15587
15588         * lib/ftell.c (ftell): Comment out cast.
15589
15590         close: use gl_REPLACE_FCLOSE only if defined
15591         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
15592         is defined.  The close module doesn't depend on the fclose module
15593         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
15594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
15595         I reproduced the problem with "./gnulib-tool --test close sys_socket".
15596
15597 2011-07-24  Jim Meyering  <meyering@redhat.com>
15598
15599         test-select.h: avoid warning when using gcc's -Wmissing-declarations
15600         * tests/test-select.h (test_function): Declare as "static".
15601
15602 2011-07-24  Bruno Haible  <bruno@clisp.org>
15603
15604         doc: Mention the effects of AC_SYS_LARGEFILE.
15605         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
15606         on this function.
15607         * doc/posix-functions/aio_error.texi: Likewise.
15608         * doc/posix-functions/aio_fsync.texi: Likewise.
15609         * doc/posix-functions/aio_read.texi: Likewise.
15610         * doc/posix-functions/aio_return.texi: Likewise.
15611         * doc/posix-functions/aio_suspend.texi: Likewise.
15612         * doc/posix-functions/aio_write.texi: Likewise.
15613         * doc/posix-functions/fgetpos.texi: Likewise.
15614         * doc/posix-functions/fopen.texi: Likewise.
15615         * doc/posix-functions/freopen.texi: Likewise.
15616         * doc/posix-functions/fsetpos.texi: Likewise.
15617         * doc/posix-functions/fstatvfs.texi: Likewise.
15618         * doc/posix-functions/ftruncate.texi: Likewise.
15619         * doc/posix-functions/ftw.texi: Likewise.
15620         * doc/posix-functions/getrlimit.texi: Likewise.
15621         * doc/posix-functions/glob.texi: Likewise.
15622         * doc/posix-functions/lio_listio.texi: Likewise.
15623         * doc/posix-functions/lockf.texi: Likewise.
15624         * doc/posix-functions/mkstemp.texi: Likewise.
15625         * doc/posix-functions/mmap.texi: Likewise.
15626         * doc/posix-functions/nftw.texi: Likewise.
15627         * doc/posix-functions/openat.texi: Likewise.
15628         * doc/posix-functions/opendir.texi: Likewise.
15629         * doc/posix-functions/posix_fadvise.texi: Likewise.
15630         * doc/posix-functions/posix_fallocate.texi: Likewise.
15631         * doc/posix-functions/pread.texi: Likewise.
15632         * doc/posix-functions/pwrite.texi: Likewise.
15633         * doc/posix-functions/readdir.texi: Likewise.
15634         * doc/posix-functions/readdir_r.texi: Likewise.
15635         * doc/posix-functions/rewinddir.texi: Likewise.
15636         * doc/posix-functions/scandir.texi: Likewise.
15637         * doc/posix-functions/seekdir.texi: Likewise.
15638         * doc/posix-functions/setrlimit.texi: Likewise.
15639         * doc/posix-functions/statvfs.texi: Likewise.
15640         * doc/posix-functions/telldir.texi: Likewise.
15641         * doc/posix-functions/tmpfile.texi: Likewise.
15642         * doc/posix-functions/truncate.texi: Likewise.
15643         * doc/glibc-functions/fallocate.texi: Likewise.
15644         * doc/glibc-functions/fstatfs.texi: Likewise.
15645         * doc/glibc-functions/fts_children.texi: Likewise.
15646         * doc/glibc-functions/fts_read.texi: Likewise.
15647         * doc/glibc-functions/getdirentries.texi: Likewise.
15648         * doc/glibc-functions/mkostemp.texi: Likewise.
15649         * doc/glibc-functions/mkostemps.texi: Likewise.
15650         * doc/glibc-functions/mkstemps.texi: Likewise.
15651         * doc/glibc-functions/preadv.texi: Likewise.
15652         * doc/glibc-functions/pwritev.texi: Likewise.
15653         * doc/glibc-functions/sendfile.texi: Likewise.
15654         * doc/glibc-functions/statfs.texi: Likewise.
15655
15656 2011-07-24  Bruno Haible  <bruno@clisp.org>
15657
15658         doc: Fix typo.
15659         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
15660
15661 2011-07-24  Bruno Haible  <bruno@clisp.org>
15662
15663         doc: Mention fsusage.
15664         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
15665
15666 2011-07-24  Bruno Haible  <bruno@clisp.org>
15667
15668         doc: Mention new glibc headers and functions.
15669         * doc/glibc-headers/gshadow.texi: New file.
15670         * doc/glibc-functions/endsgent.texi: New file.
15671         * doc/glibc-functions/fgetsgent.texi: New file.
15672         * doc/glibc-functions/fgetsgent_r.texi: New file.
15673         * doc/glibc-functions/getsgent.texi: New file.
15674         * doc/glibc-functions/getsgent_r.texi: New file.
15675         * doc/glibc-functions/getsgnam.texi: New file.
15676         * doc/glibc-functions/getsgnam_r.texi: New file.
15677         * doc/glibc-functions/putsgent.texi: New file.
15678         * doc/glibc-functions/setsgent.texi: New file.
15679         * doc/glibc-functions/sgetsgent.texi: New file.
15680         * doc/glibc-functions/sgetsgent_r.texi: New file.
15681         * doc/glibc-functions/malloc_info.texi: New file.
15682         * doc/glibc-functions/preadv.texi: New file.
15683         * doc/glibc-functions/pwritev.texi: New file.
15684         * doc/glibc-functions/register_printf_modifier.texi: New file.
15685         * doc/glibc-functions/register_printf_specifier.texi: New file.
15686         * doc/glibc-functions/register_printf_type.texi: New file.
15687         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
15688         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
15689         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
15690         * doc/glibc-functions/pthread_getname_np.texi: New file.
15691         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
15692         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
15693         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
15694         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
15695         * doc/glibc-functions/pthread_setname_np.texi: New file.
15696         * doc/glibc-functions/pthread_sigqueue.texi: New file.
15697         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
15698         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
15699         * doc/glibc-functions/qsort_r.texi: New file.
15700         * doc/glibc-functions/quick_exit.texi: New file.
15701         * doc/glibc-functions/syncfs.texi: New file.
15702         * doc/gnulib.texi: Include them.
15703         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
15704         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
15705         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
15706         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
15707         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
15708         * doc/glibc-functions/execvpe.texi: Likewise.
15709
15710 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15711
15712         ftell: don't include <unistd.h>
15713         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
15714         guaranteed to define off_t, and the ftell module depends on the
15715         stdio module.
15716
15717         ftell: do not assume wraparound signed arithmetic
15718         * lib/ftell.c: Include <limits.h>.
15719         (ftell): Don't assume wraparound signed arithmetic.
15720
15721 2011-07-24  Bruno Haible  <bruno@clisp.org>
15722
15723         close: No longer depend on module 'fclose'.
15724         * modules/close (Depends-on): Remove fclose.
15725         * NEWS: Mention the change.
15726         Suggested by Sam Steingold <sds@gnu.org>.
15727
15728 2011-07-24  Bruno Haible  <bruno@clisp.org>
15729
15730         fsusage: Enable large volume support on AIX >= 5.2.
15731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
15732         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
15733         instead of STAT_STATVFS.
15734         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
15735
15736         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
15737         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
15738         f_blocks field only on MacOS X.
15739
15740         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
15741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
15742         * modules/fsusage (Depends-on): Add largefile.
15743
15744 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
15745
15746         * README: Modernize discussion of signed integers.
15747         Assuming overflow wraparound is no longer safe.
15748         Mention ones' complement and signed magnitude.
15749
15750 2011-07-22  Bruno Haible  <bruno@clisp.org>
15751
15752         select tests, pselect tests: Refactor.
15753         * tests/test-select.h: New file, extracted from tests/test-select.c.
15754         (select_fn): New type.
15755         (test, do_select, do_select_nowait, do_select_wait, test_tty,
15756         test_connect_first, test_accept_first, test_pair, test_socket_pair,
15757         test_pipe): Add my_select argument.
15758         (test_function): Renamed from main. Add my_select argument.
15759         * tests/test-select.c: Move most code to tests/test-select.h. Include
15760         test-select.h.
15761         * modules/select-tests (Files): Add tests/test-select.h.
15762         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
15763         (my_select, main): New functions.
15764         * modules/pselect-tests (Files): Add tests/test-select.h,
15765         tests/macros.h, tests/signature.h.
15766         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
15767         (configure.ac): Check for <sys/wait.h>.
15768
15769 2011-07-22  Bruno Haible  <bruno@clisp.org>
15770
15771         sys_select tests: Check the signature of FD_*.
15772         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
15773         signature tests from here...
15774         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
15775         here.
15776         * modules/sys_select-tests (Files): Add tests/signature.h.
15777
15778 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         largefile: new module, replacing large-inode
15781         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
15782         * MODULES.html.sh: Add largefile, remove large-inode.
15783         * modules/largefile, m4/largefile.m4: New files.
15784         * modules/large-inode, m4/large-inode.m4: Remove.
15785
15786         fsusage: port to MacOS X 10.7 with 4 TiB file systems
15787         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
15788         implementations that use only 32 bits to count blocks.
15789         On typical hosts with 1024-byte blocks, this fails with file
15790         systems as small as 4 TiB.  Problem reported by Herb Wartens
15791         <http://debbugs.gnu.org/9140> and this should also fix a similar
15792         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
15793
15794         large-inode: New module
15795         * MODULES.html.sh: Add it.
15796         * modules/large-inode, m4/large-inode.m4: New files.
15797
15798         extensions: Enable extensions on MacOS X 10.5 and later.
15799         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
15800
15801 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
15802
15803         file-has-acl: use acl_extended_file_nofollow if available
15804         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
15805         (acl_extended_file): New macro.
15806         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
15807         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
15808
15809 2011-07-21  Bruno Haible  <bruno@clisp.org>
15810
15811         Declare system functions in a way that works with C++.
15812         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
15813         declare fdopendir as extern "C".
15814         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
15815         declare frexpl as extern "C".
15816         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
15817         declare gai_strerror as extern "C".
15818         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
15819         programs, declare gai_strerror as extern "C".
15820         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
15821         declare getlogin_r as extern "C".
15822         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
15823         as extern "C".
15824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
15825         declare ldexpl as extern "C".
15826         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
15827         as extern "C".
15828         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
15829         program, declare getmntinfo as extern "C".
15830         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
15831         stpncpy as extern "C".
15832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15833         program, declare __xpg_strerror_r as extern "C".
15834         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15835         strndup as extern "C".
15836         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15837         declare memset and bzero as extern "C".
15838         Reported by Sam Steingold <sds@gnu.org>.
15839
15840 2011-07-12  Jim Meyering  <meyering@redhat.com>
15841
15842         maint.mk: prohibit inclusion of "verify.h" without use
15843         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15844
15845 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15846
15847         timer-time: A new module to check for timer_settime()
15848         * m4/timer_time.m4: Check for the posix function.
15849         * modules/timer-time: Add the new module.
15850         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15851         Mention it.
15852
15853 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15854             Bruno Haible  <bruno@clisp.org>
15855
15856         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15857         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15858         not defined, assume POSIX threads and look for pthread_sigmask in
15859         $LIBS, without changing $CPPFLAGS.
15860
15861 2011-07-19  Bruno Haible  <bruno@clisp.org>
15862
15863         strstr: Update cross-compilation guess.
15864         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15865         CPUs, guess no, in view of glibc
15866         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15867         Suggested by Eric Blake. Reported by Reuben Thomas.
15868
15869 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15870
15871         getopt-gnu: suppress core dumps from detection code
15872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15873         to suppress core dumps that may well occur on glibc systems.
15874         * modules/getopt-gnu: Depend on nocrash.
15875
15876 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15877
15878         pthread_sigmask: ensure usleep is declared
15879         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15880         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15881
15882 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15883
15884         doc: Document NonStop portability issues.
15885         * doc/posix-functions/sigaction.texi (sigaction):
15886         * doc/posix-headers/signal.texi (signal.h):
15887         Document NonStop.  See Joachim Schmitz in
15888         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15889
15890 2011-07-15  Bruno Haible  <bruno@clisp.org>
15891
15892         ffsl, ffsll: Avoid unportable behaviour.
15893         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15894
15895 2011-07-15  Bruno Haible  <bruno@clisp.org>
15896
15897         ffs: More tests.
15898         * tests/test-ffs.c (NBITS): New macro.
15899         (main): Add more tests.
15900         * tests/test-ffsl.c (NBITS): New macro.
15901         (main): Add more tests.
15902         * tests/test-ffsll.c (NBITS): New macro.
15903         (main): Add more tests.
15904
15905 2011-07-15  Eric Blake  <eblake@redhat.com>
15906
15907         ffsl, ffsll: new modules
15908         * modules/ffsl: New file.
15909         * modules/ffsll: Likewise.
15910         * m4/ffsl.m4: Likewise.
15911         * m4/ffsll.m4: Likewise.
15912         * lib/ffsl.c: Likewise.
15913         * lib/ffsl.h: Likewise.
15914         * lib/ffsll.c: Likewise.
15915         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15916         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15917         * modules/string (Makefile.am): Substitute witnesses.
15918         * lib/strings.in.h (ffsl, ffsll): Declare.
15919         * modules/ffsl-tests: New test file.
15920         * modules/ffsll-tests: Likewise.
15921         * tests/test-ffsl.c: Likewise.
15922         * tests/test-ffsll.c: Likewise.
15923         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15924         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15925         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15926
15927         ffs: fix m4 prerequisite
15928         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15929
15930         ffs: avoid undefined behavior
15931         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15932         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15933         Reported by Bruno Haible.
15934
15935 2011-07-12  Bruno Haible  <bruno@clisp.org>
15936
15937         pthread_sigmask: Rely on module 'threadlib'.
15938         * modules/pthread_sigmask (Depends-on): Add threadlib.
15939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15940         is defined.
15941
15942 2011-07-12  Bruno Haible  <bruno@clisp.org>
15943
15944         regex: Depend on module 'strcase'.
15945         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15946
15947 2011-07-12  Jim Meyering  <meyering@redhat.com>
15948
15949         warn-on-use: fix typo in file name
15950         * modules/snippet/warn-on-use (Files): Correct file name:
15951         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15952
15953 2011-07-12  Bruno Haible  <bruno@clisp.org>
15954
15955         strings: Document module.
15956         * doc/posix-headers/strings.texi: Mention module 'strings'.
15957
15958 2011-07-12  Bruno Haible  <bruno@clisp.org>
15959
15960         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15961         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15962         (Files, Makefile.am): Update.
15963         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15964         * modules/stdlib (Depends-on): Update.
15965
15966 2011-07-12  Bruno Haible  <bruno@clisp.org>
15967
15968         * NEWS: Mention the changes.
15969
15970         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15971         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15972         (Files, Makefile.am): Update.
15973         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15974         * modules/arpa_inet (Depends-on): Update.
15975         * modules/ctype (Depends-on): Update.
15976         * modules/dirent (Depends-on): Update.
15977         * modules/fcntl-h (Depends-on): Update.
15978         * modules/glob (Depends-on): Update.
15979         * modules/iconv-h (Depends-on): Update.
15980         * modules/inttypes-incomplete (Depends-on): Update.
15981         * modules/langinfo (Depends-on): Update.
15982         * modules/locale (Depends-on): Update.
15983         * modules/math (Depends-on): Update.
15984         * modules/netdb (Depends-on): Update.
15985         * modules/poll-h (Depends-on): Update.
15986         * modules/pty (Depends-on): Update.
15987         * modules/search (Depends-on): Update.
15988         * modules/signal (Depends-on): Update.
15989         * modules/spawn (Depends-on): Update.
15990         * modules/stdio (Depends-on): Update.
15991         * modules/stdlib (Depends-on): Update.
15992         * modules/string (Depends-on): Update.
15993         * modules/strings (Depends-on): Update.
15994         * modules/sys_file (Depends-on): Update.
15995         * modules/sys_ioctl (Depends-on): Update.
15996         * modules/sys_select (Depends-on): Update.
15997         * modules/sys_socket (Depends-on): Update.
15998         * modules/sys_stat (Depends-on): Update.
15999         * modules/sys_time (Depends-on): Update.
16000         * modules/sys_times (Depends-on): Update.
16001         * modules/sys_utsname (Depends-on): Update.
16002         * modules/sys_wait (Depends-on): Update.
16003         * modules/termios (Depends-on): Update.
16004         * modules/time (Depends-on): Update.
16005         * modules/unistd (Depends-on): Update.
16006         * modules/wchar (Depends-on): Update.
16007         * modules/wctype-h (Depends-on): Update.
16008         * MODULES.html.sh (Support for building libraries and executables):
16009         Update.
16010
16011         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16012         * modules/snippet/unused-parameter: Renamed from
16013         modules/unused-parameter.
16014         (Files, Makefile.am): Update.
16015         * build-aux/snippet/unused-parameter.h: Renamed from
16016         build-aux/unused-parameter.h.
16017         * modules/selinux-h (Depends-on): Update.
16018         * modules/unistr/base (Depends-on): Update.
16019         * MODULES.html.sh (Core language properties): Update.
16020
16021         Rename module 'link-warning' to 'snippet/link-warning'.
16022         * modules/snippet/link-warning: Renamed from modules/link-warning.
16023         (Files, Makefile.am): Update.
16024         * build-aux/snippet/link-warning.h: Renamed from
16025         build-aux/link-warning.h.
16026         * MODULES.html.sh (Support for building libraries and executables):
16027         Update.
16028
16029         Rename module 'c++defs' to 'snippet/c++defs'.
16030         * modules/snippet/c++defs: Renamed from modules/c++defs.
16031         (Files, Makefile.am): Update.
16032         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16033         * modules/arpa_inet (Depends-on): Update.
16034         * modules/ctype (Depends-on): Update.
16035         * modules/dirent (Depends-on): Update.
16036         * modules/fcntl-h (Depends-on): Update.
16037         * modules/glob (Depends-on): Update.
16038         * modules/iconv-h (Depends-on): Update.
16039         * modules/langinfo (Depends-on): Update.
16040         * modules/locale (Depends-on): Update.
16041         * modules/math (Depends-on): Update.
16042         * modules/netdb (Depends-on): Update.
16043         * modules/poll-h (Depends-on): Update.
16044         * modules/pty (Depends-on): Update.
16045         * modules/search (Depends-on): Update.
16046         * modules/signal (Depends-on): Update.
16047         * modules/spawn (Depends-on): Update.
16048         * modules/stdio (Depends-on): Update.
16049         * modules/stdlib (Depends-on): Update.
16050         * modules/string (Depends-on): Update.
16051         * modules/strings (Depends-on): Update.
16052         * modules/sys_ioctl (Depends-on): Update.
16053         * modules/sys_select (Depends-on): Update.
16054         * modules/sys_socket (Depends-on): Update.
16055         * modules/sys_stat (Depends-on): Update.
16056         * modules/sys_time (Depends-on): Update.
16057         * modules/sys_wait (Depends-on): Update.
16058         * modules/termios (Depends-on): Update.
16059         * modules/time (Depends-on): Update.
16060         * modules/unistd (Depends-on): Update.
16061         * modules/wchar (Depends-on): Update.
16062         * modules/wctype-h (Depends-on): Update.
16063
16064         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
16065         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
16066         (Files, Makefile.am): Update.
16067         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
16068         * modules/argv-iter (Depends-on): Update.
16069         * modules/arpa_inet (Depends-on): Update.
16070         * modules/dirent (Depends-on): Update.
16071         * modules/fcntl-h (Depends-on): Update.
16072         * modules/fnmatch (Depends-on): Update.
16073         * modules/getopt-posix (Depends-on): Update.
16074         * modules/glob (Depends-on): Update.
16075         * modules/iconv-h (Depends-on): Update.
16076         * modules/inttypes-incomplete (Depends-on): Update.
16077         * modules/locale (Depends-on): Update.
16078         * modules/math (Depends-on): Update.
16079         * modules/netdb (Depends-on): Update.
16080         * modules/search (Depends-on): Update.
16081         * modules/signal (Depends-on): Update.
16082         * modules/spawn (Depends-on): Update.
16083         * modules/stdio (Depends-on): Update.
16084         * modules/stdlib (Depends-on): Update.
16085         * modules/string (Depends-on): Update.
16086         * modules/strings (Depends-on): Update.
16087         * modules/sys_socket (Depends-on): Update.
16088         * modules/sys_stat (Depends-on): Update.
16089         * modules/sys_time (Depends-on): Update.
16090         * modules/sys_times (Depends-on): Update.
16091         * modules/sys_utsname (Depends-on): Update.
16092         * modules/time (Depends-on): Update.
16093         * modules/unistd (Depends-on): Update.
16094         * modules/wchar (Depends-on): Update.
16095         * MODULES.html.sh (Support for building libraries and executables):
16096         Update.
16097
16098 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16099
16100         Improvements on _Noreturn and related modules.
16101
16102         modules/_Exit-tests: test _Noreturn too
16103         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
16104         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
16105         (main): Use them.
16106
16107         stdnoreturn, stdnoreturn-tests: remove modules
16108         They're not needed here and a bit premature for use elsewhere.  See
16109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
16110         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
16111         * tests/test-stdnoreturn.c: Remove files.
16112         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
16113         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
16114         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
16115         and using noreturn.
16116         * modules/openat, modules/sigpipe-die, modules/xalloc:
16117         * modules/xmemdup0, modules/xstrtol:
16118         Remove dependency on stdnoreturn.
16119
16120         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
16121         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
16122         Reparenthesize to avoid GCC warning.
16123         Support Microsoft's syntax.
16124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
16125
16126         _Noreturn-tests: remove module
16127         * modules/_Noreturn-tests: Remove.
16128         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
16129         * tests/test-_Noreturn.c: Remove.
16130         * tests/test-stdnoreturn.c: Merge from the old
16131         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
16132
16133 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
16134
16135         _Noreturn, stdnoreturn, and related modules.
16136
16137         * top/maint.mk: Adjust to new noreturn support.
16138         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
16139         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
16140
16141         xalloc: use stdnoreturn.h
16142         * lib/xalloc.h: Include <stdnoreturn.h>.
16143         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16144         * modules/xalloc (Depends-on): Add stdnoreturn.
16145
16146         xstrtol: use stdnoreturn.h
16147         * lib/xstrtol.h: Include <stdnoreturn.h>.
16148         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16149         * modules/xstrtol (Depends-on): Add stdnoreturn.
16150
16151         xmemdup0: use stdnoreturn.h
16152         * lib/xmemdup0.h: Include <stdnoreturn.h>.
16153         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16154         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
16155
16156         sigpipe-die: use stdnoreturn.h
16157         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
16158         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16159         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
16160
16161         openat: use stdnoreturn.h
16162         * lib/openat.h: Include <stdnoreturn.h>.
16163         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
16164         * modules/openat (Depends-on): Add stdnoreturn.
16165
16166         * lib/openat-die.c (openat_save_fail): Modernize comment.
16167
16168         * lib/xalloc-die.c (xalloc_die): Modernize comment.
16169
16170         * lib/glthread/thread.h: Modernize comment.
16171
16172         obstack: use _Noreturn
16173         * lib/obstack.c (__attribute__): Remove macro.
16174         (print_and_abort): Use _Noreturn.
16175
16176         c-stack: use _Noreturn
16177         * lib/c-stack.c (die, overflow_handler, segv_handler):
16178         Use _Noreturn rather than __attribute__((noreturn)).
16179
16180         argmatch-tests, exclude_tests: use _Noreturn
16181         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
16182         Remove.
16183         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
16184
16185         stdlib: use _Noreturn
16186         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
16187         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
16188         * modules/stdlib (Depends-on): Add _Noreturn.
16189         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
16190
16191         stdnoreturn-tests: new module
16192         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
16193
16194         stdnoreturn: new module
16195         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
16196         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
16197
16198         _Noreturn-tests: new module
16199         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
16200
16201         _Noreturn: new module
16202         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
16203         New section, mentioning it.
16204         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
16205
16206         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
16207
16208 2011-07-11  Eric Blake  <eblake@redhat.com>
16209
16210         ffs: new module
16211         * modules/ffs: New file.
16212         * m4/ffs.m4: Likewise.
16213         * lib/ffs.c: Likewise.
16214         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
16215         * modules/strings (Makefile.am): Substitute witness.
16216         (Depends-on): Add c++defs.
16217         * lib/strings.in.h (ffs): Declare.
16218         * modules/ffs-tests: New test file.
16219         * tests/test-ffs.c: Test new module.
16220         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16221         * doc/posix-functions/ffs.texi (ffs): Likewise.
16222
16223         regex: avoid compiler warning
16224         * lib/regex.c (includes): Include <strings.h>, for use of
16225         strcasecmp in regcomp.c.
16226         Reported by Joachim Schmitz.
16227
16228 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16229
16230         stdint: respect system's intmax_t if INTMAX_MAX
16231         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
16232         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
16233         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
16234         long but int64_t is long long, and where we will clash with the
16235         system intmax_t if we override it.  See
16236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
16237         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
16238         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
16239         similarly for UINTMAX_C.
16240
16241 2011-07-08  Bruno Haible  <bruno@clisp.org>
16242
16243         pthread_sigmask tests: Avoid a compiler warning.
16244         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
16245         non-zero.
16246
16247         sigprocmask tests: A better way to avoid a compiler warning.
16248         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
16249         (main): Complain if system() returns non-zero.
16250         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
16251
16252 2011-07-08  Bruno Haible  <bruno@clisp.org>
16253
16254         pthread_sigmask: Work around IRIX bug.
16255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
16256         bug.
16257         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
16258         there may be unblocked pending signals.
16259         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
16260
16261 2011-07-08  Bruno Haible  <bruno@clisp.org>
16262
16263         pthread_sigmask: Work around Cygwin bug.
16264         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
16265         bug.
16266         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
16267         the system's pthread_sigmask function.
16268         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
16269
16270 2011-07-08  Bruno Haible  <bruno@clisp.org>
16271
16272         pthread_sigmask: Work around bug in single-threaded implementation.
16273         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
16274         FreeBSD, HP-UX, Solaris bug.
16275         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
16276         * lib/pthread_sigmask.c: Include <stddef.h>.
16277         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
16278         the system's pthread_sigmask function.
16279         * modules/pthread_sigmask (configure.ac): Invoke
16280         gl_PREREQ_PTHREAD_SIGMASK.
16281         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
16282         HP-UX, Solaris.
16283
16284 2011-07-08  Eric Blake  <eblake@redhat.com>
16285
16286         test-sigprocmask: avoid compiler warning
16287         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
16288         * tests/test-sigprocmask.c (main): Use it to silence warning.
16289         Reported by Jim Meyering.
16290
16291         test-snprintf: avoid compiler warning
16292         * tests/test-snprintf.c (main): Avoid shadowed declaration.
16293         * tests/test-vsnprintf.c (main): Likewise.
16294         Reported by Jim Meyering.
16295
16296 2011-07-08  Bruno Haible  <bruno@clisp.org>
16297
16298         Tests for module 'pthread_sigmask'.
16299         * modules/pthread_sigmask-tests: New file.
16300         * tests/test-pthread_sigmask1.c: New file, based on
16301         tests/test-sigprocmask.c.
16302         * tests/test-pthread_sigmask2.c: New file.
16303
16304 2011-07-08  Jim Meyering  <meyering@redhat.com>
16305
16306         test-getopt.h: avoid warning about an unused variable
16307         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
16308
16309 2011-07-07  Jim Meyering  <meyering@redhat.com>
16310
16311         maint: reduce list of files exempt from sc_prohibit_leading_TABs
16312         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
16313         now that it no longer contains leading TABs.
16314         Remove unused "url=FIXME" statement.
16315
16316 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16317
16318         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
16319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16320         When gl_THREADLIB is not in use, assume that the POSIX sematics
16321         are desired.  This is better for Emacs, which uses POSIX semantics
16322         on GNUish and/or POSIXish platforms, and does not use threads at
16323         all otherwise.
16324
16325         pthread_sigmask: fix typo when testing for libraries
16326         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16327         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
16328
16329 2011-07-08  Eric Blake  <eblake@redhat.com>
16330
16331         fts: introduce FTS_NOATIME
16332         * lib/fts_.h (FTS_NOATIME): New bit flag.
16333         (FTS_OPTIONMASK): Adjust.
16334         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
16335         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
16336
16337 2011-07-08  Bruno Haible  <bruno@clisp.org>
16338
16339         Tests for module 'thread'.
16340         * modules/thread-tests: New file.
16341         * tests/test-thread_self.c: New file.
16342         * tests/test-thread_create.cc: New file.
16343
16344 2011-07-08  Bruno Haible  <bruno@clisp.org>
16345
16346         thread: Avoid gcc warnings when using gl_thread_self().
16347         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
16348         'void *'.
16349         (gl_thread_self_pointer): Update.
16350
16351 2011-07-07  Bruno Haible  <bruno@clisp.org>
16352
16353         signal-c++-tests: Check declaration of pthread_sigmask.
16354         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
16355         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
16356         $(LIB_PTHREAD_SIGMASK).
16357
16358 2011-07-07  Bruno Haible  <bruno@clisp.org>
16359
16360         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
16361         * lib/signal.in.h (pthread_sigmask): Override if
16362         REPLACE_PTHREAD_SIGMASK is 1.
16363         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16364         REPLACE_PTHREAD_SIGMASK.
16365         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
16366         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
16367         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
16368         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16369         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
16370
16371 2011-07-07  Bruno Haible  <bruno@clisp.org>
16372
16373         pthread_sigmask: Ensure declaration in <signal.h>.
16374         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
16375         include <pthread.h>.
16376         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
16377         problem.
16378
16379 2011-07-07  Bruno Haible  <bruno@clisp.org>
16380
16381         pthread_sigmask: Document the module.
16382         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
16383
16384 2011-07-07  Bruno Haible  <bruno@clisp.org>
16385
16386         pthread_sigmask: Follow gnulib conventions.
16387         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
16388         gl_PTHREAD_SIGMASK.
16389         * modules/pthread_sigmask (configure.ac): Update.
16390
16391 2011-07-07  Bruno Haible  <bruno@clisp.org>
16392
16393         pthread_sigmask: Make declaration C++ safe.
16394         * lib/signal.in.h: In two special conditions, just do an #include_next.
16395         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16396         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
16397         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16398         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
16399         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
16400         not REPLACE_PTHREAD_MASK.
16401         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
16402         not REPLACE_PTHREAD_MASK.
16403         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
16404
16405 2011-07-07  Bruno Haible  <bruno@clisp.org>
16406
16407         pthread_sigmask: Fix return value.
16408         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
16409         * lib/pthread_sigmask.c: New file.
16410         * modules/pthread_sigmask (Files): Add it.
16411         (configure.ac): Invoke AC_LIBOBJ.
16412
16413 2011-07-07  Eric Blake  <eblake@redhat.com>
16414
16415         getopt: more portable argv creation
16416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
16417         const, use char arrays rather than strings.
16418         Suggested by Paul Eggert.
16419
16420 2011-07-07  Bruno Haible  <bruno@clisp.org>
16421
16422         Tests for module 'sigprocmask'.
16423         * modules/sigprocmask-tests: New file.
16424         * tests/test-sigprocmask.c: New file.
16425
16426 2011-07-07  Bruno Haible  <bruno@clisp.org>
16427
16428         float tests: Tweak.
16429         * tests/test-float.c (main): Tweak skip message.
16430
16431 2011-07-07  Eric Blake  <eblake@redhat.com>
16432
16433         getopt: avoid compiler warning during configure
16434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
16435         assigning string literals to non-const pointer.
16436
16437         getopt-gnu: avoid crash in glibc getopt
16438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
16439         * tests/test-getopt.h (test_getopt): Enhance test.
16440         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16441         * doc/posix-functions/getopt.texi (getopt): Document it.
16442         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
16443         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
16444         Likewise.
16445
16446 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
16447
16448         getopt: handle W; without long options in getopt [BZ #12922]
16449         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
16450         but no long options are defined, just return 'W'.
16451
16452 2011-07-07  Bruno Haible  <bruno@clisp.org>
16453
16454         Avoid literal tabs.
16455         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
16456         variable containing a tab instead of a literal tab.
16457         Reported by Jim Meyering.
16458
16459 2011-07-07  Bruno Haible  <bruno@clisp.org>
16460
16461         Comments.
16462         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
16463
16464 2011-07-06  Bruno Haible  <bruno@clisp.org>
16465
16466         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
16467         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
16468         <winsock2.h>.
16469         (rpl_fd_isset, FD_ISSET): New definitions, copied from
16470         lib/sys_socket.in.h.
16471         (close, gethostname): Hide declarations from <winsock2.h>.
16472         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16473         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
16474         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
16475         (select): Don't override if gnulib's <sys/select.h> was already
16476         included.
16477         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16478         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16479         setsockopt, shutdown, select): Tweak indentation.
16480
16481 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16482
16483         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
16484         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
16485         in an application that does not use the sys_select module.
16486
16487 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
16488
16489         poll: do not return 0 on timeout=-1
16490         * lib/poll.c: Loop with yield if no events occurred.
16491
16492 2011-07-06  Eric Blake  <eblake@redhat.com>
16493
16494         pthread_sigmask: always replace when not using pthread
16495         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
16496         replacement when using some threading other than pthread.  Fix
16497         logic bug.
16498
16499 2011-07-06  Bruno Haible  <bruno@clisp.org>
16500
16501         Comments.
16502         * m4/printf.m4: Update comments about mingw.
16503
16504 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16505
16506         sys_select: define sigset_t more portably
16507         * lib/sys_select.in.h: Always include <sys/types.h>, since
16508         we now need sigset_t and mingw defines it there.
16509         Include <signal.h> before split inclusion guard, to avoid
16510         mishaps on Solaris, whose <signal.h> eventually includes us.
16511         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
16512         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
16513         which come from ...
16514         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
16515         gl_CHECK_TYPE_SIGSET_T.
16516         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
16517         does the real work.
16518         * modules/sys_select (Depends-on): Add 'signal'.
16519
16520         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
16521         Suggested by Bruno Haible.
16522
16523         pselect: Use pthread_sigmask, not sigprocmask.
16524         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
16525         multithreaded apps better than sigprocmask does.
16526         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
16527         sigprocmask directly.
16528
16529 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16530
16531         * lib/pselect.c (pselect): Use plain name, without "rpl_".
16532         Don't #undef,  since we don't need any underlying pselect.
16533         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
16534         (Depends-on): Add select.
16535         (Link): Add $(LIBSOCKET).
16536         These changes suggested by Bruno Haible.
16537
16538         pselect: document better
16539         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16540         * doc/posix-functions/pselect.texi (pselect): Document new module.
16541
16542         pthread_sigmask: new module
16543         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
16544         * doc/posix-functions/pthread_sigmask.texi: Document new module.
16545         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
16546         This is done only as a macro; I don't know how well that'll
16547         work for C++.  Move <sys/types.h> include before the include_next,
16548         to avoid mishap on Solaris.
16549         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
16550         * modules/signal (Makefile.am): Substitute the check's results.
16551         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
16552
16553         test-pselect: new module
16554         * modules/pselect-tests, tests/test-pselect.c: New files.
16555         * tests/test-select.c, tests/test-sys_select-c++.cc:
16556         If TEST_PSELECT is defined, test pselect instead of testing select.
16557
16558         * tests/test-sys_select.c (sigset_t): Test for it, too.
16559         Suggested by Bruno Haible.
16560
16561 2011-07-05  Eric Blake  <eblake@redhat.com>
16562
16563         snprintf: guarantee %1$d, for libintl
16564         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
16565         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16566         * doc/posix-functions/snprintf.texi (snprintf): Update.
16567         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
16568         * tests/test-snprintf.c (main): Enhance test.
16569         * tests/test-vsnprintf.c (main): Likewise.
16570
16571 2011-07-05  Jim Meyering  <meyering@redhat.com>
16572
16573         maint: exempt stdio-read.c and stdio-write.c from the cppi check
16574         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
16575         per Bruno's request, to accommodate this idiom (no space after "#")
16576         even when the function is inside an #if block:
16577         char *
16578         gets (char *s)
16579         #undef gets
16580         {
16581           ...
16582         }
16583
16584 2011-07-04  Jim Meyering  <meyering@redhat.com>
16585
16586         maint: indent with spaces, not TABs, and add a rule to check this
16587         * tests/test-userspec.c: Indent with spaces, not TABs.
16588         * tests/test-argp.c: Likewise.
16589         * tests/test-c-stack2.sh: Likewise.
16590         * tests/test-parse-duration.sh: Likewise
16591         * m4/strtod.m4: Likewise.
16592         * m4/alloca.m4: Likewise.
16593         * m4/pselect.m4: Likewise.
16594         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
16595
16596 2011-07-03  Jim Meyering  <meyering@redhat.com>
16597
16598         maint.mk: correct omissions in prohibit_argmatch_without_use check
16599         This rule would mistakenly report that argmatch.h is included without
16600         use even when both the argmatch and invalid_arg macro were used.
16601         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
16602         of argmatch and invalid_arg.
16603
16604 2011-07-03  Bruno Haible  <bruno@clisp.org>
16605
16606         Comments about EINTR.
16607         * lib/safe-read.h: Explain the purpose of this module.
16608         * lib/safe-write.h: Likewise.
16609         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
16610         module.
16611         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
16612         module.
16613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16614
16615 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
16616
16617         xnanosleep: Rewrite to use new dtotimespec module.
16618         It has the conversion code that used to be in xnanosleep.
16619         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
16620         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
16621         (TIME_T_MAX): Remove.
16622         (xnanosleep): Rewrite in terms of dtotimespec.
16623         * modules/xnanosleep (Depends-on): Add dtotimespec.
16624         Remove intprops, stdbool.
16625
16626         timespec-add, timespec-sub: new modules
16627         * lib/timespec.h (timespec_add, timespec_sub): New decls.
16628         * lib/timespec-add.c, lib/timespec-sub.c:
16629         * modules/timespec-add, modules/timespec-sub: New files.
16630
16631         dtotimespec: new module
16632         * lib/timespec.h (dtotimespec): New decl.
16633         * lib/dtotimespec.c, modules/dtotimespec: New files.
16634
16635         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
16636
16637         pselect: new module
16638         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
16639         (pselect): New decls.
16640         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
16641         since the standard pselect decl uses 'restrict'.
16642         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
16643         HAVE_PSELECT, REPLACE_PSELECT.
16644         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
16645         HAVE_PSELECT, REPLACE_PSELECT.
16646         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
16647
16648         sys_select: don't depend on sys_socket
16649         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
16650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
16651         This fix works on GNU and GNU-like platforms, but has not been tested
16652         on native Windows.
16653         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
16654         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
16655         gl_HEADER_SYS_SOCKET.
16656         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
16657         gl_PREREQ_SYS_H_WINSOCK2.
16658
16659 2011-06-29  Eric Blake  <eblake@redhat.com>
16660
16661         pipe2: fix C89 compile problem
16662         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
16663         Reported by Bruno Haible.
16664
16665         pipe, pipe2: don't corrupt fd on error
16666         * lib/pipe.c (pipe): Leave fd unchanged on error.
16667         * lib/pipe2.c (pipe2): Likewise.
16668         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
16669         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
16670
16671 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
16672
16673         mmap-anon: do not use regular expressions inadvertently
16674         * m4/mmap-anon.m4: Remove trailing period from strings sought
16675         in the output.
16676
16677 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
16678
16679         nanosleep: fix integer overflow problem
16680         * lib/nanosleep.c (my_usleep): Don't assume signed integer
16681         arithmetic wraps around on overflow.
16682
16683         nanosleep: simplify carrying
16684         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
16685         first call to the underyling nanosleep, not for the last one.
16686         This doesn't fix any bugs, but it simplifies the computation of
16687         the remaining delay.  Found while auditing integer overflow issues.
16688
16689         dup2: remove test for existence of fcntl
16690         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
16691         "#if HAVE_FCNTL", in the configure-time test program.
16692         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
16693         and therefore speeds up "configure" a bit.  Found while
16694         adding the dup2 module to Emacs.
16695
16696 2011-06-24  Eric Blake  <eblake@redhat.com>
16697
16698         maint.mk: enhance useless header checks
16699         * top/maint.mk (_sc_header_without_use): Check both include
16700         styles.
16701         (sc_prohibit_assert_without_use)
16702         (sc_prohibit_close_stream_without_use)
16703         (sc_prohibit_getopt_without_use)
16704         (sc_prohibit_quotearg_without_use)
16705         (sc_prohibit_quote_without_use)
16706         (sc_prohibit_long_options_without_use)
16707         (sc_prohibit_inttostr_without_use)
16708         (sc_prohibit_ignore_value_without_use)
16709         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
16710         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
16711         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
16712         (sc_prohibit_hash_pjw_without_use)
16713         (sc_prohibit_safe_read_without_use)
16714         (sc_prohibit_argmatch_without_use)
16715         (sc_prohibit_canonicalize_without_use)
16716         (sc_prohibit_root_dev_ino_without_use)
16717         (sc_prohibit_openat_without_use)
16718         (sc_prohibit_c_ctype_without_use)
16719         (sc_prohibit_signal_without_use)
16720         (sc_prohibit_stdio--_without_use)
16721         (sc_prohibit_stdio-safer_without_use)
16722         (sc_prohibit_strings_without_use)
16723         (sc_prohibit_intprops_without_use)
16724         (sc_prohibit_stddef_without_use)
16725         (sc_prohibit_xfreopen_without_use): Update clients.
16726
16727 2011-06-24  Jim Meyering  <meyering@redhat.com>
16728
16729         syntax-check: keep one maint.mk rule in sync with its header
16730         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
16731         of the bug Eric has just fixed, with today's commit 25e4c2ec.
16732         I prefer to avoid temporary files here, so use <(...), but that
16733         is not supported by /bin/sh, so...
16734         (SHELL): Define to /bin/bash.
16735
16736 2011-06-24  Eric Blake  <eblake@redhat.com>
16737
16738         maint.mk: update sc_prohibit_intprops_without_use
16739         * top/maint.mk (_intprops_names): Match recent changes.
16740
16741 2011-06-24  Bruno Haible  <bruno@clisp.org>
16742
16743         strerror-override: No-op tweak.
16744         * lib/strerror-override.h (strerror_override): Reorder conditions,
16745         for consistency with lib/strerror-override.c.
16746
16747 2011-06-23  Eric Blake  <eblake@redhat.com>
16748
16749         maint.mk: test further PATH_MAX issues
16750         * top/maint.mk (sc_prohibit_path_max_array): Rename...
16751         (sc_prohibit_path_max_allocation): ...and also test alloca.
16752         Suggested by Jim Meyering.
16753
16754 2011-06-22  Eric Blake  <eblake@redhat.com>
16755
16756         maint.mk: add syntax-check to avoid char[PATH_MAX]
16757         * top/maint.mk (sc_prohibit_path_max_array): New rule.
16758
16759         stat: be robust to PATH_MAX definition
16760         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
16761         * modules/stat (Depends-on): Add verify.
16762
16763         link: work around IRIX bug
16764         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
16765         * lib/link.c (rpl_link): Work around it.
16766         * tests/test-link.h (test_link): Enhance test.
16767         * doc/posix-functions/link.texi (link): Document the bug.
16768
16769         getopt: silence clang warning
16770         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
16771         dereference.
16772         Reported by Gustavo Martin Domato.
16773
16774 2011-06-22  Jim Meyering  <meyering@redhat.com>
16775
16776         bootstrap: do not insert a blank line into each .gitignore file
16777         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
16778
16779 2011-06-21  Eric Blake  <eblake@redhat.com>
16780
16781         perror: test for output mismatch
16782         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
16783         perror on IRIX.
16784
16785         strerror_r: fix OpenBSD behavior on out-of-range
16786         * lib/strerror_r.c (strerror_r): Always use maximal string.
16787         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16788
16789         strerror_r: fix OpenBSD behavior on 0
16790         * lib/strerror-override.c (strerror_override): Also override 0
16791         when needed.
16792         * lib/strerror-override.h (strerror_override): Likewise.
16793         * lib/strerror.c (strerror): Simplify, now that 0 override is done
16794         earlier.
16795         * lib/strerror_r.c (strerror_r): Likewise.
16796         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
16797         behavior...
16798         (gl_FUNC_STRERROR_0): ...into new macro.
16799         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
16800         is overridden.
16801         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
16802         * modules/strerror-override (Files): Add strerror.m4.
16803         (configure.ac): Also provide override for 0 when needed.
16804         * doc/posix-functions/strerror.texi (strerror): Document this.
16805         * doc/posix-functions/perror.texi (perror): Likewise.
16806
16807         perror: adjust array size
16808         * modules/perror (Depends-on): Add strerror-override.
16809         * lib/perror.c (perror): Use it to avoid magic number.
16810
16811         strerror-override: reduce size
16812         * lib/strerror-override.c (strerror_override): Use fewer lines.
16813
16814 2011-06-20  Bruno Haible  <bruno@clisp.org>
16815
16816         pathmax: Ensure correct value for PATH_MAX on HP-UX.
16817         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
16818
16819 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
16820
16821         alloca: port to compilers that can optimize like GCC 4.6.0
16822         * lib/alloca.c (find_stack_direction): New signature, taken from
16823         Autoconf git.  This works with GCC 4.6.0.  This code should never
16824         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
16825         be used with other compilers that optimize as well as GCC 4.6.0 does.
16826         (alloca): Adjust to new signature.
16827         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
16828         New macro, which patches Autoconf in a similar way.
16829
16830         c-stack: stop worrying about stack direction
16831         * lib/c-stack.c (find_stack_direction): Remove.
16832         (segv_handler): Don't worry about stack direction growth, as it's
16833         too much of a pain to configure this correctly, given how compilers
16834         are optimizing-away our stack-growth detection code.  Instead, assume
16835         that any access to just before or just after the stack is OK.
16836         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16837         Don't require AC_FUNC_ALLOCA; no longer needed.
16838
16839 2011-06-20  Eric Blake  <eblake@redhat.com>
16840
16841         test-stat: don't allocate PATH_MAX bytes
16842         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16843         PATH_MAX-sized buffer.
16844         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16845         * modules/stat-tests (Depends-on): Likewise.
16846         * tests/test-fstatat.c (includes): Drop pathmax.h.
16847         * tests/test-stat.c (includes): Likewise.
16848         Reported by Bruno Haible.
16849
16850 2011-06-20  Bruno Haible  <bruno@clisp.org>
16851
16852         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16853         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16854         * lib/float.c: New file.
16855         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16856         REPLACE_FLOAT_LDBL.
16857         * modules/float (Files): Add lib/float.c.
16858         (configure.ac): Invoke AC_LIBOBJ.
16859         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16860
16861 2011-06-20  Bruno Haible  <bruno@clisp.org>
16862
16863         Tests for module 'float'.
16864         * modules/float-tests: New file.
16865         * tests/test-float.c: New file.
16866
16867 2011-06-19  Bruno Haible  <bruno@clisp.org>
16868
16869         isinf: Coding style.
16870         * lib/isinf.c: Use GNU coding style.
16871
16872 2011-06-19  Bruno Haible  <bruno@clisp.org>
16873
16874         linkat test: Avoid test failure on AIX 7.1.
16875         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16876         * tests/test-link.h (test_link): Likewise.
16877
16878 2011-06-19  Bruno Haible  <bruno@clisp.org>
16879
16880         pread test: Avoid test failure on OpenBSD 4.9.
16881         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16882
16883 2011-06-19  Bruno Haible  <bruno@clisp.org>
16884
16885         sprintf-posix: Fix test failure on AIX 7.1.
16886         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16887         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16888         on AIX.
16889         * doc/posix-functions/fprintf.texi: Likewise.
16890         * doc/posix-functions/printf.texi: Likewise.
16891         * doc/posix-functions/snprintf.texi: Likewise.
16892         * doc/posix-functions/sprintf.texi: Likewise.
16893         * doc/posix-functions/vdprintf.texi: Likewise.
16894         * doc/posix-functions/vfprintf.texi: Likewise.
16895         * doc/posix-functions/vprintf.texi: Likewise.
16896         * doc/posix-functions/vsnprintf.texi: Likewise.
16897         * doc/posix-functions/vsprintf.texi: Likewise.
16898
16899 2011-06-19  Bruno Haible  <bruno@clisp.org>
16900
16901         roundl-ieee: Fix test failure on AIX 7.1.
16902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16903         * doc/posix-functions/roundl.texi: Mention problem with negative
16904         arguments.
16905
16906 2011-06-19  Bruno Haible  <bruno@clisp.org>
16907
16908         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16909         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16910         * doc/posix-functions/round.texi: Mention problem with negative
16911         arguments.
16912         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16913
16914 2011-06-19  Bruno Haible  <bruno@clisp.org>
16915
16916         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16917         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16918         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16919         * doc/posix-functions/roundf.texi: Mention problem with negative
16920         arguments.
16921         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16922
16923 2011-06-19  Bruno Haible  <bruno@clisp.org>
16924
16925         ceilf-ieee: Work around bug on MacOS X 10.5.
16926         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16927
16928         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16929         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16930         IEEE compliant, avoid compiler optimizations.
16931         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16932         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16933         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16934         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16935         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16936         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16938         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16939         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16940         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16941
16942 2011-06-19  Bruno Haible  <bruno@clisp.org>
16943
16944         ceilf-ieee: Work around bug on AIX 7.1.
16945         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16946         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16947
16948 2011-06-19  Bruno Haible  <bruno@clisp.org>
16949
16950         ceil-ieee: Work around bug on AIX 7.1.
16951         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16952         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16953
16954 2011-06-18  Bruno Haible  <bruno@clisp.org>
16955
16956         fsync test: Avoid test failure on MacOS X and AIX.
16957         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16958         EINVAL.
16959
16960 2011-06-18  Bruno Haible  <bruno@clisp.org>
16961
16962         openat, fdopendir tests: Fix link errors.
16963         * modules/openat-tests (Depends-on): Add progname.
16964         * modules/fdopendir-tests (Depends-on): Likewise.
16965         * tests/test-fchownat.c: Include progname.h.
16966         (main): Call set_program_name.
16967         * tests/test-fstatat.c: Include progname.h.
16968         (main): Call set_program_name.
16969         * tests/test-mkdirat.c: Include progname.h.
16970         (main): Call set_program_name.
16971         * tests/test-openat.c: Include progname.h.
16972         (main): Call set_program_name.
16973         * tests/test-unlinkat.c: Include progname.h.
16974         (main): Call set_program_name.
16975         * tests/test-fdopendir.c: Include progname.h.
16976         (main): Call set_program_name.
16977
16978 2011-06-18  Bruno Haible  <bruno@clisp.org>
16979
16980         Doc update.
16981         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16982         HP-UX.
16983         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16984
16985 2011-06-18  Bruno Haible  <bruno@clisp.org>
16986
16987         getcwd tests: Avoid compilation error on HP-UX 11.31.
16988         * modules/getcwd-tests (Depends-on): Add pathmax.
16989         * tests/test-getcwd.c: Include pathmax.h.
16990
16991 2011-06-18  Bruno Haible  <bruno@clisp.org>
16992
16993         isfinite, isinf: Fix link error on AIX 6 and 7.
16994         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16995         needed, also test the macro with a 'float' argument.
16996         * m4/isinf.m4 (gl_ISINF): Likewise.
16997
16998 2011-06-18  Bruno Haible  <bruno@clisp.org>
16999
17000         getloadavg: Don't clobber LIBS. Regression from previous commit.
17001         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17002         AC_CHECK_LIB from here...
17003         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17004         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17005         gl_func_getloadavg_done.
17006         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17007
17008 2011-06-18  Bruno Haible  <bruno@clisp.org>
17009
17010         clean-temp: Improve documentation.
17011         * lib/clean-temp.h: Explain better how to use this module.
17012         Reported by John Darrington <john@darrington.wattle.id.au>.
17013
17014 2011-06-17  Bruno Haible  <bruno@clisp.org>
17015
17016         pread, pwrite: Avoid cc warning on AIX.
17017         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17018         (pwrite): Likewise.
17019
17020 2011-06-17  Bruno Haible  <bruno@clisp.org>
17021
17022         spawn-pipe tests: Fix link error.
17023         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17025
17026 2011-06-17  Bruno Haible  <bruno@clisp.org>
17027
17028         Tests: Remove unnecessary dependency.
17029         * modules/canonicalize-tests (Depends-on): Remove progname.
17030         * modules/chown-tests (Depends-on): Likewise.
17031         * modules/dirname-tests (Depends-on): Likewise.
17032         * modules/fdopendir-tests (Depends-on): Likewise.
17033         * modules/fdutimensat-tests (Depends-on): Likewise.
17034         * modules/hash-tests (Depends-on): Likewise.
17035         * modules/lchown-tests (Depends-on): Likewise.
17036         * modules/linkat-tests (Depends-on): Likewise.
17037         * modules/renameat-tests (Depends-on): Likewise.
17038         * modules/spawn-pipe-tests (Depends-on): Likewise.
17039         * modules/utimensat-tests (Depends-on): Likewise.
17040
17041 2011-06-17  Bruno Haible  <bruno@clisp.org>
17042
17043         spawn-pipe tests: Fix link error.
17044         * tests/test-spawn-pipe-child.c: Undefine fflush.
17045
17046 2011-06-17  Bruno Haible  <bruno@clisp.org>
17047
17048         Fix tests link errors.
17049         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17050         * modules/chown-tests (Makefile.am): Don't link test-chown with
17051         LIBINTL.
17052         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17053         LIBINTL.
17054         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17055         LIBINTL.
17056         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17057         LIBINTL.
17058
17059 2011-06-16  Bruno Haible  <bruno@clisp.org>
17060
17061         crypto/gc-sha1: Fix recent regression.
17062         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
17063         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
17064
17065         crypto/gc-md5: Fix recent regression.
17066         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
17067
17068         crypto/gc-md4: Fix recent regression.
17069         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
17070         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
17071
17072         crypto/gc-arctwo: Fix recent regression.
17073         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
17074         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
17075
17076         crypto/gc-rijndael: Fix recent regression.
17077         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
17078         (configure.ac): Invoke AC_LIBOBJ here.
17079         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
17080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17081
17082         crypto/gc-hmac-sha1: Fix recent regression.
17083         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
17084         (configure.ac): Invoke AC_LIBOBJ here.
17085         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
17086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17087
17088         crypto/gc-hmac-md5: Fix recent regression.
17089         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
17090         (configure.ac): Invoke AC_LIBOBJ here.
17091         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
17092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17093
17094         crypto/gc-des: Fix recent regression.
17095         * modules/crypto/gc-des (Files): Remove m4/des.m4.
17096         (configure.ac): Invoke AC_LIBOBJ here.
17097         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
17098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17099
17100         crypto/gc-arcfour: Fix recent regression.
17101         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
17102         (configure.ac): Invoke AC_LIBOBJ here.
17103         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
17104         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17105
17106 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
17109         After the 2011-05-21 change, this macro requires
17110         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
17111         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17112
17113 2011-06-16  Bruno Haible  <bruno@clisp.org>
17114
17115         fprintftime: Move AC_LIBOBJ invocations to module description.
17116         * m4/fprintftime.m4: Remove file.
17117         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
17118         (configure.ac): Remove gl_FPRINTFTIME call.
17119         (Makefile.am): Augment lib_SOURCES.
17120         Reported by Jim Meyering.
17121
17122 2011-06-16  Bruno Haible  <bruno@clisp.org>
17123
17124         tmpfile-safer: Finish 2011-05-23 commit.
17125         * m4/stdio-safer.m4: Really remove file.
17126         Reported by Jim Meyering.
17127
17128 2011-06-16  Bruno Haible  <bruno@clisp.org>
17129
17130         syntax-check: Fix typo.
17131         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
17132         printf-posix.m4.
17133         Reported by Jim Meyering.
17134
17135 2011-06-13  Jim Meyering  <meyering@redhat.com>
17136
17137         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
17138         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
17139
17140 2011-05-23  Bruno Haible  <bruno@clisp.org>
17141
17142         yesno: Move AC_LIBOBJ invocations to module description.
17143         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
17144         * modules/yesno (Makefile.am): Augment lib_SOURCES.
17145
17146 2011-05-23  Bruno Haible  <bruno@clisp.org>
17147
17148         xstrtol: Move AC_LIBOBJ invocations to module description.
17149         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
17150         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
17151
17152 2011-05-23  Bruno Haible  <bruno@clisp.org>
17153
17154         xstrtold: Move AC_LIBOBJ invocations to module description.
17155         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
17156         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
17157
17158 2011-05-23  Bruno Haible  <bruno@clisp.org>
17159
17160         xstrtod: Move AC_LIBOBJ invocations to module description.
17161         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
17162         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
17163
17164 2011-05-23  Bruno Haible  <bruno@clisp.org>
17165
17166         xnanosleep: Move AC_LIBOBJ invocations to module description.
17167         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
17168         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
17169
17170 2011-05-23  Bruno Haible  <bruno@clisp.org>
17171
17172         xgetcwd: Move AC_LIBOBJ invocations to module description.
17173         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
17174         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
17175
17176 2011-05-23  Bruno Haible  <bruno@clisp.org>
17177
17178         xalloc: Move AC_LIBOBJ invocations to module description.
17179         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
17180         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
17181
17182 2011-05-23  Bruno Haible  <bruno@clisp.org>
17183
17184         write-any-file: Move AC_LIBOBJ invocations to module description.
17185         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
17186         invocation.
17187         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
17188
17189 2011-05-23  Bruno Haible  <bruno@clisp.org>
17190
17191         utimens: Move AC_LIBOBJ invocations to module description.
17192         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
17193         * modules/utimens (Makefile.am): Augment lib_SOURCES.
17194
17195 2011-05-23  Bruno Haible  <bruno@clisp.org>
17196
17197         utimecmp: Move AC_LIBOBJ invocations to module description.
17198         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
17199         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
17200
17201 2011-05-23  Bruno Haible  <bruno@clisp.org>
17202
17203         userspec: Move AC_LIBOBJ invocations to module description.
17204         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
17205         * modules/userspec (Makefile.am): Augment lib_SOURCES.
17206
17207 2011-05-23  Bruno Haible  <bruno@clisp.org>
17208
17209         unlinkdir: Move AC_LIBOBJ invocations to module description.
17210         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
17211         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
17212
17213 2011-05-23  Bruno Haible  <bruno@clisp.org>
17214
17215         unistd-safer: Move AC_LIBOBJ invocations to module description.
17216         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
17217         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
17218
17219 2011-05-23  Bruno Haible  <bruno@clisp.org>
17220
17221         tempname: Move AC_LIBOBJ invocations to module description.
17222         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
17223         * modules/tempname (Makefile.am): Augment lib_SOURCES.
17224
17225 2011-05-23  Bruno Haible  <bruno@clisp.org>
17226
17227         strftime: Move AC_LIBOBJ invocations to module description.
17228         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
17229         * modules/strftime (Makefile.am): Augment lib_SOURCES.
17230
17231 2011-05-23  Bruno Haible  <bruno@clisp.org>
17232
17233         stdlib-safer: Move AC_LIBOBJ invocations to module description.
17234         * m4/stdlib-safer.m4: Remove file.
17235         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
17236         (configure.ac): Remove gl_STDLIB_SAFER call.
17237         (Makefile.am): Augment lib_SOURCES.
17238
17239 2011-05-23  Bruno Haible  <bruno@clisp.org>
17240
17241         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
17242         * m4/stdio-safer.m4: Remove file.
17243         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
17244         (configure.ac): Remove gl_TMPFILE_SAFER call.
17245         (Makefile.am): Augment lib_SOURCES.
17246
17247 2011-05-23  Bruno Haible  <bruno@clisp.org>
17248
17249         popen-safer: Move AC_LIBOBJ invocations to module description.
17250         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
17251         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
17252         (configure.ac): Remove gl_POPEN_SAFER call.
17253         (Makefile.am): Augment lib_SOURCES.
17254
17255 2011-05-23  Bruno Haible  <bruno@clisp.org>
17256
17257         freopen-safer: Move AC_LIBOBJ invocations to module description.
17258         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
17259         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
17260         (configure.ac): Remove gl_FREOPEN_SAFER call.
17261         (Makefile.am): Augment lib_SOURCES.
17262
17263 2011-05-23  Bruno Haible  <bruno@clisp.org>
17264
17265         fopen-safer: Move AC_LIBOBJ invocations to module description.
17266         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
17267         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
17268         (configure.ac): Remove gl_FOPEN_SAFER call.
17269         (Makefile.am): Augment lib_SOURCES.
17270
17271 2011-05-23  Bruno Haible  <bruno@clisp.org>
17272
17273         crypto/sha512: Move AC_LIBOBJ invocations to module description.
17274         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
17275         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
17276
17277 2011-05-23  Bruno Haible  <bruno@clisp.org>
17278
17279         crypto/sha256: Move AC_LIBOBJ invocations to module description.
17280         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
17281         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
17282
17283 2011-05-23  Bruno Haible  <bruno@clisp.org>
17284
17285         crypto/sha1: Move AC_LIBOBJ invocations to module description.
17286         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
17287         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
17288
17289 2011-05-23  Bruno Haible  <bruno@clisp.org>
17290
17291         settime: Move AC_LIBOBJ invocations to module description.
17292         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
17293         * modules/settime (Makefile.am): Augment lib_SOURCES.
17294
17295 2011-05-23  Bruno Haible  <bruno@clisp.org>
17296
17297         savedir: Move AC_LIBOBJ invocations to module description.
17298         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
17299         * modules/savedir (Makefile.am): Augment lib_SOURCES.
17300
17301 2011-05-23  Bruno Haible  <bruno@clisp.org>
17302
17303         save-cwd: Move AC_LIBOBJ invocations to module description.
17304         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
17305         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
17306
17307 2011-05-23  Bruno Haible  <bruno@clisp.org>
17308
17309         same: Move AC_LIBOBJ invocations to module description.
17310         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
17311         * modules/same (Makefile.am): Augment lib_SOURCES.
17312
17313 2011-05-23  Bruno Haible  <bruno@clisp.org>
17314
17315         safe-write: Move AC_LIBOBJ invocations to module description.
17316         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
17317         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
17318         instead of gl_SAFE_WRITE.
17319         (Makefile.am): Augment lib_SOURCES.
17320
17321 2011-05-23  Bruno Haible  <bruno@clisp.org>
17322
17323         safe-read: Move AC_LIBOBJ invocations to module description.
17324         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
17325         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
17326         of gl_SAFE_READ.
17327         (Makefile.am): Augment lib_SOURCES.
17328
17329 2011-05-23  Bruno Haible  <bruno@clisp.org>
17330
17331         safe-alloc: Move AC_LIBOBJ invocations to module description.
17332         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
17333         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
17334
17335 2011-05-23  Bruno Haible  <bruno@clisp.org>
17336
17337         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
17338         * m4/rijndael.m4: Remove file.
17339         * modules/crypto/rijndael (Files): Remove it.
17340         (configure.ac): Remove gl_RIJNDAEL call.
17341         (Makefile.am): Augment lib_SOURCES.
17342
17343 2011-05-23  Bruno Haible  <bruno@clisp.org>
17344
17345         readtokens: Move AC_LIBOBJ invocations to module description.
17346         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
17347         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
17348
17349 2011-05-23  Bruno Haible  <bruno@clisp.org>
17350
17351         read-file: Move AC_LIBOBJ invocations to module description.
17352         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
17353         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
17354         of gl_FUNC_READ_FILE.
17355         (Makefile.am): Augment lib_SOURCES.
17356
17357 2011-05-23  Bruno Haible  <bruno@clisp.org>
17358
17359         quotearg: Move AC_LIBOBJ invocations to module description.
17360         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
17361         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
17362
17363 2011-05-23  Bruno Haible  <bruno@clisp.org>
17364
17365         quote: Move AC_LIBOBJ invocations to module description.
17366         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
17367         * modules/quote (Makefile.am): Augment lib_SOURCES.
17368
17369 2011-05-23  Bruno Haible  <bruno@clisp.org>
17370
17371         posixver: Move AC_LIBOBJ invocations to module description.
17372         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
17373         * modules/posixver (Makefile.am): Augment lib_SOURCES.
17374
17375 2011-05-23  Bruno Haible  <bruno@clisp.org>
17376
17377         posixtm: Move AC_LIBOBJ invocations to module description.
17378         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
17379         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
17380
17381 2011-05-23  Bruno Haible  <bruno@clisp.org>
17382
17383         physmem: Move AC_LIBOBJ invocations to module description.
17384         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
17385         * modules/physmem (Makefile.am): Augment lib_SOURCES.
17386
17387 2011-05-23  Bruno Haible  <bruno@clisp.org>
17388
17389         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
17390         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
17391         invocation.
17392         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
17393
17394 2011-05-23  Bruno Haible  <bruno@clisp.org>
17395
17396         mpsort: Move AC_LIBOBJ invocations to module description.
17397         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
17398         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
17399
17400 2011-05-23  Bruno Haible  <bruno@clisp.org>
17401
17402         modechange: Move AC_LIBOBJ invocations to module description.
17403         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
17404         * modules/modechange (Makefile.am): Augment lib_SOURCES.
17405
17406 2011-05-23  Bruno Haible  <bruno@clisp.org>
17407
17408         mkdir-p: Move AC_LIBOBJ invocations to module description.
17409         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
17410         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
17411
17412 2011-05-23  Bruno Haible  <bruno@clisp.org>
17413
17414         mkancesdirs: Move AC_LIBOBJ invocations to module description.
17415         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
17416         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
17417
17418 2011-05-23  Bruno Haible  <bruno@clisp.org>
17419
17420         mgetgroups: Move AC_LIBOBJ invocations to module description.
17421         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
17422         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
17423
17424 2011-05-23  Bruno Haible  <bruno@clisp.org>
17425
17426         memxor: Move AC_LIBOBJ invocations to module description.
17427         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
17428         * modules/memxor (Makefile.am): Augment lib_SOURCES.
17429
17430 2011-05-23  Bruno Haible  <bruno@clisp.org>
17431
17432         memcoll: Move AC_LIBOBJ invocations to module description.
17433         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
17434         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
17435
17436 2011-05-23  Bruno Haible  <bruno@clisp.org>
17437
17438         memcasecmp: Move AC_LIBOBJ invocations to module description.
17439         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
17440         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
17441
17442 2011-05-23  Bruno Haible  <bruno@clisp.org>
17443
17444         crypto/md5: Move AC_LIBOBJ invocations to module description.
17445         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
17446         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
17447
17448 2011-05-23  Bruno Haible  <bruno@clisp.org>
17449
17450         crypto/md4: Move AC_LIBOBJ invocations to module description.
17451         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
17452         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
17453
17454 2011-05-23  Bruno Haible  <bruno@clisp.org>
17455
17456         crypto/md2: Move AC_LIBOBJ invocations to module description.
17457         * m4/md2.m4: Remove file.
17458         * modules/crypto/md2 (Files): Remove it.
17459         (configure.ac): Remove gl_MD2 call.
17460         (Makefile.am): Augment lib_SOURCES.
17461
17462 2011-05-23  Bruno Haible  <bruno@clisp.org>
17463
17464         long-options: Move AC_LIBOBJ invocations to module description.
17465         * m4/long-options.m4: Remove file.
17466         * modules/long-options (Files): Remove it.
17467         (configure.ac): Remove gl_LONG_OPTIONS call.
17468         (Makefile.am): Augment lib_SOURCES.
17469
17470 2011-05-23  Bruno Haible  <bruno@clisp.org>
17471
17472         i-ring: Move AC_LIBOBJ invocations to module description.
17473         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
17474         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
17475
17476 2011-05-23  Bruno Haible  <bruno@clisp.org>
17477
17478         idcache: Move AC_LIBOBJ invocations to module description.
17479         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
17480         * modules/idcache (Makefile.am): Augment lib_SOURCES.
17481
17482 2011-05-23  Bruno Haible  <bruno@clisp.org>
17483
17484         human: Move AC_LIBOBJ invocations to module description.
17485         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
17486         * modules/human (Makefile.am): Augment lib_SOURCES.
17487
17488 2011-05-23  Bruno Haible  <bruno@clisp.org>
17489
17490         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
17491         * m4/hmac-sha1.m4: Remove file.
17492         * modules/crypto/hmac-sha1 (Files): Remove it.
17493         (configure.ac): Remove gl_HMAC_SHA1 call.
17494         (Makefile.am): Augment lib_SOURCES.
17495
17496 2011-05-23  Bruno Haible  <bruno@clisp.org>
17497
17498         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
17499         * m4/hmac-md5.m4: Remove file.
17500         * modules/crypto/hmac-md5 (Files): Remove it.
17501         (configure.ac): Remove gl_HMAC_MD5 call.
17502         (Makefile.am): Augment lib_SOURCES.
17503
17504 2011-05-23  Bruno Haible  <bruno@clisp.org>
17505
17506         hash: Move AC_LIBOBJ invocations to module description.
17507         * m4/hash.m4: Remove file.
17508         * modules/hash (Files): Remove it.
17509         (configure.ac): Remove gl_HASH call.
17510         (Makefile.am): Augment lib_SOURCES.
17511
17512 2011-05-23  Bruno Haible  <bruno@clisp.org>
17513
17514         hard-locale: Move AC_LIBOBJ invocations to module description.
17515         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
17516         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
17517
17518 2011-05-23  Bruno Haible  <bruno@clisp.org>
17519
17520         getugroups: Move AC_LIBOBJ invocations to module description.
17521         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
17522         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
17523
17524 2011-05-23  Bruno Haible  <bruno@clisp.org>
17525
17526         gettime: Move AC_LIBOBJ invocations to module description.
17527         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
17528         * modules/gettime (Makefile.am): Augment lib_SOURCES.
17529
17530 2011-05-23  Bruno Haible  <bruno@clisp.org>
17531
17532         getndelim2: Move AC_LIBOBJ invocations to module description.
17533         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
17534         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
17535
17536 2011-05-23  Bruno Haible  <bruno@clisp.org>
17537
17538         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
17539         * m4/gc-pbkdf2-sha1.m4: Remove file.
17540         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
17541         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
17542         (Makefile.am): Augment lib_SOURCES.
17543
17544 2011-05-23  Bruno Haible  <bruno@clisp.org>
17545
17546         fts: Move AC_LIBOBJ invocations to module description.
17547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
17548         * modules/fts (configure.ac): ... to here.
17549
17550 2011-05-23  Bruno Haible  <bruno@clisp.org>
17551
17552         file-type: Move AC_LIBOBJ invocations to module description.
17553         * m4/file-type.m4: Remove file.
17554         * modules/file-type (Files): Remove it.
17555         (configure.ac): Remove gl_FILE_TYPE call.
17556         (Makefile.am): Augment lib_SOURCES.
17557
17558 2011-05-23  Bruno Haible  <bruno@clisp.org>
17559
17560         filenamecat*: Respect rules for use of AC_LIBOBJ.
17561         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
17562         Remove AC_LIBOBJ invocation.
17563         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
17564         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
17565
17566 2011-05-23  Bruno Haible  <bruno@clisp.org>
17567
17568         filemode: Move AC_LIBOBJ invocations to module description.
17569         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
17570         * modules/filemode (Makefile.am): Augment lib_SOURCES.
17571
17572 2011-05-23  Bruno Haible  <bruno@clisp.org>
17573
17574         openat-safer: Move AC_LIBOBJ invocations to module description.
17575         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
17576         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
17577
17578 2011-05-23  Bruno Haible  <bruno@clisp.org>
17579
17580         fcntl-safer: Move AC_LIBOBJ invocations to module description.
17581         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
17582         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
17583
17584 2011-05-23  Bruno Haible  <bruno@clisp.org>
17585
17586         exclude: Move AC_LIBOBJ invocations to module description.
17587         * m4/exclude.m4: Remove file.
17588         * modules/exclude (Files): Remove it.
17589         (configure.ac): Remove gl_EXCLUDE call.
17590         (Makefile.am): Augment lib_SOURCES.
17591
17592 2011-05-23  Bruno Haible  <bruno@clisp.org>
17593
17594         dirname*: Respect rules for use of AC_LIBOBJ.
17595         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
17596         invocations.
17597         * modules/dirname (Makefile.am): Augment lib_SOURCES.
17598         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
17599
17600 2011-05-23  Bruno Haible  <bruno@clisp.org>
17601
17602         dirent-safer: Move AC_LIBOBJ invocations to module description.
17603         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
17604         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
17605
17606 2011-05-23  Bruno Haible  <bruno@clisp.org>
17607
17608         crypto/des: Move AC_LIBOBJ invocations to module description.
17609         * m4/des.m4: Remove file.
17610         * modules/crypto/des (Files): Remove it.
17611         (configure.ac): Remove gl_DES call.
17612         (Makefile.am): Augment lib_SOURCES.
17613
17614 2011-05-23  Bruno Haible  <bruno@clisp.org>
17615
17616         cycle-check: Move AC_LIBOBJ invocations to module description.
17617         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
17618         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
17619
17620 2011-05-23  Bruno Haible  <bruno@clisp.org>
17621
17622         c-strtold: Move AC_LIBOBJ invocations to module description.
17623         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
17624         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
17625
17626 2011-05-23  Bruno Haible  <bruno@clisp.org>
17627
17628         c-strtod: Move AC_LIBOBJ invocations to module description.
17629         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
17630         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
17631
17632 2011-05-23  Bruno Haible  <bruno@clisp.org>
17633
17634         crc: Move AC_LIBOBJ invocations to module description.
17635         * m4/crc.m4: Remove file.
17636         * modules/crc (Files): Remove it.
17637         (configure.ac): Remove gl_CRC call.
17638         (Makefile.am): Augment lib_SOURCES.
17639
17640 2011-05-23  Bruno Haible  <bruno@clisp.org>
17641
17642         close-stream: Move AC_LIBOBJ invocations to module description.
17643         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
17644         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
17645
17646 2011-05-23  Bruno Haible  <bruno@clisp.org>
17647
17648         closeout: Move AC_LIBOBJ invocations to module description.
17649         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
17650         * modules/closeout (Makefile.am): Augment lib_SOURCES.
17651
17652 2011-05-23  Bruno Haible  <bruno@clisp.org>
17653
17654         closein: Move AC_LIBOBJ invocations to module description.
17655         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
17656         * modules/closein (Makefile.am): Augment lib_SOURCES.
17657
17658 2011-05-23  Bruno Haible  <bruno@clisp.org>
17659
17660         cloexec: Move AC_LIBOBJ invocations to module description.
17661         * m4/cloexec.m4: Remove file.
17662         * modules/cloexec (Files): Remove it.
17663         (configure.ac): Remove gl_CLOEXEC call.
17664         (Makefile.am): Augment lib_SOURCES.
17665
17666 2011-05-23  Bruno Haible  <bruno@clisp.org>
17667
17668         check-version: Move AC_LIBOBJ invocations to module description.
17669         * m4/check-version.m4: Remove file.
17670         * modules/check-version (Files): Remove it.
17671         (configure.ac): Remove gl_CHECK_VERSION call.
17672         (Makefile.am): Augment lib_SOURCES.
17673
17674 2011-05-23  Bruno Haible  <bruno@clisp.org>
17675
17676         chdir-safer: Move AC_LIBOBJ invocations to module description.
17677         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
17678         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
17679
17680 2011-05-23  Bruno Haible  <bruno@clisp.org>
17681
17682         canonicalize: Move AC_LIBOBJ invocations to module description.
17683         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
17684         AC_LIBOBJ invocation.
17685         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
17686
17687 2011-05-23  Bruno Haible  <bruno@clisp.org>
17688
17689         canon-host: Move AC_LIBOBJ invocations to module description.
17690         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
17691         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
17692         instead of gl_CANON_HOST.
17693         (Makefile.am): Augment lib_SOURCES.
17694
17695 2011-05-23  Bruno Haible  <bruno@clisp.org>
17696
17697         backupfile: Move AC_LIBOBJ invocations to module description.
17698         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
17699         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
17700
17701 2011-05-23  Bruno Haible  <bruno@clisp.org>
17702
17703         argmatch: Move AC_LIBOBJ invocations to module description.
17704         * m4/argmatch.m4: Remove file.
17705         * modules/argmatch (Files): Remove it.
17706         (configure.ac): Remove gl_ARGMATCH call.
17707         (Makefile.am): Augment lib_SOURCES.
17708
17709 2011-05-23  Bruno Haible  <bruno@clisp.org>
17710
17711         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
17712         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
17713         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
17714
17715 2011-05-23  Bruno Haible  <bruno@clisp.org>
17716
17717         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
17718         * m4/arcfour.m4: Remove file.
17719         * modules/crypto/arcfour (Files): Remove it.
17720         (configure.ac): Remove gl_ARCFOUR call.
17721         (Makefile.am): Augment lib_SOURCES.
17722
17723 2011-05-22  Bruno Haible  <bruno@clisp.org>
17724
17725         write: Move AC_LIBOBJ invocations to module description.
17726         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
17727         * modules/write (configure.ac): ... to here.
17728
17729 2011-05-22  Bruno Haible  <bruno@clisp.org>
17730
17731         wmemset: Move AC_LIBOBJ invocations to module description.
17732         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
17733         here...
17734         * modules/wmemset (configure.ac): ... to here.
17735
17736 2011-05-22  Bruno Haible  <bruno@clisp.org>
17737
17738         wmemmove: Move AC_LIBOBJ invocations to module description.
17739         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
17740         here...
17741         * modules/wmemmove (configure.ac): ... to here.
17742
17743 2011-05-22  Bruno Haible  <bruno@clisp.org>
17744
17745         wmemcpy: Move AC_LIBOBJ invocations to module description.
17746         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
17747         here...
17748         * modules/wmemcpy (configure.ac): ... to here.
17749
17750 2011-05-22  Bruno Haible  <bruno@clisp.org>
17751
17752         wmemcmp: Move AC_LIBOBJ invocations to module description.
17753         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
17754         here...
17755         * modules/wmemcmp (configure.ac): ... to here.
17756
17757 2011-05-22  Bruno Haible  <bruno@clisp.org>
17758
17759         wmemchr: Move AC_LIBOBJ invocations to module description.
17760         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
17761         here...
17762         * modules/wmemchr (configure.ac): ... to here.
17763
17764 2011-05-22  Bruno Haible  <bruno@clisp.org>
17765
17766         wcswidth: Move AC_LIBOBJ invocations to module description.
17767         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
17768         here...
17769         * modules/wcswidth (configure.ac): ... to here.
17770
17771 2011-05-22  Bruno Haible  <bruno@clisp.org>
17772
17773         wcwidth: Respect rules for use of AC_LIBOBJ.
17774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
17775         invocation from here...
17776         * modules/wcwidth (configure.ac): ... to here.
17777         (Depends-on): Update conditions.
17778
17779 2011-05-22  Bruno Haible  <bruno@clisp.org>
17780
17781         wctype: Move AC_LIBOBJ invocations to module description.
17782         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
17783         invocation from here...
17784         * modules/wctype (configure.ac): ... to here.
17785         (Depends-on): Update conditions.
17786
17787 2011-05-22  Bruno Haible  <bruno@clisp.org>
17788
17789         wctrans: Move AC_LIBOBJ invocations to module description.
17790         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
17791         invocation from here...
17792         * modules/wctrans (configure.ac): ... to here.
17793
17794 2011-05-22  Bruno Haible  <bruno@clisp.org>
17795
17796         wctomb: Move AC_LIBOBJ invocations to module description.
17797         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
17798         invocations from here...
17799         * modules/wctomb (configure.ac): ... to here.
17800
17801 2011-05-22  Bruno Haible  <bruno@clisp.org>
17802
17803         wctob: Move AC_LIBOBJ invocations to module description.
17804         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
17805         gl_PREREQ_WCTOB invocations from here...
17806         * modules/wctob (configure.ac): ... to here.
17807         (Depends-on): Update conditions.
17808
17809 2011-05-22  Bruno Haible  <bruno@clisp.org>
17810
17811         wcsxfrm: Move AC_LIBOBJ invocations to module description.
17812         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
17813         here...
17814         * modules/wcsxfrm (configure.ac): ... to here.
17815
17816 2011-05-22  Bruno Haible  <bruno@clisp.org>
17817
17818         wcstok: Move AC_LIBOBJ invocations to module description.
17819         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
17820         * modules/wcstok (configure.ac): ... to here.
17821
17822 2011-05-22  Bruno Haible  <bruno@clisp.org>
17823
17824         wcsstr: Move AC_LIBOBJ invocations to module description.
17825         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
17826         * modules/wcsstr (configure.ac): ... to here.
17827
17828 2011-05-22  Bruno Haible  <bruno@clisp.org>
17829
17830         wcsspn: Move AC_LIBOBJ invocations to module description.
17831         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17832         * modules/wcsspn (configure.ac): ... to here.
17833
17834 2011-05-22  Bruno Haible  <bruno@clisp.org>
17835
17836         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17837         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17838         gl_PREREQ_WCSRTOMBS invocations from here...
17839         * modules/wcsrtombs (configure.ac): ... to here.
17840
17841 2011-05-22  Bruno Haible  <bruno@clisp.org>
17842
17843         wcsrchr: Move AC_LIBOBJ invocations to module description.
17844         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17845         here...
17846         * modules/wcsrchr (configure.ac): ... to here.
17847
17848 2011-05-22  Bruno Haible  <bruno@clisp.org>
17849
17850         wcspbrk: Move AC_LIBOBJ invocations to module description.
17851         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17852         here...
17853         * modules/wcspbrk (configure.ac): ... to here.
17854
17855 2011-05-22  Bruno Haible  <bruno@clisp.org>
17856
17857         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17858         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17859         gl_PREREQ_WCSNRTOMBS invocations from here...
17860         * modules/wcsnrtombs (configure.ac): ... to here.
17861
17862 2011-05-22  Bruno Haible  <bruno@clisp.org>
17863
17864         wcsnlen: Move AC_LIBOBJ invocations to module description.
17865         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17866         here...
17867         * modules/wcsnlen (configure.ac): ... to here.
17868
17869 2011-05-22  Bruno Haible  <bruno@clisp.org>
17870
17871         wcsncpy: Move AC_LIBOBJ invocations to module description.
17872         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17873         here...
17874         * modules/wcsncpy (configure.ac): ... to here.
17875
17876 2011-05-22  Bruno Haible  <bruno@clisp.org>
17877
17878         wcsncmp: Move AC_LIBOBJ invocations to module description.
17879         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17880         here...
17881         * modules/wcsncmp (configure.ac): ... to here.
17882
17883 2011-05-22  Bruno Haible  <bruno@clisp.org>
17884
17885         wcsncat: Move AC_LIBOBJ invocations to module description.
17886         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17887         here...
17888         * modules/wcsncat (configure.ac): ... to here.
17889
17890 2011-05-22  Bruno Haible  <bruno@clisp.org>
17891
17892         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17893         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17894         from here...
17895         * modules/wcsncasecmp (configure.ac): ... to here.
17896
17897 2011-05-22  Bruno Haible  <bruno@clisp.org>
17898
17899         wcslen: Move AC_LIBOBJ invocations to module description.
17900         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17901         * modules/wcslen (configure.ac): ... to here.
17902
17903 2011-05-22  Bruno Haible  <bruno@clisp.org>
17904
17905         wcsdup: Move AC_LIBOBJ invocations to module description.
17906         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17907         * modules/wcsdup (configure.ac): ... to here.
17908
17909 2011-05-22  Bruno Haible  <bruno@clisp.org>
17910
17911         wcscspn: Move AC_LIBOBJ invocations to module description.
17912         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17913         here...
17914         * modules/wcscspn (configure.ac): ... to here.
17915
17916 2011-05-22  Bruno Haible  <bruno@clisp.org>
17917
17918         wcscpy: Move AC_LIBOBJ invocations to module description.
17919         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17920         * modules/wcscpy (configure.ac): ... to here.
17921
17922 2011-05-22  Bruno Haible  <bruno@clisp.org>
17923
17924         wcscoll: Move AC_LIBOBJ invocations to module description.
17925         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17926         here...
17927         * modules/wcscoll (configure.ac): ... to here.
17928
17929 2011-05-22  Bruno Haible  <bruno@clisp.org>
17930
17931         wcscmp: Move AC_LIBOBJ invocations to module description.
17932         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17933         * modules/wcscmp (configure.ac): ... to here.
17934
17935 2011-05-22  Bruno Haible  <bruno@clisp.org>
17936
17937         wcschr: Move AC_LIBOBJ invocations to module description.
17938         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17939         * modules/wcschr (configure.ac): ... to here.
17940
17941 2011-05-22  Bruno Haible  <bruno@clisp.org>
17942
17943         wcscat: Move AC_LIBOBJ invocations to module description.
17944         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17945         * modules/wcscat (configure.ac): ... to here.
17946
17947 2011-05-22  Bruno Haible  <bruno@clisp.org>
17948
17949         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17950         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17951         here...
17952         * modules/wcscasecmp (configure.ac): ... to here.
17953
17954 2011-05-22  Bruno Haible  <bruno@clisp.org>
17955
17956         wcrtomb: Move AC_LIBOBJ invocations to module description.
17957         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17958         invocations from here...
17959         * modules/wcrtomb (configure.ac): ... to here.
17960
17961 2011-05-22  Bruno Haible  <bruno@clisp.org>
17962
17963         wcpncpy: Move AC_LIBOBJ invocations to module description.
17964         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17965         here...
17966         * modules/wcpncpy (configure.ac): ... to here.
17967
17968 2011-05-22  Bruno Haible  <bruno@clisp.org>
17969
17970         wcpcpy: Move AC_LIBOBJ invocations to module description.
17971         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17972         * modules/wcpcpy (configure.ac): ... to here.
17973
17974 2011-05-22  Bruno Haible  <bruno@clisp.org>
17975
17976         waitpid: Move AC_LIBOBJ invocations to module description.
17977         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17978         invocation from here...
17979         * modules/waitpid (configure.ac): ... to here.
17980
17981 2011-05-22  Bruno Haible  <bruno@clisp.org>
17982
17983         utimensat: Move AC_LIBOBJ invocations to module description.
17984         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17985         here...
17986         * modules/utimensat (configure.ac): ... to here.
17987
17988 2011-05-22  Bruno Haible  <bruno@clisp.org>
17989
17990         usleep: Move AC_LIBOBJ invocations to module description.
17991         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17992         here...
17993         * modules/usleep (configure.ac): ... to here.
17994
17995 2011-05-22  Bruno Haible  <bruno@clisp.org>
17996
17997         unlockpt: Move AC_LIBOBJ invocations to module description.
17998         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17999         gl_PREREQ_UNLOCKPT invocations from here...
18000         * modules/unlockpt (configure.ac): ... to here.
18001
18002 2011-05-22  Bruno Haible  <bruno@clisp.org>
18003
18004         unlink: Respect rules for use of AC_LIBOBJ.
18005         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18006         * modules/unlink (configure.ac): ... to here.
18007
18008 2011-05-22  Bruno Haible  <bruno@clisp.org>
18009
18010         uname: Move AC_LIBOBJ invocations to module description.
18011         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18013         here...
18014         * modules/uname (configure.ac): ... to here.
18015
18016 2011-05-22  Bruno Haible  <bruno@clisp.org>
18017
18018         ttyname_r: Move AC_LIBOBJ invocations to module description.
18019         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18020         gl_PREREQ_TTYNAME_R invocations from here...
18021         * modules/ttyname_r (configure.ac): ... to here.
18022
18023 2011-05-22  Bruno Haible  <bruno@clisp.org>
18024
18025         tsearch: Move AC_LIBOBJ invocations to module description.
18026         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18027         invocations from here...
18028         * modules/tsearch (configure.ac): ... to here.
18029
18030 2011-05-22  Bruno Haible  <bruno@clisp.org>
18031
18032         towctrans: Move AC_LIBOBJ invocations to module description.
18033         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18034         AC_LIBOBJ invocation from here...
18035         * modules/towctrans (configure.ac): ... to here.
18036
18037 2011-05-22  Bruno Haible  <bruno@clisp.org>
18038
18039         tmpfile: Move AC_LIBOBJ invocations to module description.
18040         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18041         invocations from here...
18042         * modules/tmpfile (configure.ac): ... to here.
18043
18044 2011-05-22  Bruno Haible  <bruno@clisp.org>
18045
18046         times: Move AC_LIBOBJ invocations to module description.
18047         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18048         * modules/times (configure.ac): ... to here.
18049
18050 2011-05-22  Bruno Haible  <bruno@clisp.org>
18051
18052         time_r: Move AC_LIBOBJ invocations to module description.
18053         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18054         invocations from here...
18055         * modules/time_r (configure.ac): ... to here.
18056
18057 2011-05-22  Bruno Haible  <bruno@clisp.org>
18058
18059         timegm: Move AC_LIBOBJ invocations to module description.
18060         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18061         invocations from here...
18062         * modules/timegm (configure.ac): ... to here.
18063
18064 2011-05-22  Bruno Haible  <bruno@clisp.org>
18065
18066         tcgetsid: Move AC_LIBOBJ invocations to module description.
18067         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
18068         and gl_PREREQ_TCGETSID invocations from here...
18069         * modules/tcgetsid (configure.ac): ... to here.
18070         (Depends-on): Update conditions.
18071
18072 2011-05-22  Bruno Haible  <bruno@clisp.org>
18073
18074         symlinkat: Move AC_LIBOBJ invocations to module description.
18075         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
18076         here...
18077         * modules/symlinkat (configure.ac): ... to here.
18078
18079 2011-05-22  Bruno Haible  <bruno@clisp.org>
18080
18081         symlink: Move AC_LIBOBJ invocations to module description.
18082         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
18083         here...
18084         * modules/symlink (configure.ac): ... to here.
18085
18086 2011-05-22  Bruno Haible  <bruno@clisp.org>
18087
18088         strverscmp: Move AC_LIBOBJ invocations to module description.
18089         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
18090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
18091         from here...
18092         * modules/strverscmp (configure.ac): ... to here.
18093
18094 2011-05-22  Bruno Haible  <bruno@clisp.org>
18095
18096         strtok_r: Move AC_LIBOBJ invocations to module description.
18097         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
18098         and gl_PREREQ_STRTOK_R invocations from here...
18099         * modules/strtok_r (configure.ac): ... to here.
18100         (Depends-on): Update conditions.
18101
18102 2011-05-22  Bruno Haible  <bruno@clisp.org>
18103
18104         strtoumax: Move AC_LIBOBJ invocations to module description.
18105         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
18106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
18107         from here...
18108         * modules/strtoumax (configure.ac): ... to here.
18109
18110 2011-05-22  Bruno Haible  <bruno@clisp.org>
18111
18112         strtoimax: Move AC_LIBOBJ invocations to module description.
18113         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
18114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
18115         from here...
18116         * modules/strtoimax (configure.ac): ... to here.
18117
18118 2011-05-22  Bruno Haible  <bruno@clisp.org>
18119
18120         strtoull: Move AC_LIBOBJ invocations to module description.
18121         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
18122         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
18123         from here...
18124         * modules/strtoull (configure.ac): ... to here.
18125
18126 2011-05-22  Bruno Haible  <bruno@clisp.org>
18127
18128         strtoll: Move AC_LIBOBJ invocations to module description.
18129         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
18130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
18131         here...
18132         * modules/strtoll (configure.ac): ... to here.
18133
18134 2011-05-22  Bruno Haible  <bruno@clisp.org>
18135
18136         strtoul: Move AC_LIBOBJ invocations to module description.
18137         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
18138         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18139         * modules/strtoul (configure.ac): ... to here.
18140
18141 2011-05-22  Bruno Haible  <bruno@clisp.org>
18142
18143         strtol: Move AC_LIBOBJ invocations to module description.
18144         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
18145         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
18146         * modules/strtol (configure.ac): ... to here.
18147
18148 2011-05-22  Bruno Haible  <bruno@clisp.org>
18149
18150         strtod: Move AC_LIBOBJ invocations to module description.
18151         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
18152         invocations from here...
18153         * modules/strtod (configure.ac): ... to here.
18154
18155 2011-05-22  Bruno Haible  <bruno@clisp.org>
18156
18157         strstr*: Move AC_LIBOBJ invocations to module description.
18158         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
18159         invocations from here...
18160         * modules/strstr-simple (configure.ac): ... to here.
18161         * modules/strstr (configure.ac): ... and here.
18162
18163 2011-05-22  Bruno Haible  <bruno@clisp.org>
18164
18165         strsignal: Move AC_LIBOBJ invocations to module description.
18166         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
18167         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
18168         * modules/strsignal (configure.ac): ... to here.
18169         (Depends-on): Update conditions.
18170
18171 2011-05-22  Bruno Haible  <bruno@clisp.org>
18172
18173         strsep: Move AC_LIBOBJ invocations to module description.
18174         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
18175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
18176         here...
18177         * modules/strsep (configure.ac): ... to here.
18178
18179 2011-05-22  Bruno Haible  <bruno@clisp.org>
18180
18181         strptime: Move AC_LIBOBJ invocations to module description.
18182         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
18183         gl_PREREQ_STRPTIME invocations from here...
18184         * modules/strptime (configure.ac): ... to here.
18185
18186 2011-05-22  Bruno Haible  <bruno@clisp.org>
18187
18188         strpbrk: Move AC_LIBOBJ invocations to module description.
18189         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
18190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
18191         here...
18192         * modules/strpbrk (configure.ac): ... to here.
18193
18194 2011-05-22  Bruno Haible  <bruno@clisp.org>
18195
18196         strnlen: Move AC_LIBOBJ invocations to module description.
18197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
18198         invocations from here...
18199         * modules/strnlen (configure.ac): ... to here.
18200
18201 2011-05-22  Bruno Haible  <bruno@clisp.org>
18202
18203         strndup: Move AC_LIBOBJ invocations to module description.
18204         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
18205         invocations from here...
18206         * modules/strndup (configure.ac): ... to here.
18207         (Depends-on): Update conditions.
18208
18209 2011-05-22  Bruno Haible  <bruno@clisp.org>
18210
18211         strncat: Move AC_LIBOBJ invocations to module description.
18212         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
18213         invocations from here...
18214         * modules/strncat (configure.ac): ... to here.
18215
18216 2011-05-22  Bruno Haible  <bruno@clisp.org>
18217
18218         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
18219         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
18220         invocations from here...
18221         * modules/strdup (configure.ac): ... to here.
18222         * modules/strdup-posix (configure.ac): ... and here.
18223
18224 2011-05-22  Bruno Haible  <bruno@clisp.org>
18225
18226         strcspn: Move AC_LIBOBJ invocations to module description.
18227         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
18228         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
18229         here...
18230         * modules/strcspn (configure.ac): ... to here.
18231
18232 2011-05-22  Bruno Haible  <bruno@clisp.org>
18233
18234         strchrnul: Move AC_LIBOBJ invocations to module description.
18235         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
18236         gl_PREREQ_STRCHRNUL invocations from here...
18237         * modules/strchrnul (configure.ac): ... to here.
18238
18239 2011-05-22  Bruno Haible  <bruno@clisp.org>
18240
18241         strcasestr*: Move AC_LIBOBJ invocations to module description.
18242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18243         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
18244         * modules/strcasestr-simple (configure.ac): ... to here.
18245         * modules/strcasestr (configure.ac): ... and here.
18246
18247 2011-05-22  Bruno Haible  <bruno@clisp.org>
18248
18249         strcase: Move AC_LIBOBJ invocations to module description.
18250         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
18251         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
18252         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
18253         gl_PREREQ_STRNCASECMP invocations from here...
18254         * modules/strcase (configure.ac): ... to here.
18255
18256 2011-05-22  Bruno Haible  <bruno@clisp.org>
18257
18258         stpncpy: Move AC_LIBOBJ invocations to module description.
18259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
18260         here...
18261         * modules/stpncpy (configure.ac): ... to here.
18262
18263 2011-05-22  Bruno Haible  <bruno@clisp.org>
18264
18265         stpcpy: Move AC_LIBOBJ invocations to module description.
18266         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
18267         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
18268         here...
18269         * modules/stpcpy (configure.ac): ... to here.
18270
18271 2011-05-21  Bruno Haible  <bruno@clisp.org>
18272
18273         stat: Move AC_LIBOBJ invocations to module description.
18274         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
18275         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
18276         here...
18277         * modules/stat (configure.ac): ... to here.
18278
18279 2011-05-21  Bruno Haible  <bruno@clisp.org>
18280
18281         sleep: Move AC_LIBOBJ invocations to module description.
18282         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
18283         * modules/sleep (configure.ac): ... to here.
18284
18285 2011-05-21  Bruno Haible  <bruno@clisp.org>
18286
18287         signbit: Move AC_LIBOBJ invocations to module description.
18288         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
18289         * modules/signbit (configure.ac): ... to here.
18290
18291 2011-05-21  Bruno Haible  <bruno@clisp.org>
18292
18293         sigprocmask: Move AC_LIBOBJ invocations to module description.
18294         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
18295         gl_PREREQ_SIGPROMASK invocations from here...
18296         * modules/sigprocmask (configure.ac): ... to here.
18297
18298 2011-05-21  Bruno Haible  <bruno@clisp.org>
18299
18300         sigaction: Move AC_LIBOBJ invocations to module description.
18301         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
18302         gl_PREREQ_SIGACTION invocations from here...
18303         * modules/sigaction (configure.ac): ... to here.
18304
18305 2011-05-21  Bruno Haible  <bruno@clisp.org>
18306
18307         sig2str: Move AC_LIBOBJ invocations to module description.
18308         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
18309         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
18310         here...
18311         * modules/sig2str (configure.ac): ... to here.
18312
18313 2011-05-21  Bruno Haible  <bruno@clisp.org>
18314
18315         setlocale: Move AC_LIBOBJ invocations to module description.
18316         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
18317         gl_PREREQ_SETLOCALE invocations from here...
18318         * modules/setlocale (configure.ac): ... to here.
18319
18320 2011-05-21  Bruno Haible  <bruno@clisp.org>
18321
18322         unsetenv: Move AC_LIBOBJ invocations to module description.
18323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
18324         and gl_PREREQ_UNSETENV invocations from here...
18325         * modules/unsetenv (configure.ac): ... to here.
18326         (Depends-on): Update.
18327
18328 2011-05-21  Bruno Haible  <bruno@clisp.org>
18329
18330         setenv: Move AC_LIBOBJ invocations to module description.
18331         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
18332         here...
18333         * modules/setenv (configure.ac): ... to here.
18334
18335 2011-05-21  Bruno Haible  <bruno@clisp.org>
18336
18337         selinux-h: Move AC_LIBOBJ invocations to module description.
18338         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
18339         AC_LIBOBJ invocation from here...
18340         * modules/selinux-h (configure.ac): ... to here.
18341
18342 2011-05-21  Bruno Haible  <bruno@clisp.org>
18343
18344         select: Respect rules for use of AC_LIBOBJ.
18345         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
18346         here...
18347         * modules/select (configure.ac): ... to here.
18348
18349 2011-05-21  Bruno Haible  <bruno@clisp.org>
18350
18351         scandir: Move AC_LIBOBJ invocations to module description.
18352         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
18353         invocations from here...
18354         * modules/scandir (configure.ac): ... to here.
18355
18356 2011-05-21  Bruno Haible  <bruno@clisp.org>
18357
18358         rpmatch: Move AC_LIBOBJ invocations to module description.
18359         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
18360         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
18361         here...
18362         * modules/rpmatch (configure.ac): ... to here.
18363
18364 2011-05-21  Bruno Haible  <bruno@clisp.org>
18365
18366         rmdir: Respect rules for use of AC_LIBOBJ.
18367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
18368         * modules/rmdir (configure.ac): ... to here.
18369
18370 2011-05-21  Bruno Haible  <bruno@clisp.org>
18371
18372         renameat: Move AC_LIBOBJ invocations to module description.
18373         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
18374         here...
18375         * modules/renameat (configure.ac): ... to here.
18376
18377 2011-05-21  Bruno Haible  <bruno@clisp.org>
18378
18379         rename: Respect rules for use of AC_LIBOBJ.
18380         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
18381         here...
18382         * modules/rename (configure.ac): ... to here.
18383
18384 2011-05-21  Bruno Haible  <bruno@clisp.org>
18385
18386         remove: Move AC_LIBOBJ invocations to module description.
18387         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
18388         here...
18389         * modules/remove (configure.ac): ... to here.
18390
18391 2011-05-21  Bruno Haible  <bruno@clisp.org>
18392
18393         relocatable-lib: Move AC_LIBOBJ invocations to module description.
18394         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
18395         macro.
18396         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
18397         * modules/relocatable-lib (configure.ac): ... to here.
18398         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18399         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
18400
18401 2011-05-21  Bruno Haible  <bruno@clisp.org>
18402
18403         relocatable-prog: Move AC_LIBOBJ invocations to module description.
18404         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
18405         here...
18406         * modules/relocatable-prog (configure.ac): ... to here.
18407
18408 2011-05-21  Bruno Haible  <bruno@clisp.org>
18409
18410         regex: Move AC_LIBOBJ invocations to module description.
18411         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
18412         invocations from here...
18413         * modules/regex (configure.ac): ... to here.
18414
18415 2011-05-21  Bruno Haible  <bruno@clisp.org>
18416
18417         realloc-*: Move AC_LIBOBJ invocations to module description.
18418         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
18419         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
18420         AC_LIBOBJ invocations from here...
18421         * modules/realloc-gnu (configure.ac): ... to here.
18422         * modules/realloc-posix (configure.ac): ... and here.
18423
18424 2011-05-21  Bruno Haible  <bruno@clisp.org>
18425
18426         readutmp: Move AC_LIBOBJ invocations to module description.
18427         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
18428         * modules/readutmp (configure.ac): ... to here.
18429
18430 2011-05-21  Bruno Haible  <bruno@clisp.org>
18431
18432         readlinkat: Move AC_LIBOBJ invocations to module description.
18433         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
18434         here...
18435         * modules/readlinkat (configure.ac): ... to here.
18436
18437 2011-05-21  Bruno Haible  <bruno@clisp.org>
18438
18439         readlink: Move AC_LIBOBJ invocations to module description.
18440         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
18441         gl_PREREQ_READLINK invocations from here...
18442         * modules/readlink (configure.ac): ... to here.
18443
18444 2011-05-21  Bruno Haible  <bruno@clisp.org>
18445
18446         readline: Move AC_LIBOBJ invocations to module description.
18447         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
18448         gl_PREREQ_READLINE invocations from here...
18449         * modules/readline (configure.ac): ... to here.
18450
18451 2011-05-21  Bruno Haible  <bruno@clisp.org>
18452
18453         read: Move AC_LIBOBJ invocations to module description.
18454         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
18455         * modules/read (configure.ac): ... to here.
18456
18457 2011-05-21  Bruno Haible  <bruno@clisp.org>
18458
18459         rawmemchr: Move AC_LIBOBJ invocations to module description.
18460         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
18461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
18462         from here...
18463         * modules/rawmemchr (configure.ac): ... to here.
18464
18465 2011-05-21  Bruno Haible  <bruno@clisp.org>
18466
18467         random_r: Move AC_LIBOBJ invocations to module description.
18468         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
18469         gl_PREREQ_RANDOM_R invocations from here...
18470         * modules/random_r (configure.ac): ... to here.
18471
18472 2011-05-21  Bruno Haible  <bruno@clisp.org>
18473
18474         pwrite: Move AC_LIBOBJ invocations to module description.
18475         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
18476         * modules/pwrite (configure.ac): ... to here.
18477
18478 2011-05-21  Bruno Haible  <bruno@clisp.org>
18479
18480         putenv: Move AC_LIBOBJ invocations to module description.
18481         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
18482         * modules/putenv (configure.ac): ... to here.
18483
18484 2011-05-21  Bruno Haible  <bruno@clisp.org>
18485
18486         login_tty: Move AC_LIBOBJ invocations to module description.
18487         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
18488         * modules/login_tty (configure.ac): ... to here.
18489
18490 2011-05-21  Bruno Haible  <bruno@clisp.org>
18491
18492         openpty: Move AC_LIBOBJ invocations to module description.
18493         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
18494         * modules/openpty (configure.ac): ... to here.
18495
18496 2011-05-21  Bruno Haible  <bruno@clisp.org>
18497
18498         forkpty: Move AC_LIBOBJ invocations to module description.
18499         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
18500         * modules/forkpty (configure.ac): ... to here.
18501
18502 2011-05-21  Bruno Haible  <bruno@clisp.org>
18503
18504         ptsname: Move AC_LIBOBJ invocations to module description.
18505         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
18506         invocations from here...
18507         * modules/ptsname (configure.ac): ... to here.
18508
18509 2011-05-21  Bruno Haible  <bruno@clisp.org>
18510
18511         pread: Move AC_LIBOBJ invocations to module description.
18512         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
18513         * modules/pread (configure.ac): ... to here.
18514
18515 2011-05-21  Bruno Haible  <bruno@clisp.org>
18516
18517         posix_spawn*: Move AC_LIBOBJ invocations to module description.
18518         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
18519         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
18520         * modules/posix_spawn (configure.ac): ... to here.
18521         * modules/posix_spawnp (configure.ac): ... and here.
18522
18523 2011-05-21  Bruno Haible  <bruno@clisp.org>
18524
18525         popen: Move AC_LIBOBJ invocations to module description.
18526         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
18527         invocations from here...
18528         * modules/popen (configure.ac): ... to here.
18529
18530 2011-05-21  Bruno Haible  <bruno@clisp.org>
18531
18532         poll: Move AC_LIBOBJ invocations to module description.
18533         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
18534         invocations from here...
18535         * modules/poll (configure.ac): ... to here.
18536
18537 2011-05-21  Bruno Haible  <bruno@clisp.org>
18538
18539         pipe-posix: Move AC_LIBOBJ invocations to module description.
18540         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
18541         * modules/pipe-posix (configure.ac): ... to here.
18542
18543 2011-05-21  Bruno Haible  <bruno@clisp.org>
18544
18545         openat: Respect rules for use of AC_LIBOBJ.
18546         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
18547         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18548         * modules/openat (configure.ac): ... to here.
18549
18550 2011-05-21  Bruno Haible  <bruno@clisp.org>
18551
18552         obstack-printf*: Move AC_LIBOBJ invocations to module description.
18553         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
18554         invocation from here...
18555         * modules/obstack-printf (configure.ac): ... to here.
18556         * modules/obstack-printf-posix (configure.ac): ... and here.
18557
18558 2011-05-21  Bruno Haible  <bruno@clisp.org>
18559
18560         nl_langinfo: Move AC_LIBOBJ invocations to module description.
18561         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
18562         from here...
18563         * modules/nl_langinfo (configure.ac): ... to here.
18564
18565 2011-05-21  Bruno Haible  <bruno@clisp.org>
18566
18567         nanosleep: Move AC_LIBOBJ invocations to module description.
18568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
18569         gl_PREREQ_NANOSLEEP invocations from here...
18570         * modules/nanosleep (configure.ac): ... to here.
18571
18572 2011-05-21  Bruno Haible  <bruno@clisp.org>
18573
18574         mountlist: Move AC_LIBOBJ invocations to module description.
18575         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
18576         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
18577         * modules/mountlist (configure.ac): ... to here.
18578
18579 2011-05-21  Bruno Haible  <bruno@clisp.org>
18580
18581         mktime: Respect rules for use of AC_LIBOBJ.
18582         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
18583         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
18584         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
18585         (gl_FUNC_MKTIME_INTERNAL): ... and here...
18586         * modules/mktime (configure.ac): ... to here.
18587         * modules/mktime-internal (configure.ac): ... and here.
18588         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
18589
18590 2011-05-21  Bruno Haible  <bruno@clisp.org>
18591
18592         mkstemps: Move AC_LIBOBJ invocations to module description.
18593         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
18594         here...
18595         * modules/mkstemps (configure.ac): ... to here.
18596
18597 2011-05-21  Bruno Haible  <bruno@clisp.org>
18598
18599         mkstemp: Move AC_LIBOBJ invocations to module description.
18600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
18601         gl_PREREQ_MKSTEMP invocations from here...
18602         * modules/mkstemp (configure.ac): ... to here.
18603
18604 2011-05-21  Bruno Haible  <bruno@clisp.org>
18605
18606         mkostemps: Move AC_LIBOBJ invocations to module description.
18607         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
18608         here...
18609         * modules/mkostemps (configure.ac): ... to here.
18610
18611 2011-05-21  Bruno Haible  <bruno@clisp.org>
18612
18613         mkostemp: Move AC_LIBOBJ invocations to module description.
18614         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
18615         gl_PREREQ_MKOSTEMP invocations from here...
18616         * modules/mkostemp (configure.ac): ... to here.
18617
18618 2011-05-21  Bruno Haible  <bruno@clisp.org>
18619
18620         mknod: Move AC_LIBOBJ invocations to module description.
18621         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
18622         * modules/mknod (configure.ac): ... to here.
18623
18624 2011-05-21  Bruno Haible  <bruno@clisp.org>
18625
18626         mkfifoat: Move AC_LIBOBJ invocations to module description.
18627         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
18628         here...
18629         * modules/mkfifoat (configure.ac): ... to here.
18630
18631 2011-05-21  Bruno Haible  <bruno@clisp.org>
18632
18633         mkfifo: Respect rules for use of AC_LIBOBJ.
18634         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
18635         here...
18636         * modules/mkfifo (configure.ac): ... to here.
18637
18638 2011-05-21  Bruno Haible  <bruno@clisp.org>
18639
18640         mkdtemp: Move AC_LIBOBJ invocations to module description.
18641         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
18642         invocations from here...
18643         * modules/mkdtemp (configure.ac): ... to here.
18644
18645 2011-05-21  Bruno Haible  <bruno@clisp.org>
18646
18647         mkdir: Move AC_LIBOBJ invocations to module description.
18648         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
18649         * modules/mkdir (configure.ac): ... to here.
18650
18651 2011-05-21  Bruno Haible  <bruno@clisp.org>
18652
18653         memset: Move AC_LIBOBJ invocations to module description.
18654         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
18655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
18656         here...
18657         * modules/memset (configure.ac): ... to here.
18658
18659 2011-05-21  Bruno Haible  <bruno@clisp.org>
18660
18661         memrchr: Move AC_LIBOBJ invocations to module description.
18662         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
18663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
18664         here...
18665         * modules/memrchr (configure.ac): ... to here.
18666
18667 2011-05-21  Bruno Haible  <bruno@clisp.org>
18668
18669         mempcpy: Move AC_LIBOBJ invocations to module description.
18670         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
18671         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
18672         here...
18673         * modules/mempcpy (configure.ac): ... to here.
18674
18675 2011-05-21  Bruno Haible  <bruno@clisp.org>
18676
18677         memmove: Move AC_LIBOBJ invocations to module description.
18678         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
18679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
18680         here...
18681         * modules/memmove (configure.ac): ... to here.
18682
18683 2011-05-21  Bruno Haible  <bruno@clisp.org>
18684
18685         memmem*: Move AC_LIBOBJ invocations to module description.
18686         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
18687         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
18688         here...
18689         (gl_FUNC_MEMMEM): ... and here...
18690         * modules/memmem-simple (configure.ac): ... to here.
18691         * modules/memmem (configure.ac): ... and here.
18692
18693 2011-05-21  Bruno Haible  <bruno@clisp.org>
18694
18695         memcpy: Move AC_LIBOBJ invocations to module description.
18696         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
18697         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
18698         here...
18699         * modules/memcpy (configure.ac): ... to here.
18700
18701 2011-05-21  Bruno Haible  <bruno@clisp.org>
18702
18703         memcmp: Simplify autoconf macro.
18704         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
18705         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
18706         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
18707
18708 2011-05-21  Bruno Haible  <bruno@clisp.org>
18709
18710         memcmp: Move AC_LIBOBJ invocations to module description.
18711         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
18712         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
18713         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
18714         * modules/memcmp (configure.ac): ... to here.
18715         (Depends-on): Update conditions.
18716
18717 2011-05-21  Bruno Haible  <bruno@clisp.org>
18718
18719         memchr: Respect rules for use of AC_LIBOBJ.
18720         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
18721         invocations from here...
18722         * modules/memchr (configure.ac): ... to here.
18723
18724 2011-05-21  Bruno Haible  <bruno@clisp.org>
18725
18726         mbtowc: Move AC_LIBOBJ invocations to module description.
18727         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
18728         invocations from here...
18729         * modules/mbtowc (configure.ac): ... to here.
18730
18731 2011-05-21  Bruno Haible  <bruno@clisp.org>
18732
18733         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
18734         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
18735         gl_PREREQ_MBSRTOWCS invocations from here...
18736         * modules/mbsrtowcs (configure.ac): ... to here.
18737
18738 2011-05-21  Bruno Haible  <bruno@clisp.org>
18739
18740         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
18741         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
18742         gl_PREREQ_MBSNRTOWCS invocations from here...
18743         * modules/mbsnrtowcs (configure.ac): ... to here.
18744
18745 2011-05-21  Bruno Haible  <bruno@clisp.org>
18746
18747         mbsinit: Move AC_LIBOBJ invocations to module description.
18748         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
18749         invocations from here...
18750         * modules/mbsinit (configure.ac): ... to here.
18751
18752 2011-05-21  Bruno Haible  <bruno@clisp.org>
18753
18754         mbrlen: Move AC_LIBOBJ invocations to module description.
18755         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
18756         invocations from here...
18757         * modules/mbrlen (configure.ac): ... to here.
18758
18759 2011-05-21  Bruno Haible  <bruno@clisp.org>
18760
18761         mbrtowc: Respect rules for use of AC_LIBOBJ.
18762         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
18763         invocations from here...
18764         * modules/mbrtowc (configure.ac): ... to here.
18765
18766 2011-05-21  Bruno Haible  <bruno@clisp.org>
18767
18768         malloc-*: Move AC_LIBOBJ invocations to module description.
18769         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
18770         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
18771         AC_LIBOBJ invocations from here...
18772         * modules/malloc-gnu (configure.ac): ... to here.
18773         * modules/malloc-posix (configure.ac): ... and here.
18774
18775 2011-05-21  Bruno Haible  <bruno@clisp.org>
18776
18777         lstat, openat: Respect rules for use of AC_LIBOBJ.
18778         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
18779         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
18780         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
18781         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
18782         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
18783         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
18784         here.
18785         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18786
18787 2011-05-21  Bruno Haible  <bruno@clisp.org>
18788
18789         lseek: Move AC_LIBOBJ invocations to module description.
18790         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
18791         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18792         * modules/lseek (configure.ac): ... to here.
18793
18794 2011-05-21  Bruno Haible  <bruno@clisp.org>
18795
18796         linkat: Move AC_LIBOBJ invocations to module description.
18797         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
18798         here...
18799         * modules/linkat (configure.ac): ... to here.
18800
18801 2011-05-21  Bruno Haible  <bruno@clisp.org>
18802
18803         link: Respect rules for use of AC_LIBOBJ.
18804         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
18805         * modules/link (configure.ac): ... to here.
18806
18807 2011-05-21  Bruno Haible  <bruno@clisp.org>
18808
18809         lchown: Move AC_LIBOBJ invocations to module description.
18810         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18811         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
18812         * modules/lchown (configure.ac): ... to here.
18813
18814 2011-05-21  Bruno Haible  <bruno@clisp.org>
18815
18816         iswctype: Move AC_LIBOBJ invocations to module description.
18817         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
18818         here...
18819         * modules/iswctype (configure.ac): ... to here.
18820
18821 2011-05-21  Bruno Haible  <bruno@clisp.org>
18822
18823         iswblank: Move AC_LIBOBJ invocations to module description.
18824         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
18825         here...
18826         * modules/iswblank (configure.ac): ... to here.
18827
18828 2011-05-21  Bruno Haible  <bruno@clisp.org>
18829
18830         atanl: Move AC_LIBOBJ invocations to module description.
18831         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18832         * modules/atanl (configure.ac): ... to here.
18833
18834 2011-05-21  Bruno Haible  <bruno@clisp.org>
18835
18836         acosl: Move AC_LIBOBJ invocations to module description.
18837         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18838         * modules/acosl (configure.ac): ... to here.
18839
18840 2011-05-21  Bruno Haible  <bruno@clisp.org>
18841
18842         asinl: Respect rules for use of AC_LIBOBJ.
18843         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18844         * modules/asinl (configure.ac): ... to here.
18845
18846 2011-05-21  Bruno Haible  <bruno@clisp.org>
18847
18848         tanl: Move AC_LIBOBJ invocations to module description.
18849         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18850         * modules/tanl (configure.ac): ... to here.
18851
18852 2011-05-21  Bruno Haible  <bruno@clisp.org>
18853
18854         cosl: Move AC_LIBOBJ invocations to module description.
18855         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18856         * modules/cosl (configure.ac): ... to here.
18857
18858 2011-05-21  Bruno Haible  <bruno@clisp.org>
18859
18860         sinl: Move AC_LIBOBJ invocations to module description.
18861         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18862         * modules/sinl (configure.ac): ... to here.
18863
18864 2011-05-21  Bruno Haible  <bruno@clisp.org>
18865
18866         logl: Move AC_LIBOBJ invocations to module description.
18867         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18868         * modules/logl (configure.ac): ... to here.
18869
18870 2011-05-21  Bruno Haible  <bruno@clisp.org>
18871
18872         expl: Move AC_LIBOBJ invocations to module description.
18873         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18874         * modules/expl (configure.ac): ... to here.
18875
18876 2011-05-21  Bruno Haible  <bruno@clisp.org>
18877
18878         roundl: Move AC_LIBOBJ invocations to module description.
18879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18880         * modules/roundl (configure.ac): ... to here.
18881
18882 2011-05-21  Bruno Haible  <bruno@clisp.org>
18883
18884         round: Move AC_LIBOBJ invocations to module description.
18885         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18886         * modules/round (configure.ac): ... to here.
18887
18888 2011-05-21  Bruno Haible  <bruno@clisp.org>
18889
18890         roundf: Move AC_LIBOBJ invocations to module description.
18891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18892         * modules/roundf (configure.ac): ... to here.
18893
18894 2011-05-21  Bruno Haible  <bruno@clisp.org>
18895
18896         truncl: Move AC_LIBOBJ invocations to module description.
18897         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18898         * modules/truncl (configure.ac): ... to here.
18899
18900 2011-05-21  Bruno Haible  <bruno@clisp.org>
18901
18902         trunc: Move AC_LIBOBJ invocations to module description.
18903         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18904         * modules/trunc (configure.ac): ... to here.
18905
18906 2011-05-21  Bruno Haible  <bruno@clisp.org>
18907
18908         truncf: Move AC_LIBOBJ invocations to module description.
18909         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18910         * modules/truncf (configure.ac): ... to here.
18911
18912 2011-05-21  Bruno Haible  <bruno@clisp.org>
18913
18914         ceill: Move AC_LIBOBJ invocations to module description.
18915         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18916         * modules/ceill (configure.ac): ... to here.
18917
18918 2011-05-21  Bruno Haible  <bruno@clisp.org>
18919
18920         ceil: Move AC_LIBOBJ invocations to module description.
18921         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18922         * modules/ceil (configure.ac): ... to here.
18923
18924 2011-05-21  Bruno Haible  <bruno@clisp.org>
18925
18926         ceilf: Move AC_LIBOBJ invocations to module description.
18927         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18928         * modules/ceilf (configure.ac): ... to here.
18929
18930 2011-05-21  Bruno Haible  <bruno@clisp.org>
18931
18932         floorl: Respect rules for use of AC_LIBOBJ.
18933         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18934         * modules/floorl (configure.ac): ... to here.
18935
18936 2011-05-21  Bruno Haible  <bruno@clisp.org>
18937
18938         floor: Respect rules for use of AC_LIBOBJ.
18939         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18940         * modules/floor (configure.ac): ... to here.
18941
18942 2011-05-21  Bruno Haible  <bruno@clisp.org>
18943
18944         floorf: Move AC_LIBOBJ invocations to module description.
18945         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18946         * modules/floorf (configure.ac): ... to here.
18947
18948 2011-05-20  Bruno Haible  <bruno@clisp.org>
18949
18950         sqrtl: Respect rules for use of AC_LIBOBJ.
18951         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18952         * modules/sqrtl (configure.ac): ... to here.
18953
18954 2011-05-20  Bruno Haible  <bruno@clisp.org>
18955
18956         ldexpl: Respect rules for use of AC_LIBOBJ.
18957         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18958         * modules/ldexpl (configure.ac): ... to here.
18959
18960 2011-05-20  Bruno Haible  <bruno@clisp.org>
18961
18962         frexpl*: Respect rules for use of AC_LIBOBJ.
18963         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18964         invocation from here...
18965         * modules/frexpl (configure.ac): ... to here.
18966         * modules/frexpl-nolibm (configure.ac): ... and here.
18967
18968 2011-05-20  Bruno Haible  <bruno@clisp.org>
18969
18970         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18971         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18972         invocation from here...
18973         * modules/frexp (configure.ac): ... to here.
18974         * modules/frexp-nolibm (configure.ac): ... and here.
18975
18976 2011-05-20  Bruno Haible  <bruno@clisp.org>
18977
18978         isnan: Respect rules for use of AC_LIBOBJ.
18979         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18980         invocations here.
18981         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18982         REPLACE_ISNAN.
18983         * modules/isnand (configure.ac): Likewise.
18984         * modules/isnanl (configure.ac): Likewise.
18985
18986 2011-05-20  Bruno Haible  <bruno@clisp.org>
18987
18988         isnanl*: Respect rules for use of AC_LIBOBJ.
18989         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18990         invocation from here...
18991         * modules/isnanl (configure.ac): ... to here.
18992         * modules/isnanl-nolibm (configure.ac): ... and here.
18993
18994 2011-05-20  Bruno Haible  <bruno@clisp.org>
18995
18996         isnand*: Move AC_LIBOBJ invocations to module description.
18997         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18998         invocation from here...
18999         * modules/isnand (configure.ac): ... to here.
19000         * modules/isnand-nolibm (configure.ac): ... and here.
19001
19002 2011-05-20  Bruno Haible  <bruno@clisp.org>
19003
19004         isnanf*: Move AC_LIBOBJ invocations to module description.
19005         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19006         invocation from here...
19007         * modules/isnanf (configure.ac): ... to here.
19008         * modules/isnanf-nolibm (configure.ac): ... and here.
19009
19010 2011-05-20  Bruno Haible  <bruno@clisp.org>
19011
19012         isnan*: Separate the AC_LIBOBJ invocations.
19013         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19014         AC_LIBOBJ invocation.
19015         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19016         here.
19017         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19018         AC_LIBOBJ invocation.
19019         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19020         here.
19021         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19022         AC_LIBOBJ invocation.
19023         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19024         here.
19025         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19026
19027 2011-05-08  Bruno Haible  <bruno@clisp.org>
19028
19029         isinf: Move AC_LIBOBJ invocations to module description.
19030         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19031         * modules/isinf (configure.ac): ... to here.
19032
19033 2011-05-08  Bruno Haible  <bruno@clisp.org>
19034
19035         isfinite: Move AC_LIBOBJ invocations to module description.
19036         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19037         * modules/isfinite (configure.ac): ... to here.
19038
19039 2011-05-08  Bruno Haible  <bruno@clisp.org>
19040
19041         isblank: Move AC_LIBOBJ invocations to module description.
19042         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19043         here...
19044         * modules/isblank (configure.ac): ... to here.
19045
19046 2011-05-08  Bruno Haible  <bruno@clisp.org>
19047
19048         isapipe: Move AC_LIBOBJ invocations to module description.
19049         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19050         gl_PREREQ_ISAPIPE invocations from here...
19051         * modules/isapipe (configure.ac): ... to here.
19052         (Depends-on): Update condition.
19053
19054 2011-05-08  Bruno Haible  <bruno@clisp.org>
19055
19056         ioctl: Move AC_LIBOBJ invocations to module description.
19057         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19058         invocations from here...
19059         * modules/ioctl (configure.ac): ... to here.
19060         (Depends-on): Update condition.
19061
19062 2011-05-08  Bruno Haible  <bruno@clisp.org>
19063
19064         imaxdiv: Move AC_LIBOBJ invocations to module description.
19065         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
19066         invocations from here...
19067         * modules/imaxdiv (configure.ac): ... to here.
19068
19069 2011-05-08  Bruno Haible  <bruno@clisp.org>
19070
19071         imaxabs: Move AC_LIBOBJ invocations to module description.
19072         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
19073         invocations from here...
19074         * modules/imaxabs (configure.ac): ... to here.
19075
19076 2011-05-08  Bruno Haible  <bruno@clisp.org>
19077
19078         getaddrinfo: Move AC_LIBOBJ invocations to module description.
19079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
19080         AC_LIBOBJ invocations from here...
19081         * modules/getaddrinfo (configure.ac): ... to here.
19082         (Depends-on): Add conditions.
19083
19084 2011-05-08  Bruno Haible  <bruno@clisp.org>
19085
19086         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19087         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
19088         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19089         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
19090         (gl_PREREQ_INET_PTON): ... from here.
19091         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
19092         gl_PREREQ_INET_PTON here.
19093         (Depends-on): Update condition.
19094
19095 2011-05-08  Bruno Haible  <bruno@clisp.org>
19096
19097         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19098         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
19099         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
19100         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
19101         (gl_PREREQ_INET_NTOP): ... from here.
19102         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
19103         gl_PREREQ_INET_NTOP here.
19104         (Depends-on): Update condition.
19105
19106 2011-05-08  Bruno Haible  <bruno@clisp.org>
19107
19108         iconv_open: Move AC_LIBOBJ invocations to module description.
19109         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
19110         AC_LIBOBJ invocations from here...
19111         * modules/iconv_open (configure.ac): ... to here.
19112
19113 2011-05-08  Bruno Haible  <bruno@clisp.org>
19114
19115         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
19116         If module 'iconv_open' is among the main modules and module
19117         'iconv_open-utf' is among the tests dependencies, then
19118         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
19119         return the special iconv_t values. Therefore iconv() and iconv_close()
19120         must support these special iconv_t values, already in lib, not only in
19121         tests.
19122         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
19123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
19124         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
19125         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
19126         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
19127         (Depends-on): Add the dependencies of iconv_open-utf.
19128         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
19129         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
19130         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
19131
19132 2011-05-08  Bruno Haible  <bruno@clisp.org>
19133
19134         group-member: Move AC_LIBOBJ invocations to module description.
19135         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
19136         gl_PREREQ_GROUP_MEMBER invocations from here...
19137         * modules/group-member (configure.ac): ... to here.
19138
19139 2011-05-08  Bruno Haible  <bruno@clisp.org>
19140
19141         grantpt: Move AC_LIBOBJ invocations to module description.
19142         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
19143         invocations from here...
19144         * modules/grantpt (configure.ac): ... to here.
19145
19146 2011-05-08  Bruno Haible  <bruno@clisp.org>
19147
19148         glob: Move AC_LIBOBJ invocations to module description.
19149         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
19150         from here...
19151         * modules/glob (configure.ac): ... to here.
19152
19153 2011-05-08  Bruno Haible  <bruno@clisp.org>
19154
19155         getusershell: Move AC_LIBOBJ invocations to module description.
19156         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
19157         Move AC_LIBOBJ invocation from here...
19158         * modules/getusershell (configure.ac): ... to here.
19159         (Depends-on): Update condition.
19160
19161 2011-05-08  Bruno Haible  <bruno@clisp.org>
19162
19163         gettimeofday: Move AC_LIBOBJ invocations to module description.
19164         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
19165         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
19166         gl_PREREQ_GETTIMEOFDAY invocations from here...
19167         * modules/gettimeofday (configure.ac): ... to here.
19168
19169 2011-05-08  Bruno Haible  <bruno@clisp.org>
19170
19171         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
19172         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
19173         just gl_FUNC_TZSET.
19174         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
19175         (gl_FUNC_TZSET_CLOBBER): Remove actions.
19176         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
19177         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
19178
19179 2011-05-08  Bruno Haible  <bruno@clisp.org>
19180
19181         getsubopt: Move AC_LIBOBJ invocations to module description.
19182         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
19183         gl_PREREQ_GETSUBOPT invocations from here...
19184         * modules/getsubopt (configure.ac): ... to here.
19185
19186 2011-05-08  Bruno Haible  <bruno@clisp.org>
19187
19188         getpass-gnu: Move AC_LIBOBJ invocations to module description.
19189         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
19190         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
19191         * modules/getpass-gnu (configure.ac): ... to here.
19192
19193 2011-05-08  Bruno Haible  <bruno@clisp.org>
19194
19195         getpass: Move AC_LIBOBJ invocations to module description.
19196         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
19197         gl_PREREQ_GETPASS invocations from here...
19198         * modules/getpass (configure.ac): ... to here.
19199
19200 2011-05-08  Bruno Haible  <bruno@clisp.org>
19201
19202         getpagesize: Move AC_LIBOBJ invocations to module description.
19203         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
19204         from here...
19205         * modules/getpagesize (configure.ac): ... to here.
19206
19207 2011-05-08  Bruno Haible  <bruno@clisp.org>
19208
19209         getopt: Move AC_LIBOBJ invocations to module description.
19210         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
19211         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
19212         invocations from here...
19213         * modules/getopt-gnu (configure.ac): ... to here.
19214         * modules/getopt-posix (configure.ac): ... and here.
19215         (Depends-on): Update condition.
19216
19217 2011-05-08  Bruno Haible  <bruno@clisp.org>
19218
19219         getopt, argp: Respect rules for use of AC_LIBOBJ.
19220         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
19221         (gl_REPLACE_GETOPT_ALWAYS): New macro.
19222         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
19223         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
19224
19225 2011-05-08  Bruno Haible  <bruno@clisp.org>
19226
19227         getlogin_r: Move AC_LIBOBJ invocations to module description.
19228         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
19229         gl_PREREQ_GETLOGIN_R invocations from here...
19230         * modules/getlogin_r (configure.ac): ... to here.
19231
19232 2011-05-08  Bruno Haible  <bruno@clisp.org>
19233
19234         getlogin: Move AC_LIBOBJ invocations to module description.
19235         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
19236         here...
19237         * modules/getlogin (configure.ac): ... to here.
19238
19239 2011-05-08  Bruno Haible  <bruno@clisp.org>
19240
19241         getloadavg: Move AC_LIBOBJ invocations to module description.
19242         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
19243         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
19244         * modules/getloadavg (configure.ac): ... to here.
19245
19246 2011-05-08  Bruno Haible  <bruno@clisp.org>
19247
19248         gethrxtime: Move AC_LIBOBJ invocations to module description.
19249         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
19250         LIB_GETHRXTIME from here...
19251         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
19252         invocations from here...
19253         * modules/gethrxtime (configure.ac): ... to here.
19254
19255 2011-05-08  Bruno Haible  <bruno@clisp.org>
19256
19257         gethostname: Move AC_LIBOBJ invocations to module description.
19258         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
19259         gl_PREREQ_GETHOSTNAME invocations from here...
19260         * modules/gethostname (configure.ac): ... to here.
19261
19262 2011-05-08  Bruno Haible  <bruno@clisp.org>
19263
19264         getgroups: Move AC_LIBOBJ invocations to module description.
19265         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
19266         here...
19267         * modules/getgroups (configure.ac): ... to here.
19268
19269 2011-05-08  Bruno Haible  <bruno@clisp.org>
19270
19271         getdtablesize: Move AC_LIBOBJ invocations to module description.
19272         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
19273         invocation from here...
19274         * modules/getdtablesize (configure.ac): ... to here.
19275
19276 2011-05-08  Bruno Haible  <bruno@clisp.org>
19277
19278         getdomainname: Move AC_LIBOBJ invocations to module description.
19279         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
19280         gl_PREREQ_GETDOMAINNAME invocations from here...
19281         * modules/getdomainname (configure.ac): ... to here.
19282
19283 2011-05-08  Bruno Haible  <bruno@clisp.org>
19284
19285         getline: Move AC_LIBOBJ invocations to module description.
19286         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
19287         invocations from here...
19288         * modules/getline (configure.ac): ... to here.
19289
19290 2011-05-08  Bruno Haible  <bruno@clisp.org>
19291
19292         getline: Simplify.
19293         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
19294         It's already handled through the module dependency.
19295
19296 2011-05-08  Bruno Haible  <bruno@clisp.org>
19297
19298         getdelim: Move AC_LIBOBJ invocations to module description.
19299         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
19300         and gl_PREREQ_GETDELIM invocations from here...
19301         * modules/getdelim (configure.ac): ... to here.
19302         (Depends-on): Fix condition.
19303
19304 2011-05-08  Bruno Haible  <bruno@clisp.org>
19305
19306         getcwd: Move AC_LIBOBJ invocations to module description.
19307         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
19308         invocations from here...
19309         * modules/getcwd (configure.ac): ... to here.
19310
19311 2011-05-08  Bruno Haible  <bruno@clisp.org>
19312
19313         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
19314         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
19315         here...
19316         * modules/getcwd-lgpl (configure.ac): ... to here.
19317
19318 2011-05-07  Bruno Haible  <bruno@clisp.org>
19319
19320         crypto/gc: Move AC_LIBOBJ invocations to module description.
19321         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
19322         * modules/crypto/gc (configure.ac): ... to here.
19323
19324 2011-05-07  Bruno Haible  <bruno@clisp.org>
19325
19326         fwriting: Move AC_LIBOBJ invocations to module description.
19327         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
19328         here...
19329         * modules/fwriting (configure.ac): ... to here.
19330
19331 2011-05-07  Bruno Haible  <bruno@clisp.org>
19332
19333         fwritable: Move AC_LIBOBJ invocations to module description.
19334         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
19335         here...
19336         * modules/fwritable (configure.ac): ... to here.
19337
19338 2011-05-07  Bruno Haible  <bruno@clisp.org>
19339
19340         futimens: Move AC_LIBOBJ invocations to module description.
19341         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
19342         here...
19343         * modules/futimens (configure.ac): ... to here.
19344
19345 2011-05-07  Bruno Haible  <bruno@clisp.org>
19346
19347         ftruncate: Move AC_LIBOBJ invocations to module description.
19348         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
19349         gl_PREREQ_FTRUNCATE invocations from here...
19350         * modules/ftruncate (configure.ac): ... to here.
19351
19352 2011-05-07  Bruno Haible  <bruno@clisp.org>
19353
19354         fsync: Move AC_LIBOBJ invocations to module description.
19355         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
19356         invocations from here...
19357         * modules/fsync (configure.ac): ... to here.
19358
19359 2011-05-07  Bruno Haible  <bruno@clisp.org>
19360
19361         fsusage: Move AC_LIBOBJ invocations to module description.
19362         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
19363         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
19364         * modules/fsusage (configure.ac): ... to here.
19365
19366 2011-05-07  Bruno Haible  <bruno@clisp.org>
19367
19368         freopen: Move AC_LIBOBJ invocations to module description.
19369         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
19370         invocations from here...
19371         * modules/freopen (configure.ac): ... to here.
19372
19373 2011-05-07  Bruno Haible  <bruno@clisp.org>
19374
19375         free: Move AC_LIBOBJ invocations to module description.
19376         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
19377         invocations from here...
19378         * modules/free (configure.ac): ... to here.
19379
19380 2011-05-07  Bruno Haible  <bruno@clisp.org>
19381
19382         freadable: Move AC_LIBOBJ invocations to module description.
19383         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
19384         here...
19385         * modules/freadable (configure.ac): ... to here.
19386
19387 2011-05-07  Bruno Haible  <bruno@clisp.org>
19388
19389         fpurge: Move AC_LIBOBJ invocations to module description.
19390         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
19391         invocations from here...
19392         * modules/fpurge (configure.ac): ... to here.
19393
19394 2011-05-07  Bruno Haible  <bruno@clisp.org>
19395
19396         fpending: Move AC_LIBOBJ invocations to module description.
19397         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
19398         gl_FUNC_FPENDING.
19399         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
19400         invocations from here...
19401         * modules/fpending (configure.ac): ... to here.
19402
19403 2011-05-07  Bruno Haible  <bruno@clisp.org>
19404
19405         fopen: Move AC_LIBOBJ invocations to module description.
19406         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
19407         invocations from here...
19408         * modules/fopen (configure.ac): ... to here.
19409
19410 2011-05-07  Bruno Haible  <bruno@clisp.org>
19411
19412         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
19413         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
19414         gl_FUNC_FNMATCH_POSIX.
19415         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
19416         invocations from here...
19417         * modules/fnmatch (configure.ac): ... to here.
19418         * modules/fnmatch-gnu (configure.ac): ... and here.
19419
19420 2011-05-07  Bruno Haible  <bruno@clisp.org>
19421
19422         flock: Move AC_LIBOBJ invocations to module description.
19423         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
19424         invocations from here...
19425         * modules/flock (configure.ac): ... to here.
19426
19427 2011-05-07  Bruno Haible  <bruno@clisp.org>
19428
19429         fileblocks: Move AC_LIBOBJ invocations to module description.
19430         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
19431         gl_PREREQ_FILEBLOCKS invocations from here...
19432         * modules/fileblocks (configure.ac): ... to here.
19433
19434 2011-05-06  Bruno Haible  <bruno@clisp.org>
19435
19436         fflush: Move AC_LIBOBJ invocations to module description.
19437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
19438         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
19439         invocations from here...
19440         * modules/fflush (configure.ac): ... to here.
19441
19442 2011-05-06  Bruno Haible  <bruno@clisp.org>
19443
19444         fdopendir: Move AC_LIBOBJ invocations to module description.
19445         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
19446         here...
19447         * modules/fdopendir (configure.ac): ... to here.
19448         (Depends-on): Improve conditions.
19449
19450 2011-05-06  Bruno Haible  <bruno@clisp.org>
19451
19452         _Exit: Move AC_LIBOBJ invocations to module description.
19453         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
19454         invocations from here...
19455         * modules/_Exit (configure.ac): ... to here.
19456
19457 2011-05-21  Bruno Haible  <bruno@clisp.org>
19458
19459         euidaccess: Respect rules for use of AC_LIBOBJ.
19460         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19461         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
19462         from here...
19463         * modules/euidaccess (configure.ac): ... to here.
19464
19465 2011-05-06  Bruno Haible  <bruno@clisp.org>
19466
19467         error: Move AC_LIBOBJ invocations to module description.
19468         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
19469         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
19470         invocations from here...
19471         * modules/error (configure.ac): ... to here.
19472
19473 2011-05-06  Bruno Haible  <bruno@clisp.org>
19474
19475         duplocale: Move AC_LIBOBJ invocations to module description.
19476         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
19477         gl_PREREQ_DUPLOCALE invocations from here...
19478         * modules/duplocale (configure.ac): ... to here.
19479
19480 2011-05-05  Bruno Haible  <bruno@clisp.org>
19481
19482         dirfd: Move AC_LIBOBJ invocations to module description.
19483         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
19484         gl_FUNC_DIRFD.
19485         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
19486         here...
19487         * modules/dirfd (configure.ac): ... to here.
19488         (Depends-on): Fix condition.
19489
19490 2011-05-05  Bruno Haible  <bruno@clisp.org>
19491
19492         chown: Respect rules for use of AC_LIBOBJ.
19493         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
19494         * modules/chown (configure.ac): ... to here.
19495
19496 2011-05-05  Bruno Haible  <bruno@clisp.org>
19497
19498         chdir-long: Move AC_LIBOBJ invocations to module description.
19499         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
19500         gl_PREREQ_CHDIR_LONG invocations from here...
19501         * modules/chdir-long (configure.ac): ... to here.
19502
19503 2011-05-05  Bruno Haible  <bruno@clisp.org>
19504
19505         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
19506         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
19507         from here...
19508         * modules/canonicalize-lgpl (configure.ac): ... to here.
19509
19510 2011-05-05  Bruno Haible  <bruno@clisp.org>
19511
19512         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
19513         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
19514         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
19515         REPLACE_CALLOC.
19516         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
19517         * modules/calloc-gnu (configure.ac): Likewise.
19518
19519 2011-05-05  Bruno Haible  <bruno@clisp.org>
19520
19521         btowc: Move AC_LIBOBJ invocations to module description.
19522         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
19523         invocations from here...
19524         * modules/btowc (configure.ac): ... to here.
19525
19526 2011-05-21  Bruno Haible  <bruno@clisp.org>
19527
19528         atexit: Move AC_LIBOBJ invocations to module description.
19529         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
19530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
19531         here...
19532         * modules/atexit (configure.ac): ... to here.
19533
19534 2011-05-05  Bruno Haible  <bruno@clisp.org>
19535
19536         atoll: Move AC_LIBOBJ invocations to module description.
19537         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
19538         invocations from here...
19539         * modules/atoll (configure.ac): ... to here.
19540
19541 2011-05-05  Bruno Haible  <bruno@clisp.org>
19542
19543         argz: Move AC_LIBOBJ invocations to module description.
19544         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
19545         * modules/argz (configure.ac): ... to here.
19546
19547 2011-05-05  Bruno Haible  <bruno@clisp.org>
19548
19549         alphasort: Move AC_LIBOBJ invocations to module description.
19550         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
19551         gl_PREREQ_ALPHASORT invocations from here...
19552         * modules/alphasort (configure.ac): ... to here.
19553
19554 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19555
19556         verify: new macro verify_expr; verify_true deprecated
19557         * NEWS: Mention this.
19558         * doc/verify.texi (Compile-time Assertions): Document this.
19559         * lib/verify.h (verify_true): Deprecate.
19560         (verify_expr): New macro.
19561         * tests/test-verify.c (function): Test verify_expr.
19562
19563 2011-06-14  Jim Meyering  <meyering@redhat.com>
19564
19565         init.sh: give more portable redirection-related advice in a comment
19566         * tests/init.sh (stderr_fileno_): Update the advice in comments.
19567         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
19568         for lots of discussion.  Stefano Lattarini suggested the solution
19569         of putting "9>&2" after the command.  Reported by Bruno Haible.
19570
19571 2011-06-13  Bruno Haible  <bruno@clisp.org>
19572
19573         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
19574         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
19575         'none'.
19576
19577 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
19578
19579         ftoastr: use strtof only if HAVE_STRTOF
19580         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
19581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
19582         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
19583         * modules/ftoastr (configure.ac): Check for strtof.
19584
19585 2011-06-13  Bruno Haible  <bruno@clisp.org>
19586
19587         gnulib-tool: Addendum to 2011-06-08 commit.
19588         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
19589         and --witness-c-macro have been given, augment AM_CPPFLAGS.
19590
19591 2011-06-13  Bruno Haible  <bruno@clisp.org>
19592
19593         fseeko: Provide a non-inline replacement of fseek().
19594         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
19595         * modules/fseeko (Depends-on): Add fseek.
19596         * modules/fseek (License): Change to LGPLv2+.
19597
19598 2011-06-13  Bruno Haible  <bruno@clisp.org>
19599
19600         ftello: Provide a non-inline replacement of ftell().
19601         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
19602         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
19603         not have ftello() (such as on mingw).
19604         * modules/ftello (Depends-on): Add ftell.
19605         * modules/ftell (License): Change to LGPLv2+.
19606
19607 2011-05-07  Bruno Haible  <bruno@clisp.org>
19608
19609         ftell: Move AC_LIBOBJ invocations to module description.
19610         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
19611         * modules/ftell (configure.ac): ... to here.
19612
19613 2011-05-07  Bruno Haible  <bruno@clisp.org>
19614
19615         ftello: Respect rules for use of AC_LIBOBJ.
19616         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
19617         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
19618         here...
19619         * modules/ftello (configure.ac): ... to here.
19620
19621 2011-05-07  Bruno Haible  <bruno@clisp.org>
19622
19623         fseeko: Simplify.
19624         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
19625         (gl_FUNC_FSEEKO): Inline it here.
19626
19627 2011-05-07  Bruno Haible  <bruno@clisp.org>
19628
19629         fseek: Move AC_LIBOBJ invocations to module description.
19630         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
19631         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19632         * modules/fseek (configure.ac): ... to here.
19633
19634 2011-05-07  Bruno Haible  <bruno@clisp.org>
19635
19636         fseek: Respect rules for use of AC_LIBOBJ.
19637         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
19638         here...
19639         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
19640
19641 2011-05-07  Bruno Haible  <bruno@clisp.org>
19642
19643         fseeko: Respect rules for use of AC_LIBOBJ.
19644         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
19645         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
19646         here...
19647         * modules/fseeko (configure.ac): ... to here.
19648
19649 2011-06-13  Bruno Haible  <bruno@clisp.org>
19650
19651         gnulib-tool: Allow comments in the 'Depends-on' section.
19652         * doc/gnulib.texi (Module description): Mention comment syntax in the
19653         Depends-on section.
19654         * gnulib-tool (func_get_dependencies): Filter out comment lines.
19655
19656 2011-06-13  Bruno Haible  <bruno@clisp.org>
19657
19658         file-set.h: guard __attibute__ use, now that it's not always defined
19659         * lib/file-set.h (record_file): Use __attribute__ only with compiler
19660         versions that support it.  This fixes a coreutils build failure with
19661         the vendor cc on HP-UX 11.31.
19662
19663 2011-06-12  Bruno Haible  <bruno@clisp.org>
19664
19665         acl: Add support for HP-UX >= 11.11 JFS ACLs.
19666         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
19667         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
19668         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
19669         (acl, aclsort): New declarations.
19670         (aclv_nontrivial): New declaration.
19671         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
19672         (file_has_acl): Read also the second kind of HP-UX ACLs.
19673         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
19674         kind of HP-UX ACLs if the first kind fails.
19675         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
19676         second kind of HP-UX ACLs.
19677         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
19678         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
19679         agree.
19680         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19681         hpuxjfs.
19682         Handle hpuxjfs.
19683         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
19684         hpuxjfs.
19685         Handle hpuxjfs.
19686         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19687         (func_test_same_acls): Use both lsacl and getacl.
19688         Handle hpuxjfs.
19689         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
19690         (func_test_same_acls): Use both lsacl and getacl.
19691         Handle hpuxjfs.
19692
19693 2011-06-12  Bruno Haible  <bruno@clisp.org>
19694
19695         acl: Complete the 2010-08-10 fix.
19696         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
19697         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
19698         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
19699         explicitly.
19700         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
19701         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
19702
19703 2011-06-12  Bruno Haible  <bruno@clisp.org>
19704
19705         spawn-pipe tests: Comments.
19706         * tests/test-spawn-pipe-child.c (main): Update comment.
19707         Reported by James Youngman <jay@gnu.org>.
19708
19709 2011-06-11  James Youngman  <jay@gnu.org>
19710
19711         New module 'stat-size'.
19712         * modules/stat-size: New module.  Provides macros for accessing
19713         file size information in instances of struct stat.  Depends on the
19714         fileblocks module because it calls st_blocks.
19715         * lib/stat-size.h: New file, adapted from coreutils' system.h.
19716         * doc/gnulib.texi: Include stat-size.texi.
19717         * doc/stat-size.texi: Documentation for this module.
19718         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
19719         * m4/fileblocks.m4: Mention that stat-size depends on the call to
19720         AC_STRUCT_ST_BLOCKS.
19721
19722 2011-06-09  Bruno Haible  <bruno@clisp.org>
19723
19724         thread: Support pthreads-win32.
19725         * lib/glthread/thread.h (gl_thread_self): Define differently on
19726         pthreads-win32.
19727         (gl_null_thread): New declaration.
19728         (gl_thread_self_pointer): New macro.
19729         * lib/glthread/thread.c (gl_null_thread): New constant.
19730         * tests/test-lock.c: Use gl_thread_self_pointer instead of
19731         gl_thread_self.
19732         * tests/test-tls.c: Likewise.
19733         Suggested by Paul Eggert. Reported by Eric Blake.
19734
19735 2011-06-09  Bruno Haible  <bruno@clisp.org>
19736
19737         thread: Fix confusion between NULL and 0.
19738         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
19739         Reported by Paul Eggert.
19740
19741 2011-06-09  Bruno Haible  <bruno@clisp.org>
19742
19743         spawn-pipe tests: Avoid test failure on HP-UX 11.
19744         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
19745         is closed.
19746
19747 2011-06-09  Bruno Haible  <bruno@clisp.org>
19748
19749         acl tests: Fix compilation error on HP-UX 11.
19750         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
19751
19752 2011-06-09  Bruno Haible  <bruno@clisp.org>
19753
19754         rmdir: Avoid test failure on HP-UX 10.20.
19755         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
19756         EEXIST.
19757
19758 2011-06-08  Eric Blake  <eblake@redhat.com>
19759
19760         perror: fix test on mingw
19761         * modules/perror-tests (Depends-on): Add dup2.
19762
19763         strerror_r-posix: fix on MacOS
19764         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
19765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
19766         logic bug.
19767         * lib/strerror_r.c (strerror_r): Fix the bug.
19768         * lib/strerror.c (strerror): Likewise.
19769         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19770         problem.
19771         * doc/posix-functions/strerror.texi (strerror): Likewise.
19772         * doc/posix-functions/perror.texi (perror): Likewise.
19773         * tests/test-strerror.c (main): Enhance test.
19774         * tests/test-strerror_r.c (main): Likewise.
19775
19776 2011-06-08  Bruno Haible  <bruno@clisp.org>
19777
19778         gnulib-tool: Better isolation between different gnulib-tool invocations.
19779         * gnulib-tool: New option --witness-c-macro.
19780         (witness_c_macro): New variable.
19781         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
19782         AM_CPPFLAGS define it as a C macro.
19783         (func_emit_tests_Makefile_am): Likewise.
19784         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
19785         read it from there.
19786         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
19787         m4_define, not AC_DEFUN.
19788         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
19789         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
19790         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
19791         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
19792         s|...|...|, to substitute the values of the GNULIB_* module indicator
19793         variables.
19794         * modules/dirent (Makefile.am): Likewise.
19795         * modules/fcntl-h (Makefile.am): Likewise.
19796         * modules/iconv-h (Makefile.am): Likewise.
19797         * modules/langinfo (Makefile.am): Likewise.
19798         * modules/locale (Makefile.am): Likewise.
19799         * modules/math (Makefile.am): Likewise.
19800         * modules/netdb (Makefile.am): Likewise.
19801         * modules/poll-h (Makefile.am): Likewise.
19802         * modules/pty (Makefile.am): Likewise.
19803         * modules/search (Makefile.am): Likewise.
19804         * modules/signal (Makefile.am): Likewise.
19805         * modules/spawn (Makefile.am): Likewise.
19806         * modules/stdio (Makefile.am): Likewise.
19807         * modules/stdlib (Makefile.am): Likewise.
19808         * modules/string (Makefile.am): Likewise.
19809         * modules/sys_ioctl (Makefile.am): Likewise.
19810         * modules/sys_select (Makefile.am): Likewise.
19811         * modules/sys_socket (Makefile.am): Likewise.
19812         * modules/sys_stat (Makefile.am): Likewise.
19813         * modules/sys_times (Makefile.am): Likewise.
19814         * modules/sys_utsname (Makefile.am): Likewise.
19815         * modules/sys_wait (Makefile.am): Likewise.
19816         * modules/termios (Makefile.am): Likewise.
19817         * modules/time (Makefile.am): Likewise.
19818         * modules/unistd (Makefile.am): Likewise.
19819         * modules/wchar (Makefile.am): Likewise.
19820
19821 2011-06-08  Eric Blake  <eblake@redhat.com>
19822
19823         strerror: simplify replacement
19824         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
19825         * modules/strerror (configure.ac): No prereqs needed here...
19826         * modules/strerror-override (configure.ac): ...but this needs it.
19827         (Files): Add file for needed prereq macro.
19828
19829 2011-06-08  Bruno Haible  <bruno@clisp.org>
19830
19831         strerror_r-posix: Tweaks.
19832         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19833         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19835         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19836         (gl_FUNC_STRERROR_R): ... to here.
19837         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19838
19839 2011-06-07  Eric Blake  <eblake@redhat.com>
19840
19841         perror: document fixed bugs
19842         * doc/posix-functions/perror.texi (perror): Document recent
19843         patches.
19844
19845 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19846
19847         stat-time: get_stat_birthtime failure is better-defined
19848         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19849         return a timestamp whose tv_sec and tv_nsec values are both -1.
19850         Previously, the spec said only that the tv_nsec value was negative.
19851         This upward-compatible change simplifies GNU tar a bit.
19852
19853 2011-06-07  Eric Blake  <eblake@redhat.com>
19854
19855         strerror_r-posix: work around cygwin 1.7.9
19856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19857         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19858         bug without replacing strerror_r.
19859         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19860         strerror_r is buggy, but without requiring strerror_r compilation.
19861         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19862
19863         test-perror: relax test to ignore cygwin bug
19864         * tests/test-perror2.c (main): Relax test on requiring detection
19865         of stream errors, and use unbuffered stream.
19866         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19867         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19868         * doc/posix-functions/fputc.texi (fputc): Likewise.
19869         * doc/posix-functions/fputs.texi (fputs): Likewise.
19870         * doc/posix-functions/fputws.texi (fputws): Likewise.
19871         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19872         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19873         * doc/posix-functions/getopt.texi (getopt): Likewise.
19874         * doc/posix-functions/perror.texi (perror): Likewise.
19875         * doc/posix-functions/printf.texi (printf): Likewise.
19876         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19877         * doc/posix-functions/psignal.texi (psignal): Likewise.
19878         * doc/posix-functions/putc.texi (putc): Likewise.
19879         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19880         Likewise.
19881         * doc/posix-functions/putchar.texi (putchar): Likewise.
19882         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19883         Likewise.
19884         * doc/posix-functions/puts.texi (puts): Likewise.
19885         * doc/posix-functions/putwc.texi (putwc): Likewise.
19886         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19887         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19888         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19889         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19890         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19891         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19892         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19893         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19894
19895 2011-05-22  Bruno Haible  <bruno@clisp.org>
19896
19897         strerror: Move AC_LIBOBJ invocations to module description.
19898         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19899         gl_PREREQ_STRERROR invocations from here...
19900         * modules/strerror (configure.ac): ... to here.
19901
19902 2011-05-21  Bruno Haible  <bruno@clisp.org>
19903
19904         perror: Use common idiom.
19905         * modules/perror (configure.ac): Reorder statements.
19906
19907 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19908
19909         tests: fix usage message in 'mktempd_'
19910         * tests/init.sh (mktempd_): In the usage message, use literal
19911         'mktempd_', not '$ME' (which is even undefined), as the name of
19912         the subroutine.
19913
19914 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19915
19916         tests init: new function 'fatal_', for hard errors
19917         Before this patch, the only way offered by tests/init.sh to
19918         properly signal a hard error was the `framework_failure_'
19919         function.  But the error message issued by that function,
19920         as its name would suggest, refers to a set-up failure in the
19921         testsuite, while hard errors can obviously also be due to
19922         other reasons.  The best way to fix this inconsistency is to
19923         introduce a new function with a more general error message.
19924         * tests/init.sh (fatal_): New function.
19925
19926 2011-06-06  Eric Blake  <eblake@redhat.com>
19927
19928         canonicalize-lgpl: use common idiom
19929         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19930         over newer POSIX -Rf.
19931         Reported by Bruno Haible.
19932
19933         canonicalize-lgpl: work around AIX realpath bug
19934         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19935         * doc/posix-functions/realpath.texi (realpath): Document it.
19936         Reported by Bruno Haible.
19937
19938         strerror: work around FreeBSD bug
19939         * lib/strerror.c (strerror): Special case 0.
19940         Reported by Bruno Haible.
19941
19942         strerror-override: avoid bloating errno module
19943         * modules/errno (Files, configure.ac): Move replacement strings...
19944         * modules/strerror-override: ...to new module.
19945         * modules/strerror (Depends-on): Add strerror-override.
19946         * modules/strerror_r-posix (Depends-on): Likewise.
19947         * MODULES.html.sh: Document new module.
19948         Reported by Bruno Haible.
19949
19950 2011-06-06  Bruno Haible  <bruno@clisp.org>
19951
19952         spawn-pipe tests: Rename program.
19953         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19954         * tests/test-spawn-pipe-child.c: Update comment.
19955         * tests/test-spawn-pipe.sh: Update.
19956         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19957
19958         spawn-pipe tests: Link the child program only against libc.
19959         * tests/test-spawn-pipe-child.c: New file, extracted from
19960         tests/test-spawn-pipe.c.
19961         (main): Expect only one argument.
19962         (is_open): New function, copied from tests/test-pipe.c.
19963         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19964         (child_main): Remove function.
19965         (test_pipe): Pass only one argument to the child program.
19966         (main): Remove child process code. Expect the child program's name as
19967         first argument.
19968         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19969         argument.
19970         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19971         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19972         test-spawn-pipe-child against no libraries.
19973
19974 2011-06-06  Bruno Haible  <bruno@clisp.org>
19975
19976         careadlinkat: Avoid mismatch between ssize_t and int.
19977         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19978         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19979
19980 2011-06-06  Jim Meyering  <meyering@redhat.com>
19981
19982         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19983         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19984         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19985
19986 2011-06-05  Bruno Haible  <bruno@clisp.org>
19987
19988         ansi-c++-opt: Interoperability with libtool.
19989         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19990         set the variable to "no", not to ":".
19991         * NEWS: Mention the change.
19992
19993 2011-06-05  Bruno Haible  <bruno@clisp.org>
19994
19995         acl: Fix test failure on AIX 7.
19996         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19997         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19998
19999 2011-06-05  Bruno Haible  <bruno@clisp.org>
20000
20001         pipe-filter-ii: Fix test failure on AIX and IRIX.
20002         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20003         with EAGAIN, retry with a smaller buffer size.
20004
20005 2011-06-05  Bruno Haible  <bruno@clisp.org>
20006
20007         localename: Fix link dependencies.
20008         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20009         * modules/localename-tests (Makefile.am): Link test-localename with
20010         $(LIBTHREAD).
20011
20012 2011-06-05  Bruno Haible  <bruno@clisp.org>
20013
20014         error: Avoid gcc warning.
20015         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20016
20017 2011-06-05  Bruno Haible  <bruno@clisp.org>
20018
20019         unsetenv: Avoid gcc warning.
20020         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20021
20022 2011-06-05  Bruno Haible  <bruno@clisp.org>
20023
20024         setenv: Avoid gcc warning.
20025         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20026
20027 2011-06-05  Bruno Haible  <bruno@clisp.org>
20028
20029         sys_select: Ensure memset is declared also on AIX 7.
20030         * lib/sys_select.in.h: Include <string.h> also on AIX.
20031         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20032         self-contained also on AIX 7.1.
20033
20034 2011-06-04  Jim Meyering  <meyering@redhat.com>
20035
20036         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20037         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20038         function name, "error".
20039         (_gl_translatable_diag_func_re): New configurable variable.
20040
20041 2011-06-04  Bruno Haible  <bruno@clisp.org>
20042
20043         getopt: Avoid gcc warning.
20044         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20045
20046 2011-06-04  Bruno Haible  <bruno@clisp.org>
20047
20048         strerror_r: Fix comments.
20049         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20050         commit.
20051
20052 2011-06-04  Bruno Haible  <bruno@clisp.org>
20053
20054         perror: Fix compilation error.
20055         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20056         Undefine fprintf, not sprintf.
20057         * modules/perror (Depends-on): Remove intprops, verify.
20058
20059 2011-06-04  Bruno Haible  <bruno@clisp.org>
20060
20061         setlocale: Enable replacement on Cygwin 1.5.
20062         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
20063         Cygwin 1.5.x.
20064         * doc/posix-functions/setlocale.texi: Mention that the problem with the
20065         LC_CTYPE category also exists on Cygwin 1.5.x.
20066
20067 2011-06-04  Bruno Haible  <bruno@clisp.org>
20068
20069         strerror-override: Don't disable symbol renamings.
20070         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
20071         * lib/strerror-override.c: Include config.h.
20072         (strerror_override): Don't undefine.
20073
20074 2011-06-03  Bruno Haible  <bruno@clisp.org>
20075
20076         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
20077         * lib/localename.h: Update copyright header.
20078         * lib/localename.c: Likewise.
20079         * lib/relocatable.h: Likewise.
20080         * lib/relocatable.c: Likewise.
20081
20082 2011-06-02  Bruno Haible  <bruno@clisp.org>
20083
20084         doc: Fix a module name.
20085         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
20086
20087 2011-06-02  Bruno Haible  <bruno@clisp.org>
20088
20089         pipe2: Remove dependency on 'nonblocking' module.
20090         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
20091         O_NONBLOCK is defined by gnulib.
20092         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
20093         is zero.
20094         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
20095         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
20096         defined by gnulib.
20097         (get_nonblocking_flag): New function.
20098         (main): Test O_NONBLOCK flag only if it is nonzero.
20099         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
20100
20101 2011-06-03  Jim Meyering  <meyering@redhat.com>
20102
20103         maint: three new prohibit-header-without-use rules
20104         Prohibit use of cloexec.h, posixver.h, same.h without use.
20105         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
20106         (sc_prohibit_posixver_without_use): Likewise.
20107         (sc_prohibit_same_without_use): Likewise.
20108
20109 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
20110
20111         allocator: 'die' routine is now given requested size
20112         * lib/allocator.h (struct allocator.die): New size arg.
20113         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
20114         If the actual problem is an ssize_t limitation, not a size_t or
20115         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
20116
20117 2011-06-01  Eric Blake  <eblake@redhat.com>
20118
20119         strerror: drop strerror_r dependency
20120         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
20121         * lib/strerror-override.c (strerror_override): ...to new file.
20122         * lib/strerror-override.h: Add prototype.
20123         * lib/strerror-impl.h: Delete.
20124         * lib/strerror.c (strerror): New implementation.
20125         * modules/errno (Files): Add new files.
20126         (configure.ac): Compile new file as appropriate.
20127         * modules/strerror (Files): Drop unused file.
20128         (Depends-on): Drop strerror_r-posix.
20129         * MODULES.html.sh: Document strerror_r-posix.
20130         Requested by Sam Steingold.
20131
20132         perror: call strerror_r directly
20133         * modules/perror (Files): Drop strerror-impl.h.
20134         * lib/perror.c (perror): Use our own stack buffer, rather than
20135         calling a wrapper that uses static storage.
20136         * doc/posix-functions/perror.texi (perror): Document a limitation
20137         of our replacement.
20138
20139         strerror_r: fix includes for FreeBSD
20140         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
20141         since we use abort on some platforms.
20142         Reported by Matthias Bolte.
20143
20144 2011-05-31  Bruno Haible  <bruno@clisp.org>
20145
20146         Fix link errors in tests: openat-die uses gettext-h.
20147         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
20148         against $(LIBINTL).
20149         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
20150         against $(LIBINTL).
20151         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
20152         $(LIBINTL).
20153         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
20154         against $(LIBINTL).
20155         * modules/linkat-tests (Makefile.am): Link test-linkat against
20156         $(LIBINTL).
20157         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
20158         $(LIBINTL).
20159         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
20160         against $(LIBINTL).
20161         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
20162         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
20163         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
20164         $(LIBINTL).
20165         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
20166         $(LIBINTL).
20167         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
20168         $(LIBINTL).
20169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20170
20171 2011-05-31  Bruno Haible  <bruno@clisp.org>
20172
20173         Fix link errors in tests: wait-process uses gettext-h.
20174         * modules/nonblocking-pipe-tests (Makefile.am): Set
20175         test_nonblocking_pipe_main_LDADD.
20176         * modules/nonblocking-socket-tests (Makefile.am): Link
20177         test-nonblocking-socket-main against $(LIBINTL).
20178         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20179
20180 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20181
20182         assert-h: work around 'verify' incompatibility
20183         * lib/verify.h: Use @...@ directives, not ifdef.
20184         * modules/assert-h (assert.h): Implement the directives.
20185         (assert.h): Substitute the symbol-prefix more consistently.
20186
20187 2011-05-29  Jim Meyering  <meyering@redhat.com>
20188
20189         trim: remove three superfluous assignments
20190         * lib/trim.c (trim2): Remove three superfluous assignments
20191         and correct brace positioning.
20192
20193 2011-05-29  Bruno Haible  <bruno@clisp.org>
20194
20195         wctype-h: Avoid namespace pollution on Solaris 2.6.
20196         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
20197         identifiers.
20198         * doc/posix-headers/wctype.texi: Mention the problem.
20199         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20200
20201 2011-05-28  Jim Meyering  <meyering@redhat.com>
20202
20203         parse-datetime.y: accommodate -Wstrict-overflow
20204         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
20205         placate -Wstrict-overflow.
20206
20207         trim: avoid a warning from -O2 -Wstrict-overflow
20208         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
20209
20210 2011-05-29  Bruno Haible  <bruno@clisp.org>
20211
20212         gnulib-tool: Fix bug in yesterday's commit.
20213         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
20214         twice.
20215
20216 2011-05-29  Bruno Haible  <bruno@clisp.org>
20217
20218         Allow multiple gnulib generated include files to be combined.
20219         * gnulib-tool (func_compute_include_guard_prefix): New function.
20220         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
20221         ${gl_include_guard_prefix} references.
20222         (func_import, func_create_testdir): Invoke
20223         func_compute_include_guard_prefix.
20224         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
20225         * lib/ctype.in.h: Likewise.
20226         * lib/dirent.in.h: Likewise.
20227         * lib/errno.in.h: Likewise.
20228         * lib/fcntl.in.h: Likewise.
20229         * lib/float.in.h: Likewise.
20230         * lib/getopt.in.h: Likewise.
20231         * lib/iconv.in.h: Likewise.
20232         * lib/langinfo.in.h: Likewise.
20233         * lib/locale.in.h: Likewise.
20234         * lib/math.in.h: Likewise.
20235         * lib/netdb.in.h: Likewise.
20236         * lib/netinet_in.in.h: Likewise.
20237         * lib/poll.in.h: Likewise.
20238         * lib/pthread.in.h: Likewise.
20239         * lib/pty.in.h: Likewise.
20240         * lib/sched.in.h: Likewise.
20241         * lib/se-selinux.in.h: Likewise.
20242         * lib/search.in.h: Likewise.
20243         * lib/signal.in.h: Likewise.
20244         * lib/spawn.in.h: Likewise.
20245         * lib/stdarg.in.h: Likewise.
20246         * lib/stddef.in.h: Likewise.
20247         * lib/stdint.in.h: Likewise.
20248         * lib/stdio.in.h: Likewise.
20249         * lib/stdlib.in.h: Likewise.
20250         * lib/string.in.h: Likewise.
20251         * lib/strings.in.h: Likewise.
20252         * lib/sys_file.in.h: Likewise.
20253         * lib/sys_ioctl.in.h: Likewise.
20254         * lib/sys_select.in.h: Likewise.
20255         * lib/sys_socket.in.h: Likewise.
20256         * lib/sys_stat.in.h: Likewise.
20257         * lib/sys_time.in.h: Likewise.
20258         * lib/sys_times.in.h: Likewise.
20259         * lib/sys_uio.in.h: Likewise.
20260         * lib/sys_utsname.in.h: Likewise.
20261         * lib/sys_wait.in.h: Likewise.
20262         * lib/sysexits.in.h: Likewise.
20263         * lib/termios.in.h: Likewise.
20264         * lib/time.in.h: Likewise.
20265         * lib/unistd.in.h: Likewise.
20266         * lib/wchar.in.h: Likewise.
20267         * lib/wctype.in.h: Likewise.
20268         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
20269         * modules/ctype (Makefile.am): Likewise.
20270         * modules/dirent (Makefile.am): Likewise.
20271         * modules/errno (Makefile.am): Likewise.
20272         * modules/fcntl-h (Makefile.am): Likewise.
20273         * modules/float (Makefile.am): Likewise.
20274         * modules/getopt-posix (Makefile.am): Likewise.
20275         * modules/iconv-h (Makefile.am): Likewise.
20276         * modules/langinfo (Makefile.am): Likewise.
20277         * modules/locale (Makefile.am): Likewise.
20278         * modules/math (Makefile.am): Likewise.
20279         * modules/netdb (Makefile.am): Likewise.
20280         * modules/netinet_in (Makefile.am): Likewise.
20281         * modules/poll-h (Makefile.am): Likewise.
20282         * modules/pthread (Makefile.am): Likewise.
20283         * modules/pty (Makefile.am): Likewise.
20284         * modules/sched (Makefile.am): Likewise.
20285         * modules/search (Makefile.am): Likewise.
20286         * modules/selinux-h (Makefile.am): Likewise.
20287         * modules/signal (Makefile.am): Likewise.
20288         * modules/spawn (Makefile.am): Likewise.
20289         * modules/stdarg (Makefile.am): Likewise.
20290         * modules/stddef (Makefile.am): Likewise.
20291         * modules/stdint (Makefile.am): Likewise.
20292         * modules/stdio (Makefile.am): Likewise.
20293         * modules/stdlib (Makefile.am): Likewise.
20294         * modules/string (Makefile.am): Likewise.
20295         * modules/strings (Makefile.am): Likewise.
20296         * modules/sys_file (Makefile.am): Likewise.
20297         * modules/sys_ioctl (Makefile.am): Likewise.
20298         * modules/sys_select (Makefile.am): Likewise.
20299         * modules/sys_socket (Makefile.am): Likewise.
20300         * modules/sys_stat (Makefile.am): Likewise.
20301         * modules/sys_time (Makefile.am): Likewise.
20302         * modules/sys_times (Makefile.am): Likewise.
20303         * modules/sys_uio (Makefile.am): Likewise.
20304         * modules/sys_utsname (Makefile.am): Likewise.
20305         * modules/sys_wait (Makefile.am): Likewise.
20306         * modules/sysexits (Makefile.am): Likewise.
20307         * modules/termios (Makefile.am): Likewise.
20308         * modules/time (Makefile.am): Likewise.
20309         * modules/unistd (Makefile.am): Likewise.
20310         * modules/wchar (Makefile.am): Likewise.
20311         * modules/wctype-h (Makefile.am): Likewise.
20312         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
20313
20314 2011-05-29  Bruno Haible  <bruno@clisp.org>
20315
20316         assert-h: Allow multiple gnulib generated replacements to coexist.
20317         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
20318
20319 2011-05-29  Bruno Haible  <bruno@clisp.org>
20320
20321         argp: Allow coexistence with strerror_r-posix module.
20322         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
20323         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
20324         by gnulib's <string.h> replacement), assume it has the POSIX signature,
20325         not the glibc signature.
20326
20327 2011-05-28  Bruno Haible  <bruno@clisp.org>
20328
20329         gnulib-tool: Alternative structure of testdirs, similar to --import.
20330         * gnulib-tool: New option --single-configure.
20331         (func_usage): Document it.
20332         (single_configure): New variable.
20333         (func_modules_transitive_closure_separately,
20334         func_modules_transitive_closure_separately,
20335         func_determine_use_libtests, func_modules_add_dummy_separately,
20336         func_modules_to_filelist_separately): New functions, extracted from
20337         func_import.
20338         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
20339         (func_import): Use the new functions.
20340         (func_create_testdir): Set final_modules. Handle $single_configure =
20341         true case.
20342
20343 2011-05-28  Bruno Haible  <bruno@clisp.org>
20344
20345         getloadavg: Remove an unreliable safety check.
20346         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
20347         getloadavg.c is in place.
20348         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
20349         Reported by Sam Steingold <sds@gnu.org>.
20350
20351 2011-05-28  Bruno Haible  <bruno@clisp.org>
20352
20353         doc: Cleanup yet another file produced by texinfo.tex.
20354         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
20355
20356 2011-05-28  Bruno Haible  <bruno@clisp.org>
20357
20358         Finish the conditional dependencies mechanism.
20359         * gnulib-tool: New option --no-conditional-dependencies.
20360         (func_usage): Document it. Don't mark --conditional-dependencies as
20361         experimental.
20362         (cond_dependencies): The possible values can now be true, false, empty.
20363         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
20364         (func_import): Store setting in gnulib-cache.m4 and read it from there.
20365         * doc/gnulib-tool.texi (Conditional dependencies): New section.
20366
20367 2011-05-28  Bruno Haible  <bruno@clisp.org>
20368
20369         doc: Use a recent texinfo.tex.
20370         * doc/Makefile (tex_opts): New variable.
20371         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
20372
20373 2011-05-28  Jim Meyering  <meyering@redhat.com>
20374
20375         intprops.h: adjust comment to match code change
20376         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
20377         only once, it *may* have side effects.  Also fix an unrelated typo.
20378         (_GL_INT_SIGNED): Likewise.
20379
20380 2011-05-26  Simon Josefsson  <simon@josefsson.org>
20381
20382         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
20383
20384 2011-05-26  Bruno Haible  <bruno@clisp.org>
20385
20386         mbsrchr: Avoid collision with system function on Interix.
20387         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
20388         Reported by Markus Duft <mduft@gentoo.org>.
20389
20390 2011-05-15  James Youngman  <jay@gnu.org>
20391
20392         getopt: for ambiguous options, enumerate the possibilities.
20393         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
20394         the ambiguous options when an ambiguous prefix is given. This was
20395         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
20396         glibc change was
20397         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
20398
20399 2011-05-25  Eric Blake  <eblake@redhat.com>
20400
20401         getcwd: work around mingw bug
20402         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
20403         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20404         Reported by Matthias Bolte.
20405
20406 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
20407
20408         test-intprops: disable -Wtype-limits diagnostics
20409         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
20410         diagnostics.  Otherwise, the integer overflow macros generate many
20411         diagnostics.  Reported by Jim Meyering in
20412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20413
20414         intprops: shorten, to pacify gcc -Woverlength-strings
20415         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
20416         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
20417         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
20418         likely to run afoul of C compiler limits for string constant lengths.
20419         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
20420
20421 2011-05-24  Eric Blake  <eblake@redhat.com>
20422
20423         docs: document recently fixed glibc printf bug
20424         * doc/posix-functions/fprintf.texi (fprintf): Document it.
20425         * doc/posix-functions/printf.texi (printf): Likewise.
20426         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20427         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20428
20429         closein-tests: convert to init.sh
20430         * modules/closein-tests (Files): Add init.sh
20431         * tests/test-closein.sh Use it.
20432
20433         yesno-tests: convert to init.sh
20434         * modules/yesno-tests (Files): Add init.sh.
20435         * tests/test-yesno.sh: Use it.
20436
20437         atexit-tests: ensure reliable exit status
20438         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
20439         Reported by Bruno Haible.
20440
20441 2011-05-24  Bruno Haible  <bruno@clisp.org>
20442
20443         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
20444         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
20445         gl_PREREQ_STRERROR_R invocations from here...
20446         * modules/strerror_r-posix (configure.ac): ... to here.
20447
20448 2011-05-24  Eric Blake  <eblake@redhat.com>
20449
20450         strerror_r: fix missing header
20451         * lib/strerror_r.c: Avoid compiler warning about snprintf.
20452
20453         strerror_r: fix AIX test failures
20454         * lib/strerror_r.c (strerror_r): Convert silent truncation to
20455         ERANGE failure.
20456
20457         strerror_r: fix Solaris test failures
20458         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
20459         failures.
20460         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20461
20462         strerror_r: enforce POSIX recommendations
20463         * lib/strerror_r.c (safe_copy): New helper method.
20464         (strerror_r): Guarantee a non-empty string.
20465         * tests/test-strerror_r.c (main): Enhance tests to incorporate
20466         recent POSIX rulings and to match our strerror guarantees.
20467         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
20468
20469 2011-05-24  Jim Meyering  <meyering@redhat.com>
20470
20471         test-perror2.c: avoid warning about unused variable
20472         * tests/test-perror2.c (main): Remove declaration of unused "fp".
20473
20474 2011-05-24  Eric Blake  <eblake@redhat.com>
20475
20476         perror: avoid spurious test failure on HP-UX
20477         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
20478
20479         tests: fix logic bug in init.sh
20480         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
20481         shell.
20482
20483 2011-05-24  Jim Meyering  <meyering@redhat.com>
20484
20485         utimensat: do not reference an out-of-scope buffer
20486         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
20487         declared in an inner scope, yet "times" would be dereferenced outside
20488         the scope in which "ts" was valid.
20489         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
20490         of ts[2] "out/up", so that the use of aliased "times" (via
20491         "times = ts;") does not end up referencing an out-of-scope "ts"
20492
20493         opendir-safer.c: don't clobber errno; don't close negative FD
20494         * lib/opendir-safer.c (opendir_safer):
20495         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
20496         file descriptor, and more importantly, don't clobber the
20497         offending errno value with EINVAL.  Before, upon failure
20498         of dup_safer, we would pass the negative file descriptor to
20499         fdopendir, which would clobber errno.
20500
20501 2011-05-23  Bruno Haible  <bruno@clisp.org>
20502
20503         idcache: Fix module description.
20504         * modules/idcache (Include): Set to "idcache.h".
20505
20506 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20507
20508         gnulib-tool: fix portability problem with MacOS sed
20509         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
20510         before the "}".  Problem reported by Leo in
20511         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
20512         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
20513         sed_extract_condition1, sed_extract_condition2.
20514
20515 2011-05-23  Bruno Haible  <bruno@clisp.org>
20516
20517         hash: Simplify autoconf macro.
20518         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
20519
20520 2011-05-23  Bruno Haible  <bruno@clisp.org>
20521
20522         getugroups: Fix module description.
20523         * modules/getugroups (Include): Set to "getugroups.h".
20524
20525 2011-05-23  Bruno Haible  <bruno@clisp.org>
20526
20527         linkat: Simplify autoconf macro.
20528         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
20529
20530 2011-05-23  Bruno Haible  <bruno@clisp.org>
20531             Eric Blake  <eblake@redhat.com>
20532
20533         linkat, renameat: Update dependencies.
20534         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
20535         * modules/linkat (Depends-on): Likewise. Remove also readlink,
20536         symlinkat.
20537
20538 2011-05-23  Jim Meyering  <meyering@redhat.com>
20539
20540         maint.mk: more tight_scope improvements
20541         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
20542         (_gl_TS_headers): Define only in if-0'd block.
20543         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
20544         sometimes we must *not* use it.  Adjust uses accordingly.
20545         (sc_tight_scope): Use much simpler grep-based test to determine
20546         whether we skip this rule.
20547
20548         maint.mk: generalize/improve the tight-scope rule
20549         * top/maint.mk: Emit a warning when the test is skipped.
20550         (_gl_TS_dir): Add $(srcdir)/ prefix.
20551         (_gl_TS_function_match): Simplify, rather than trying
20552         to enumerate common types.  Otherwise, it would fail to match an
20553         "extern unsigned char const *" declaration in idutils.
20554         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
20555         a way to support use of that type of macro.
20556         (_gl_TS_var_match): Simplify regexp.
20557         (_gl_TS_obj_files): New configurable variable.
20558         (_gl_TS_headers): Likewise.
20559
20560 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20561
20562         verify: fix bug when gnulib <assert.h> is also included
20563         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
20564         is defined, not if _GL_STATIC_ASSERT_H is not defined.
20565         Perhaps there's a better way, but this fixes the immediate problem.
20566         Problem reported by Bruno Haible in
20567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
20568
20569 2011-05-22  Bruno Haible  <bruno@clisp.org>
20570
20571         xgetcwd: Simplify autoconf macro.
20572         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
20573
20574 2011-05-22  Bruno Haible  <bruno@clisp.org>
20575
20576         New module 'mktime-internal'.
20577         * modules/mktime-internal: New file.
20578         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
20579         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
20580         mktime_internal as a C macro if libc has __mktime_internal.
20581         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
20582         conditions.
20583         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
20584
20585 2011-05-22  Bruno Haible  <bruno@clisp.org>
20586
20587         timegm: Correct mktime replacement statements.
20588         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
20589         defining mktime as a C macro. This completes a 2009-07-28 commit.
20590
20591 2011-05-22  Bruno Haible  <bruno@clisp.org>
20592
20593         timegm: Simplify autoconf macro.
20594         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
20595
20596 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
20597
20598         clock-time: change to LGPLv2+.
20599         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
20600         BSD-like but we have no mark for that; this is good enough for now.
20601
20602 2011-05-21  Bruno Haible  <bruno@clisp.org>
20603
20604         strerror_r: Fix comments.
20605         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
20606
20607 2011-05-21  Bruno Haible  <bruno@clisp.org>
20608
20609         relocatable-prog-wrapper: Fix possible link error.
20610         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
20611         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
20612         (gl_FUNC_SETENV): ... to here.
20613         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
20614         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
20615
20616 2011-05-21  Bruno Haible  <bruno@clisp.org>
20617
20618         relocatable-prog-wrapper: Assume strerror() exists.
20619         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
20620         m4/strerror.m4.
20621         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
20622         * lib/relocwrapper.c: Remove mention of strerror module.
20623         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
20624         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
20625         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
20626         C macro.
20627
20628 2011-05-21  Bruno Haible  <bruno@clisp.org>
20629
20630         select: Simplify replacement idiom.
20631         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
20632         Win32 platforms.
20633         * lib/sys_select.in.h (select): Simplify accordingly.
20634         * modules/select (Depends-on): Likewise.
20635
20636 2011-05-21  Bruno Haible  <bruno@clisp.org>
20637
20638         mkdir-p: Simplify autoconf macro.
20639         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
20640         gl_FUNC_LCHOWN.
20641
20642 2011-05-21  Eric Blake  <eblake@redhat.com>
20643
20644         strerror_r: avoid clobbering strerror on cygwin
20645         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
20646         fall back instead to sys_errlist.
20647         * modules/strerror (configure.ac): Add witness.
20648         * tests/test-strerror_r.c (main): Enhance test.
20649         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20650         * tests/test-perror2.c (main): Free memory before exit.
20651
20652 2011-05-21  Bruno Haible  <bruno@clisp.org>
20653
20654         mkdtemp: Use gnulib naming conventions.
20655         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
20656         * modules/mkdtemp (configure.ac): Update.
20657
20658 2011-05-20  Eric Blake  <eblake@redhat.com>
20659
20660         strerror_r: avoid corrupting errno on Solaris
20661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
20662         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
20663
20664         strerror_r: avoid compiler warning
20665         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
20666
20667         strerror_r: simplify AIX code
20668         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
20669
20670         test-perror: avoid spurious failure on FreeBSD
20671         * modules/perror-tests (Depends-on): Add strerror, now that
20672         strerror_r no longer pulls it in.
20673
20674 2011-05-20  Bruno Haible  <bruno@clisp.org>
20675
20676         strerror_r-posix: Remove unused dependencies.
20677         * modules/strerror_r-posix (Depends-on): Remove strerror.
20678         Reported by Eric Blake.
20679
20680 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20681
20682         intprops: remove assumption about A|B representation
20683         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
20684         is a valid integer if both A and B are.  Although this is true for
20685         all known practical hosts, the C standard doesn't guarantee it,
20686         and the code need not assume it.  Also, this change may work around
20687         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
20688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
20689
20690 2011-05-20  Eric Blake  <eblake@redhat.com>
20691
20692         perror: work around FreeBSD bug
20693         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
20694         is broken.  Move AC_LIBOBJ...
20695         * modules/perror (configure.ac): Here.
20696         * doc/posix-functions/perror.texi (perror): Document this.
20697         * tests/test-perror2.c (main): Enhance test.
20698
20699         test-perror: check for strerror interactions
20700         * tests/macros.h (STREQ): Add macro.
20701         * modules/perror-tests (Files): Add second test.
20702         * tests/test-perror2.c (main): New file.
20703         * doc/posix-functions/perror.texi (perror): Document glibc bug.
20704
20705         test-perror: rewrite to use init script
20706         * modules/perror-tests (Files): Add init.sh.
20707         * tests/test-perror.sh: Use temporary directory.
20708
20709 2011-05-20  Jim Meyering  <meyering@redhat.com>
20710
20711         maint: replace misused "a" with "an"
20712         * doc/intprops.texi: "a integer"
20713         * doc/regex.texi: "a explanation"
20714         * lib/alignof.h: "a object"
20715         * lib/argmatch.h: "a explanation"
20716         * lib/argp-help.c: "a option" and "a OPTION_DOC"
20717         * lib/stdint.in.h: "a integer"
20718         * lib/userspec.c: "a owner"
20719         * doc/gnulib.texi: Fix "a idea", and reword.
20720
20721 2011-05-19  Jim Meyering  <meyering@redhat.com>
20722
20723         maint: correct misuse of "a" and "an"
20724         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
20725         * lib/argp-help.c: "an docum...": s/an/a/
20726         * lib/argp-parse.c: "An vector": s/An/A/
20727         * lib/execute.c: "an native": s/an/a/
20728         * lib/spawn-pipe.c: Likewise.
20729         * lib/gc.h: "an Gc_rc": s/an/a/
20730         * lib/unigbrk.in.h: "an grapheme": s/an/a/
20731         * lib/fts.c: "an stat.st_dev": s/an/a/
20732
20733 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20734
20735         intprops-tests: work around HP-UX 11.23 cc bug with constants
20736         * tests/test-intprops.c (VERIFY): New macro.
20737         (main): Use it, instead of verify, to work around the compiler bug; see
20738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20739
20740         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
20741         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
20742         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
20743         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
20744         (_GL_REMAINDER_OVERFLOW): Use it.
20745
20746         intprops-tests: revert unsigned part of previous change
20747         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
20748         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
20749         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
20750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
20751
20752 2011-05-19  Bruno Haible  <bruno@clisp.org>
20753
20754         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
20755         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
20756         strerror_r() returned without filling the buffer.
20757         Reported by Eric Blake.
20758
20759 2011-05-19  Eric Blake  <eblake@redhat.com>
20760
20761         strerror_r: guarantee unchanged errno
20762         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
20763         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
20764         failure.
20765         * tests/test-strerror_r.c (main): Enhance test.
20766
20767 2011-05-19  Bruno Haible  <bruno@clisp.org>
20768
20769         strerror_r: Reorder #if blocks.
20770         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
20771         for consistency with the previous commit.
20772
20773 2011-05-19  Bruno Haible  <bruno@clisp.org>
20774
20775         perror: Avoid clobbering the strerror buffer when possible.
20776         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
20777         * lib/strerror.c: Include it.
20778         * modules/strerror (Files): Add lib/strerror-impl.h.
20779         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
20780         (my_strerror): New function, defined through lib/strerror-impl.h.
20781         (perror): Use it instead of strerror.
20782         * modules/perror (Files): Add lib/strerror-impl.h.
20783         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
20784
20785 2011-05-19  Eric Blake  <eblake@redhat.com>
20786
20787         strerror_r: fix on newer cygwin
20788         * lib/strerror_r.c (strerror_r): Cygwin now has
20789         __xpg_strerror_r, use it.
20790
20791 2011-05-19  Bruno Haible  <bruno@clisp.org>
20792
20793         strerror_r: Avoid clobbering the strerror buffer when possible.
20794         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
20795         (sys_nerr, sys_errlist): New declarations.
20796         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
20797         HP-UX, native Win32, IRIX, and 32-bit Solaris.
20798         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
20799
20800 2011-05-19  Bruno Haible  <bruno@clisp.org>
20801
20802         strerror_r: Fix test failure on mingw.
20803         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
20804         EXTEND_STRERROR_R.
20805         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
20806         macros from errno.in.h instead.
20807
20808 2011-05-19  Eric Blake  <eblake@redhat.com>
20809
20810         strerror: relax test for Solaris
20811         * tests/test-strerror.c (main): Permit Solaris behavior.
20812         * tests/test-strerror_r.c (main): Likewise.
20813
20814         strerror: enforce POSIX ruling on strerror(0)
20815         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
20816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20817         * lib/strerror_r.c (rpl_strerror_r): Work around it.
20818         * doc/posix-functions/strerror.texi (strerror): Document it.
20819         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
20820         * tests/test-strerror.c (main): Strengthen test.
20821         * tests/test-strerror_r.c (main): Likewise.
20822
20823 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20824
20825         intprop-tests: port to older and more-pedantic compilers
20826         * modules/intprops-tests (Files): Add tests/macros.h.
20827         * tests/test-intprops.c: Include macros.h.
20828         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
20829         it's no longer documented to expand to an integer constant expression.
20830         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
20831         argument is floating point, as it's no longer documented to expand
20832         to an integer constant expression in that case.
20833         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20834         compiler bugs reported by Bruno Haible.  See
20835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20836         (U0, U1): New constants, to work around the same bugs.  Also,
20837         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20838
20839         intprops: work around C compiler bugs
20840         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20841         bug in Sun C 5.11 2010/08/13 and other compilers; see
20842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20843
20844         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20845         * doc/intprops.texi (Integer Type Determination): Fix
20846         documentation for TYPE_IS_INTEGER: it returns an constant
20847         expression, not an integer constant expression.  Fix doc for
20848         TYPE_SIGNED: it returns an integer constant expression only if its
20849         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20850         hardly worth documented that way....)
20851
20852 2011-05-18  Bruno Haible  <bruno@clisp.org>
20853
20854         strerror_r: Avoid clobbering the strerror buffer when possible.
20855         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20856         Handle gnulib defined errno values here. When strerror() returns NULL
20857         or an empty string, return EINVAL.
20858         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20859         gnulib defined errno values here.
20860         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20861
20862 2011-05-18  Eric Blake  <eblake@redhat.com>
20863
20864         fnmatch: avoid compiler warning
20865         * lib/fnmatch_loop.c (FCT): Use correct type.
20866         Reported by Matthias Bolte.
20867
20868 2011-05-13  Jim Meyering  <meyering@redhat.com>
20869
20870         maint.mk: three new prohibit_<HDR>_without_use rules
20871         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20872         (sc_prohibit_stdio-safer_without_use): Likewise.
20873         (sc_prohibit_xfreopen_without_use): Likewise.
20874
20875 2011-05-17  Jim Meyering  <meyering@redhat.com>
20876
20877         announce-gen: fail if the NEWS delta is empty
20878         If there's nothing noteworthy in NEWS, then either you forgot
20879         or you shouldn't be releasing.
20880         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20881
20882 2011-05-17  Pádraig Brady <P@draigBrady.com>
20883
20884         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20885         reserved symbols starting with double underscore from the check.
20886
20887 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20888
20889         intprops: add doc
20890         * doc/intprops.texi: New file, documenting intprops.
20891         * doc/gnulib.texi (Particular Modules): Include it.
20892
20893         verify: add doc to gnulib manual and fix example
20894         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20895         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20896         (Compile-time Assertions): Fix example so it can't overflow.
20897
20898 2011-05-17  Jim Meyering  <meyering@redhat.com>
20899
20900         warnings.m4: don't usurp save_CPPFLAGS variable name
20901         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20902
20903         doc: fix typo
20904         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20905
20906 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20907             Bruno Haible  <bruno@clisp.org>
20908
20909         doc: Tweak recent change.
20910         * README (Portability guidelines): Tweak new text.
20911         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20912         Interix 6.1.
20913
20914 2011-05-16  Eric Blake  <eblake@redhat.com>
20915
20916         inttypes: avoid autoconf warning
20917         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20918         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20919
20920 2011-05-16  Sam Steingold <sds@gnu.org>
20921         and Eric Blake  <eblake@redhat.com>
20922
20923         vc-list-files: accept multiple directory operands
20924         * build-aux/vc-list-files: Iterate over all remaining operands.
20925
20926 2011-05-16  Bruno Haible  <bruno@clisp.org>
20927
20928         Fix confusion regarding deprecated modules.
20929         * modules/calloc (Status, Notice): Mark module as deprecated, not
20930         obsolete.
20931         * modules/fnmatch-posix (Status, Notice): Likewise.
20932         * modules/getdate (Status, Notice): Likewise.
20933         * modules/getopt (Status, Notice): Likewise.
20934         * modules/malloc (Status, Notice): Likewise.
20935         * modules/pipe (Status, Notice): Likewise.
20936         * modules/realloc (Status, Notice): Likewise.
20937         * modules/rename-dest-slash (Status, Notice): Likewise.
20938         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20939         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20940         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20941         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20942         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20943
20944 2011-05-16  Bruno Haible  <bruno@clisp.org>
20945
20946         doc: List the target platforms.
20947         * doc/gnulib-intro.texi (Target Platforms): New section.
20948         * doc/gnulib.texi (Introduction): Update menu.
20949         * README (Portability guidelines): Refer to the new section. Update
20950         statement about oldest supported environment. Remove rationale why
20951         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20952         unportable C89 function.
20953         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20954         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20955
20956 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20957
20958         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20959
20960 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         intprops-tests: new module
20963         * modules/intprops-tests, tests/test-intprops.c: New files.
20964
20965         intprops: add safe, portable integer overflow checking
20966         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20967         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20968         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20969         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20970         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20971         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20972         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20973         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20974         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20975         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20976         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20977
20978 2011-05-12  James Youngman  <jay@gnu.org>
20979
20980         Add a test for glibc's Bugzilla bug #12378.
20981         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20982         doesn't allow the literal matching of a lone "[" (which is
20983         required by POSIX).
20984         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20985
20986 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20987
20988         Sync glibc change fixing Bugzilla bug #12378.
20989         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20990         beginning and fall back to matching as normal character if the
20991         string ends before the matching ']' is found.  This is what POSIX
20992         requires.
20993
20994 2011-05-13  Eric Blake  <eblake@redhat.com>
20995
20996         getcwd-lgpl: relax test for FreeBSD
20997         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20998         issue.
20999         * tests/test-getcwd-lgpl.c (main): Relax test.
21000         Reported by Matthias Bolte.
21001
21002 2011-05-11  Eric Blake  <eblake@redhat.com>
21003
21004         test-fflush: silence compiler warning
21005         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21006
21007 2011-05-11  Bruno Haible  <bruno@clisp.org>
21008
21009         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21010         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21011         * modules/canonicalize (Depends-on): Add 'nocrash'.
21012         * modules/canonicalize-lgpl (Depends-on): Likewise.
21013         * doc/posix-functions/realpath.texi: Update platforms list.
21014         Reported by Ryan Schmidt <ryandesign@macports.org>.
21015
21016 2011-05-11  Bruno Haible  <bruno@clisp.org>
21017
21018         group-member: Declare function in <unistd.h>.
21019         * lib/unistd.in.h (group_member): New declaration.
21020         * lib/group-member.h: Remove file.
21021         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21022         * tests/test-unistd-c++.cc: Check signature of group_member.
21023         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21024         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21025         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21026         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21027         HAVE_GROUP_MEMBER.
21028         * modules/group-member (Files): Remove lib/group-member.h.
21029         (Depends-on): Add unistd. Specify conditions.
21030         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21031         (Include): Change to <unistd.h>.
21032         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21033         HAVE_GROUP_MEMBER.
21034         * NEWS: Mention the change.
21035         * lib/euidaccess.c: Don't include group-member.h.
21036
21037 2011-05-11  Bruno Haible  <bruno@clisp.org>
21038
21039         group-member: Document module.
21040         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21041         module.
21042
21043 2011-05-11  Bruno Haible  <bruno@clisp.org>
21044
21045         fclose: Fix mistake earlier today.
21046         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21047
21048 2011-05-11  Eric Blake  <eblake@redhat.com>
21049
21050         fclose: preserve fflush errors
21051         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21052         Reported by Jim Meyering.
21053
21054         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21055         * build-aux/bootstrap (check_versions): When no specific version
21056         is required, merely check that the app produces an exit status
21057         that indicates its existence.
21058
21059         maint.mk: drop redundant check
21060         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21061         the same but better.
21062
21063 2011-05-11  Bruno Haible  <bruno@clisp.org>
21064
21065         fclose: Fix possible link error.
21066         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
21067         unregister_shadow_fd. Improve comments.
21068         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
21069         Eric Blake.
21070
21071 2011-05-11  Jim Meyering  <meyering@redhat.com>
21072
21073         maint.mk: improve "can not" detection and generalize rule name
21074         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
21075         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
21076         Use the same technique as in sc_prohibit_doubled_word, so that
21077         we recognize "can not" also when the words are separated by a newline.
21078         Suggested by Eric Blake.
21079         (perl_filename_lineno_text_): Define.  Factored out of...
21080         (prohibit_doubled_word_): ...here.  Use the new definition.
21081         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
21082         (prohibit_undesirable_word_seq_RE_): New overridable variable.
21083         (ignore_undesirable_word_sequence_RE_): New overridable variable.
21084
21085 2011-05-10  Eric Blake  <eblake@redhat.com>
21086
21087         fclose: avoid double close race when possible
21088         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
21089         all but WINDOWS_SOCKETS.
21090
21091 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
21092
21093         openat: correct new comment
21094         * lib/openat-proc.c (openat_proc_name): Correct the comment.
21095
21096 2011-05-10  Jim Meyering  <meyering@redhat.com>
21097
21098         openat: add comments
21099         * lib/openat-proc.c (openat_proc_name): Add comments,
21100         mostly from Eric Blake.
21101
21102 2011-05-09  Eric Blake  <eblake@redhat.com>
21103
21104         openat: reduce syscalls in first probe of /proc
21105         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
21106         be a directory.  Simplify the probe for .. bugs.
21107         * modules/openat (Depends-on): Drop same-inode.
21108         Reported by Bastien ROUCARIES.
21109
21110 2011-05-09  Jim Meyering  <meyering@redhat.com>
21111
21112         maint.mk: change semantics/name of tight_scope variables
21113         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
21114         Rename variables to align with semantics that make them more useful.
21115
21116         maint.mk: tweak new rule's name not to impinge
21117         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
21118         (sc_tight_scope): Use new rule name rather than $@-0.
21119
21120         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
21121         * top/maint.mk (sc_tight_scope): New rule.
21122         (sc_tight_scope-0): New rule, ifdef'd out.
21123         (_gl_TS_dir): Default.
21124         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
21125         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
21126
21127 2011-05-09  Simon Josefsson  <simon@josefsson.org>
21128
21129         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
21130         Haible <bruno@clisp.org>.
21131
21132 2011-05-08  Bruno Haible  <bruno@clisp.org>
21133
21134         Comments.
21135         * m4/isnanf.m4: Add comment.
21136         * m4/isnanl.m4: Likewise.
21137
21138 2011-05-08  Bruno Haible  <bruno@clisp.org>
21139
21140         glob: Remove obsolete macro.
21141         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
21142
21143 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
21144
21145         intprops: Sun C 5.11 supports __typeof__
21146         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
21147         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
21148         which is new.
21149         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
21150
21151         intprops: switch to usual gnulib indenting and naming
21152         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
21153         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
21154
21155         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
21156
21157 2011-05-08  Jim Meyering  <meyering@redhat.com>
21158
21159         maint.mk: suppress "Entering/Leaving directory" diag in announcement
21160         * top/maint.mk (release-prep): Use make's --no-print-directory
21161         option when generating the announcement.  This eliminates the
21162         pesky "make[2]: Entering/Leaving directory" diagnostics in the
21163         generated announcement template.
21164
21165 2011-05-08  Bruno Haible  <bruno@clisp.org>
21166
21167         tzset: Fix gettimeofday wrapper on Solaris 2.6.
21168         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
21169         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
21170
21171 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         ignore-value, verify: Omit include files from lib_SOURCES.
21174         * modules/ignore-value, modules/verify (Makefile.am):
21175         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
21176         that leads Automake to duplicate use of am__objects_... variables
21177         in Makefile.in.  See
21178         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
21179
21180 2011-05-07  Bruno Haible  <bruno@clisp.org>
21181
21182         fclose: Simplify autoconf macro.
21183         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
21184         defined.
21185
21186 2011-05-07  Bruno Haible  <bruno@clisp.org>
21187
21188         canonicalize-lgpl: Fix autoconf macro ordering bug.
21189         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
21190         gl_STDLIB_H_DEFAULTS.
21191
21192 2011-05-06  Eric Blake  <eblake@redhat.com>
21193
21194         maintainer-makefile: make sc_po_check easier to tune
21195         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
21196         to probe for strings, such as an alternate location for gnulib.
21197
21198         fclose: guarantee behavior on seekable stdin
21199         * modules/fclose (Depends-on): Add fflush.
21200         * doc/posix-functions/fclose.texi (fclose): Document this.
21201         * tests/test-fclose.c (main): Make test for this unconditional.
21202
21203 2011-05-06  Bruno Haible  <bruno@clisp.org>
21204
21205         fflush, fpurge: Relicense under LGPLv2+.
21206         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
21207         * modules/fpurge (License): Likewise.
21208         With permission from Eric Blake and Jim Meyering.
21209         Suggested by Eric Blake.
21210
21211 2011-05-06  Karl Berry  <karl@gnu.org>
21212
21213         * MODULES.html.sh (func_all_modules): remove exit.
21214
21215 2011-05-06  Jim Meyering  <meyering@redhat.com>
21216
21217         maint.mk: use info-gnu@ as the default only for a stable release
21218         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
21219         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
21220         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
21221         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
21222
21223 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21224
21225         assert-h: new module, which supports C1X-style static_assert
21226         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
21227         * lib/verify.h: Revamp so that this can be copied into assert.h,
21228         while retaining the ability to use it standalone as before.
21229         Rename private identifiers so as not to encroach on the
21230         standard C namespace, since this is now used by assert.h.
21231         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
21232         the old verify_true.
21233         (_GL_VERIFY_TRUE): New macro, with much of the contents of
21234         the old verify_true.  Use _GL_VERIFY_TYPE.
21235         (_GL_VERIFY): New macro, with much of the contents of the old verify.
21236         (static_assert): New macro, if _GL_STATIC_ASSERT_H
21237         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
21238         defined when this file is copied into the replacement assert.h.
21239         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
21240         and _Static_assert is not built in.
21241         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
21242         defined, and use the new macros mentioned above.
21243         * doc/posix-headers/assert.texi: Document this.
21244
21245 2011-05-05  Bruno Haible  <bruno@clisp.org>
21246
21247         fclose, fflush: Respect rules for use of AC_LIBOBJ.
21248         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
21249         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
21250         gl_REPLACE_FCLOSE here.
21251         * modules/fflush (Depends-on): Remove fclose.
21252         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
21253         combination with module 'fclose'.
21254
21255 2011-05-05  Bruno Haible  <bruno@clisp.org>
21256
21257         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
21258         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
21259         gl_FUNC_FFLUSH.
21260         (gl_FUNC_FFLUSH): Use it.
21261         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
21262         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
21263         gl_REPLACE_FSEEKO here.
21264
21265 2011-05-05  Bruno Haible  <bruno@clisp.org>
21266
21267         tzset: Relicense under LGPL.
21268         * modules/tzset (License): Change to LGPL.
21269         No agreement needed; it's a no-op.
21270
21271         strtoimax, strtoumax: Relicense under LGPL.
21272         * modules/strtoimax (License): Change to LGPL.
21273         * modules/strtoumax (License): Likewise.
21274         With permission from Jim Meyering, Paul Eggert:
21275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
21276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
21277
21278         getgroups: Relicense under LGPL.
21279         * modules/getgroups (License): Change to LGPL.
21280         With permission from Jim Meyering, Paul Eggert, Eric Blake:
21281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21284
21285         nanosleep: Relicense under LGPL.
21286         * modules/nanosleep (License): Change to LGPL.
21287         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
21288         Haible:
21289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
21290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
21291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21293
21294         futimens: Relicense under LGPL.
21295         * modules/futimens (License): Change to LGPL.
21296         With permission from Eric Blake:
21297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21298
21299         fflush: Relicense under LGPL.
21300         * modules/fflush (License): Change to LGPL.
21301         With permission from Eric Blake, Bruno Haible, Jim Meyering:
21302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
21303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
21304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
21305
21306         tmpfile: Relicense under LGPL.
21307         * modules/tmpfile (License): Change to LGPL.
21308         With permission from Ben Pfaff:
21309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21310
21311         isfinite: Relicense under LGPL.
21312         * modules/isfinite (License): Change to LGPL.
21313         With permission from Ben Pfaff, Bruno Haible:
21314         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
21315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
21316
21317         acosl..tanl: Relicense under LGPL.
21318         * modules/acosl (License): Change to LGPL.
21319         * modules/asinl (License): Likewise.
21320         * modules/atanl (License): Likewise.
21321         * modules/cosl (License): Likewise.
21322         * modules/expl (License): Likewise.
21323         * modules/logl (License): Likewise.
21324         * modules/sinl (License): Likewise.
21325         * modules/sqrtl (License): Likewise.
21326         * modules/tanl (License): Likewise.
21327         Source code originally from glibc and Paolo Bonzini. Agreements:
21328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
21329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
21330
21331 2011-05-05  Bruno Haible  <bruno@clisp.org>
21332
21333         signal: Define sighandler_t.
21334         * lib/signal.in.h (sighandler_t): New type.
21335         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
21336         whether sighandler_t is defined.
21337         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
21338         * modules/signal (Depends-on): Add extensions.
21339         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
21340         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
21341         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
21342
21343 2011-05-05  Eric Blake  <eblake@redhat.com>
21344
21345         maint: remove useless REPLACE_*_H macros
21346         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
21347         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
21348         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
21349         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
21350         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
21351         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
21352         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
21353         * m4/btowc.m4: Update callers.
21354         * m4/dirfd.m4: Likewise.
21355         * m4/duplocale.m4: Likewise.
21356         * m4/fchdir.m4: Likewise.
21357         * m4/fdopendir.m4: Likewise.
21358         * m4/inet_ntop.m4: Likewise.
21359         * m4/inet_pton.m4: Likewise.
21360         * m4/ioctl.m4: Likewise.
21361         * m4/mbrlen.m4: Likewise.
21362         * m4/mbrtowc.m4: Likewise.
21363         * m4/mbsinit.m4: Likewise.
21364         * m4/mbsnrtowcs.m4: Likewise.
21365         * m4/mbsrtowcs.m4: Likewise.
21366         * m4/poll.m4: Likewise.
21367         * m4/setlocale.m4: Likewise.
21368         * m4/wcrtomb.m4: Likewise.
21369         * m4/wcsnrtombs.m4: Likewise.
21370         * m4/wcsrtombs.m4: Likewise.
21371         * m4/wctob.m4: Likewise.
21372         * m4/wcwidth.m4: Likewise.
21373         * modules/posix_spawn: Likewise.
21374         * modules/posix_spawn_file_actions_addclose: Likewise.
21375         * modules/posix_spawn_file_actions_adddup2: Likewise.
21376         * modules/posix_spawn_file_actions_addopen: Likewise.
21377         * modules/posix_spawn_file_actions_destroy: Likewise.
21378         * modules/posix_spawn_file_actions_init: Likewise.
21379         * modules/posix_spawnattr_destroy: Likewise.
21380         * modules/posix_spawnattr_getflags: Likewise.
21381         * modules/posix_spawnattr_getpgroup: Likewise.
21382         * modules/posix_spawnattr_getschedparam: Likewise.
21383         * modules/posix_spawnattr_getschedpolicy: Likewise.
21384         * modules/posix_spawnattr_getsigdefault: Likewise.
21385         * modules/posix_spawnattr_getsigmask: Likewise.
21386         * modules/posix_spawnattr_init: Likewise.
21387         * modules/posix_spawnattr_setflags: Likewise.
21388         * modules/posix_spawnattr_setpgroup: Likewise.
21389         * modules/posix_spawnattr_setschedparam: Likewise.
21390         * modules/posix_spawnattr_setschedpolicy: Likewise.
21391         * modules/posix_spawnattr_setsigdefault: Likewise.
21392         * modules/posix_spawnattr_setsigmask: Likewise.
21393         * modules/posix_spawnp: Likewise.
21394
21395 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
21396
21397         Add option to do-release-commit-and-tag to specify branch.
21398         * build-aux/do-release-commit-and-tag: Add --branch.
21399
21400 2011-05-03  Bruno Haible  <bruno@clisp.org>
21401
21402         Avoid unnecessary compilation units, through conditional dependencies.
21403         * modules/accept (Depends-on): Add conditions to the dependencies.
21404         * modules/acosl (Depends-on): Likewise.
21405         * modules/argz (Depends-on): Likewise.
21406         * modules/asinl (Depends-on): Likewise.
21407         * modules/atanl (Depends-on): Likewise.
21408         * modules/atoll (Depends-on): Likewise.
21409         * modules/bind (Depends-on): Likewise.
21410         * modules/btowc (Depends-on): Likewise.
21411         * modules/canonicalize-lgpl (Depends-on): Likewise.
21412         * modules/ceil (Depends-on): Likewise.
21413         * modules/ceilf (Depends-on): Likewise.
21414         * modules/ceill (Depends-on): Likewise.
21415         * modules/chdir-long (Depends-on): Likewise.
21416         * modules/chown (Depends-on): Likewise.
21417         * modules/close (Depends-on): Likewise.
21418         * modules/connect (Depends-on): Likewise.
21419         * modules/cosl (Depends-on): Likewise.
21420         * modules/dirfd (Depends-on): Likewise.
21421         * modules/dprintf (Depends-on): Likewise.
21422         * modules/dprintf-posix (Depends-on): Likewise.
21423         * modules/error (Depends-on): Likewise.
21424         * modules/euidaccess (Depends-on): Likewise.
21425         * modules/expl (Depends-on): Likewise.
21426         * modules/faccessat (Depends-on): Likewise.
21427         * modules/fchdir (Depends-on): Likewise.
21428         * modules/fclose (Depends-on): Likewise.
21429         * modules/fcntl (Depends-on): Likewise.
21430         * modules/fdopendir (Depends-on): Likewise.
21431         * modules/fflush (Depends-on): Likewise.
21432         * modules/floor (Depends-on): Likewise.
21433         * modules/floorf (Depends-on): Likewise.
21434         * modules/floorl (Depends-on): Likewise.
21435         * modules/fnmatch (Depends-on): Likewise.
21436         * modules/fopen (Depends-on): Likewise.
21437         * modules/fprintf-posix (Depends-on): Likewise.
21438         * modules/frexp (Depends-on): Likewise.
21439         * modules/frexp-nolibm (Depends-on): Likewise.
21440         * modules/frexpl (Depends-on): Likewise.
21441         * modules/frexpl-nolibm (Depends-on): Likewise.
21442         * modules/fseek (Depends-on): Likewise.
21443         * modules/fsusage (Depends-on): Likewise.
21444         * modules/ftell (Depends-on): Likewise.
21445         * modules/ftello (Depends-on): Likewise.
21446         * modules/futimens (Depends-on): Likewise.
21447         * modules/getcwd (Depends-on): Likewise.
21448         * modules/getcwd-lgpl (Depends-on): Likewise.
21449         * modules/getdelim (Depends-on): Likewise.
21450         * modules/getdomainname (Depends-on): Likewise.
21451         * modules/getgroups (Depends-on): Likewise.
21452         * modules/gethostname (Depends-on): Likewise.
21453         * modules/getline (Depends-on): Likewise.
21454         * modules/getlogin_r (Depends-on): Likewise.
21455         * modules/getopt-posix (Depends-on): Likewise.
21456         * modules/getpeername (Depends-on): Likewise.
21457         * modules/getsockname (Depends-on): Likewise.
21458         * modules/getsockopt (Depends-on): Likewise.
21459         * modules/getsubopt (Depends-on): Likewise.
21460         * modules/getusershell (Depends-on): Likewise.
21461         * modules/glob (Depends-on): Likewise.
21462         * modules/grantpt (Depends-on): Likewise.
21463         * modules/iconv_open (Depends-on): Likewise.
21464         * modules/iconv_open-utf (Depends-on): Likewise.
21465         * modules/inet_ntop (Depends-on): Likewise.
21466         * modules/inet_pton (Depends-on): Likewise.
21467         * modules/ioctl (Depends-on): Likewise.
21468         * modules/isapipe (Depends-on): Likewise.
21469         * modules/isfinite (Depends-on): Likewise.
21470         * modules/isinf (Depends-on): Likewise.
21471         * modules/lchown (Depends-on): Likewise.
21472         * modules/ldexpl (Depends-on): Likewise.
21473         * modules/link (Depends-on): Likewise.
21474         * modules/linkat (Depends-on): Likewise.
21475         * modules/listen (Depends-on): Likewise.
21476         * modules/logl (Depends-on): Likewise.
21477         * modules/lstat (Depends-on): Likewise.
21478         * modules/mbrlen (Depends-on): Likewise.
21479         * modules/mbrtowc (Depends-on): Likewise.
21480         * modules/mbsinit (Depends-on): Likewise.
21481         * modules/mbsnrtowcs (Depends-on): Likewise.
21482         * modules/mbsrtowcs (Depends-on): Likewise.
21483         * modules/mbtowc (Depends-on): Likewise.
21484         * modules/memcmp (Depends-on): Likewise.
21485         * modules/mkdir (Depends-on): Likewise.
21486         * modules/mkdtemp (Depends-on): Likewise.
21487         * modules/mkfifo (Depends-on): Likewise.
21488         * modules/mkfifoat (Depends-on): Likewise.
21489         * modules/mknod (Depends-on): Likewise.
21490         * modules/mkostemp (Depends-on): Likewise.
21491         * modules/mkostemps (Depends-on): Likewise.
21492         * modules/mkstemp (Depends-on): Likewise.
21493         * modules/mkstemps (Depends-on): Likewise.
21494         * modules/mktime (Depends-on): Likewise.
21495         * modules/nanosleep (Depends-on): Likewise.
21496         * modules/open (Depends-on): Likewise.
21497         * modules/openat (Depends-on): Likewise.
21498         * modules/perror (Depends-on): Likewise.
21499         * modules/poll (Depends-on): Likewise.
21500         * modules/popen (Depends-on): Likewise.
21501         * modules/posix_spawn (Depends-on): Likewise.
21502         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
21503         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21504         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21505         * modules/posix_spawnp (Depends-on): Likewise.
21506         * modules/pread (Depends-on): Likewise.
21507         * modules/printf-posix (Depends-on): Likewise.
21508         * modules/ptsname (Depends-on): Likewise.
21509         * modules/putenv (Depends-on): Likewise.
21510         * modules/pwrite (Depends-on): Likewise.
21511         * modules/readline (Depends-on): Likewise.
21512         * modules/readlink (Depends-on): Likewise.
21513         * modules/readlinkat (Depends-on): Likewise.
21514         * modules/recv (Depends-on): Likewise.
21515         * modules/recvfrom (Depends-on): Likewise.
21516         * modules/regex (Depends-on): Likewise.
21517         * modules/remove (Depends-on): Likewise.
21518         * modules/rename (Depends-on): Likewise.
21519         * modules/renameat (Depends-on): Likewise.
21520         * modules/rmdir (Depends-on): Likewise.
21521         * modules/round (Depends-on): Likewise.
21522         * modules/roundf (Depends-on): Likewise.
21523         * modules/roundl (Depends-on): Likewise.
21524         * modules/rpmatch (Depends-on): Likewise.
21525         * modules/select (Depends-on): Likewise.
21526         * modules/send (Depends-on): Likewise.
21527         * modules/sendto (Depends-on): Likewise.
21528         * modules/setenv (Depends-on): Likewise.
21529         * modules/setlocale (Depends-on): Likewise.
21530         * modules/setsockopt (Depends-on): Likewise.
21531         * modules/shutdown (Depends-on): Likewise.
21532         * modules/sigaction (Depends-on): Likewise.
21533         * modules/signbit (Depends-on): Likewise.
21534         * modules/sigprocmask (Depends-on): Likewise.
21535         * modules/sinl (Depends-on): Likewise.
21536         * modules/sleep (Depends-on): Likewise.
21537         * modules/snprintf (Depends-on): Likewise.
21538         * modules/snprintf-posix (Depends-on): Likewise.
21539         * modules/socket (Depends-on): Likewise.
21540         * modules/sprintf-posix (Depends-on): Likewise.
21541         * modules/sqrtl (Depends-on): Likewise.
21542         * modules/stat (Depends-on): Likewise.
21543         * modules/strchrnul (Depends-on): Likewise.
21544         * modules/strdup-posix (Depends-on): Likewise.
21545         * modules/strerror (Depends-on): Likewise.
21546         * modules/strerror_r-posix (Depends-on): Likewise.
21547         * modules/strndup (Depends-on): Likewise.
21548         * modules/strnlen (Depends-on): Likewise.
21549         * modules/strptime (Depends-on): Likewise.
21550         * modules/strsep (Depends-on): Likewise.
21551         * modules/strsignal (Depends-on): Likewise.
21552         * modules/strstr-simple (Depends-on): Likewise.
21553         * modules/strtod (Depends-on): Likewise.
21554         * modules/strtoimax (Depends-on): Likewise.
21555         * modules/strtok_r (Depends-on): Likewise.
21556         * modules/strtoumax (Depends-on): Likewise.
21557         * modules/symlink (Depends-on): Likewise.
21558         * modules/symlinkat (Depends-on): Likewise.
21559         * modules/tanl (Depends-on): Likewise.
21560         * modules/tcgetsid (Depends-on): Likewise.
21561         * modules/tmpfile (Depends-on): Likewise.
21562         * modules/trunc (Depends-on): Likewise.
21563         * modules/truncf (Depends-on): Likewise.
21564         * modules/truncl (Depends-on): Likewise.
21565         * modules/uname (Depends-on): Likewise.
21566         * modules/unlink (Depends-on): Likewise.
21567         * modules/unlockpt (Depends-on): Likewise.
21568         * modules/unsetenv (Depends-on): Likewise.
21569         * modules/usleep (Depends-on): Likewise.
21570         * modules/utimensat (Depends-on): Likewise.
21571         * modules/vasprintf (Depends-on): Likewise.
21572         * modules/vdprintf (Depends-on): Likewise.
21573         * modules/vdprintf-posix (Depends-on): Likewise.
21574         * modules/vfprintf-posix (Depends-on): Likewise.
21575         * modules/vprintf-posix (Depends-on): Likewise.
21576         * modules/vsnprintf (Depends-on): Likewise.
21577         * modules/vsnprintf-posix (Depends-on): Likewise.
21578         * modules/vsprintf-posix (Depends-on): Likewise.
21579         * modules/wcrtomb (Depends-on): Likewise.
21580         * modules/wcscasecmp (Depends-on): Likewise.
21581         * modules/wcscspn (Depends-on): Likewise.
21582         * modules/wcsdup (Depends-on): Likewise.
21583         * modules/wcsncasecmp (Depends-on): Likewise.
21584         * modules/wcsnrtombs (Depends-on): Likewise.
21585         * modules/wcspbrk (Depends-on): Likewise.
21586         * modules/wcsrtombs (Depends-on): Likewise.
21587         * modules/wcsspn (Depends-on): Likewise.
21588         * modules/wcsstr (Depends-on): Likewise.
21589         * modules/wcstok (Depends-on): Likewise.
21590         * modules/wcswidth (Depends-on): Likewise.
21591         * modules/wctob (Depends-on): Likewise.
21592         * modules/wctomb (Depends-on): Likewise.
21593         * modules/wctype (Depends-on): Likewise.
21594         * modules/wcwidth (Depends-on): Likewise.
21595         * modules/write (Depends-on): Likewise.
21596
21597 2011-05-03  Bruno Haible  <bruno@clisp.org>
21598
21599         Support for conditional dependencies.
21600         * doc/gnulib.texi (Module description): Document the syntax of
21601         conditional dependencies.
21602         * gnulib-tool: New option --conditional-dependencies.
21603         (func_usage): Document it.
21604         (cond_dependencies): New variable.
21605         (func_get_automake_snippet_conditional,
21606         func_get_automake_snippet_unconditional): New functions, extracted from
21607         func_get_automake_snippet.
21608         (func_get_automake_snippet): Use them.
21609         (sed_first_32_chars): New variable.
21610         (func_module_shellfunc_name): New function.
21611         (func_module_shellvar_name): New function.
21612         (func_module_conditional_name): New function.
21613         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
21614         func_cond_module_condition): New functions.
21615         (func_modules_transitive_closure): Add support for conditional
21616         dependencies.
21617         (func_emit_lib_Makefile_am): For a conditional module, enclose the
21618         conditional automake snippet in an automake conditional.
21619         (func_emit_autoconf_snippets): Emit shell functions that contain the
21620         code for conditional modules.
21621         (func_import, func_create_testdir): Update specification.
21622
21623 2011-05-03  Eric Blake  <eblake@redhat.com>
21624
21625         test-getaddrinfo: report error information
21626         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
21627
21628 2011-05-03  Jim Meyering  <meyering@redhat.com>
21629
21630         bootstrap: avoid build failure when $GZIP is set
21631         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
21632         program name.  If defined at all, it is supposed to list gzip options.
21633         Reported by Alan Curry in http://debbugs.gnu.org/8609
21634
21635 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
21636
21637         readme-release: new module with release instructions
21638         * modules/readme-release: New module.
21639         * top/README-release: New file, from coreutils, grep, diffutils.
21640         * MODULES.html.sh (Support for maintaining and releasing): Add it.
21641
21642 2011-05-02  Eric Blake  <eblake@redhat.com>
21643
21644         fflush: also replace fclose when fixing fflush
21645         * modules/fflush (Depends-on): Add fclose.
21646         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
21647         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
21648         memstreams with no backing fd.
21649         * doc/posix-functions/fclose.texi (fclose): Document the use of
21650         fflush module to fix the bug.
21651         * tests/test-fclose.c (main): Relax test when fclose is used in
21652         isolation.
21653
21654         fclose: add some tests
21655         * modules/fclose-tests: New test module.
21656         * tests/test-fclose.c: New file.
21657         * doc/posix-functions/fclose.texi (fclose): Document the bug.
21658
21659         fclose: reduced dependencies
21660         * modules/fclose (Depends-on): Switch from fflush/fseeko to
21661         simpler lseek.
21662         * lib/fclose.c (rpl_fclose): Likewise.
21663         Reported by Simon Josefsson.
21664
21665         exit: drop remaining clients
21666         * modules/argmatch (Depends-on): Replace exit with stdlib.
21667         * modules/copy-file (Depends-on): Likewise.
21668         * modules/execute (Depends-on): Likewise.
21669         * modules/exitfail (Depends-on): Likewise.
21670         * modules/obstack (Depends-on): Likewise.
21671         * modules/pagealign_alloc (Depends-on): Likewise.
21672         * modules/pipe-filter-gi (Depends-on): Likewise.
21673         * modules/pipe-filter-ii (Depends-on): Likewise.
21674         * modules/savewd (Depends-on): Likewise.
21675         * modules/spawn-pipe (Depends-on): Likewise.
21676         * modules/wait-process (Depends-on): Likewise.
21677         * modules/xsetenv (Depends-on): Likewise.
21678         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
21679         * modules/git-merge-changelog (Depends-on): Likewise.
21680         * modules/long-options (Depends-on): Likewise.
21681         * modules/pt_chown (Depends-on): Likewise.
21682         * modules/sysexits (Depends-on): Likewise.
21683
21684         freading: relax license from LGPLv3+ to LGPLv2+
21685         * modules/freading (License): Relax LGPL version.
21686
21687 2011-05-02  Bruno Haible  <bruno@clisp.org>
21688
21689         fchdir: Remove unused dependencies.
21690         * modules/fchdir (Depends-on): Remove include_next.
21691
21692 2011-05-02  Bruno Haible  <bruno@clisp.org>
21693
21694         gnulib-tool: Refactor.
21695         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
21696         from func_emit_autoconf_snippets.
21697         (func_emit_autoconf_snippets): Use it.
21698
21699 2011-05-02  Simon Josefsson  <simon@josefsson.org>
21700
21701         * NEWS: Document removal of 'exit'.
21702         * modules/exit: Remove file.
21703
21704 2011-05-01  Bruno Haible  <bruno@clisp.org>
21705
21706         Update DEPENDENCIES.
21707         * DEPENDENCIES (gettext): Recommend the newest release.
21708         Reported by Simon Josefsson.
21709
21710 2011-05-01  Bruno Haible  <bruno@clisp.org>
21711
21712         gnulib-tool: Reduce code duplication.
21713         * gnulib-tool (func_emit_autoconf_snippets): New function.
21714         (func_import, func_create_testdir): Use it.
21715
21716 2011-04-30  Eric Blake  <eblake@redhat.com>
21717
21718         fclose: don't fail on non-seekable input stream
21719         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
21720         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
21721         since fflush is allowed to fail in that case.
21722
21723 2011-04-30  Bruno Haible  <bruno@clisp.org>
21724
21725         dup3: cleanup
21726         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
21727
21728 2011-04-30  Bruno Haible  <bruno@clisp.org>
21729
21730         netdb: Make it work in C++ mode.
21731         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
21732         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
21733         module.
21734         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
21735         gl_MODULE_INDICATOR_FOR_TESTS.
21736         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
21737         * modules/netdb-c++-tests: New file.
21738         * tests/test-netdb-c++.cc: New file.
21739
21740 2011-04-30  Bruno Haible  <bruno@clisp.org>
21741
21742         New modules 'vfscanf', 'vscanf'.
21743         * modules/vfscanf: New file.
21744         * modules/vscanf: New file.
21745         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
21746         here.
21747         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
21748         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
21749
21750 2011-04-30  Bruno Haible  <bruno@clisp.org>
21751
21752         passfd: Add comments.
21753         * lib/passfd.c: Add comments about platforms.
21754
21755 2011-04-30  Bruno Haible  <bruno@clisp.org>
21756
21757         sys_uio: Make <sys/uio.h> self-contained.
21758         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
21759         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
21760
21761 2011-04-30  Bruno Haible  <bruno@clisp.org>
21762
21763         sys_socket: Ensure 'struct iovec' definition.
21764         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
21765         <sys/socket.h>.
21766         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
21767
21768 2011-04-30  Bruno Haible  <bruno@clisp.org>
21769
21770         sys_uio: Protect definition of 'struct iovec'.
21771         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
21772         it as a C struct.
21773
21774 2011-04-30  Bruno Haible  <bruno@clisp.org>
21775
21776         manywarnings: fix indentation
21777         * m4/manywarnings.m4: Indent by 2 spaces consistently.
21778
21779 2011-04-30  Pádraig Brady <P@draigBrady.com>
21780
21781         manywarnings: add -Wno-missing-field-initializers if needed.
21782         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
21783         option if it's needed to allow initialization with { 0, }
21784
21785 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
21786
21787         announce-gen: cosmetic improvement
21788         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
21789
21790 2011-04-29  Jim Meyering  <meyering@redhat.com>
21791
21792         vc-list-files: indent with spaces, not TABs
21793         * build-aux/vc-list-files: Convert leading TABs to spaces,
21794         to match the style of most other files in gnulib.
21795
21796         announce-gen: indent with spaces, not TABs
21797         * build-aux/announce-gen: Convert all TABs to spaces, to match
21798         the style of most other files in gnulib.
21799
21800 2011-04-29  Eric Blake  <eblake@redhat.com>
21801
21802         quotearg: avoid uninitialized variable use
21803         * lib/quotearg.c (quoting_options_from_style): Initialize
21804         remaining fields, and ensure that custom styles are only used via
21805         quoting_options rather than quoting_style.
21806
21807 2011-04-29  Jim Meyering  <meyering@redhat.com>
21808
21809         maint.mk: remove unused VC-tag variable
21810         * top/maint.mk (VC-tag): Remove unused variable.
21811
21812 2011-04-29  Bruno Haible  <bruno@clisp.org>
21813
21814         netdb: fix gai_strerror replacements
21815         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
21816         * modules/netdb: Substitute it.
21817
21818 2011-04-29  Jim Meyering  <meyering@redhat.com>
21819
21820         test-getcwd.c: avoid new set-but-not-used warning
21821         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
21822         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
21823         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
21824         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
21825
21826         test-hash.c: avoid a new shadowing warning
21827         * tests/test-hash.c (main): Don't shadow "dup".
21828
21829 2011-04-28  Eric Blake  <eblake@redhat.com>
21830
21831         getaddrinfo: fix gai_strerror signature
21832         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21833         and work around mingw with UNICODE defined.
21834         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21835         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21836         * modules/netdb (Makefile.am): Substitute it.
21837         * lib/netdb.in.h (gai_strerror): Declare replacement.
21838         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21839         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21840         the fix.
21841
21842         getsockopt: avoid compiler warning
21843         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21844         Reported by Matthias Bolte.
21845
21846         tests: drop unused link dependency
21847         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21848         * modules/dirent-safer-tests (Makefile.am): Likewise.
21849         * modules/fdopendir-tests (Makefile.am): Likewise.
21850         * modules/mkfifoat-tests (Makefile.am): Likewise.
21851         * modules/openat-safer-tests (Makefile.am): Likewise.
21852         * modules/openat-tests (Makefile.am): Likewise.
21853         * modules/readlinkat-tests (Makefile.am): Likewise.
21854         * modules/symlinkat-tests (Makefile.am): Likewise.
21855         * modules/linkat-tests (Makefile.am): Likewise.
21856         (Depends-on): Switch to filenamecat-lgpl.
21857         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21858         LIBINTL.
21859         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21860         * tests/test-linkat.c (main): Don't require xalloc.
21861
21862         hash, mgetgroups: drop xalloc dependency
21863         * lib/hash.c (includes): Adjust includes.
21864         * lib/mgetgroups.c (includes): Likewise.
21865         (xgetgroups): Move...
21866         * lib/xgetgroups.c: ...to new file.
21867         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21868         * modules/xgetgroups: New file, split from...
21869         * modules/mgetgroups: ...here.
21870         (Depends-on): Add xalloc-oversized.
21871         * modules/hash (Depends-on): Likewise.
21872         * modules/hash-tests (Depends-on): Drop xalloc.
21873         (test_hash_LDADD): Drop unused library.
21874         * tests/test-hash.c (main): Break xalloc dependency.
21875         (includes): Drop unused include.
21876
21877         xalloc-oversized: new module
21878         * modules/xalloc-oversized: New module.
21879         * modules/xalloc (Depends-on): Add it.
21880         * lib/xalloc.h (xalloc_oversized): Move...
21881         * lib/xalloc-oversized.h: ...into new file.
21882
21883         utimecmp: drop dependency on xmalloc
21884         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21885         due to memory pressure.
21886         * modules/utimecmp (Depends-on): Drop xalloc.
21887
21888 2011-04-27  Eric Blake  <eblake@redhat.com>
21889
21890         getcwd: fix mingw bugs
21891         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21892         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21893         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21894
21895 2011-04-27  Bruno Haible  <bruno@clisp.org>
21896
21897         mkstemps: Ensure declaration on MacOS X 10.5.
21898         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21899         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21900         MacOS X.
21901
21902 2011-04-27  Bruno Haible  <bruno@clisp.org>
21903
21904         mkstemp: More documentation.
21905         * doc/posix-functions/mkstemp.texi: Document header file problem on
21906         MacOS X.
21907
21908 2011-04-27  Bruno Haible  <bruno@clisp.org>
21909
21910         mkstemp: Tweak configure message when cross-compiling.
21911         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21912         result as a guess.
21913
21914 2011-04-27  Bruno Haible  <bruno@clisp.org>
21915
21916         clean-temp: Clarify what it does.
21917         * lib/clean-temp.h: Add more comments.
21918         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21919         module.
21920         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21921         * doc/glibc-functions/mkstemps.texi: Likewise.
21922         * doc/glibc-functions/mkostemps.texi: Likewise.
21923
21924 2011-04-27  Eric Blake  <eblake@redhat.com>
21925
21926         fchdir: avoid extra chdir and fix test
21927         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21928         getcwd-lgpl.
21929         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21930         have to be canonical.
21931         (canonicalize_file_name): Drop unused macro.
21932         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21933
21934         filenamecat-lgpl: fix licence
21935         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21936         when it was first created.
21937
21938         linkat, renameat: add missing dependency
21939         * modules/linkat (Depends-on): Require getcwd-lgpl.
21940         * modules/renameat (Depends-on): Likewise.
21941
21942         tests: reduce dependencies
21943         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21944         * tests/test-renameat.c (main): Likewise.
21945         * modules/linkat-tests (Depends-on): Relax dependency.
21946         * modules/renameat-tests (Depends-on): Likewise.
21947         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21948         dependency explicit.
21949
21950         save-cwd: reduce default dependency
21951         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21952         * lib/save-cwd.c: Update comments.
21953         * NEWS: Document the semantic change.
21954
21955         getcwd: enhance tests
21956         * tests/test-getcwd-lgpl.c: New file, taken from...
21957         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21958         repeat long path stress tests from m4 probe.
21959         * modules/getcwd-lgpl-tests: New module.
21960         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21961         * m4/getcwd-abort-bug.m4: Update comment.
21962         * m4/getcwd-path-max.m4: Likewise.
21963
21964         getcwd-lgpl: new module
21965         * modules/getcwd-lgpl: New module.
21966         * lib/getcwd-lgpl.c: New file.
21967         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21968         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21969         * modules/getcwd (configure.ac): Set C witness.
21970         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21971
21972         getcwd: tweak comments
21973         * m4/getcwd-abort-bug.m4: Fix comments.
21974         * m4/getcwd-path-max.m4: Likewise.
21975         * m4/getcwd.m4: Likewise.
21976
21977 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21978         and Eric Blake  <eblake@redhat.com>
21979
21980         mkstemp: replace if system version uses wrong permissions
21981         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21982         read/write mode bits set in file created by mkstemp.
21983         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21984
21985 2011-04-27  Eric Blake  <eblake@redhat.com>
21986
21987         passfd: avoid compiler warning
21988         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21989         Reported by Laine Stump.
21990
21991 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21992
21993         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21994         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21995
21996 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21997         and Eric Blake  <eblake@redhat.com>
21998
21999         mkstemp: mention clean-temp module
22000         * lib/mkstemp.c: Add comment.
22001         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22002
22003 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         inttypes: also provide default values for 32-bit tests
22006         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22007         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22008
22009 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22010
22011         strtoumax: remove dependency on strtoimax
22012         This is like the strtoull change of yesterday.
22013         * modules/strtoumax (Files): Add lib/strtoimax.c.
22014         (Depends-on): Remove strtoimax and add verify.
22015
22016         inttypes-incomplete: new module
22017         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22018         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22019         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22020         of gl_INTTYPES_H.
22021         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22022         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22023         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22024         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22025         * modules/strtoumax, modules/xstrtol (Depends-on):
22026         Depend on inttypes-incomplete, not inttypes.
22027         * modules/inttypes-incomplete: New module, containing the contents
22028         of the old modules/inttypes module, except that the Files: section
22029         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22030         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22031         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22032         (Depends-on): Depend only on inttypes-incomplete.
22033         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22034
22035         inttypes: omit now-redundant strtoimax and strtoumax work
22036         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22037         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22038
22039         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22040         This supports apps that need pointers to strtoimax and strtoumax,
22041         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22042         nonexistent functions.  See
22043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22044         et seq.
22045         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22046         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22047         a macro.
22048         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22049
22050 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22051
22052         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22053
22054 2011-04-25  Bruno Haible  <bruno@clisp.org>
22055
22056         strtol, strtoul: Mark modules as obsolete.
22057         * modules/strtol (Status, Notice): New sections.
22058         * modules/strtoul (Status, Notice): New sections.
22059
22060 2011-04-25  Bruno Haible  <bruno@clisp.org>
22061
22062         strtod: Remove check for strtod, unless supporting old platforms.
22063         * modules/strtod-obsolete: New file.
22064         * m4/strtod-obsolete.m4: New file.
22065         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
22066         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
22067         * modules/strtod (Depends-on): Add strtod-obsolete.
22068         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
22069
22070 2011-04-25  Bruno Haible  <bruno@clisp.org>
22071
22072         strcase: Make module obsolete.
22073         * modules/strcase (Status, Notice): New sections.
22074
22075 2011-04-25  Bruno Haible  <bruno@clisp.org>
22076
22077         dup2: Remove check for dup2, unless supporting old obsolete platforms.
22078         * modules/dup2-obsolete: New file.
22079         * m4/dup2-obsolete.m4: New file.
22080         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
22081         gl_FUNC_DUP2_OBSOLETE is not also defined.
22082         * modules/dup2 (Depends-on): Add dup2-obsolete.
22083         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
22084
22085 2011-04-25  Bruno Haible  <bruno@clisp.org>
22086
22087         strnlen: Avoid memchr related link error on old obsolete platforms.
22088         * modules/memchr-obsolete: New file.
22089         * m4/memchr-obsolete.m4: New file.
22090         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
22091         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
22092         * modules/memchr (Depends-on): Add memchr-obsolete.
22093         * modules/strnlen (Depends-on): Likewise.
22094         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
22095
22096 2011-04-25  Jim Meyering  <meyering@redhat.com>
22097
22098         maint.mk: makefile_at_at_check extend and clean up
22099         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
22100         in addition to */Makefile.am.
22101         Exempt legitimate uses of @VAR@ notation, e.g.,
22102         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
22103         Remove obsolete coreutils-specific comment.
22104         Prompted by discussion here:
22105         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
22106
22107 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
22108
22109         strtoul: remove dependency on strtol
22110         This is so that 'configure' need not check for strtol merely because
22111         the application needs strtoul.
22112         * modules/strtoul (Files): Add lib/strtol.c.
22113         (Depends-on): Remove strtol.
22114
22115         strtoull: remove dependency on strtoul
22116         This is like the strtoll change.
22117         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
22118         (Depends-on): Remove strtoul.
22119
22120         strtoll: remove dependency on strtol
22121         This is so that 'configure' need not check for strtol merely because
22122         the application needs strtoll.
22123         * modules/strtoll (Files): Add lib/strtol.c.
22124         (Depends-on): Remove strtol.
22125
22126 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22127
22128         inttypes: Move some configure check to module 'imaxdiv'.
22129         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
22130         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
22131         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
22132
22133 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22134
22135         inttypes: Move some configure check to module 'imaxabs'.
22136         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
22137         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
22138         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
22139
22140 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22141
22142         inttypes: Remove configure tests that are not needed since 2009-12-31.
22143         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
22144         gl_cv_header_working_inttypes_h.
22145
22146 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
22147
22148         * modules/strnlen (Depends-on): Remove memchr.
22149         The strnlen implementation doesn't need the memchr module's fixes; see
22150         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
22151
22152         strtol: remove dependency on wchar
22153         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
22154         * modules/strtol (Depends-on): Remove wchar.
22155
22156 2011-04-21  Eric Blake  <eblake@redhat.com>
22157
22158         passfd: fix test regression on Linux
22159         * modules/passfd-tests (configure.ac): Correct socketpair check.
22160
22161         passfd: speed up configure and drop unused code
22162         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
22163         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
22164         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
22165         Instead of probing at configure for unix_scm_rights_bsd44_way,
22166         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
22167         check to a struct member probe.
22168         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
22169         (sendfd, recvfd): Update preprocessor checks.
22170         * modules/passfd (Files): Reflect rename, and drop unused file.
22171         (Depends-on): Drop unused dependency.
22172
22173         passfd: allow compilation on mingw
22174         * modules/sys_socket (Depends-on): Add sys_uio.
22175         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
22176         iovec and a minimal struct msghdr.
22177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
22178         * tests/test-sys_socket.c (main): Enhance test.
22179         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
22180         guaranteed to provide what we need.
22181         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
22182         * modules/passfd-tests (Depends-on): Add sys_wait.
22183         * tests/test-passfd.c (main): Skip test on mingw, for now.
22184         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
22185         partial 'struct msghdr' implementation.
22186
22187         sys_uio: new module
22188         * modules/sys_uio: New module.
22189         * modules/sys_uio-tests: Likewise.
22190         * lib/sys_uio.in.h: New file.
22191         * m4/sys_uio_h.m4: Likewise.
22192         * tests/test-sys_uio.c: Likewise.
22193         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
22194         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
22195
22196 2011-04-20  Jim Meyering  <meyering@redhat.com>
22197
22198         useless-if-before-free: avoid false-positive
22199         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
22200         disjunct so that it too requires a terminating ";".  Without that,
22201         this script would identify as useless one statement from gcc that
22202         was not:
22203           if (aligned_ptr)
22204             free (((void **) aligned_ptr) [-1]);
22205
22206 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
22207
22208         doc: update users.txt.
22209         * users.txt: Add barcode.
22210
22211 2011-04-19  Bruno Haible  <bruno@clisp.org>
22212
22213         ioctl: Remove link dependency on native Windows.
22214         * lib/fd-hook.h: Renamed from lib/close-hook.h.
22215         (gl_close_fn, gl_ioctl_fn): New types.
22216         (struct fd_hook): Renamed from struct close_hook. Change type of
22217         private_close_fn field. Add private_ioctl_fn field.
22218         (close_hook_fn): Add parameter for primary close method.
22219         (execute_close_hooks, execute_all_close_hooks): Likewise.
22220         (ioctl_hook_fn): New type.
22221         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
22222         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22223         argument.
22224         (unregister_fd_hook): Renamed from unregister_close_hook.
22225         * lib/fd-hook.c: Renamed from lib/close-hook.c.
22226         Don't include <unistd.h>.
22227         (close): Remove undef.
22228         (anchor): Update.
22229         (execute_close_hooks): Add argument for primary close method.
22230         (execute_all_close_hooks): Likewise.
22231         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
22232         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
22233         argument. Allow each argument to be NULL.
22234         (unregister_fd_hook): Renamed from unregister_close_hook.
22235         * lib/close.c (rpl_close): Pass 'close' function pointer to
22236         execute_all_close_hooks.
22237         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
22238         (primary_ioctl): New function.
22239         (ioctl): Don't call ioctlsocket here. Instead, call
22240         execute_all_ioctl_hooks.
22241         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
22242         close method.
22243         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
22244         (fd_sockets_hook): Renamed from close_sockets_hook.
22245         (gl_sockets_startup, gl_sockets_cleanup): Update.
22246         * modules/fd-hook: Renamed from modules/close-hook. Update.
22247         * modules/close (Depends-on): Add fd-hook, remove close-hook.
22248         * modules/sockets (Depends-on): Likewise.
22249         * modules/ioctl (Depends-on): Add fd-hook.
22250         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
22251         GNULIB_SOCKET.
22252
22253 2011-04-19  Bruno Haible  <bruno@clisp.org>
22254
22255         Move the support of O_NONBLOCK in open() to the 'open' module.
22256         * modules/nonblocking (Depends-on): Remove 'open'.
22257         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
22258         gl_cv_have_open_O_NONBLOCK.
22259         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
22260         O_NONBLOCK support.
22261         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
22262
22263 2011-04-17  Bruno Haible  <bruno@clisp.org>
22264
22265         pipe2: Simplify code.
22266         * lib/pipe2.c (pipe2): Reduce code duplication.
22267
22268 2011-04-17  Bruno Haible  <bruno@clisp.org>
22269
22270         nonblocking: Add comment.
22271         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
22272
22273 2011-04-17  Bruno Haible  <bruno@clisp.org>
22274
22275         nonblocking: Add tests for sockets.
22276         * tests/test-nonblocking-socket.sh: New file.
22277         * tests/test-nonblocking-socket-main.c: New file.
22278         * tests/test-nonblocking-socket-child.c: New file.
22279         * tests/test-nonblocking-socket.h: New file.
22280         * tests/socket-server.h: New file.
22281         * tests/socket-client.h: New file.
22282         * modules/nonblocking-socket-tests: New file.
22283         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
22284
22285 2011-04-17  Bruno Haible  <bruno@clisp.org>
22286
22287         nonblocking: Add tests for pipes.
22288         * tests/test-nonblocking-pipe.sh: New file.
22289         * tests/test-nonblocking-pipe-main.c: New file.
22290         * tests/test-nonblocking-pipe-child.c: New file.
22291         * tests/test-nonblocking-pipe.h: New file.
22292         * tests/test-nonblocking-writer.h: New file.
22293         * tests/test-nonblocking-reader.h: New file.
22294         * tests/test-nonblocking-misc.h: New file.
22295         * modules/nonblocking-pipe-tests: New file.
22296         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
22297
22298 2011-04-16  Bruno Haible  <bruno@clisp.org>
22299
22300         gettext: Clarify the needed programmer actions.
22301         * modules/gettext (Notice): New field.
22302         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22303
22304 2011-04-16  Bruno Haible  <bruno@clisp.org>
22305
22306         strchrnul: Tweak last commit.
22307         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
22308         bug.
22309         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
22310         as in _GL_FUNCDECL_SYS.
22311         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
22312         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
22313
22314 2011-04-15  Eric Blake  <eblake@redhat.com>
22315
22316         strchrnul: work around cygwin bug
22317         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
22318         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
22319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
22320         * modules/string (Makefile.am): Substitute it.
22321         * lib/string.in.h (strchrnul): Use it.
22322
22323 2011-04-15  Bruno Haible  <bruno@clisp.org>
22324
22325         Don't require lib/stdio-write.c when only module 'stdio' is used.
22326         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
22327         invocation.
22328         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
22329
22330 2011-04-14  Bruno Haible  <bruno@clisp.org>
22331
22332         Support non-blocking pipe I/O in read() on native Windows.
22333         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
22334         (read): New declaration.
22335         * lib/read.c: New file.
22336         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
22337         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
22338         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
22339         vscanf): New declarations.
22340         * lib/stdio-read.c: New file.
22341         * m4/read.m4: New file.
22342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
22343         REPLACE_READ.
22344         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
22345         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22346         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
22347         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
22348         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
22349         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22350         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22351         * modules/read: New file.
22352         * modules/nonblocking (Files): Add lib/stdio-read.c.
22353         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
22354         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
22355         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
22356         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
22357         * modules/pread (Depends-on): Add read.
22358         * modules/safe-read (Depends-on): Likewise.
22359         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
22360         gets, scanf, vfscanf, vscanf): Verify signatures.
22361         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
22362         problem with non-blocking pipes.
22363         * doc/posix-functions/fgetc.texi: Likewise.
22364         * doc/posix-functions/fgets.texi: Likewise.
22365         * doc/posix-functions/fread.texi: Likewise.
22366         * doc/posix-functions/fscanf.texi: Likewise.
22367         * doc/posix-functions/getc.texi: Likewise.
22368         * doc/posix-functions/getchar.texi: Likewise.
22369         * doc/posix-functions/gets.texi: Likewise.
22370         * doc/posix-functions/scanf.texi: Likewise.
22371         * doc/posix-functions/vfscanf.texi: Likewise.
22372         * doc/posix-functions/vscanf.texi: Likewise.
22373
22374 2011-04-14  Bruno Haible  <bruno@clisp.org>
22375
22376         Support non-blocking pipe I/O in write() on native Windows.
22377         * lib/write.c (rpl_write): Split a write request that failed merely
22378         because the byte count was larger than the pipe buffer's size.
22379         * doc/posix-functions/write.texi: Mention the problem with large byte
22380         counts.
22381
22382 2011-04-14  Bruno Haible  <bruno@clisp.org>
22383
22384         wchar: Ensure that wchar_t gets defined on uClibc.
22385         * lib/wchar.in.h: On uClibc, include <stddef.h>.
22386         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
22387
22388 2011-04-13  Bruno Haible  <bruno@clisp.org>
22389
22390         safe-write, full-read: Avoid unnecessary compilation units.
22391         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
22392         (Depends-on): Remove safe-read. Add ssize_t.
22393         * modules/full-read (Files): Add lib/full-write.c.
22394         (Depends-on): Add full-write.
22395
22396 2011-04-13  Bruno Haible  <bruno@clisp.org>
22397
22398         Support non-blocking pipe I/O and SIGPIPE in pwrite().
22399         * modules/pwrite (Depends-on): Add 'write'.
22400
22401 2011-04-13  Bruno Haible  <bruno@clisp.org>
22402
22403         Support non-blocking pipe I/O in write() on native Windows.
22404         * lib/unistd.in.h (write): Enable replacement also if
22405         GNULIB_UNISTD_H_NONBLOCKING is 1.
22406         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
22407         (rpl_write): When failing to write on a non-blocking pipe, change
22408         errno from ENOSPC to EAGAIN.
22409         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
22410         putchar, puts, vfprintf, vprintf): Enable replacement also if
22411         GNULIB_STDIO_H_NONBLOCKING is 1.
22412         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
22413         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
22414         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
22415         CALL_WITH_SIGPIPE_EMULATION.
22416         (CALL_WITH_SIGPIPE_EMULATION): Use them.
22417         * m4/nonblocking.m4: New file.
22418         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
22419         for non-blocking I/O support.
22420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22421         GNULIB_UNISTD_H_NONBLOCKING.
22422         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
22423         required for non-blocking I/O support.
22424         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
22425         * modules/nonblocking (Files): Add m4/nonblocking.m4,
22426         lib/stdio-write.c, m4/asm-underscore.m4.
22427         (Depends-on): Add stdio, unistd.
22428         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
22429         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
22430         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
22431         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
22432         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
22433         problem with non-blocking pipes.
22434         * doc/posix-functions/fputc.texi: Likewise.
22435         * doc/posix-functions/fputs.texi: Likewise.
22436         * doc/posix-functions/fwrite.texi: Likewise.
22437         * doc/posix-functions/printf.texi: Likewise.
22438         * doc/posix-functions/putc.texi: Likewise.
22439         * doc/posix-functions/putchar.texi: Likewise.
22440         * doc/posix-functions/puts.texi: Likewise.
22441         * doc/posix-functions/vfprintf.texi: Likewise.
22442         * doc/posix-functions/vprintf.texi: Likewise.
22443         * doc/posix-functions/write.texi: Likewise.
22444
22445 2011-04-10  Jim Meyering  <meyering@redhat.com>
22446
22447         maint.mk: prohibit doubled words
22448         Detect them also when they're separated by a newline.
22449         There are 3 ways to customize it:
22450           - disable the test on a per file basis, as usual with rules using
22451             $(VC_LIST_EXCEPT)
22452           - replace the default doubled-word-selecting regexp (affects all files)
22453           - ignore a particular file-vs-doubled-word match
22454         I nearly used that last one to ignore the "is is" match in
22455         coreutils' NEWS file, since the text was "ls -is is ..."
22456         To do that, I would have added this line to cfg.mk:
22457           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
22458         but it would have ignored any "is is" match in NEWS.
22459         Low probability, but still...
22460         Instead, I changed the text, slightly:
22461           -  ls -is is now consistent with ls -lis in ignoring values returned
22462           +  "ls -is" is now consistent with ls -lis in ignoring values returned
22463         * top/maint.mk (prohibit_double_word_RE_): Provide default.
22464         (prohibit_doubled_word_): Define.
22465         (sc_prohibit_doubled_word): New rule.
22466         (sc_prohibit_the_the): Remove.  Subsumed by the above.
22467
22468 2011-04-10  Jim Meyering  <meyering@redhat.com>
22469
22470         maint: fix doubled-word typo in comment
22471         * m4/gethostname.m4: s/is is/it is/
22472         * m4/getdomainname.m4: Likewise.
22473
22474 2011-04-10  Jim Meyering  <meyering@redhat.com>
22475
22476         maint: remove doubled word: s/it it/it/
22477         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
22478
22479 2011-04-10  Jim Meyering  <meyering@redhat.com>
22480
22481         maint.mk: remove useless semicolon and backslash
22482         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
22483         semicolon and backslash.
22484
22485 2011-04-10  Bruno Haible  <bruno@clisp.org>
22486
22487         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
22488         * modules/stdint-tests (Depends-on): Add wchar.
22489
22490 2011-04-10  Jim Meyering  <meyering@redhat.com>
22491
22492         maint: remove doubled words in comments, e.g., s/a a/a/
22493         * lib/strptime.c (day_of_the_week): s/the the/the/
22494         * tests/test-chown.h (test_chown): s/a a/a/
22495
22496         test-chown.h: correct a cast
22497         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
22498         when the destination is a stat.st_gid.
22499
22500 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
22501
22502         getaddrinfo: Fix test for sa_len member.
22503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
22504         include <sys/types.h> before <sys/socket.h>.
22505
22506 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22507
22508         maint: change "can not" to "cannot"
22509         * doc/posix-functions/iconv.texi (iconv): This one crossed line
22510         boundaries.
22511
22512 2011-04-09  Jim Meyering  <meyering@redhat.com>
22513
22514         maint: change "a a" to "a"
22515         * tests/test-lchown.h (test_lchown): s/a a/a/
22516
22517         maint.mk: prohibit \<the the\>
22518         * top/maint.mk (sc_prohibit_the_the): New rule.
22519
22520         maint: fix "the the" in comment
22521         * lib/count-one-bits.h: s/the the/the/
22522
22523         maint: change "can not" to "cannot"
22524         But do not change the occurrences in maintain.texi or in
22525         build-aux/po/Makefile.in.in, which I presume comes from gettext.
22526         * doc/gnulib-tool.texi: s/can not/cannot/
22527         * doc/posix-functions/accept.texi (accept): Likewise.
22528         * doc/posix-functions/socket.texi (socket): Likewise.
22529         * lib/mbrtowc.c: Likewise.
22530
22531         maint.mk: prohibit use of "can not"
22532         * top/maint.mk (sc_prohibit_can_not): New rule.
22533         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
22534
22535 2011-04-09  Bruno Haible  <bruno@clisp.org>
22536
22537         careadlinkat: Guard against misuse of careadlinkatcwd.
22538         * lib/careadlinkat.c: Include <stdlib.h>.
22539         (careadlinkatcwd): Check that the fd argument is as expected.
22540
22541 2011-04-09  Bruno Haible  <bruno@clisp.org>
22542
22543         careadlinkat: Use common coding style.
22544         * lib/careadlinkat.c: Move gnulib includes after system includes.
22545
22546 2011-04-09  Bruno Haible  <bruno@clisp.org>
22547
22548         careadlinkat: Clarify specification.
22549         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
22550         (careadlinkatcwd): Add comment.
22551         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
22552
22553 2011-04-09  Bruno Haible  <bruno@clisp.org>
22554
22555         areadlinkat: Avoid link error on many platforms.
22556         * modules/areadlinkat (Depends-on): Add areadlink.
22557
22558 2011-04-09  Bruno Haible  <bruno@clisp.org>
22559
22560         allocator, careadlinkat: Fix double-inclusion guard.
22561         * lib/allocator.h: Fix double-inclusion guard.
22562         * lib/careadlinkat.h: Likewise.
22563
22564 2011-04-09  Bruno Haible  <bruno@clisp.org>
22565
22566         relocatable-prog-wrapper: Update after module 'areadlink' changed.
22567         * lib/relocwrapper.c: Update dependencies hierarchy.
22568         * build-aux/install-reloc: Update list of files to be compiled.
22569         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
22570         lib/allocator.[hc].
22571
22572 2011-04-08  Eric Blake  <eblake@redhat.com>
22573
22574         strftime: silence gnulib-tool warning
22575         * modules/strftime-tests (Depends-on): Drop automatic dependency.
22576
22577 2011-04-08  Bruno Haible  <bruno@clisp.org>
22578
22579         verify: Fix syntax error with GCC 4.6 in C++ mode.
22580         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
22581         (HAVE_STATIC_ASSERT): New macro.
22582         (verify_true, verify): Use 'static_assert' if it is supported and
22583         '_Static_assert' is not supported.
22584
22585 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
22586
22587         allocator: New module.
22588         * modules/allocator, lib/allocator.c: New files.
22589         * lib/allocator.h (stdlib_allocator): New decl.
22590         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
22591         Remove.  Do not include <stdlib.h>.
22592         (careadlinkat): Use stdlib_allocator instead of rolling our own.
22593         * modules/careadlinkat (Files): Remove lib/allocator.h.
22594         (Depends-on): Add allocator.
22595
22596         stdlib: let modules use system malloc, realloc
22597         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
22598         if !_GL_USE_STDLIB_ALLOC.
22599         (malloc, realloc): Limit this change to a smaller scope.
22600
22601         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
22602         (malloc, realloc): Don't #undef; no longer needed.
22603         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22604         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22605         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22606         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22607         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22608         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22609         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
22610         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
22611
22612         careadlinkat: rename members to avoid problem
22613         * lib/allocator.h (struct allocator): Rename members from
22614         malloc/realloc to allocate/reallocate, to avoid problems if malloc
22615         and realloc are #define'd.  Reported by Eric Blake in
22616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
22617         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
22618
22619 2011-04-08  Eric Blake  <eblake@redhat.com>
22620
22621         nonblocking: reduce dependency
22622         * tests/test-nonblocking.c: Only test sockets when in use.
22623         * modules/nonblocking-tests (Depends-on): Drop socket.
22624         (Makefile.am): Link even if sockets are not present.
22625         * modules/pipe2-tests (Makefile.am): Likewise.
22626         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
22627
22628         pipe2: fix O_NONBLOCK support on mingw
22629         * modules/pipe2 (Depends-on): Add nonblocking.
22630         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
22631         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
22632         * tests/test-nonblocking.c (main): Likewise.
22633         * modules/pipe2-tests (Makefile.am): Avoid link failure.
22634
22635         fcntl-h: fix O_ACCMODE on cygwin
22636         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
22637         * lib/fcntl.in.h (O_ACCMODE): Fix it.
22638
22639         pipe-filter: drop O_NONBLOCK workarounds
22640         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
22641         * modules/pipe-filter-ii (Depends-on): Likewise.
22642         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
22643
22644         nonblocking: provide O_NONBLOCK for mingw
22645         * modules/nonblocking (Depends-on): Add open.
22646         (configure.ac): Set new witness macro.
22647         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
22648         * modules/fcntl-h (Makefile.am): Substitute it.
22649         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
22650         nonblocking module is in use.
22651         * lib/nonblocking.c: Adjust portability test.
22652         * lib/open.c (open): Don't let native open see gnulib flag.
22653         * tests/test-fcntl-h.c (main): Enhance test.
22654         * tests/test-open.h (test_open): Likewise.
22655         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
22656
22657         careadlinkat: fix compilation error on mingw
22658         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
22659         within struct allocator.
22660
22661 2011-04-06  Eric Blake  <eblake@redhat.com>
22662
22663         binary-io: relicense under LGPLv2+
22664         * modules/binary-io (License): Relax to LGPLv2+.
22665         Requested for libvirt, and required by pipe2.
22666
22667 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
22668
22669         verify: use _Static_assert if available
22670         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
22671         (verify_true, verify): Use it if available.  This generates better
22672         diagnostics with GCC 4.6.0 and later.
22673
22674 2011-04-05  Bruno Haible  <bruno@clisp.org>
22675
22676         Remove leftover generated .h files after config.status changed.
22677
22678         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
22679         GL_GENERATE_ALLOCA_H.
22680         * modules/alloca-opt (Makefile.am): Remove alloca.h if
22681         GL_GENERATE_ALLOCA_H evaluates to false.
22682
22683         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
22684         GL_GENERATE_ARGZ_H.
22685         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
22686         evaluates to false.
22687
22688         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
22689         GL_GENERATE_BYTESWAP_H.
22690         * modules/byteswap (Makefile.am): Remove byteswap.h if
22691         GL_GENERATE_BYTESWAP_H evaluates to false.
22692
22693         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
22694         GL_GENERATE_ERRNO_H.
22695         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
22696         evaluates to false.
22697
22698         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
22699         GL_GENERATE_FLOAT_H.
22700         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
22701         evaluates to false.
22702
22703         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
22704         GL_GENERATE_FNMATCH_H.
22705         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
22706         GL_GENERATE_FNMATCH_H evaluates to false.
22707
22708         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
22709         GL_GENERATE_GLOB_H.
22710         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
22711         evaluates to false.
22712
22713         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
22714         automake conditional GL_GENERATE_ICONV_H.
22715         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
22716         evaluates to false.
22717
22718         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
22719         GL_GENERATE_NETINET_IN_H.
22720         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
22721         GL_GENERATE_NETINET_IN_H evaluates to false.
22722
22723         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
22724         conditional GL_GENERATE_PTHREAD_H.
22725         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
22726         * modules/pthread (Makefile.am): Remove pthread.h if
22727         GL_GENERATE_PTHREAD_H evaluates to false.
22728
22729         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
22730         GL_GENERATE_SCHED_H.
22731         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
22732         evaluates to false.
22733
22734         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
22735         conditional GL_GENERATE_SELINUX_CONTEXT_H.
22736         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
22737         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
22738
22739         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
22740         GL_GENERATE_STDARG_H.
22741         * modules/stdarg (Makefile.am): Remove stdarg.h if
22742         GL_GENERATE_STDARG_H evaluates to false.
22743
22744         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
22745         GL_GENERATE_STDBOOL_H.
22746         * modules/stdbool (Makefile.am): Remove stdbool.h if
22747         GL_GENERATE_STDBOOL_H evaluates to false.
22748
22749         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
22750         conditional GL_GENERATE_STDDEF_H.
22751         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
22752         * modules/stddef (Makefile.am): Remove stddef.h if
22753         GL_GENERATE_STDDEF_H evaluates to false.
22754
22755         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
22756         GL_GENERATE_STDINT_H.
22757         * modules/stdint (Makefile.am): Remove stdint.h if
22758         GL_GENERATE_STDINT_H evaluates to false.
22759
22760         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
22761         GL_GENERATE_SYSEXITS_H.
22762         * modules/sysexits (Makefile.am): Remove sysexits.h if
22763         GL_GENERATE_SYSEXITS_H evaluates to false.
22764
22765         Reported by Karl Berry and Ralf Wildenhues.
22766
22767 2011-04-05  Bruno Haible  <bruno@clisp.org>
22768
22769         Ensure to rebuild generated .h files when config.status has changed.
22770         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
22771         config.status.
22772         * modules/ctype (Makefile.am): Likewise.
22773         * modules/dirent (Makefile.am): Likewise.
22774         * modules/errno (Makefile.am): Likewise.
22775         * modules/fcntl-h (Makefile.am): Likewise.
22776         * modules/float (Makefile.am): Likewise.
22777         * modules/getopt-posix (Makefile.am): Likewise.
22778         * modules/glob (Makefile.am): Likewise.
22779         * modules/iconv-h (Makefile.am): Likewise.
22780         * modules/inttypes (Makefile.am): Likewise.
22781         * modules/langinfo (Makefile.am): Likewise.
22782         * modules/locale (Makefile.am): Likewise.
22783         * modules/math (Makefile.am): Likewise.
22784         * modules/netdb (Makefile.am): Likewise.
22785         * modules/netinet_in (Makefile.am): Likewise.
22786         * modules/poll-h (Makefile.am): Likewise.
22787         * modules/pthread (Makefile.am): Likewise.
22788         * modules/pty (Makefile.am): Likewise.
22789         * modules/sched (Makefile.am): Likewise.
22790         * modules/search (Makefile.am): Likewise.
22791         * modules/selinux-h (Makefile.am): Likewise.
22792         * modules/signal (Makefile.am): Likewise.
22793         * modules/spawn (Makefile.am): Likewise.
22794         * modules/stdarg (Makefile.am): Likewise.
22795         * modules/stdbool (Makefile.am): Likewise.
22796         * modules/stddef (Makefile.am): Likewise.
22797         * modules/stdint (Makefile.am): Likewise.
22798         * modules/stdio (Makefile.am): Likewise.
22799         * modules/stdlib (Makefile.am): Likewise.
22800         * modules/string (Makefile.am): Likewise.
22801         * modules/strings (Makefile.am): Likewise.
22802         * modules/sys_file (Makefile.am): Likewise.
22803         * modules/sys_ioctl (Makefile.am): Likewise.
22804         * modules/sys_select (Makefile.am): Likewise.
22805         * modules/sys_socket (Makefile.am): Likewise.
22806         * modules/sys_stat (Makefile.am): Likewise.
22807         * modules/sys_time (Makefile.am): Likewise.
22808         * modules/sys_times (Makefile.am): Likewise.
22809         * modules/sys_utsname (Makefile.am): Likewise.
22810         * modules/sys_wait (Makefile.am): Likewise.
22811         * modules/sysexits (Makefile.am): Likewise.
22812         * modules/termios (Makefile.am): Likewise.
22813         * modules/time (Makefile.am): Likewise.
22814         * modules/unistd (Makefile.am): Likewise.
22815         * modules/wchar (Makefile.am): Likewise.
22816         * modules/wctype-h (Makefile.am): Likewise.
22817         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
22818
22819 2011-04-05  Bruno Haible  <bruno@clisp.org>
22820
22821         pipe2: Relicense under LGPLv2+.
22822         * modules/pipe2 (License): Change to LGPLv2+.
22823         Requested by Eric Blake, for libvirt.
22824
22825 2011-04-05  Bruce Korb  <bkorb@gnu.org>
22826
22827         bootstrap: compute gnulib_extra_files after updating build_aux
22828         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
22829         change build_aux or also supply gnulib_extra_files.  Handle correctly.
22830
22831 2011-04-05  Eric Blake  <eblake@redhat.com>
22832
22833         bootstrap: preserve git whitelist item sorting
22834         * build-aux/bootstrap (sort_patterns): New function.
22835         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22836
22837 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22838
22839         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22840         sc_space_tab check.
22841
22842 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22843
22844         areadlink, areadlinkat: rewrite in terms of careadlinkat
22845         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22846         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22847         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22848         (malloc, realloc): Remove #undefs.
22849         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22850         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22851         readlink, ssize_t, stdint, unistd.
22852         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22853         areadlink, stdint.
22854
22855         careadlinkat: new module
22856         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22857         * modules/careadlinkat: New files, written by me with
22858         a review and feedback from Ben Pfaff in
22859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22860
22861 2011-04-01  Bruno Haible  <bruno@clisp.org>
22862
22863         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22864         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22865         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22866         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22867         Reported by Bruce Korb <bruce.korb@gmail.com>.
22868
22869 2011-04-01  Bruno Haible  <bruno@clisp.org>
22870
22871         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22872         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22873         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22874         * modules/wcpcpy (Depends-on): Add extensions.
22875         * modules/wcpncpy (Depends-on): Likewise.
22876         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22877         systems.
22878         * doc/posix-functions/wcpncpy.texi: Likewise.
22879         * doc/posix-functions/wcwidth.texi: Likewise.
22880
22881 2011-03-31  Eric Blake  <eblake@redhat.com>
22882
22883         nonblocking: fix mingw test failures
22884         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22885         non-blocking flag on regular file.
22886         (get_nonblocking_flag): Set errno on invalid fd.
22887         * tests/test-nonblocking.c (main): Avoid test failure on
22888         directories if fchdir is not active.
22889         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22890
22891 2011-03-31  Bruno Haible  <bruno@clisp.org>
22892
22893         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22894         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22895         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22896         Reported by Simon Josefsson <simon@josefsson.org>.
22897
22898 2011-03-31  Bruno Haible  <bruno@clisp.org>
22899         and Eric Blake  <eblake@redhat.com>
22900
22901         nonblocking: new module
22902         * modules/nonblocking: New module.
22903         * modules/nonblocking-tests: Likewise.
22904         * lib/nonblocking.h: New file.
22905         * lib/nonblocking.c: Likewise.
22906         * tests/test-nonblocking.c: New test.
22907         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22908
22909 2011-03-30  Bruno Haible  <bruno@clisp.org>
22910
22911         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22912         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22913         instead of 'printf' format for GCC >= 4.4.
22914         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22915         (fprintf, printf, vfprintf, vprintf): Declare with
22916         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22917         the system's vfprintf() function.
22918         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22919
22920 2011-03-30  Eric Blake  <eblake@redhat.com>
22921
22922         passfd: fix scoping bug
22923         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22924         before sendmsg/recvmsg.
22925
22926         passfd: standardize coding conventions
22927         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22928         can be learned at compile time.
22929         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22930         ifdefs.
22931         (sendfd, recvfd): Follow gnulib code conventions.
22932
22933         passfd: fix incorrect sendmsg arguments
22934         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22935         incorrect msg_controllen value.
22936         * modules/passfd-tests (Depends-on): Check for alarm.
22937         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22938         Reported by Bastien ROUCARIES.
22939
22940 2011-03-30  Bruno Haible  <bruno@clisp.org>
22941
22942         c-strcasestr: Relicense under LGPLv2+.
22943         * modules/c-strcasestr (License): Change to LGPLv2+.
22944         Requested by Eric Blake, for libvirt.
22945
22946 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22947
22948         * users.txt: Add libidn2.  Fix libtasn1 link.
22949
22950 2011-03-30  Jim Meyering  <meyering@redhat.com>
22951
22952         tests: readlink* ("",... fails with EINVAL on newer kernels
22953         readlink and readlinkat have typically failed with ENOENT for
22954         the invalid, empty file name,  "".  However, with the advent
22955         of linux-2.6.39, they fail with EINVAL.
22956         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22957         when operating on the empty file name.
22958         * tests/test-readlink.h (test_readlink): Likewise.
22959
22960 2011-03-29  Bruno Haible  <bruno@clisp.org>
22961
22962         Relicense some modules under LGPLv2+, for libidn2.
22963         * modules/array-mergesort (License): Change to LGPLv2+.
22964         * modules/c-strcaseeq (License): Likewise.
22965         * modules/striconveh (License): Likewise.
22966         * modules/striconveha (License): Likewise.
22967         * modules/uniconv/base (License): Likewise.
22968         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22969         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22970         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22971         * modules/unictype/base (License): Likewise.
22972         * modules/unictype/bidiclass-of (License): Likewise.
22973         * modules/unictype/category-M (License): Likewise.
22974         * modules/unictype/category-none (License): Likewise.
22975         * modules/unictype/category-of (License): Likewise.
22976         * modules/unictype/category-test (License): Likewise.
22977         * modules/unictype/category-test-withtable (License): Likewise.
22978         * modules/unictype/combining-class (License): Likewise.
22979         * modules/unictype/joiningtype-of (License): Likewise.
22980         * modules/unictype/scripts (License): Likewise.
22981         * modules/uninorm/base (License): Likewise.
22982         * modules/uninorm/canonical-decomposition (License): Likewise.
22983         * modules/uninorm/composition (License): Likewise.
22984         * modules/uninorm/decompose-internal (License): Likewise.
22985         * modules/uninorm/decomposition-table (License): Likewise.
22986         * modules/uninorm/nfc (License): Likewise.
22987         * modules/uninorm/nfd (License): Likewise.
22988         * modules/uninorm/u32-normalize (License): Likewise.
22989         * modules/unistr/base (License): Likewise.
22990         * modules/unistr/u32-cpy (License): Likewise.
22991         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22992         * modules/unistr/u32-to-u8 (License): Likewise.
22993         * modules/unistr/u32-uctomb (License): Likewise.
22994         * modules/unistr/u8-check (License): Likewise.
22995         * modules/unistr/u8-mblen (License): Likewise.
22996         * modules/unistr/u8-mbtouc (License): Likewise.
22997         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22998         * modules/unistr/u8-mbtoucr (License): Likewise.
22999         * modules/unistr/u8-prev (License): Likewise.
23000         * modules/unistr/u8-strlen (License): Likewise.
23001         * modules/unistr/u8-to-u32 (License): Likewise.
23002         * modules/unistr/u8-uctomb (License): Likewise.
23003         * modules/unitypes (License): Likewise.
23004         Requested by Simon Josefsson.
23005
23006 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23007
23008         lib-symbol-visibility: Add a notice.
23009         * modules/lib-symbol-visibility (Notice): New field.
23010
23011 2011-03-29  Bruno Haible  <bruno@clisp.org>
23012
23013         getaddrinfo: Doc fix.
23014         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23015         section "fixed in Gnulib".
23016
23017 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23018
23019         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23020         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23021
23022 2011-03-26  Bruno Haible  <bruno@clisp.org>
23023
23024         unictype/property-byname: Reduce the number of load-time relocations.
23025         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23026         (UC_PROPERTY_INDEX_*): New enumeration values.
23027         (uc_property_byname): Convert an index from the lookup table to an
23028         uc_property_t.
23029         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23030         values.
23031
23032 2011-03-26  Bruno Haible  <bruno@clisp.org>
23033
23034         unictype/property-byname: Allow omitted word separators and aliases.
23035         * lib/unictype/pr_byname.gperf: Add property names without word
23036         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23037         for 'space'.
23038
23039 2011-03-26  Bruno Haible  <bruno@clisp.org>
23040
23041         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23042         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23043         also hyphens to space.
23044         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23045         without spaces.
23046         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23047
23048 2011-03-26  Bruno Haible  <bruno@clisp.org>
23049
23050         unictype/joiningtype-byname: Recognize long names as well.
23051         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23052         a long name.
23053         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23054         unictype/joiningtype_byname.h.
23055         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23056         * lib/unictype/joiningtype_byname.gperf: New file.
23057         * modules/unictype/joiningtype-byname (Files): Add
23058         lib/unictype/joiningtype_byname.gperf.
23059         (Depends-on): Add gperf.
23060         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23061         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23062         long names.
23063
23064         Tests for module 'unictype/joiningtype-longname'.
23065         * modules/unictype/joiningtype-longname-tests: New file.
23066         * tests/unictype/test-joiningtype_longname.c: New file.
23067
23068         New module 'unictype/joiningtype-longname'.
23069         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
23070         * lib/unictype/joiningtype_longname.c: New file.
23071         * modules/unictype/joiningtype-longname: New file.
23072         * modules/unictype/joiningtype-all (Depends-on): Add
23073         unictype/joiningtype-longname.
23074
23075 2011-03-26  Bruno Haible  <bruno@clisp.org>
23076
23077         unictype/bidiclass-byname: Recognize long names as well.
23078         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
23079         name.
23080         * lib/unictype/bidi_byname.c: Include <string.h>,
23081         unictype/bidi_byname.h.
23082         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
23083         * lib/unictype/bidi_byname.gperf: New file.
23084         * modules/unictype/bidiclass-byname (Files): Add
23085         lib/unictype/bidi_byname.gperf.
23086         (Depends-on): Add gperf.
23087         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
23088         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
23089         long names.
23090
23091         Tests for module 'unictype/bidiclass-longname'.
23092         * modules/unictype/bidiclass-longname-tests: New file.
23093         * tests/unictype/test-bidi_longname.c: New file.
23094
23095         New module 'unictype/bidiclass-longname'.
23096         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
23097         * lib/unictype/bidi_longname.c: New file.
23098         * modules/unictype/bidiclass-longname: New file.
23099         * modules/unictype/bidiclass-all (Depends-on): Add
23100         unictype/bidiclass-longname.
23101
23102 2011-03-26  Bruno Haible  <bruno@clisp.org>
23103
23104         unictype/bidi*: Rename modules.
23105         * modules/unictype/bidiclass-all: Renamed from
23106         modules/unictype/bidicategory-all.
23107         * modules/unictype/bidiclass-name: Renamed from
23108         modules/unictype/bidiclass-name.
23109         (Description): Update.
23110         * modules/unictype/bidiclass-name-tests: Renamed from
23111         modules/unictype/bidicategory-name-tests.
23112         * modules/unictype/bidiclass-byname: Renamed from
23113         modules/unictype/bidicategory-byname.
23114         (Description): Update.
23115         * modules/unictype/bidiclass-byname-tests: Renamed from
23116         modules/unictype/bidicategory-byname-tests.
23117         * modules/unictype/bidiclass-of: Renamed from
23118         modules/unictype/bidicategory-of.
23119         (Description): Update.
23120         * modules/unictype/bidiclass-of-tests: Renamed from
23121         modules/unictype/bidicategory-of-tests.
23122         * modules/unictype/bidiclass-test: Renamed from
23123         modules/unictype/bidicategory-test.
23124         (Description): Update.
23125         * modules/unictype/bidiclass-test-tests: Renamed from
23126         modules/unictype/bidicategory-test-tests.
23127         * modules/unictype/bidicategory-all: New file, a simple redirection.
23128         * modules/unictype/bidicategory-name: Likewise.
23129         * modules/unictype/bidicategory-byname: Likewise.
23130         * modules/unictype/bidicategory-of: Likewise.
23131         * modules/unictype/bidicategory-test: Likewise.
23132         * modules/unictype/property-bidi-* (Dependencies): Update.
23133         * lib/unictype/bidi_*.c: Update comment.
23134
23135 2011-03-26  Bruno Haible  <bruno@clisp.org>
23136
23137         unictype/bidi*: Rename functions, part 2.
23138         * modules/unictype/bidicategory-name (configure.ac): Update required
23139         libunistring version.
23140         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
23141
23142 2011-03-25  Bruno Haible  <bruno@clisp.org>
23143
23144         New module 'unictype/combining-class-all'.
23145         * modules/unictype/combining-class-all: New file.
23146
23147         Tests for module 'unictype/combining-class-byname'.
23148         * modules/unictype/combining-class-byname-tests: New file.
23149         * tests/unictype/test-combiningclass_byname.c: New file.
23150
23151         New module 'unictype/combining-class-byname'.
23152         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
23153         * lib/unictype/combiningclass_byname.c: New file.
23154         * lib/unictype/combiningclass_byname.gperf: New file.
23155         * modules/unictype/combining-class-byname: New file.
23156
23157         Tests for module 'unictype/combining-class-longname'.
23158         * modules/unictype/combining-class-longname-tests: New file.
23159         * tests/unictype/test-combiningclass_longname.c: New file.
23160
23161         New module 'unictype/combining-class-longname'.
23162         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
23163         * lib/unictype/combiningclass_longname.c: New file.
23164         * modules/unictype/combining-class-longname: New file.
23165
23166         Tests for module 'unictype/combining-class-name'.
23167         * modules/unictype/combining-class-name-tests: New file.
23168         * tests/unictype/test-combiningclass_name.c: New file.
23169
23170         New module 'unictype/combining-class-name'.
23171         * lib/unictype.in.h (uc_combining_class_name): New declaration.
23172         * lib/unictype/combiningclass_name.c: New file.
23173         * modules/unictype/combining-class-name: New file.
23174
23175 2011-03-25  Bruno Haible  <bruno@clisp.org>
23176
23177         unictype/combining-class: Rename source files.
23178         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
23179         of unictype/combining.h.
23180         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
23181         Update.
23182         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
23183         * modules/unictype/combining-class (Description): Fix.
23184         (Files, Makefile.am): Update.
23185         * tests/unictype/test-combiningclass.c: Renamed from
23186         tests/unictype/test-combining.c.
23187         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
23188
23189 2011-03-25  Bruno Haible  <bruno@clisp.org>
23190
23191         unictype: Update list of canonical combining classes.
23192         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
23193
23194 2011-03-25  Bruno Haible  <bruno@clisp.org>
23195
23196         unictype/category-byname: Recognize long names as well.
23197         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
23198         a long name.
23199         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
23200         unictype/categ_byname.h.
23201         (UC_CATEGORY_INDEX_*): New enumeration values.
23202         (uc_general_category_byname): Use uc_general_category_lookup and
23203         convert from index to value.
23204         * lib/unictype/categ_byname.gperf: New file.
23205         * modules/unictype/category-byname (Files): Add
23206         lib/unictype/categ_byname.gperf.
23207         (Depends-on): Add gperf.
23208         (Makefile.am): Add rule for generating unictype/categ_byname.h.
23209         * tests/unictype/test-categ_byname.c (main): Test the recognition of
23210         long names.
23211
23212         Tests for module 'unictype/category-longname'.
23213         * modules/unictype/category-longname-tests: New file.
23214         * tests/unictype/test-categ_longname.c: New file.
23215
23216         New module 'unictype/category-longname'.
23217         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
23218         * lib/unictype/categ_longname.c: New file.
23219         * modules/unictype/category-longname: New file.
23220         * modules/unictype/category-all (Depends-on): Add it.
23221
23222 2011-03-25  Bruno Haible  <bruno@clisp.org>
23223
23224         Tests for module 'unictype/category-LC'.
23225         * modules/unictype/category-LC-tests: New file.
23226         * tests/unictype/test-categ_LC.c: New file, automatically generated.
23227
23228         New module 'unictype/category-LC'.
23229         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
23230         (UC_CATEGORY_LC): New declaration.
23231         (UC_CASED_LETTER): New macro.
23232         * lib/gen-uni-tables.c (is_category_LC): New function.
23233         (output_categories): Also handle category LC.
23234         (UC_CATEGORY_MASK_LC): New enumeration value.
23235         (general_category_byname): Also handle category LC.
23236         * lib/unictype/categ_LC.c: New file.
23237         * lib/unictype/categ_LC.h: New file, automatically generated.
23238         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
23239         category LC.
23240         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
23241         * modules/unictype/category-LC: New file.
23242         * modules/unictype/category-byname (Depends-on): Add
23243         unictype/category-LC.
23244         * modules/unictype/category-all (Depends-on): Likewise.
23245
23246 2011-03-25  Eric Blake  <eblake@redhat.com>
23247
23248         xmalloc: revert yesterday's regression
23249         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
23250         realloc's underlying behavior (allowing allocation of zero-size
23251         objects, especially if malloc-gnu is also in use).
23252
23253 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
23254
23255         maint.mk: add missing version to VC-tag
23256         * top/maint.mk: git tag was missing actual tag name; add it.
23257
23258         valgrind: do leak checking, and exit with code 1 on error (not 0)
23259         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
23260         to VALGRIND.
23261
23262 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
23263
23264         posix-modules: say what it does.
23265         * posix-modules: Add a line to the --help output saying what it does.
23266
23267 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23268
23269         xmalloc: Do not leak if underlying realloc is C99 compatible.
23270         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
23271         This avoids a leak on C99-based systems.  See
23272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
23273
23274 2011-03-24  Eric Blake  <eblake@redhat.com>
23275
23276         realloc: document portability problem
23277         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
23278         passing 0 size to realloc.
23279
23280 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
23281
23282         doc: update users.txt
23283         * users.txt: Add cvsps, tmpwatch
23284
23285 2011-03-23  Matt Rice  <ratmice@gmail.com>
23286
23287         doc: update users.txt
23288         * users.txt: Add gdb.
23289
23290 2011-03-23  Jim Meyering  <meyering@redhat.com>
23291
23292         doc: update users.txt
23293         Looking through matches up to the following URL (there are still
23294         several more pages), I found several projects that use gnulib:
23295         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
23296         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
23297         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
23298
23299 2011-03-22  Bruno Haible  <bruno@clisp.org>
23300
23301         unictype/bidi*: Rename functions.
23302         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
23303         uc_bidi_class, uc_is_bidi_class): New declarations.
23304         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
23305         uc_bidi_category_byname.
23306         (uc_bidi_category_byname): New function.
23307         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
23308         u_bidi_category_name.
23309         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
23310         (uc_bidi_category_name): New function.
23311         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
23312         uc_bidi_category.
23313         (uc_bidi_category): New function.
23314         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
23315         uc_is_bidi_category. Invoke uc_bidi_class.
23316         (uc_is_bidi_category): New function.
23317         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
23318         instead of uc_bidi_category_byname.
23319         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
23320         instead of uc_bidi_category_name.
23321         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
23322         uc_bidi_category.
23323         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
23324         instead of uc_is_bidi_category.
23325
23326 2011-03-21  Bruno Haible  <bruno@clisp.org>
23327
23328         New module 'unictype/joininggroup-all'.
23329         * modules/unictype/joininggroup-all: New file.
23330
23331         Tests for module 'unictype/joininggroup-of'.
23332         * modules/unictype/joininggroup-of-tests: New file.
23333         * tests/unictype/test-joininggroup_of.c: New file.
23334         * tests/unictype/test-joininggroup_of.h: New file, automatically
23335         generated by gen-uni-tables.
23336
23337         New module 'unictype/joininggroup-of'.
23338         * modules/unictype/joininggroup-of: New file.
23339         * lib/unictype/joininggroup_of.c: New file.
23340         * lib/unictype/joininggroup_of.h: New file, automatically generated by
23341         gen-uni-tables.
23342
23343         Tests for module 'unictype/joininggroup-byname'.
23344         * modules/unictype/joininggroup-byname-tests: New file.
23345         * tests/unictype/test-joininggroup_byname.c: New file.
23346
23347         New module 'unictype/joininggroup-byname'.
23348         * modules/unictype/joininggroup-byname: New file.
23349         * lib/unictype/joininggroup_byname.c: New file.
23350         * lib/unictype/joininggroup_byname.gperf: New file.
23351
23352         Tests for module 'unictype/joininggroup-name'.
23353         * modules/unictype/joininggroup-name-tests: New file.
23354         * tests/unictype/test-joininggroup_name.c: New file.
23355
23356         New module 'unictype/joininggroup-name'.
23357         * modules/unictype/joininggroup-name: New file.
23358         * lib/unictype/joininggroup_name.c: New file.
23359         * lib/unictype/joininggroup_name.h: New file.
23360
23361         New module 'unictype/joiningtype-all'.
23362         * modules/unictype/joiningtype-all: New file.
23363
23364         Tests for module 'unictype/joiningtype-of'.
23365         * modules/unictype/joiningtype-of-tests: New file.
23366         * tests/unictype/test-joiningtype_of.c: New file.
23367         * tests/unictype/test-joiningtype_of.h: New file, automatically
23368         generated by gen-uni-tables.
23369
23370         New module 'unictype/joiningtype-of'.
23371         * modules/unictype/joiningtype-of: New file.
23372         * lib/unictype/joiningtype_of.c: New file.
23373         * lib/unictype/joiningtype_of.h: New file, automatically generated by
23374         gen-uni-tables.
23375
23376         Tests for module 'unictype/joiningtype-byname'.
23377         * modules/unictype/joiningtype-byname-tests: New file.
23378         * tests/unictype/test-joiningtype_byname.c: New file.
23379
23380         New module 'unictype/joiningtype-byname'.
23381         * modules/unictype/joiningtype-byname: New file.
23382         * lib/unictype/joiningtype_byname.c: New file.
23383
23384         Tests for module 'unictype/joiningtype-name'.
23385         * modules/unictype/joiningtype-name-tests: New file.
23386         * tests/unictype/test-joiningtype_name.c: New file.
23387
23388         New module 'unictype/joiningtype-name'.
23389         * modules/unictype/joiningtype-name: New file.
23390         * lib/unictype/joiningtype_name.c: New file.
23391
23392         unictype: Add support for Arabic shaping properties.
23393         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
23394         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
23395         declarations.
23396         (UC_JOINING_GROUP_*): New enumeration values.
23397         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
23398         declarations.
23399         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
23400         (unicode_joining_type): New variable.
23401         (UC_JOINING_GROUP_*): New enumeration values.
23402         (unicode_joining_group): New variable.
23403         (fill_arabicshaping, joining_type_as_c_identifier,
23404         output_joining_type_test, output_joining_type,
23405         joining_group_as_c_identifier, output_joining_group_test,
23406         output_joining_group): New functions.
23407         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
23408         fill_arabicshaping and output_joining_type_test, output_joining_type,
23409         output_joining_group_test, output_joining_group.
23410         Reported by Simon Josefsson.
23411
23412 2011-03-21  Jim Meyering  <meyering@redhat.com>
23413
23414         strftime: fix a bug in yesterday's change
23415         * lib/strftime.c (add): Accommodate width's initial value of -1.
23416         Otherwise, nstrftime would copy uninitialized data into
23417         the result buffer.
23418
23419 2011-03-21  Jim Meyering  <meyering@redhat.com>
23420
23421         tests: add strftime-tests module
23422         * tests/test-strftime.c: New file.
23423         * modules/strftime-tests: New module.
23424
23425 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23426
23427         strftime: don't assume a byte count fits in 'int'
23428         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
23429         found this problem by static analysis, using gcc -Wstrict-overflow
23430         (GCC 4.5.2, x86-64).  This reported an optimization that depended
23431         on an integer overflow having undefined behavior, but it turns out
23432         that the argument is a size, which might not fit in 'int' anyway,
23433
23434 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         stdio: don't require ignore_value around fwrite
23437
23438         This patch works around libc bug 11959
23439         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
23440         Without this patch, applications must often write
23441         ignore_value (fwrite (...)) even though the ignore_value is
23442         not helpful here.  It's common to write many objects, using
23443         fwrite/printf/etc., and then use ferror to detect output error.
23444
23445         I considered making this patch optional, but decided against it,
23446         because libc is obviously being inconsistent here: there is no
23447         reason libc should insist that user code must inspect fwrite
23448         return's value without also insisting that it inspect printf's,
23449         putchar's, etc.  If user code wants to have a strict style where
23450         all these functions' values are checked (so that ferror need not
23451         be checked), we could add support for that style in a new gnulib
23452         module, but in the meantime it's better to be consistent and to
23453         support common usage.
23454
23455         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
23456         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
23457         that we are compiling in checking mode, and if not C++, and
23458         if not already wrapping fwrite for some other reason.
23459         (fwrite): #define to rpl_fwrite if the latter is defined.
23460
23461 2011-03-20  Bruno Haible  <bruno@clisp.org>
23462
23463         verror: Fix compilation error introduced on 2011-02-13.
23464         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
23465         instead of __attribute__.
23466         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23467
23468 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
23469             Bruno Haible  <bruno@clisp.org>
23470
23471         socklen: do not depend on sys_socket
23472         While trying to modify Emacs to use gnulib's socklen module,
23473         I discovered a circular dependency: socklen depends on sys_socket
23474         and vice versa.  Emacs can use socklen, but it does not need
23475         sys_socket because it has its own substitute for sys/socket.h.
23476         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
23477         gl_TYPE_SOCKLEN_T.
23478         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
23479         gl_PREREQ_SYS_H_SOCKET.
23480         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
23481         gl_PREREQ_SYS_H_SOCKET.
23482         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
23483         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
23484         * modules/socklen (Depends-on): Do not depend on sys_socket.
23485         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
23486
23487 2011-03-20  Jim Meyering  <meyering@redhat.com>
23488
23489         maint.mk: sort file names *after* new transformation
23490         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
23491         prefix would have led to an unwarranted failure in GNU parted.
23492         Sort after that transformation.
23493
23494 2011-03-19  Jim Meyering  <meyering@redhat.com>
23495
23496         maint.mk: fix po-file syntax-check rule
23497         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
23498         Patch by Bruno Haible.
23499
23500 2011-03-19  Bruno Haible  <bruno@clisp.org>
23501
23502         socklen: Update comment.
23503         * m4/socklen.m4: Update comment about platforms.
23504
23505 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23506             Bruno Haible  <bruno@clisp.org>
23507
23508         inet_ntop, inet_pton: Simplify.
23509         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
23510         documented to provide socklen_t and we already depend on sys_socket.
23511         * modules/inet_pton (Depends-on): Likewise.
23512         * lib/arpa_inet.in.h: Adjust comment.
23513
23514 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23515             Bruno Haible  <bruno@clisp.org>
23516
23517         netdb: Simplify.
23518         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
23519         documented to provide socklen_t and we already depend on sys_socket.
23520         * lib/netdb.in.h: Adjust comment.
23521
23522 2011-03-19  Bruno Haible  <bruno@clisp.org>
23523
23524         sys_socket, netdb: Document problem with socklen_t.
23525         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
23526         platforms.
23527         * doc/posix-headers/netdb.texi: Likewise.
23528
23529 2011-03-18  Eric Blake  <eblake@redhat.com>
23530
23531         maint.mk: let po check work in VPATH build
23532         * top/maint.mk (po_file): Allow cfg.mk override.
23533         (sc_po_check): Allow VPATH use.
23534         Reported by Jiri Denemark.
23535
23536 2011-03-16  Jim Meyering  <meyering@redhat.com>
23537
23538         maint.mk: allow fine-grained syntax-check exclusion via Make variables
23539         Before, you would have had to create one .x-sc_ file per rule in order
23540         to exempt offending files.  Now, you may instead use a Make variable --
23541         usually defined in cfg.mk -- whose name identifies the affected rule.
23542         * top/maint.mk (_sc_excl): Define.
23543         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
23544         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
23545
23546 2011-03-13  Bruno Haible  <bruno@clisp.org>
23547
23548         ignore-value tests: Avoid warnings.
23549         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
23550         empty for gcc < 3.4.
23551
23552 2011-03-13  Bruno Haible  <bruno@clisp.org>
23553
23554         passfd: Fix link error on Solaris.
23555         * modules/passfd (Description): Correct.
23556         (Depends-on): Add socketlib.
23557         (Link): New section.
23558         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
23559
23560 2011-03-13  Bruno Haible  <bruno@clisp.org>
23561
23562         passfd: Fix link error on AIX 5.2.
23563         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
23564
23565 2011-03-13  Bruno Haible  <bruno@clisp.org>
23566
23567         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
23568         * lib/sys_socket.in.h: Include <stddef.h>.
23569         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
23570         CMSG_FIRSTHDR. Remove unused variable.
23571
23572 2011-03-13  Bruno Haible  <bruno@clisp.org>
23573
23574         passfd: Fix compilation error on OpenBSD.
23575         * lib/passfd.c: Include <sys/uio.h>.
23576
23577 2011-03-13  Bruno Haible  <bruno@clisp.org>
23578
23579         passfd test: Fix warnings.
23580         * tests/test-passfd.c: Include <sys/wait.h>.
23581         (main): Fix typo.
23582
23583 2011-03-13  Bruno Haible  <bruno@clisp.org>
23584
23585         passfd module, part 4, tweaks.
23586         * tests/test-passfd.c: Reorder includes.
23587         (main): Fix perror and printf calls.
23588
23589 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23590
23591         passfd module, part 4.
23592         * modules/passfd-tests: New file.
23593         * tests/test-passfd.c: New file.
23594
23595 2011-03-13  Jim Meyering  <meyering@redhat.com>
23596
23597         Makefile: rely on GNU make; derive syntax-check rule names
23598         Rather than requiring that each sc_ rule be listed as a dependent
23599         of "check", use features of GNU make to derive the list.
23600         * Makefile (syntax-check-rules): Define.
23601         (check): Depend on the new variable, not the hard-coded list.
23602
23603 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
23604             Bruno Haible  <bruno@clisp.org>
23605
23606         passfd module, part 3.
23607         * lib/passfd.h (recvfd): Add a flags argument.
23608         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
23609         (recvfd): Add a flags argument.
23610         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
23611         exists.
23612         * modules/passfd (Depends-on): Add cloexec.
23613         Suggested by Eric Blake.
23614
23615 2011-03-13  Bruno Haible  <bruno@clisp.org>
23616
23617         passfd module, part 2, tweaks.
23618         * modules/passfd (Files): Reorder.
23619         (Depends-on): Remove errno.
23620         (Include): Remove <sys/socket.h>, <sys/un.h>.
23621         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
23622         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
23623         specification header. Include <sys/socket.h> always. Don't include
23624         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
23625         (sendfd): Clarify that it sets errno when it fails.
23626         (recvfd): Fix specification.
23627
23628 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23629
23630         passfd module, part 2.
23631         * modules/passfd: New file.
23632         * lib/passfd.h: New file.
23633         * lib/passfd.c: New file.
23634
23635 2011-03-12  Bruno Haible  <bruno@clisp.org>
23636
23637         wcswidth, mbswidth: Avoid integer overflow.
23638         * lib/wcswidth.c: Include <limits.h>.
23639         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
23640         * lib/mbswidth.c: Include <limits.h>.
23641         (mbsnwidth): Avoid 'int' overflow.
23642         Reported by Jim Meyering.
23643
23644 2011-03-12  Bruno Haible  <bruno@clisp.org>
23645
23646         futimens, utimensat: Avoid endless recursion on Solaris 10.
23647         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
23648         Solaris.
23649         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
23650         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
23651
23652 2011-03-11  Jim Meyering  <meyering@redhat.com>
23653
23654         maint.mk: relax a regexp to accommodate other formatting styles
23655         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
23656         between "ngettext" and the following "(".
23657
23658 2011-03-11  Pádraig Brady <P@draigBrady.com>
23659
23660         maint.mk: suppress a false positive warning
23661         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
23662         diagnostics are marked with ngettext.
23663
23664 2011-03-10  Eric Blake  <eblake@redhat.com>
23665
23666         wchar: add explicit dependencies, for Tru64
23667         * modules/mbmemcasecoll (Depends-on): Add wchar.
23668         * modules/mbtowc (Depends-on): Likewise.
23669         * modules/vasnprintf (Depends-on): Likewise.
23670         * modules/unistdio/u-printf-args (Depends-on): Likewise.
23671         * modules/wctomb (Depends-on): Likewise.
23672         Reported by Peter O'Gorman.
23673
23674 2011-03-08  Bruno Haible  <bruno@clisp.org>
23675
23676         passfd module, part 1, tweaks.
23677         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
23678         Improve indentation. Improve AC_MSG_CHECKING messages.
23679         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
23680         gl_SOCKET_FAMILIES.
23681
23682 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
23683
23684         passfd module, part 1.
23685         * m4/afunix.m4: New file.
23686         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
23687         sockets.
23688
23689 2011-03-08  Bruno Haible  <bruno@clisp.org>
23690
23691         regex-quote: New API.
23692         * lib/regex-quote.h: Include <stdbool.h>.
23693         (struct regex_quote_spec): New type.
23694         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23695         New declarations.
23696         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23697         'const struct regex_quote_spec *' argument.
23698         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
23699         (pcre_special): New constant.
23700         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
23701         New functions.
23702         (regex_quote_length, regex_quote_copy, regex_quote): Take a
23703         'const struct regex_quote_spec *' argument.
23704         * modules/regex-quote (Depends-on): Add stdbool.
23705         * tests/test-regex-quote.c (check): Update for new API. Add test for
23706         anchored results.
23707         * NEWS: Mention the API change.
23708         Reported by Reuben Thomas and Eric Blake.
23709
23710 2011-03-06  Bruno Haible  <bruno@clisp.org>
23711
23712         regex-quote: Fix creation of POSIX extended regular expressions.
23713         * lib/regex-quote.c (ere_special): Add grouping and alternation
23714         operators.
23715
23716 2011-03-05  Bruno Haible  <bruno@clisp.org>
23717
23718         doc: Improve doc regarding autopoint vs. gnulib.
23719         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
23720         disable autopoint while running autoreconf.
23721         Suggested by Ralf Wildenhues.
23722
23723 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23724
23725         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
23726         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
23727
23728 2011-03-03  Bruce Korb  <bkorb@gnu.org>
23729
23730         parse-duration: remove xalloc.h dependency
23731         * lib/parse-duration.c (parse_period): handle NULL return from
23732         strdup instead of calling xstrdup().
23733         * modules/parse-duration: remove "xalloc" dependency
23734
23735 2011-03-03  Matthew Booth  <mbooth@redhat.com>
23736
23737         bootstrap: honor m4_base when running aclocal
23738         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
23739
23740 2011-03-02  Jim Meyering  <meyering@redhat.com>
23741
23742         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
23743         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
23744         on request from Matt Booth.
23745
23746 2011-03-01  Eric Blake  <eblake@redhat.com>
23747
23748         test-link: work on Hurd
23749         * tests/test-link.h (test_link): Hurd rejects linking directories
23750         with EISDIR instead of the POSIX-mandated EPERM.
23751
23752 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
23753
23754         stdio: simplify by moving files to printf-posix, sigpipe
23755         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
23756         since this symbol is needed only if printf is replaced.
23757         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
23758         Require gl_ASM_SYMBOL_PREFIX.
23759         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
23760         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
23761         (Depends-on): Add 'raise'.
23762         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
23763         * modules/stdio (Files): Remove lib/stdio-write.c,
23764         m4/asm-underscore.m4.
23765         (Depends-on): Remove 'raise'.
23766
23767         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
23768         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
23769         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
23770         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
23771
23772 2011-02-28  Bruno Haible  <bruno@clisp.org>
23773
23774         localcharset: Assume ANSI C behaviour of free().
23775         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
23776         calling free().
23777         Suggested by Simon Josefsson <simon@josefsson.org>.
23778
23779 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
23780             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
23781             Bruno Haible  <bruno@clisp.org>  (tiny change)
23782
23783         On Cygwin, use /proc file system instead of win32 API.
23784         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
23785         Win32 file names.
23786         (DllMain): Simplify by removing Cygwin specific code.
23787         (find_shared_library_fullname): Use Linux specific implementation also
23788         for Cygwin.
23789         (get_shared_library_fullname): Update accordingly.
23790         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
23791         Win32 file names.
23792         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
23793         Cygwin specific code.
23794
23795 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
23796             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
23797
23798         Fix OpenMP flag detection for various Fortran compilers.
23799         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
23800         OpenMP-conditional compilation construct, to force compile
23801         failure with missing OpenMP flag.
23802         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
23803
23804 2011-02-25  Eric Blake  <eblake@redhat.com>
23805
23806         strstr: expand test coverage
23807         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
23808         compilation.
23809         * tests/test-memmem.c (main): Duplicate tests.
23810         * tests/test-strcasestr.c (main): Likewise.
23811         * tests/test-c-strcasestr.c (main): Likewise.
23812
23813 2011-02-25  Jim Meyering  <meyering@redhat.com>
23814
23815         maint.mk: detect missing-NL-at-EOF, too
23816         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
23817         it also detects when a file lacks a newline at EOF.
23818         (require_exactly_one_NL_at_EOF_): Renamed from
23819         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
23820         since people may well have .x-sc_... file names tied to the
23821         existing name.  Suggested by Eric Blake.
23822
23823 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
23824
23825         dirname: move m4/dos.m4 functionality into lib/dosname.h
23826
23827         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
23828         extracts symbols from it, puts them into config.h; but it's much
23829         easier to use the symbols directly.  filename.h already does this,
23830         but it disagrees with dos.m4 in some respects.  This patch
23831         introduces a different include file dosname.h that packages up
23832         dos.m4, and then later we can work on merging filename.h and
23833         dosname.h.  Applications that need only the easy-to-configure
23834         symbols should consider including dosname.h rather than dirname.h.
23835         * NEWS: Mention incompatible changes.
23836         * m4/dos.m4: Remove.
23837         * lib/dosname.h, modules/dosname: New files.
23838         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23839         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23840         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23841         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23842         Include dosname.h, not dirname.h.
23843         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23844         Include dosname.h, for definitions of symbols like ISSLASH
23845         that used to be in config.h.
23846         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23847         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23848         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23849         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23850         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23851         * modules/rmdir (Files): Likewise.
23852         * modules/stat (Files): Likewise.
23853         * modules/unlink (Files): Likewise.
23854         * modules/dirname-lgpl (Depends-on): Add dosname.
23855         * modules/lstat (Depends-on): Likewise.
23856         * modules/openat (Depends-on): Likewise.
23857         * modules/rmdir (Depends-on): Likewise.
23858         * modules/savewd (Depends-on): Likewise.
23859         * modules/stat (Depends-on): Likewise.
23860         * modules/unlink (Depends-on): Likewise.
23861         * modules/openat (Depends-on): Remove dirname-lgpl.
23862         * modules/savewd (Depends-on): Likewise.
23863         * tests/test-dirname.c: Do not use removed symbols like
23864         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23865         the remaining symbols, e.g., ISSLASH ('\\').
23866
23867 2011-02-25  Eric Blake  <eblake@redhat.com>
23868
23869         strstr: revert patches that introduced bug and pessimization
23870         * lib/str-two-way.h: Add another reference.
23871         (two_way_short_needle, two_way_long_needle): Revert changes from
23872         2011-02-24; they pessimize search speed.
23873         (critical_factorization): Partially revert changes from
23874         2010-06-22; they violate the requirement that the left half of the
23875         needle be smaller than the period of the needle.
23876
23877 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23878
23879         filenamecat: remove unnecessary dependency on dirname-lgpl
23880         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23881         is no direct dependency, just an indirect one via filenamecat-lgpl.
23882
23883         remove: remove unnecessary use of m4/dos.m4
23884         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23885         * modules/remove (FILES): Remove m4/dos.m4.
23886
23887         * lib/openat-proc.c: Don't include dirname.h; not needed.
23888
23889         backupfile: remove unnecessary use of m4/dos.m4
23890         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23891         of its symbols are used by the backupfile code.  backupfile.c does
23892         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23893         for the rare case of programs that want all their backup file
23894         names to live within 8+3 limits, and dos.m4 doesn't address that.
23895         * modules/backupfile (Files): Remove m4/dos.m4.
23896
23897 2011-02-24  Jim Meyering  <meyering@redhat.com>
23898
23899         strstr: fix a bug whereby strstr would mistakenly return NULL
23900         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23901         in period calculation.
23902         (two_way_long_needle): Likewise.
23903         The original problem was reported by Mike Stump in
23904         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23905         Ralf Wildenhues provided the short needle and haystack.
23906         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23907         Add a more involved test to trigger the bug in two_way_long_needle.
23908
23909 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23910
23911         gnulib-tool: remove use of bold display in help screen
23912         * gnulib-tool (func_usage): Do not use bold display anymore in the
23913         help screen.  That was just meant to be a temporary emphasis for a
23914         backward-incompatible change.
23915
23916 2011-02-23  Bruno Haible  <bruno@clisp.org>
23917
23918         Fix misindentation of preprocessor directives.
23919         * lib/argp-namefrob.h: Reindent preprocessor directives.
23920         * lib/getopt_int.h (struct _getopt_data): Likewise.
23921         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23922         * lib/vasnprintf.c (decode_long_double): Likewise.
23923         * tests/test-argmatch.c: Insert blank lines, for clarity.
23924         * tests/test-exclude.c: Likewise.
23925
23926 2011-02-22  Bruno Haible  <bruno@clisp.org>
23927
23928         ioctl: Fix for MacOS X in 64-bit mode.
23929         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23930         value.
23931         Suggested by Eric Blake.
23932         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23933
23934 2011-02-22  Jim Meyering  <meyering@redhat.com>
23935
23936         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23937         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23938         in lib/.
23939
23940 2011-02-22  Eric Blake  <eblake@redhat.com>
23941
23942         maint: avoid any CDPATH issue
23943         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23944
23945         maint: adjust cpp indentation for my modules, as well
23946         * Makefile (sc_cpp_indent_check): Add my name.
23947         * lib/fbufmode.c: Filter through cppi.
23948         * lib/fpurge.c: Likewise.
23949         * lib/freadable.c: Likewise.
23950         * lib/freading.c: Likewise.
23951         * lib/fwritable.c: Likewise.
23952         * lib/fwriting.c: Likewise.
23953         * lib/sigaction.c: Likewise.
23954
23955 2011-02-22  Jim Meyering  <meyering@redhat.com>
23956
23957         maint: adjust cpp indentation to reflect nesting depth
23958         I.e., in a block of code that begins with an unnested "#if",
23959         put one space between the "#" in column 1 and following token.
23960         For example,
23961         -#include <sys/vfs.h>
23962         +# include <sys/vfs.h>
23963         Do this only in .c files that are part of a module I maintain.
23964         * lib/linkat.c: Filter through cppi.
23965         * lib/nanosleep.c: Likewise.
23966         * lib/openat.c: Likewise.
23967         * lib/openat-die.c: Likewise.
23968         * lib/dup3.c: Likewise.
23969         * lib/fchownat.c: Likewise.
23970         * lib/flock.c: Likewise.
23971         * lib/fsync.c: Likewise.
23972         * lib/fts.c: Likewise.
23973         * lib/getpass.c: Likewise.
23974         * lib/gettimeofday.c: Likewise.
23975         * lib/userspec.c: Likewise.
23976         * Makefile (sc_cpp_indent_check): New rule, to check this.
23977
23978 2011-02-22  Bruno Haible  <bruno@clisp.org>
23979
23980         New module 'wctomb'.
23981         * lib/stdlib.in.h (wctomb): New declaration.
23982         * lib/wctomb.c: New file.
23983         * lib/wctomb-impl.h: New file.
23984         * m4/wctomb.m4: New file.
23985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23986         REPLACE_WCTOMB.
23987         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23988         REPLACE_WCTOMB.
23989         * modules/wctomb: New file.
23990         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23991         * doc/posix-functions/wctomb.texi: Mention the new module.
23992         * modules/wctob (Depends-on): Add wctomb.
23993
23994 2011-02-22  Bruno Haible  <bruno@clisp.org>
23995
23996         New module 'mbtowc'.
23997         * lib/stdlib.in.h (mbtowc): New declaration.
23998         * lib/mbtowc.c: New file.
23999         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24000         * m4/mbtowc.m4: New file.
24001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24002         REPLACE_MBTOWC.
24003         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24004         REPLACE_MBTOWC.
24005         * modules/mbtowc: New file.
24006         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24007         * doc/posix-functions/mbtowc.texi: Mention the new module.
24008         * modules/btowc (Depends-on): Add mbtowc.
24009
24010 2011-02-22  Bruno Haible  <bruno@clisp.org>
24011
24012         wcrtomb: Add more tests for native Windows platforms.
24013         * tests/test-wcrtomb-w32-1.sh: New file.
24014         * tests/test-wcrtomb-w32-2.sh: New file.
24015         * tests/test-wcrtomb-w32-3.sh: New file.
24016         * tests/test-wcrtomb-w32-4.sh: New file.
24017         * tests/test-wcrtomb-w32-5.sh: New file.
24018         * tests/test-wcrtomb-w32.c: New file.
24019         * modules/wcrtomb-tests (Files): Add them.
24020         (Makefile.am): Arrange to run these tests.
24021         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24022         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24023
24024 2011-02-20  Bruno Haible  <bruno@clisp.org>
24025
24026         wcrtomb: Enhance test.
24027         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24028
24029 2011-02-20  Bruno Haible  <bruno@clisp.org>
24030
24031         mbrtowc: Tiny optimization.
24032         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24033
24034 2011-02-20  Jim Meyering  <meyering@redhat.com>
24035
24036         test-exclude.c: remove unmatched #endif
24037         * tests/test-exclude.c: Remove stray #endif, left over from
24038         the change of a week ago.
24039
24040 2011-02-19  Jim Meyering  <meyering@redhat.com>
24041
24042         git-version-gen: skip "-dirty" check when appropriate
24043         * build-aux/git-version-gen: Don't run any git commands when the
24044         version string comes from .tarball-version.  Prior to this, we
24045         would run git update-index --refresh even from a just-unpacked
24046         tarball directory, and that could affect a .git/ directory in a
24047         parent of the build directory.  Reported by Mike Frysinger.
24048
24049 2011-02-19  Bruno Haible  <bruno@clisp.org>
24050
24051         unictype/property-byname: Reduce the size of the 'data' segment.
24052         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24053
24054 2011-02-19  Bruno Haible  <bruno@clisp.org>
24055
24056         unictype/scripts: Reduce the size of the 'data' segment.
24057         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24058         '%pic'.
24059         * lib/unictype/scripts_byname.gperf: Regenerated.
24060
24061 2011-02-19  Bruno Haible  <bruno@clisp.org>
24062
24063         stdint: Update documentation.
24064         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
24065
24066 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
24067
24068         stdint: omit redundant check for wchar.h
24069         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
24070         always tests whether wchar.h exists, so remove the now-redundant test.
24071
24072 2011-02-18  Bruno Haible  <bruno@clisp.org>
24073
24074         stdint: Cut dependency to module 'wchar'.
24075         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
24076         include the necessary prerequisites.
24077         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
24078         * modules/stdint (Depends-on): Remove wchar.
24079         (Makefile.am): Substitute HAVE_WCHAR_H.
24080         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
24081
24082 2011-02-18  Eric Blake  <eblake@redhat.com>
24083
24084         longlong: skip, rather than fail, on cross-compilation
24085         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
24086         when cross-compiling; regression from 2011-02-16.
24087
24088 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24089
24090         * NEWS: Mention 2011-02-08 change to stdlib.
24091
24092 2011-02-17  Bruno Haible  <bruno@clisp.org>
24093
24094         getloadavg: Add comments about platforms.
24095         * m4/getloadavg.m4: Add comment.
24096         * lib/getloadavg.c: Likewise.
24097
24098 2011-02-17  Bruno Haible  <bruno@clisp.org>
24099
24100         getloadavg: Fix link error on Solaris 2.6.
24101         * modules/getloadavg (Link): New section.
24102         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
24103         linking test-getloadavg.
24104         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
24105         getloadavg.
24106
24107 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
24108
24109         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
24110         It was 'int', but this doesn't match the IRIX 6.5 manual.
24111         Suggested by Bruno Haible in
24112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
24113
24114 2011-02-17  Bruno Haible  <bruno@clisp.org>
24115
24116         havelib: Fix comments.
24117         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
24118         change.
24119
24120 2011-02-17  Bruno Haible  <bruno@clisp.org>
24121
24122         havelib: Update config.rpath.
24123         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
24124
24125 2011-02-17  Bruno Haible  <bruno@clisp.org>
24126
24127         getloadavg test: Add some plausibility checks.
24128         * tests/test-getloadavg.c (check_avg): Print a warning when the value
24129         is improbable.
24130
24131 2011-02-16  Eric Blake  <eblake@redhat.com>
24132
24133         maintainer-makefile: make syntax-check a no-op from tarballs
24134         * top/maint.mk (no-vc-detected): New rule.
24135         (local-checks-available): Use it to avoid hanging if someone tries
24136         'make syntax-check' from a tarball.  Also append to any non-syntax
24137         checks already defined in cfg.mk.
24138
24139 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24140
24141         longlong: tune, particularly for common case of c99
24142
24143         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
24144         or running anything if c99, or if unsigned long long int does not
24145         work.  In either case, we know the answer without further tests.
24146         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
24147         it at most once, and use its results for both long long int and
24148         unsigned long long int.  This is more likely to be efficient in
24149         the common case where the program wants to check for both long
24150         long int and unsigned long long int.
24151         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
24152         since the answer is already known.
24153
24154 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24155
24156         getloadavg: set errno
24157         * lib/getloadavg.c: Set errno when returning -1.  If no other
24158         error number looks appropriate, set it to ENOSYS if the getloadavg
24159         looks like it can't possibly ever work, ENOTSUP otherwise.
24160         Suggested by Bruno Haible in
24161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
24162
24163         getloadavg: trim unused parts and speed up 'configure'
24164         * NEWS: Document this.
24165         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
24166         always compiled if getloadavg is absent.
24167         Move test code to ...
24168         * tests/test-getloadavg.c: New file, containing previous
24169         contents of test from lib/getloadavg.c.  It also contains
24170         suggestions by Bruno Haible in
24171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
24172         * modules/getloadavg-tests: New file.
24173         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
24174         Do tests in the same order as they're needed for getloadavg.c.
24175         Omit setgid-related tests that generate symbols KMEM_GROUP,
24176         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
24177         Do only the tests that are needed to see whether the system has
24178         getloadavg, moving the other tests into ...
24179         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
24180         NLIST_NAME_UNION; nobody should be using it.  Do not define
24181         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
24182         relevant, as the user of this module shouldn't care how getloadavg
24183         is implemented.
24184
24185         getloadavg: omit unused var
24186         * lib/getloadavg.c (getloadavg): Omit unused local variable.
24187
24188 2011-02-15  Jim Meyering  <meyering@redhat.com>
24189
24190         doc: update users.txt
24191         * users.txt: Update iwhd's URL.
24192
24193 2011-02-13  Bruno Haible  <bruno@clisp.org>
24194
24195         Consistent macro naming for macros that use GCC __attribute__.
24196         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
24197         _ATTRIBUTE_NONNULL_.
24198         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
24199         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
24200         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
24201         ATTRIBUTE_DEPRECATED.
24202         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
24203         ATTRIBUTE_NORETURN.
24204         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24205         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24206         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24207         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
24208         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
24209         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
24210         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
24211         ATTRIBUTE_SENTINEL.
24212         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
24213         ATTRIBUTE_RETURN_CHECK.
24214         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
24215         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
24216         ATTRIBUTE_NORETURN.
24217         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
24218         Reported by Paul Eggert.
24219
24220 2011-02-13  Bruno Haible  <bruno@clisp.org>
24221
24222         Don't interfere with a program's definition of __attribute__.
24223         * lib/argp.h (__attribute__): Remove definition.
24224         (_GL_ATTRIBUTE_FORMAT): New macro.
24225         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
24226         * lib/argp-fmtstream.h (__attribute__): Remove definition.
24227         (_GL_ATTRIBUTE_FORMAT): New macro.
24228         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
24229         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
24230         GCC 3 or newer.
24231         * lib/error.h (__attribute__): Remove definition.
24232         (_GL_ATTRIBUTE_FORMAT): New macro.
24233         (error, error_at_line): Use it.
24234         * lib/hash.h (__attribute__): Remove definition.
24235         (ATTRIBUTE_WUR): Update definition. Define always.
24236         * lib/openat.h (__attribute__): Remove definition.
24237         (ATTRIBUTE_NORETURN): Update definition. Define always.
24238         * lib/sigpipe-die.h (__attribute__): Remove definition.
24239         (ATTRIBUTE_NORETURN): Update definition. Define always.
24240         * lib/vasnprintf.h (__attribute__): Remove definition.
24241         (_GL_ATTRIBUTE_FORMAT): New macro.
24242         (asnprintf, vasnprintf): Use it.
24243         * lib/xalloc.h (__attribute__): Remove definition.
24244         (ATTRIBUTE_NORETURN): Update definition. Define always.
24245         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
24246         * lib/xmemdup0.h (__attribute__): Remove definition.
24247         (ATTRIBUTE_NORETURN): Update definition. Define always.
24248         * lib/xprintf.h (__attribute__): Remove definition.
24249         (_GL_ATTRIBUTE_FORMAT): New macro.
24250         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
24251         * lib/xstrtol.h (__attribute__): Remove definition.
24252         (ATTRIBUTE_NORETURN): Update definition. Define always.
24253         * lib/xvasprintf.h (__attribute__): Remove definition.
24254         (_GL_ATTRIBUTE_FORMAT): New macro.
24255         (xasprintf, xvasprintf): Use it.
24256         * tests/test-argmatch.c (__attribute__): Remove definition.
24257         (ATTRIBUTE_NORETURN): Update definition. Define always.
24258         * tests/test-exclude.c (__attribute__): Remove definition.
24259         (ATTRIBUTE_NORETURN): Update definition. Define always.
24260         Reported by Paul Eggert.
24261
24262 2011-02-13  Bruno Haible  <bruno@clisp.org>
24263
24264         mbrtowc: Add more tests for native Windows platforms.
24265         * tests/test-mbrtowc-w32-1.sh: New file.
24266         * tests/test-mbrtowc-w32-2.sh: New file.
24267         * tests/test-mbrtowc-w32-3.sh: New file.
24268         * tests/test-mbrtowc-w32-4.sh: New file.
24269         * tests/test-mbrtowc-w32-5.sh: New file.
24270         * tests/test-mbrtowc-w32.c: New file.
24271         * modules/mbrtowc-tests (Files): Add them.
24272         (Makefile.am): Arrange to run these tests.
24273         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
24274         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
24275
24276 2011-02-13  Bruno Haible  <bruno@clisp.org>
24277
24278         mbrtowc: Work around native Windows bug.
24279         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
24280         guess when no suitable locale for testing was found.
24281         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
24282
24283 2011-02-13  Bruno Haible  <bruno@clisp.org>
24284
24285         mbsinit: Work around mingw bug.
24286         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
24287         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
24288         Windows.
24289         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
24290
24291 2011-02-13  Bruno Haible  <bruno@clisp.org>
24292
24293         mbsinit: Don't crash for a NULL argument.
24294         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
24295         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
24296
24297 2011-02-13  Bruno Haible  <bruno@clisp.org>
24298
24299         Don't interfere with a program's definition of __attribute__.
24300         * lib/stdio.in.h (__attribute__): Remove definition.
24301         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
24302         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
24303         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
24304         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
24305         * lib/string.in.h (__attribute__): Remove definition.
24306         Reported by Paul Eggert.
24307
24308 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24309
24310         stdlib: don't get in the way of non-GCC __attribute__
24311         See thread starting at
24312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
24313         Revert previous stdlib change, installing the following instead:
24314         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
24315         to get in the way of a non-GCC compiler that supports __attribute__.
24316         (_GL_ATTRIBUTE_RETURN): New macro.
24317         (_Exit): Use it instead of __attribute__.
24318
24319 2011-02-12  Bruno Haible  <bruno@clisp.org>
24320
24321         quotearg test: Avoid test failure on mingw.
24322         * tests/test-quotearg.sh: Convert the locale identifier from native
24323         Windows syntax to Unix syntax.
24324
24325 2011-02-12  Bruno Haible  <bruno@clisp.org>
24326
24327         setlocale: Prefer gnulib's override over libintl's override.
24328         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
24329         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
24330         GNULIB_defined_setlocale is set.
24331
24332 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         stdlib: support non-GCC __attribute__
24335
24336         Fix a serious and tricky problem encountered when attempting to
24337         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
24338         5.5, but it crashed due to memory corruption on Solaris 10 with
24339         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
24340         bits that are otherwise zero.  This tagging is optional inside
24341         Emacs but is preferred and is used when __attribute__ ((__aligned
24342         (8))) works, as it does with both recent-enough GCC and with Sun C
24343         5.11.  However, Sun C 5.11 is not GCC and does not #define
24344         __GNUC__ and __GNUC_MINOR__.
24345
24346         When I added the getloadavg module to Emacs, it brought in
24347         stdlib.in.h, which contained this fragment:
24348
24349            #ifndef __attribute__
24350            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
24351            #  define __attribute__(Spec)   /* empty */
24352            # endif
24353            #endif
24354
24355         When files that include <stdlib.h> were compiled with Sun C 5.11,
24356         the above code disabled __attribute__ ((__aligned (8))), which
24357         caused variables to not be properly aligned, which eventually led
24358         to the pointer corruption mentioned above.  (This was a bit hard
24359         to diagnose, unfortunately.)
24360
24361         Several "#define __attribute__(X) /* empty */" code snippets need
24362         to be eradicated from Gnulib to work with non-GCC compilers that
24363         support __attribute__.  The Autoconf way to do this is to test for
24364         each kind of attribute that we want support for, and selectively
24365         enable that in source code.
24366
24367         Fix this problem just for stdlib.h, by adding a test for the
24368         __noreturn__ attribute, and change stdlib.in.h to use that test
24369         when needed.  This technique can be easily generalized to the
24370         other *.in.h files and attributes, and a similar technique can be
24371         used for *.h and *.c files.  This patch is enough to solve the
24372         problem for Emacs + getloadavg, and I thought I'd publish it for
24373         feedback before undertaking further, similar fixes in other
24374         modules.
24375
24376         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
24377         because it's not needed for stdlib.h.  It merely substitutes the
24378         value directly into stdlib.h.  We may well need to #define it, or
24379         similar symbols, for other modules, but it's nice to also have an
24380         option to not #define it for applications like Emacs that do not
24381         need it.
24382
24383         * lib/stdlib.in.h (__attribute__): Do not #define.
24384         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
24385         be defined only if the _Exit module is also used.
24386         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
24387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
24388         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
24389         platforms.
24390         * modules/_Exit (Files): Add m4/attribute.m4.
24391         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
24392         * m4/attribute.m4: New file.
24393
24394 2011-02-12  Bruno Haible  <bruno@clisp.org>
24395
24396         wcsrtombs: Work around bug on native Windows.
24397         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
24398         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
24399         instead of len.
24400         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
24401
24402 2011-02-12  Bruno Haible  <bruno@clisp.org>
24403
24404         mbsrtowcs: Work around bug on native Windows.
24405         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
24406         against mingw bug.
24407         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
24408
24409 2011-02-12  Bruno Haible  <bruno@clisp.org>
24410
24411         Avoid setlocale bugs in tests.
24412         * modules/btowc (Dependencies): Add setlocale.
24413         * modules/c-strcase (Dependencies): Likewise.
24414         * modules/mbmemcasecmp (Dependencies): Likewise.
24415         * modules/mbmemcasecoll (Dependencies): Likewise.
24416         * modules/mbrtowc (Dependencies): Likewise.
24417         * modules/mbscasecmp (Dependencies): Likewise.
24418         * modules/mbscasestr (Dependencies): Likewise.
24419         * modules/mbschr (Dependencies): Likewise.
24420         * modules/mbscspn (Dependencies): Likewise.
24421         * modules/mbsinit (Dependencies): Likewise.
24422         * modules/mbsncasecmp (Dependencies): Likewise.
24423         * modules/mbsnrtowcs (Dependencies): Likewise.
24424         * modules/mbspbrk (Dependencies): Likewise.
24425         * modules/mbspcasecmp (Dependencies): Likewise.
24426         * modules/mbsrchr (Dependencies): Likewise.
24427         * modules/mbsrtowcs (Dependencies): Likewise.
24428         * modules/mbsspn (Dependencies): Likewise.
24429         * modules/mbsstr (Dependencies): Likewise.
24430         * modules/nl_langinfo (Dependencies): Likewise.
24431         * modules/quotearg (Dependencies): Likewise.
24432         * modules/unicase/locale-language (Dependencies): Likewise.
24433         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
24434         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
24435         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
24436         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
24437         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
24438         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
24439         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
24440         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
24441         * modules/vasnprintf-posix (Dependencies): Likewise.
24442         * modules/wcrtomb (Dependencies): Likewise.
24443         * modules/wcsnrtombs (Dependencies): Likewise.
24444         * modules/wcsrtombs (Dependencies): Likewise.
24445
24446 2011-02-12  Bruno Haible  <bruno@clisp.org>
24447
24448         setlocale: Workaround native Windows bug.
24449         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
24450         succeeds but sets LC_CTYPE to "C", report a failure.
24451         * tests/test-setlocale2.sh: New file.
24452         * tests/test-setlocale2.c: New file.
24453         * modules/setlocale-tests (Files): Add the new files.
24454         (Makefile.am): Enable test-setlocale2.sh test.
24455         * doc/posix-functions/setlocale.texi: Mention workaround.
24456
24457 2011-02-11  Bruno Haible  <bruno@clisp.org>
24458
24459         Tests for module 'setlocale'.
24460         * modules/setlocale-tests: New file.
24461         * tests/test-setlocale1.sh: New file.
24462         * tests/test-setlocale1.c: New file.
24463
24464         New module 'setlocale'.
24465         * lib/locale.in.h (setlocale): New declaration.
24466         * lib/setlocale.c: New file, based on
24467         gettext/gettext-runtime/intl/setlocale.c.
24468         * m4/setlocale.m4: New file.
24469         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
24470         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
24471         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
24472         REPLACE_SETLOCALE.
24473         * modules/setlocale: New file.
24474         * tests/test-locale-c++.cc: Test the declaration of setlocale.
24475         * doc/posix-functions/setlocale.texi: Mention the new module.
24476
24477 2011-02-11  Bruno Haible  <bruno@clisp.org>
24478
24479         Prepare for locale dependent tests on mingw.
24480         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
24481         because it has the wrong locale encoding.
24482         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
24483         French_France.1252 instead of "fr".
24484         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
24485         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
24486         because it has the wrong locale encoding.
24487         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
24488         native Windows, try Turkish_Turkey.65001.
24489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
24490         Chinese_China.54936.
24491
24492         Prepare for locale dependent tests on mingw.
24493         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
24494         differently.
24495         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
24496         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
24497         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24498         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24499
24500 2011-02-11  Eric Blake  <eblake@redhat.com>
24501
24502         strptime: avoid compiler warnings
24503         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
24504         compiler warnings about dead code.
24505         Reported by Daniel P. Berrange.
24506
24507 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
24508
24509         doc: update users.txt
24510         * users.txt: Add rcs.
24511
24512 2011-02-10  John W. Eaton  <jwe@gnu.org>
24513
24514         doc: update users.txt
24515         * users.txt: Add octave.
24516
24517 2011-02-10  Jim Meyering  <meyering@redhat.com>
24518
24519         doc: update users.txt
24520         * users.txt: Add iwhd.
24521
24522 2011-02-09  Bruno Haible  <bruno@clisp.org>
24523
24524         gnulib-tool: Make copyright notice adjustment more robust.
24525         * gnulib-tool (func_import): In sed_transform_main_lib_file,
24526         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
24527         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
24528         License".
24529         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
24530
24531 2011-02-06  Bruno Haible  <bruno@clisp.org>
24532
24533         New module 'towctrans'.
24534         * modules/towctrans: New file.
24535         * lib/wctype.in.h (towctrans): New declaration.
24536         * lib/towctrans.c: New file.
24537         * lib/towctrans-impl.h: New file.
24538         * m4/towctrans.m4: New file.
24539         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
24540         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
24541         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
24542         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
24543         * doc/posix-functions/towctrans.texi: Mention the new module.
24544
24545 2011-02-06  Bruno Haible  <bruno@clisp.org>
24546
24547         New module 'wctrans'.
24548         * modules/wctrans: New file.
24549         * lib/wctype.in.h (wctrans): New declaration.
24550         * lib/wctrans.c: New file.
24551         * lib/wctrans-impl.h: New file.
24552         * m4/wctrans.m4: New file.
24553         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
24554         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
24555         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
24556         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
24557         * doc/posix-functions/wctrans.texi: Mention the new module.
24558
24559 2011-02-06  Bruno Haible  <bruno@clisp.org>
24560
24561         New module 'iswctype'.
24562         * modules/iswctype: New file.
24563         * lib/wctype.in.h (iswctype): New declaration.
24564         * lib/iswctype.c: New file.
24565         * lib/iswctype-impl.h: New file.
24566         * m4/iswctype.m4: New file.
24567         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
24568         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
24569         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
24570         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
24571         * doc/posix-functions/iswctype.texi: Mention the new module and the
24572         HP-UX 11.00 problem.
24573
24574 2011-02-06  Bruno Haible  <bruno@clisp.org>
24575
24576         New module 'wctype'.
24577         * modules/wctype: Change to represent the wctype() substitute.
24578         * lib/wctype.in.h (wctype): New declaration.
24579         * lib/wctype.c: New file.
24580         * lib/wctype-impl.h: New file.
24581         * m4/wctype.m4: New file.
24582         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
24583         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
24584         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
24585         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
24586         * doc/posix-functions/wctype.texi: Mention the new module and the
24587         HP-UX 11.00 problem.
24588
24589 2011-02-06  Bruno Haible  <bruno@clisp.org>
24590
24591         wctype-h: Ensure wctype_t and wctrans_t are defined.
24592         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
24593         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24594         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
24595         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
24596         HAVE_WCTRANS_T.
24597         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
24598
24599 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24600
24601         flock: fix license typo
24602
24603         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
24604         omitted.
24605
24606 2011-02-08  Bruno Haible  <bruno@clisp.org>
24607
24608         Split large sed scripts, for HP-UX sed.
24609         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
24610         to avoid HP-UX limit of 99 commands, in the near future.
24611         * modules/stdlib (Makefile.am): Likewise.
24612         * modules/unistd (Makefile.am): Likewise.
24613         * modules/wchar (Makefile.am): Likewise.
24614         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24615         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
24616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
24617
24618 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24619             Bruno Haible  <bruno@clisp.org>
24620
24621         stdlib: improve random_r modularization
24622         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
24623         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
24624         you also need the random_r module to get this material right.
24625         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
24626         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
24627         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
24628
24629 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24630
24631         stdlib: don't depend on stdint
24632         * lib/stdlib.in.h: Don't include <stdint.h> merely because
24633         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
24634         be independent of whether stdint.h is needed.
24635         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
24636         here, instead of ...
24637         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
24638         struct random_data should be using the random_r module, not just
24639         the stdlib module (which wouldn't make sense: what package needs
24640         just struct random_data without also needing random_r?).
24641         * modules/stdlib (Depends-on): Remove stdint.
24642
24643         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
24644         See the thread rooted at
24645         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
24646         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
24647         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
24648         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
24649         __VMS)); previously it was always included (via fcntl--.h).
24650         (getloadavg): Do not use c_strtod.  Instead, approximate it by
24651         hand; this is good enough for load averages.  Also, do not use
24652         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
24653         flags directly if available and don't bother otherwise.  (Packages
24654         that need the extra reliability should use the modules that define
24655         these flags on older platforms that lack them.)
24656         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
24657         fcntl-safer.
24658
24659 2011-02-08  Jim Meyering  <meyering@redhat.com>
24660
24661         di-set.h, ino-map.h: add multiple-inclusion guard
24662         Technically, the guard is required only for ino-map.h, due to its
24663         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
24664         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
24665         * lib/ino-map.h: Likewise.
24666
24667 2011-02-06  Bruno Haible  <bruno@clisp.org>
24668
24669         iswblank: Ensure declaration on glibc systems.
24670         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
24671         * modules/iswblank (Dependencies): Add 'extensions'.
24672         * doc/posix-functions/iswblank.texi: Document the glibc problem.
24673
24674 2011-02-06  Bruno Haible  <bruno@clisp.org>
24675
24676         New module 'iswblank'.
24677         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
24678         * modules/iswblank: New file.
24679         * modules/wctype-h (Files): Remove lib/iswblank.c.
24680         (Makefile.am): Substitute GNULIB_ISWBLANK.
24681         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
24682         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
24683         (gl_WCTYPE_H_DEFAULTS): New macro.
24684         (gl_WCTYPE_H): Require it. Remove iswblank related code.
24685         * modules/iswblank-tests: New file.
24686         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
24687         * tests/test-wctype-h.c (main): Remove iswblank tests.
24688         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
24689         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
24690         of 'wctype-h'.
24691         * NEWS: Mention the change.
24692         * modules/mbchar (Depends-on): Add iswblank.
24693
24694 2011-02-08  Bruno Haible  <bruno@clisp.org>
24695
24696         di-set tests: Refactor.
24697         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
24698         unnecessary includes.
24699         (ASSERT): Remove macro.
24700         (main): Make C90 compliant by avoiding variable declaration after
24701         statement.
24702         * modules/di-set-tests (Files): Add tests/macros.h.
24703
24704 2011-02-08  Bruno Haible  <bruno@clisp.org>
24705
24706         ino-map tests: Refactor.
24707         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
24708         unnecessary includes.
24709         (ASSERT): Remove macro.
24710         (main): Make C90 compliant by avoiding variable declaration after
24711         statement.
24712         * modules/ino-map-tests (Files): Add tests/macros.h.
24713
24714 2011-02-08  Jim Meyering  <meyering@redhat.com>
24715
24716         di-set: add "const" to a cast
24717         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
24718         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
24719
24720 2011-02-06  Bruno Haible  <bruno@clisp.org>
24721
24722         Rename module 'wctype' to 'wctype-h'.
24723         * modules/wctype-h: Renamed from modules/wctype.
24724         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
24725         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
24726         (Files, Depends-on, Makefile.am): Update.
24727         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
24728         (Files, Makefile.am): Update.
24729         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
24730         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
24731         * doc/posix-headers/wctype.texi: Update.
24732         * doc/posix-functions/iswalnum.texi: Update.
24733         * doc/posix-functions/iswalpha.texi: Update.
24734         * doc/posix-functions/iswblank.texi: Update.
24735         * doc/posix-functions/iswcntrl.texi: Update.
24736         * doc/posix-functions/iswdigit.texi: Update.
24737         * doc/posix-functions/iswgraph.texi: Update.
24738         * doc/posix-functions/iswlower.texi: Update.
24739         * doc/posix-functions/iswprint.texi: Update.
24740         * doc/posix-functions/iswpunct.texi: Update.
24741         * doc/posix-functions/iswspace.texi: Update.
24742         * doc/posix-functions/iswupper.texi: Update.
24743         * doc/posix-functions/iswxdigit.texi: Update.
24744         * doc/posix-functions/towlower.texi: Update.
24745         * doc/posix-functions/towupper.texi: Update.
24746         * NEWS: Mention the change.
24747         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
24748         * modules/mbchar (Dependencies): Likewise.
24749         * modules/mbswidth (Dependencies): Likewise.
24750         * modules/quotearg (Dependencies): Likewise.
24751         * modules/regex (Dependencies): Likewise.
24752         * modules/wcscasecmp (Dependencies): Likewise.
24753         * modules/wcsncasecmp (Dependencies): Likewise.
24754         * modules/wcwidth (Dependencies): Likewise.
24755
24756 2011-02-06  Bruno Haible  <bruno@clisp.org>
24757
24758         New module 'wcswidth'.
24759         * modules/wcswidth: New file.
24760         * lib/wchar.in.h (wcswidth): New declaration.
24761         * lib/wcswidth.c: New file.
24762         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
24763         * m4/wcswidth.m4: New file.
24764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
24765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
24766         REPLACE_WCSWIDTH.
24767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
24768         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
24769         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
24770         * doc/posix-functions/wcswidth.texi: Mention the new module.
24771
24772 2011-02-06  Bruno Haible  <bruno@clisp.org>
24773
24774         New module 'wcstok'.
24775         * modules/wcstok: New file.
24776         * lib/wchar.in.h (wcstok): New declaration.
24777         * lib/wcstok.c: New file.
24778         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
24779         * m4/wcstok.m4: New file.
24780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
24781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
24782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
24783         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
24784         * doc/posix-functions/wcstok.texi: Mention the new module.
24785
24786 2011-02-06  Bruno Haible  <bruno@clisp.org>
24787
24788         New module 'wcsstr'.
24789         * modules/wcsstr: New file.
24790         * lib/wchar.in.h (wcsstr): New declaration.
24791         * lib/wcsstr.c: New file.
24792         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
24793         * m4/wcsstr.m4: New file.
24794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
24795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
24796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
24797         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
24798         * doc/posix-functions/wcsstr.texi: Mention the new module.
24799
24800 2011-02-06  Bruno Haible  <bruno@clisp.org>
24801
24802         New module 'wcspbrk'.
24803         * modules/wcspbrk: New file.
24804         * lib/wchar.in.h (wcspbrk): New declaration.
24805         * lib/wcspbrk.c: New file.
24806         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
24807         * m4/wcspbrk.m4: New file.
24808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
24809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
24810         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
24811         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
24812         * doc/posix-functions/wcspbrk.texi: Mention the new module.
24813
24814 2011-02-06  Bruno Haible  <bruno@clisp.org>
24815
24816         New module 'wcsspn'.
24817         * modules/wcsspn: New file.
24818         * lib/wchar.in.h (wcsspn): New declaration.
24819         * lib/wcsspn.c: New file.
24820         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
24821         * m4/wcsspn.m4: New file.
24822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
24823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
24824         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
24825         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
24826         * doc/posix-functions/wcsspn.texi: Mention the new module.
24827
24828 2011-02-06  Bruno Haible  <bruno@clisp.org>
24829
24830         New module 'wcscspn'.
24831         * modules/wcscspn: New file.
24832         * lib/wchar.in.h (wcscspn): New declaration.
24833         * lib/wcscspn.c: New file.
24834         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24835         * m4/wcscspn.m4: New file.
24836         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24837         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24839         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24840         * doc/posix-functions/wcscspn.texi: Mention the new module.
24841
24842 2011-02-06  Bruno Haible  <bruno@clisp.org>
24843
24844         New module 'wcsrchr'.
24845         * modules/wcsrchr: New file.
24846         * lib/wchar.in.h (wcsrchr): New declaration.
24847         * lib/wcsrchr.c: New file.
24848         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24849         * m4/wcsrchr.m4: New file.
24850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24853         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24854         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24855
24856 2011-02-06  Bruno Haible  <bruno@clisp.org>
24857
24858         New module 'wcschr'.
24859         * modules/wcschr: New file.
24860         * lib/wchar.in.h (wcschr): New declaration.
24861         * lib/wcschr.c: New file.
24862         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24863         * m4/wcschr.m4: New file.
24864         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24865         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24866         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24867         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24868         * doc/posix-functions/wcschr.texi: Mention the new module.
24869
24870 2011-02-06  Bruno Haible  <bruno@clisp.org>
24871
24872         New module 'wcsdup'.
24873         * modules/wcsdup: New file.
24874         * lib/wchar.in.h (wcsdup): New declaration.
24875         * lib/wcsdup.c: New file.
24876         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24877         * m4/wcsdup.m4: New file.
24878         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24879         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24880         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24881         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24882         * doc/posix-functions/wcsdup.texi: Mention the new module.
24883
24884 2011-02-06  Bruno Haible  <bruno@clisp.org>
24885
24886         New module 'wcsxfrm'.
24887         * modules/wcsxfrm: New file.
24888         * lib/wchar.in.h (wcsxfrm): New declaration.
24889         * lib/wcsxfrm.c: New file.
24890         * lib/wcsxfrm-impl.h: New file.
24891         * m4/wcsxfrm.m4: New file.
24892         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24893         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24894         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24895         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24896         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24897
24898 2011-02-06  Bruno Haible  <bruno@clisp.org>
24899
24900         New module 'wcscoll'.
24901         * modules/wcscoll: New file.
24902         * lib/wchar.in.h (wcscoll): New declaration.
24903         * lib/wcscoll.c: New file.
24904         * lib/wcscoll-impl.h: New file.
24905         * m4/wcscoll.m4: New file.
24906         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24907         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24908         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24909         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24910         * doc/posix-functions/wcscoll.texi: Mention the new module.
24911
24912 2011-02-06  Bruno Haible  <bruno@clisp.org>
24913
24914         New module 'wcsncasecmp'.
24915         * modules/wcsncasecmp: New file.
24916         * lib/wchar.in.h (wcsncasecmp): New declaration.
24917         * lib/wcsncasecmp.c: New file.
24918         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24919         * m4/wcsncasecmp.m4: New file.
24920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24923         HAVE_WCSNCASECMP.
24924         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24925         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24926
24927 2011-02-06  Bruno Haible  <bruno@clisp.org>
24928
24929         New module 'wcscasecmp'.
24930         * modules/wcscasecmp: New file.
24931         * lib/wchar.in.h (wcscasecmp): New declaration.
24932         * lib/wcscasecmp.c: New file.
24933         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24934         * m4/wcscasecmp.m4: New file.
24935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24938         HAVE_WCSCASECMP.
24939         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24940         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24941
24942 2011-02-05  Bruno Haible  <bruno@clisp.org>
24943
24944         New module 'wcsncmp'.
24945         * modules/wcsncmp: New file.
24946         * lib/wchar.in.h (wcsncmp): New declaration.
24947         * lib/wcsncmp.c: New file.
24948         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24949         * m4/wcsncmp.m4: New file.
24950         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24951         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24952         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24953         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24954         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24955
24956 2011-02-05  Bruno Haible  <bruno@clisp.org>
24957
24958         New module 'wcscmp'.
24959         * modules/wcscmp: New file.
24960         * lib/wchar.in.h (wcscmp): New declaration.
24961         * lib/wcscmp.c: New file.
24962         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24963         * m4/wcscmp.m4: New file.
24964         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24965         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24966         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24967         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24968         * doc/posix-functions/wcscmp.texi: Mention the new module.
24969
24970 2011-02-05  Bruno Haible  <bruno@clisp.org>
24971
24972         New module 'wcsncat'.
24973         * modules/wcsncat: New file.
24974         * lib/wchar.in.h (wcsncat): New declaration.
24975         * lib/wcsncat.c: New file.
24976         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24977         * m4/wcsncat.m4: New file.
24978         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24979         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24981         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24982         * doc/posix-functions/wcsncat.texi: Mention the new module.
24983
24984 2011-02-05  Bruno Haible  <bruno@clisp.org>
24985
24986         New module 'wcscat'.
24987         * modules/wcscat: New file.
24988         * lib/wchar.in.h (wcscat): New declaration.
24989         * lib/wcscat.c: New file.
24990         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24991         * m4/wcscat.m4: New file.
24992         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24993         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24994         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24995         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24996         * doc/posix-functions/wcscat.texi: Mention the new module.
24997
24998 2011-02-05  Bruno Haible  <bruno@clisp.org>
24999
25000         New module 'wcpncpy'.
25001         * modules/wcpncpy: New file.
25002         * lib/wchar.in.h (wcpncpy): New declaration.
25003         * lib/wcpncpy.c: New file.
25004         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25005         * m4/wcpncpy.m4: New file.
25006         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25007         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25008         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25009         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25010         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25011
25012 2011-02-05  Bruno Haible  <bruno@clisp.org>
25013
25014         New module 'wcsncpy'.
25015         * modules/wcsncpy: New file.
25016         * lib/wchar.in.h (wcsncpy): New declaration.
25017         * lib/wcsncpy.c: New file.
25018         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25019         * m4/wcsncpy.m4: New file.
25020         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25021         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25022         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25023         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25024         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25025
25026 2011-02-05  Bruno Haible  <bruno@clisp.org>
25027
25028         New module 'wcpcpy'.
25029         * modules/wcpcpy: New file.
25030         * lib/wchar.in.h (wcpcpy): New declaration.
25031         * lib/wcpcpy.c: New file.
25032         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25033         * m4/wcpcpy.m4: New file.
25034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25036         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25037         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25038         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25039
25040 2011-02-05  Bruno Haible  <bruno@clisp.org>
25041
25042         New module 'wcscpy'.
25043         * modules/wcscpy: New file.
25044         * lib/wchar.in.h (wcscpy): New declaration.
25045         * lib/wcscpy.c: New file.
25046         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25047         * m4/wcscpy.m4: New file.
25048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25051         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25052         * doc/posix-functions/wcscpy.texi: Mention the new module.
25053
25054 2011-02-05  Bruno Haible  <bruno@clisp.org>
25055
25056         New module 'wcsnlen'.
25057         * modules/wcsnlen: New file.
25058         * lib/wchar.in.h (wcsnlen): New declaration.
25059         * lib/wcsnlen.c: New file.
25060         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25061         * m4/wcsnlen.m4: New file.
25062         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
25063         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
25064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
25065         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
25066         * doc/posix-functions/wcsnlen.texi: Mention the new module.
25067
25068 2011-02-05  Bruno Haible  <bruno@clisp.org>
25069
25070         New module 'wcslen'.
25071         * modules/wcslen: New file.
25072         * lib/wchar.in.h (wcslen): New declaration.
25073         * lib/wcslen.c: New file.
25074         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
25075         * m4/wcslen.m4: New file.
25076         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
25077         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
25078         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
25079         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
25080         * doc/posix-functions/wcslen.texi: Mention the new module.
25081
25082 2011-02-05  Bruno Haible  <bruno@clisp.org>
25083
25084         New module 'wmemset'.
25085         * modules/wmemset: New file.
25086         * lib/wchar.in.h (wmemset): New declaration.
25087         * lib/wmemset.c: New file.
25088         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
25089         * m4/wmemset.m4: New file.
25090         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
25091         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
25092         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
25093         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
25094         * doc/posix-functions/wmemset.texi: Mention the new module.
25095
25096 2011-02-05  Bruno Haible  <bruno@clisp.org>
25097
25098         New module 'wmemmove'.
25099         * modules/wmemmove: New file.
25100         * lib/wchar.in.h (wmemmove): New declaration.
25101         * lib/wmemmove.c: New file.
25102         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
25103         * m4/wmemmove.m4: New file.
25104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
25105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
25106         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
25107         HAVE_WMEMMOVE.
25108         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
25109         * doc/posix-functions/wmemmove.texi: Mention the new module.
25110
25111 2011-02-05  Bruno Haible  <bruno@clisp.org>
25112
25113         New module 'wmemcpy'.
25114         * modules/wmemcpy: New file.
25115         * lib/wchar.in.h (wmemcpy): New declaration.
25116         * lib/wmemcpy.c: New file.
25117         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
25118         * m4/wmemcpy.m4: New file.
25119         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
25120         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
25121         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
25122         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
25123         * doc/posix-functions/wmemcpy.texi: Mention the new module.
25124
25125 2011-02-05  Bruno Haible  <bruno@clisp.org>
25126
25127         New module 'wmemcmp'.
25128         * modules/wmemcmp: New file.
25129         * lib/wchar.in.h (wmemcmp): New declaration.
25130         * lib/wmemcmp.c: New file.
25131         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
25132         * m4/wmemcmp.m4: New file.
25133         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
25134         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
25135         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
25136         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
25137         * doc/posix-functions/wmemcmp.texi: Mention the new module.
25138
25139 2011-02-07  Jim Meyering  <meyering@redhat.com>
25140
25141         di-set, ino-map: new modules, from coreutils
25142         * lib/di-set.c: New file.
25143         * lib/di-set.h: Likewise.
25144         * lib/ino-map.c: Likewise.
25145         * lib/ino-map.h: Likewise.
25146         * modules/di-set: Likewise.
25147         * modules/di-set-tests: Likewise.
25148         * modules/ino-map: Likewise.
25149         * modules/ino-map-tests: Likewise.
25150         * tests/test-di-set.c: Likewise.
25151         * tests/test-ino-map.c: Likewise.
25152
25153 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25154
25155         getloadavg: merge minor changes from Emacs
25156
25157         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
25158         (getloadavg): Use memset, not bzero.
25159
25160         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
25161         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
25162         clash (bug#86).
25163
25164 2010-11-14  Bruno Haible  <bruno@clisp.org>
25165
25166         Allow multiple gnulib generated replacements to coexist.
25167         * lib/getopt.in.h (struct option): Avoid identical redefinition.
25168         * lib/inttypes.in.h (imaxdiv_t): Likewise.
25169         * lib/langinfo.in.h (nl_item): Likewise.
25170         * lib/math.in.h (_NaN, NAN): Likewise.
25171         * lib/netdb.in.h (struct addrinfo): Likewise.
25172         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
25173         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
25174         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
25175         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
25176         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
25177         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
25178         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
25179         pthread_mutexattr_init, pthread_mutexattr_settype,
25180         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
25181         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
25182         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
25183         pthread_spin_trylock, pthread_spin_unlock): Likewise.
25184         * lib/sched.in.h (struct sched_param): Likewise.
25185         * lib/se-selinux.in.h (security_class_t, security_context_t,
25186         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
25187         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
25188         lsetfilecon, fsetfilecon, security_check_context,
25189         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
25190         Likewise.
25191         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
25192         Likewise.
25193         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
25194         _gl_function_taking_int_returning_void_t, union sigval,
25195         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
25196         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
25197         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25198         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
25199         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
25200         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
25201         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
25202         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
25203         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
25204         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
25205         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
25206         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
25207         socklen_t, rpl_fd_isset): Likewise.
25208         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
25209         * lib/sys_time.in.h (struct timeval): Likewise.
25210         * lib/sys_times.in.h (struct tms): Likewise.
25211         * lib/sys_utsname.in.h (struct utsname):
25212         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
25213         * lib/unistd.in.h (getpagesize): Likewise.
25214         * lib/wchar.in.h (mbstate_t): Likewise.
25215         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25216         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
25217         towlower, towupper): Likewise.
25218         Reported by Sam Steingold <sds@gnu.org>.
25219
25220 2011-02-05  Eric Blake  <eblake@redhat.com>
25221
25222         unsetenv: work around Haiku issues
25223         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
25224         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
25225
25226 2010-12-30  Bruce Korb  <bkorb@gnu.org>
25227
25228         libposix: avoid calling error() within libposix
25229         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
25230         is defined.
25231
25232 2011-02-05  Eric Blake  <eblake@redhat.com>
25233
25234         strerror_r-posix: port to cygwin
25235         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
25236         implementation.
25237         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
25238         * tests/test-strerror_r.c (main): Fix test.
25239         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
25240         issue.
25241
25242 2011-02-05  Bruno Haible  <bruno@clisp.org>
25243
25244         New module 'wmemchr'.
25245         * modules/wmemchr: New file.
25246         * lib/wchar.in.h (wmemchr): New declaration.
25247         * lib/wmemchr.c: New file.
25248         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
25249         * m4/wmemchr.m4: New file.
25250         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
25251         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
25252         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
25253         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
25254         * doc/posix-functions/wmemchr.texi: Mention the new module.
25255
25256 2011-02-04  Eric Blake  <eblake@redhat.com>
25257
25258         fdopendir: detect FreeBSD bug
25259         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
25260         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
25261
25262 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25263
25264         stdbool: do not define HAVE_STDBOOL_H
25265         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
25266         AC_HEADER_STDBOOL.  All uses changed.  Do not define
25267         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
25268         imported from the latest Autoconf git.  It was motivated by Emacs,
25269         which uses gnulib but does not need HAVE_STDBOOL_H.
25270
25271 2011-02-04  Bruno Haible  <bruno@clisp.org>
25272
25273         wcsnrtombs: Prepare for new module wwcsnrtombs.
25274         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
25275         * lib/wcsnrtombs.c: Include it.
25276         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
25277
25278         wcsrtombs: Prepare for new module wwcsrtombs.
25279         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
25280         * lib/wcsrtombs.c: Include it.
25281         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
25282
25283         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
25284         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
25285         * lib/mbsnrtowcs.c: Include it.
25286         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
25287
25288         mbsrtowcs: Prepare for new module mbsrtowwcs.
25289         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
25290         * lib/mbsrtowcs.c: Include it.
25291         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
25292
25293 2011-02-04  Bruno Haible  <bruno@clisp.org>
25294
25295         vasnprintf: Reduce use of malloc for small format strings.
25296         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
25297         (arguments): Add room for the first 7 arguments.
25298         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
25299         (char_directives, u8_directives, u16_directives, u32_directives): Add
25300         room for the first 7 directives.
25301         * lib/printf-parse.c: Include <string.h>.
25302         (PRINTF_PARSE): Change memory handling code so that it uses the first
25303         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
25304         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
25305         Reported by Pádraig Brady <P@draigbrady.com>.
25306
25307 2011-01-31  Eric Blake  <eblake@redhat.com>
25308
25309         dup2: work around Haiku bug
25310         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
25311         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
25312         * doc/posix-functions/dup2.texi (dup2): Document the bug.
25313         * tests/test-dup2.c (main): Enhance test.
25314
25315 2011-01-31  Simon Josefsson  <simon@josefsson.org>
25316
25317         doc: off_t is not available in eglibc 2.11.2 stdio.h.
25318         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
25319         declared by eglibc 2.11.2.
25320         * lib/stdio.in.h: Likewise.
25321
25322 2011-01-31  Eric Blake  <eblake@redhat.com>
25323
25324         ignore-value: add missing test dependency
25325         * tests/test-ignore-value.c: Revert previous change; stdio.h
25326         provides off_t.
25327         * modules/ignore-value-tests (Depends-on): Add missing dependency.
25328
25329 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25330
25331         mktime: clarify long_int width checking
25332         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
25333         the top level, to make it clearer that the assumption about
25334         long_int width is being checked.  See
25335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
25336
25337 2011-01-30  Simon Josefsson  <simon@josefsson.org>
25338
25339         ignore-value: Fix self-test.
25340         * tests/test-ignore-value.c: Include sys/types.h for off_t.
25341
25342 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25343
25344         TYPE_MAXIMUM: avoid theoretically undefined behavior
25345         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
25346         negative number, which the C Standard says has undefined behavior.
25347         In practice this is not a problem, but might as well do it by the book.
25348         Reported by Rich Felker and Eric Blake; see
25349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
25350         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
25351         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25352         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25353         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
25354         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25355         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
25356
25357         mktime: #undef mktime before #defining it
25358         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
25359
25360         mktime: systematically normalize tm_isdst comparisons
25361         * lib/mktime.c (isdst_differ): New function.
25362         (__mktime_internal): Use it systematically for all isdst comparisons.
25363         This completes the fix for libc BZ #6723, and removes the need for
25364         normalizing tm_isdst.  See
25365         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
25366         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
25367
25368         mktime: fix some integer overflow issues and sidestep the rest
25369
25370         This was prompted by a bug report by Benjamin Lindner for MinGW
25371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
25372         His bug is due to signed integer overflow (0 - INT_MIN), and I
25373         I scanned through mktime.c looking for other integer overflow
25374         problems, fixing all the bugs I found.
25375
25376         Although the C Standard says the resulting code is still not safe
25377         in the presence of integer overflow, in practice it should be good
25378         enough for all real-world two's-complement implementations, except
25379         for debugging environments that deliberately trap on integer
25380         overflow (e.g., gcc -ftrapv).
25381
25382         * lib/mktime.c (WRAPV): New macro.
25383         (SHR): Also check that long_int and time_t shift right in the
25384         usual way, before using the fast-but-unportable method.
25385         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
25386         used.  The code already assumed two's complement, so there's
25387         no need to test for alternatives.  All uses removed.
25388         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
25389         the C standard.  Problem reported by Rich Felker in
25390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
25391         (twos_complement_arithmetic): Also check long_int and time_t.
25392         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
25393         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
25394         (__mktime_internal): Avoid integer overflow with unary subtraction
25395         in two instances where -1 - X is an adequate replacement for -X,
25396         since the calculations are approximate.
25397
25398 2011-01-29  Eric Blake  <eblake@redhat.com>
25399
25400         mktime: avoid infinite loop
25401         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
25402         type; behavior is still undefined but portable to all known targets.
25403         Reported by Rich Felker.
25404
25405 2011-01-29  Simon Josefsson  <simon@josefsson.org>
25406
25407         rename, unlink, same-inode: Relicense.
25408         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
25409         * modules/unlink (License): Likewise.
25410         * modules/same-inode (License): Likewise.
25411
25412 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25413
25414         mktime: avoid problems on NetBSD 5 / i386
25415         * lib/mktime.c (long_int): New type.  This works around a problem
25416         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
25417         but time_t is 64 bits, and where I expect the existing code is
25418         wrong in some cases.
25419         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
25420         (ydhms_diff): Bring back the compile-time check for wide-enough
25421         year and yday.
25422
25423         mktime: fix misspelling in comment
25424         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
25425         This merges all recent glibc changes of importance.
25426
25427 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25428
25429         move-if-change: cope with concurrent mv of identical file.
25430         * build-aux/move-if-change (CMPPROG): Accept environment
25431         variable as an override for `cmp'.
25432         (usage): Document CMPPROG.
25433         Adjust comparison to drop stdout.  Cope with failure of mv if
25434         the target file exists and is identical to the source, for
25435         parallel builds.
25436         Report from H.J. Lu against binutils in PR binutils/12283.
25437
25438 2011-01-28  Bruce Korb  <bkorb@gnu.org>
25439
25440         * users.txt: Mention sharutils.
25441
25442 2011-01-28  Simon Josefsson  <simon@josefsson.org>
25443
25444         * users.txt: Mention OATH Toolkit.
25445
25446 2011-01-27  Bruno Haible  <bruno@clisp.org>
25447
25448         Prepare for supporting FreeBSD 10.
25449         * build-aux/config.libpath: Remove handling of freebsd1*.
25450
25451 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
25452
25453         Prepare for supporting FreeBSD 10.
25454         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
25455         match FreeBSD 10.0.
25456
25457 2011-01-27  Bruno Haible  <bruno@clisp.org>
25458
25459         vma-iter, get-rusage-as: Add OpenBSD support.
25460         * modules/vma-iter (configure.ac): Test for mquery.
25461         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
25462         * lib/vma-iter.c: Include <sys/mman.h>.
25463         (vma_iterate): Add an implementation based on mquery().
25464         * lib/resource-ext.h (get_rusage_as): Update comments.
25465         * lib/get-rusage-as.c: Likewise.
25466         * lib/get-rusage-data.c: Likewise.
25467
25468 2011-01-26  Karl Berry  <karl@gnu.org>
25469
25470         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
25471         variables to make it easier to override the makeinfo program used.
25472
25473 2011-01-26  Eric Blake  <eblake@redhat.com>
25474
25475         fcntl: work around Haiku F_DUPFD bugs
25476         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
25477         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
25478         cloexec bit on duplication.
25479         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
25480
25481 2011-01-26  Bruno Haible  <bruno@clisp.org>
25482
25483         Enable memory leak tests on AIX.
25484         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
25485         * tests/test-fprintf-posix3.c (main): Likewise.
25486
25487 2011-01-26  Bruno Haible  <bruno@clisp.org>
25488
25489         Tests for module 'get-rusage-data'.
25490         * modules/get-rusage-data-tests: New file.
25491         * tests/test-get-rusage-data.c: New file.
25492
25493         New module 'get-rusage-data'.
25494         * lib/resource-ext.h (get_rusage_data): New declaration.
25495         * lib/get-rusage-data.c: New file.
25496         * modules/get-rusage-data: New file.
25497
25498 2011-01-25  Bruno Haible  <bruno@clisp.org>
25499
25500         get-rusage-as: Allow for easier testing.
25501         * lib/resource-ext.h (get_rusage_as): Add comment.
25502         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
25503         (main): New function for interactive testing.
25504
25505 2011-01-25  Bruno Haible  <bruno@clisp.org>
25506
25507         vma-iter: Treat Haiku like BeOS.
25508         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
25509         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
25510
25511 2011-01-25  Eric Blake  <eblake@redhat.com>
25512
25513         c-stack: fix regression on cygwin when libsigsegv is present
25514         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
25515
25516 2011-01-24  Bruno Haible  <bruno@clisp.org>
25517
25518         vma-iter: Avoid empty intervals.
25519         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
25520         on an empty interval.
25521
25522 2011-01-24  Jim Meyering  <meyering@redhat.com>
25523
25524         u64: remove unnecessary #include
25525         * lib/u64.h: Don't include <stddef.h>.  It was not used.
25526
25527 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25528
25529         Allow the user to avoid the HAVE_RAW_DECL_* macros.
25530         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
25531
25532 2011-01-23  Bruno Haible  <bruno@clisp.org>
25533
25534         New module 'vma-iter'.
25535         * lib/vma-iter.h: New file.
25536         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
25537         * modules/vma-iter: New file.
25538         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
25539         for get_rusage_as_via_iterator.
25540         (vma_iterate_callback): New function.
25541         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
25542         * modules/get-rusage-as (Depends-on): Add vma-iter.
25543
25544 2011-01-23  Bruno Haible  <bruno@clisp.org>
25545
25546         uninorm: Tweak includes.
25547         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
25548         Reported by Jim Meyering.
25549
25550 2011-01-23  Bruno Haible  <bruno@clisp.org>
25551
25552         get-rusage-as: Improve on NetBSD.
25553         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
25554         /proc, like on FreeBSD.
25555
25556 2011-01-23  Jim Meyering  <meyering@redhat.com>
25557
25558         xreadlink.h: remove unnecessary #include
25559         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
25560
25561         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
25562         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
25563
25564 2011-01-23  Bruno Haible  <bruno@clisp.org>
25565
25566         get-rusage-as: Fix bug.
25567         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
25568         original limit when aborting the first loop.
25569
25570 2011-01-23  Bruno Haible  <bruno@clisp.org>
25571
25572         wctype: Ensure valid C syntax.
25573         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
25574         unconditionally, instead of gl_NEXT_HEADERS conditionally.
25575
25576 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25577
25578         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
25579         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
25580         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
25581         as they are needed only for configure's test case.
25582         This removes two unnecessary symbols from config.h.
25583
25584         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
25585         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
25586         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
25587         AC_CHECK_HEADERS_ONCE on a header that we also invoke
25588         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
25589         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
25590         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
25591         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
25592         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
25594         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25596         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
25598         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
25599         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25600         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25601         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25602
25603 2011-01-21  Eric Blake  <eblake@redhat.com>
25604
25605         maintainer-makefile: work with older git for submodule check
25606         * top/maint.mk (public-submodule-commit): Rewrite to avoid
25607         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
25608         Reported by Matthias Bolte.
25609
25610         bootstrap: minor portability fixes
25611         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
25612         (usage): Omit leading capital and trailing . on help phrases, per
25613         GNU Coding Standards.
25614         (check_versions, top level): Prefix messages with script name.
25615
25616 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
25617
25618         bootstrap: support --no-git option
25619         * build-aux/bootstrap: Add --no-git option, to be used when
25620         --gnulib-srcdir points to the exact desired checkout.
25621
25622 2011-01-21  Eric Blake  <eblake@redhat.com>
25623
25624         strerror_r-posix: work with glibc 2.13
25625         * lib/strerror_r.c (strerror_r): Fix return type.
25626
25627 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25628             Bruno Haible  <bruno@clisp.org>
25629
25630         uN_strstr: New unit tests.
25631         * modules/unistr/u8-strstr-tests: New file.
25632         * modules/unistr/u16-strstr-tests: New file.
25633         * modules/unistr/u32-strstr-tests: New file.
25634         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
25635         * tests/unistr/test-u8-strstr.c: New file.
25636         * tests/unistr/test-u16-strstr.c: New file.
25637         * tests/unistr/test-u32-strstr.c: New file.
25638
25639 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25640             Bruno Haible  <bruno@clisp.org>
25641
25642         Make uN_strstr functions O(n) worst-case.
25643         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
25644         16-bit and 32-bit unit cases, use the unibyte algorithm from
25645         lib/mbsstr.c.
25646         * lib/unistr/u8-strstr.c: Include <string.h>.
25647         (UNIT_IS_UINT8_T): New macro.
25648         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
25649         (U_STRLEN, U_STRNLEN): New macros.
25650         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
25651         (U_STRLEN, U_STRNLEN): New macros.
25652         * modules/unistr/u8-strstr (Depends-on): Add strstr.
25653         (configure.ac): Update required libunistring version.
25654         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
25655         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
25656         malloca.
25657         (configure.ac): Update required libunistring version.
25658         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
25659         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
25660         malloca.
25661         (configure.ac): Update required libunistring version.
25662
25663 2011-01-21  Pádraig Brady  <P@draigBrady.com>
25664             Bruno Haible  <bruno@clisp.org>
25665
25666         Prepare for faster uN_strstr functions.
25667         * lib/str-kmp.h: Support definable UNITs.
25668         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
25669         needle_len argument.
25670         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
25671         * lib/mbscasestr.c (mbscasestr): Likewise.
25672
25673 2011-01-21  Pádraig Brady <P@draigBrady.com>
25674
25675         malloca-tests: make faster by unsetting MALLOC_PERTURB_
25676         * tests/test-malloca.c (main): Unset the environment variable
25677         to greatly speed up the test.
25678         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
25679         * modules/malloca-tests: Depend on unsetenv.
25680
25681 2011-01-21  Pádraig Brady <P@draigBrady.com>
25682
25683         ignore-value: remove stdint dependency
25684         * lib/ignore-value.h: Remove <stdint.h>
25685         * modules/ignore-value: Remove stdint dependency.
25686
25687 2011-01-21  Jim Meyering  <meyering@redhat.com>
25688
25689         maint.mk: adjust variable name to be consistent with other gl_ vars
25690         * top/maint.mk (gl_public_submodule_commit): Rename the variable
25691         to be lower case.
25692
25693 2011-01-20  Jim Meyering  <meyering@redhat.com>
25694
25695         maint.mk: make "check" depend on public-submodule-commit by default
25696         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
25697
25698 2011-01-20  Bruno Haible  <bruno@clisp.org>
25699
25700         mbfile, mbiter: Complete change from 2008-12-21.
25701         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
25702         * m4/mbiter.m4 (gl_MBITER): Likewise.
25703
25704 2011-01-20  Jim Meyering  <meyering@redhat.com>
25705
25706         init.sh: insert space between each function name and "()"
25707         * tests/init.sh: Make it a little easier to see that a function's
25708         name is "warn_", and not "warn" when looking at the first part of
25709         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
25710
25711 2011-01-20  Jim Meyering  <meyering@redhat.com>
25712
25713         mountlist: clean up code formatting
25714         * lib/mountlist.c (read_file_system_list): Split a long line,
25715         correct bracing style, use NULL in place of "(struct statfs *)0",
25716         don't parenthesize return value, add spaces around "=" and after
25717         ";-in-for-stmt".
25718
25719 2011-01-14  Markus Duft <mduft@gentoo.org>
25720
25721         mountlist: add support for Interix
25722         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
25723         Apply statvfs to all entries of /dev/fs.
25724         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
25725         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
25726
25727 2011-01-20  Jim Meyering  <meyering@redhat.com>
25728
25729         maint.mk: improve the public-submodule-commit rule
25730         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
25731         to suppress printing of its commands... unless V=1.
25732         Add git submodule's --quiet option to suppress printing of e.g.,
25733         "Entering gnulib" output.
25734         "cd" into $(srcdir) before running git submodule.
25735
25736 2011-01-20  Bruno Haible  <bruno@clisp.org>
25737
25738         include_next: Fix bug introduced on 2011-01-18.
25739         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
25740         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
25741         ac_cv_header_... variable if the second argument is not 'check'.
25742         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
25743         gl_NEXT_HEADERS_INTERNAL.
25744
25745 2011-01-20  Bruno Haible  <bruno@clisp.org>
25746
25747         Allow the user to avoid the GNULIB_TEST_* macros.
25748         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
25749         Suggested by Paul Eggert.
25750
25751 2011-01-14  Jim Meyering  <meyering@redhat.com>
25752
25753         bootstrap: avoid failure when there is no .gitmodules file
25754         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
25755         has been assigned to, even when its value is the empty string.
25756         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
25757         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
25758         Reported by John W. Eaton <jwe@gnu.org>.
25759
25760 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         assume <ctype.h>, ..., <time.h> exist
25763         For years gnulib has been assuming the existence of the headers
25764         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
25765         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
25766         them, since they don't appear to be needed.
25767         * README (Portability guidelines): Document this.
25768         * lib/flock.c: Assume <fcntl.h> exists.
25769         * lib/regex_internal.h: Assume <locale.h> exists.
25770         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
25771         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
25772         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
25773         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
25774         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
25775         * m4/regex.m4 (gl_REGEX): Likewise.
25776         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
25777         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
25778         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
25779         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
25780         * tests/test-argp.c: Likewise.
25781         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
25782
25783         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
25784         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
25785         AA_APPLE_UNIVERSAL_BUILD.  See
25786         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
25787         * NEWS: Document this.
25788
25789 2011-01-19  Eric Blake  <eblake@redhat.com>
25790
25791         c-stack: assume stack overflow if SA_SIGINFO unsupported
25792         * lib/c-stack.c (SIGACTION_WORKS): Rename...
25793         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
25794         sigaction will work.
25795         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
25796         behavior match Linux.
25797         * tests/test-c-stack.c (main): Prefer NULL for pointers.
25798
25799         stdbool-tests: accommodate Haiku
25800         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
25801
25802         binary-io: fix O_TEXT on Haiku
25803         * modules/binary-io (Depends-on): Add fcntl-h.
25804         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
25805         than blindly undefining O_TEXT.
25806         Reported by Scott McCreary.
25807
25808 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25809
25810         include_next: do not check for standard headers like stddef.h
25811
25812         I found this problem when modifying Emacs to use gnulib.
25813         I noticed that it added HAVE_STDDEF_H to config.h, even though
25814         gnulib always assumes <stddef.h> exists as per README and this
25815         symbol is unnecessary.
25816         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
25817         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
25818         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
25819         faster for headers like stddef.h that are known to exist.
25820         (gl_CHECK_NEXT_HEADERS): Use it.
25821         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
25822         rather than gl_CHECK_NEXT_HEADERS.
25823         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
25824         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
25825
25826 2011-01-18  Eric Blake  <eblake@redhat.com>
25827
25828         ansi-c++-opt: skip C++ dependency style if C++ is unused
25829         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
25830         tests when we know C++ compilation is not desired.
25831         Reported by Scott McCreary.
25832
25833 2011-01-18  Bruno Haible  <bruno@clisp.org>
25834
25835         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25836         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25837         (main): Perform test also when getrlimit and setrlimit don't exist or
25838         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25839         limiting the address space size using setrlimit, compare the address
25840         space size before and after the the test.
25841         * tests/test-dprintf-posix2.c: Likewise.
25842         * tests/test-fprintf-posix3.sh: Update skip messages.
25843         * tests/test-dprintf-posix2.sh: Likewise.
25844         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25845         * modules/dprintf-posix-tests (Depends-on): Likewise.
25846         Reported by Bruce Korb <bkorb@gnu.org> and
25847         Gary V. Vaughan <gary@gnu.org>.
25848
25849 2011-01-18  Bruno Haible  <bruno@clisp.org>
25850
25851         get-rusage-as: Improvement for Cygwin.
25852         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25853         areas that are merely reserved.
25854
25855 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25856
25857         strftime: remove dependencies on multibyte modules
25858
25859         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25860         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25861         only if __osf__ is defined, and I suspect OSF doesn't need these
25862         other modules.  If my guess is wrong, we'll need to come up with a
25863         variant of strftime that doesn't need the multibyte modules.
25864
25865         I discovered this problem when attempting modify Emacs to use the
25866         strftime module.  With the previous gnulib, this caused Emacs to
25867         need 31 new files, ranging from lib/config.charset to
25868         m4/wint_t.m4.  This was overkill and I expect would be offputting
25869         to the Emacs maintainers.  After this change, only 6 new files are
25870         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25871         stdbool.m4, and tm_gmtoff.m4.
25872
25873         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25874         Suggested by Bruno Haible in
25875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25876         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25877         and do not check for wchar.h.
25878         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25879         (Depends-on): Remove mbrlen, mbsinit, wchar.
25880
25881 2011-01-18  Bruno Haible  <bruno@clisp.org>
25882
25883         Tests for module 'get-rusage-as'.
25884         * modules/get-rusage-as-tests: New file.
25885         * tests/test-get-rusage-as.c: New file.
25886
25887         New module 'get-rusage-as'.
25888         * modules/get-rusage-as: New file.
25889         * lib/resource-ext.h: New file.
25890         * lib/get-rusage-as.c: New file.
25891
25892 2011-01-17  Eric Blake  <eblake@redhat.com>
25893
25894         sigaction: relax license from LGPLv3+ to LGPLv2+
25895         * modules/sigaction (License): Relax to LGPLv2+.
25896
25897 2011-01-14  Bruno Haible  <bruno@clisp.org>
25898
25899         filemode: Make function declarations usable in C++ mode.
25900         * lib/filemode.h: Enclose function declarations in extern "C" block.
25901         Reported by John W. Eaton <jwe@gnu.org>.
25902
25903 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25904
25905         save-cwd: no longer include "xgetcwd.h"
25906         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25907         This avoids a compilation failure in projects that use save-cwd
25908         without also using the xgetcwd module.
25909
25910 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25911
25912         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25913         This is so that a program like Emacs, which needs only dtoastr,
25914         does not have to bother with distributing and compiling ftoastr
25915         and ldtoastr.
25916         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25917         * modules/dtoastr, modules/ldtoastr: New files.
25918         * modules/ftoastr: Now works just for 'float'.
25919         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25920         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25921         dtoastr.c, ldtoastr.c.
25922
25923 2011-01-11  Jim Meyering  <meyering@redhat.com>
25924
25925         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25926         There is no need to work around the lack of the fchdir function,
25927         since gnulib can now provide a replacement when required.
25928         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25929         * modules/save-cwd (Depends-on): Add fchdir.
25930
25931 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25932
25933         openat, save-cwd: avoid xmalloc
25934
25935         This removes a direct (but undocumented) dependency of openat on
25936         xalloc, along with an indirect dependency via save-cwd.  It also
25937         removes a dependency of save-cwd on xgetcwd, and thereby
25938         indirectly on xalloc.  This change causes the openat substitute
25939         to fall back on save_cwd when memory is tight, and for save_cwd to
25940         fail instead of dying when memory is tight, but that's good enough.
25941         Problem and initial idea for fix reported by Bastien Roucaries in
25942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25943
25944         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25945         xalloc.h (for xmalloc).
25946         (openat_proc_name): Use malloc, not xmalloc.
25947         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25948         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25949
25950         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25951         This avoids heap allocation for file names whose lengths are in
25952         the range 512..1023, with the upper bound increasing to at most
25953         4031 depending on the platform's PATH_MAX.  (We do not want
25954         pathmax.h here as it might supply a non-constant PATH_MAX.)
25955         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25956         Perhaps they should be moved to malloca.h?
25957         (OPENAT_BUFFER_SIZE): Use them.
25958
25959 2011-01-10  Bruno Haible  <bruno@clisp.org>
25960
25961         doc: Update users.txt.
25962         * users.txt: Add recutils.
25963
25964 2011-01-09  Karl Berry  <karl@gnu.org>
25965
25966         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25967
25968         * doc/configmake.texi: New file.
25969         * doc/gnulib.texi: Include it.
25970         * modules/configmake: Move documentation from here.
25971
25972 2011-01-09  Bruno Haible  <bruno@clisp.org>
25973
25974         Update to Unicode 6.0.0.
25975         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25976         (get_lbp): Update for Unicode 6.0.0.
25977         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25978         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25979         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25980         U+11001, U+11038..U+11046. Remove U+06DE.
25981         (uc_width): Fix bounds of planes.
25982         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25983         lib/uniwidth/width.c.
25984         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25985         trailing whitespace removed.
25986         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25987         without comments, but with the original copyright notice.
25988         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25989         * lib/unicase/ignorable.h: Likewise.
25990         * lib/unicase/tocasefold.h: Likewise.
25991         * lib/unicase/tolower.h: Likewise.
25992         * lib/unicase/totitle.h: Likewise.
25993         * lib/unicase/toupper.h: Likewise.
25994         * lib/unictype/bidi_of.h: Likewise.
25995         * lib/unictype/blocks.h: Likewise.
25996         * lib/unictype/categ_C.h: Likewise.
25997         * lib/unictype/categ_Cn.h: Likewise.
25998         * lib/unictype/categ_L.h: Likewise.
25999         * lib/unictype/categ_Ll.h: Likewise.
26000         * lib/unictype/categ_Lm.h: Likewise.
26001         * lib/unictype/categ_Lo.h: Likewise.
26002         * lib/unictype/categ_Lu.h: Likewise.
26003         * lib/unictype/categ_M.h: Likewise.
26004         * lib/unictype/categ_Mc.h: Likewise.
26005         * lib/unictype/categ_Me.h: Likewise.
26006         * lib/unictype/categ_Mn.h: Likewise.
26007         * lib/unictype/categ_N.h: Likewise.
26008         * lib/unictype/categ_Nd.h: Likewise.
26009         * lib/unictype/categ_No.h: Likewise.
26010         * lib/unictype/categ_P.h: Likewise.
26011         * lib/unictype/categ_Po.h: Likewise.
26012         * lib/unictype/categ_S.h: Likewise.
26013         * lib/unictype/categ_Sc.h: Likewise.
26014         * lib/unictype/categ_Sk.h: Likewise.
26015         * lib/unictype/categ_Sm.h: Likewise.
26016         * lib/unictype/categ_So.h: Likewise.
26017         * lib/unictype/categ_of.h: Likewise.
26018         * lib/unictype/combining.h: Likewise.
26019         * lib/unictype/ctype_alnum.h: Likewise.
26020         * lib/unictype/ctype_alpha.h: Likewise.
26021         * lib/unictype/ctype_graph.h: Likewise.
26022         * lib/unictype/ctype_lower.h: Likewise.
26023         * lib/unictype/ctype_print.h: Likewise.
26024         * lib/unictype/ctype_punct.h: Likewise.
26025         * lib/unictype/ctype_upper.h: Likewise.
26026         * lib/unictype/decdigit.h: Likewise.
26027         * lib/unictype/digit.h: Likewise.
26028         * lib/unictype/numeric.h: Likewise.
26029         * lib/unictype/pr_alphabetic.h: Likewise.
26030         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26031         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26032         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26033         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26034         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26035         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26036         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26037         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26038         * lib/unictype/pr_case_ignorable.h: Likewise.
26039         * lib/unictype/pr_cased.h: Likewise.
26040         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26041         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26042         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26043         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26044         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26045         * lib/unictype/pr_combining.h: Likewise.
26046         * lib/unictype/pr_composite.h: Likewise.
26047         * lib/unictype/pr_currency_symbol.h: Likewise.
26048         * lib/unictype/pr_decimal_digit.h: Likewise.
26049         * lib/unictype/pr_deprecated.h: Likewise.
26050         * lib/unictype/pr_format_control.h: Likewise.
26051         * lib/unictype/pr_grapheme_base.h: Likewise.
26052         * lib/unictype/pr_grapheme_extend.h: Likewise.
26053         * lib/unictype/pr_grapheme_link.h: Likewise.
26054         * lib/unictype/pr_id_continue.h: Likewise.
26055         * lib/unictype/pr_id_start.h: Likewise.
26056         * lib/unictype/pr_ideographic.h: Likewise.
26057         * lib/unictype/pr_lowercase.h: Likewise.
26058         * lib/unictype/pr_math.h: Likewise.
26059         * lib/unictype/pr_numeric.h: Likewise.
26060         * lib/unictype/pr_other_alphabetic.h: Likewise.
26061         * lib/unictype/pr_other_id_continue.h: Likewise.
26062         * lib/unictype/pr_other_math.h: Likewise.
26063         * lib/unictype/pr_punctuation.h: Likewise.
26064         * lib/unictype/pr_sentence_terminal.h: Likewise.
26065         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26066         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26067         * lib/unictype/pr_unified_ideograph.h: Likewise.
26068         * lib/unictype/pr_uppercase.h: Likewise.
26069         * lib/unictype/pr_xid_continue.h: Likewise.
26070         * lib/unictype/pr_xid_start.h: Likewise.
26071         * lib/unictype/scripts.h: Likewise.
26072         * lib/unictype/scripts_byname.gperf: Likewise.
26073         * lib/unictype/sy_java_ident.h: Likewise.
26074         * lib/unigbrk/gbrkprop.h: Likewise.
26075         * lib/unilbrk/lbrkprop1.h: Likewise.
26076         * lib/unilbrk/lbrkprop2.h: Likewise.
26077         * lib/uninorm/decomposition-table2.h: Likewise.
26078         * lib/uniwbrk/wbrkprop.h: Likewise.
26079         * tests/unicase/test-cased.c: Likewise.
26080         * tests/unicase/test-ignorable.c: Likewise.
26081         * tests/unicase/test-uc_tolower.c: Likewise.
26082         * tests/unicase/test-uc_totitle.c: Likewise.
26083         * tests/unicase/test-uc_toupper.c: Likewise.
26084         * tests/unictype/test-categ_C.c: Likewise.
26085         * tests/unictype/test-categ_Cn.c: Likewise.
26086         * tests/unictype/test-categ_L.c: Likewise.
26087         * tests/unictype/test-categ_Ll.c: Likewise.
26088         * tests/unictype/test-categ_Lm.c: Likewise.
26089         * tests/unictype/test-categ_Lo.c: Likewise.
26090         * tests/unictype/test-categ_Lu.c: Likewise.
26091         * tests/unictype/test-categ_M.c: Likewise.
26092         * tests/unictype/test-categ_Mc.c: Likewise.
26093         * tests/unictype/test-categ_Me.c: Likewise.
26094         * tests/unictype/test-categ_Mn.c: Likewise.
26095         * tests/unictype/test-categ_N.c: Likewise.
26096         * tests/unictype/test-categ_Nd.c: Likewise.
26097         * tests/unictype/test-categ_No.c: Likewise.
26098         * tests/unictype/test-categ_P.c: Likewise.
26099         * tests/unictype/test-categ_Po.c: Likewise.
26100         * tests/unictype/test-categ_S.c: Likewise.
26101         * tests/unictype/test-categ_Sc.c: Likewise.
26102         * tests/unictype/test-categ_Sk.c: Likewise.
26103         * tests/unictype/test-categ_Sm.c: Likewise.
26104         * tests/unictype/test-categ_So.c: Likewise.
26105         * tests/unictype/test-ctype_alnum.c: Likewise.
26106         * tests/unictype/test-ctype_alpha.c: Likewise.
26107         * tests/unictype/test-ctype_graph.c: Likewise.
26108         * tests/unictype/test-ctype_lower.c: Likewise.
26109         * tests/unictype/test-ctype_print.c: Likewise.
26110         * tests/unictype/test-ctype_punct.c: Likewise.
26111         * tests/unictype/test-ctype_upper.c: Likewise.
26112         * tests/unictype/test-decdigit.h: Likewise.
26113         * tests/unictype/test-digit.h: Likewise.
26114         * tests/unictype/test-numeric.h: Likewise.
26115         * tests/unictype/test-pr_alphabetic.c: Likewise.
26116         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26117         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
26118         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
26119         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26120         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26121         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26122         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26123         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26124         * tests/unictype/test-pr_case_ignorable.c: Likewise.
26125         * tests/unictype/test-pr_cased.c: Likewise.
26126         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
26127         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
26128         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
26129         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
26130         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
26131         * tests/unictype/test-pr_combining.c: Likewise.
26132         * tests/unictype/test-pr_composite.c: Likewise.
26133         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26134         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26135         * tests/unictype/test-pr_deprecated.c: Likewise.
26136         * tests/unictype/test-pr_format_control.c: Likewise.
26137         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26138         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26139         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26140         * tests/unictype/test-pr_id_continue.c: Likewise.
26141         * tests/unictype/test-pr_id_start.c: Likewise.
26142         * tests/unictype/test-pr_ideographic.c: Likewise.
26143         * tests/unictype/test-pr_lowercase.c: Likewise.
26144         * tests/unictype/test-pr_math.c: Likewise.
26145         * tests/unictype/test-pr_numeric.c: Likewise.
26146         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26147         * tests/unictype/test-pr_other_id_continue.c: Likewise.
26148         * tests/unictype/test-pr_other_math.c: Likewise.
26149         * tests/unictype/test-pr_punctuation.c: Likewise.
26150         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26151         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26152         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26153         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26154         * tests/unictype/test-pr_uppercase.c: Likewise.
26155         * tests/unictype/test-pr_xid_continue.c: Likewise.
26156         * tests/unictype/test-pr_xid_start.c: Likewise.
26157         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26158         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26159         changes.
26160         * lib/unictype/categ_Cc.h: Likewise.
26161         * lib/unictype/categ_Cf.h: Likewise.
26162         * lib/unictype/categ_Co.h: Likewise.
26163         * lib/unictype/categ_Cs.h: Likewise.
26164         * lib/unictype/categ_Lt.h: Likewise.
26165         * lib/unictype/categ_Nl.h: Likewise.
26166         * lib/unictype/categ_Pc.h: Likewise.
26167         * lib/unictype/categ_Pd.h: Likewise.
26168         * lib/unictype/categ_Pe.h: Likewise.
26169         * lib/unictype/categ_Pf.h: Likewise.
26170         * lib/unictype/categ_Pi.h: Likewise.
26171         * lib/unictype/categ_Ps.h: Likewise.
26172         * lib/unictype/categ_Z.h: Likewise.
26173         * lib/unictype/categ_Zl.h: Likewise.
26174         * lib/unictype/categ_Zp.h: Likewise.
26175         * lib/unictype/categ_Zs.h: Likewise.
26176         * lib/unictype/ctype_blank.h: Likewise.
26177         * lib/unictype/ctype_cntrl.h: Likewise.
26178         * lib/unictype/ctype_digit.h: Likewise.
26179         * lib/unictype/ctype_space.h: Likewise.
26180         * lib/unictype/ctype_xdigit.h: Likewise.
26181         * lib/unictype/mirror.h: Likewise.
26182         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26183         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26184         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26185         * lib/unictype/pr_bidi_control.h: Likewise.
26186         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26187         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26188         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26189         * lib/unictype/pr_bidi_pdf.h: Likewise.
26190         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26191         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26192         * lib/unictype/pr_dash.h: Likewise.
26193         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26194         * lib/unictype/pr_diacritic.h: Likewise.
26195         * lib/unictype/pr_extender.h: Likewise.
26196         * lib/unictype/pr_hex_digit.h: Likewise.
26197         * lib/unictype/pr_hyphen.h: Likewise.
26198         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26199         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26200         * lib/unictype/pr_ignorable_control.h: Likewise.
26201         * lib/unictype/pr_iso_control.h: Likewise.
26202         * lib/unictype/pr_join_control.h: Likewise.
26203         * lib/unictype/pr_left_of_pair.h: Likewise.
26204         * lib/unictype/pr_line_separator.h: Likewise.
26205         * lib/unictype/pr_logical_order_exception.h: Likewise.
26206         * lib/unictype/pr_non_break.h: Likewise.
26207         * lib/unictype/pr_not_a_character.h: Likewise.
26208         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26209         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26210         * lib/unictype/pr_other_id_start.h: Likewise.
26211         * lib/unictype/pr_other_lowercase.h: Likewise.
26212         * lib/unictype/pr_other_uppercase.h: Likewise.
26213         * lib/unictype/pr_paired_punctuation.h: Likewise.
26214         * lib/unictype/pr_paragraph_separator.h: Likewise.
26215         * lib/unictype/pr_pattern_syntax.h: Likewise.
26216         * lib/unictype/pr_pattern_white_space.h: Likewise.
26217         * lib/unictype/pr_private_use.h: Likewise.
26218         * lib/unictype/pr_quotation_mark.h: Likewise.
26219         * lib/unictype/pr_radical.h: Likewise.
26220         * lib/unictype/pr_soft_dotted.h: Likewise.
26221         * lib/unictype/pr_space.h: Likewise.
26222         * lib/unictype/pr_titlecase.h: Likewise.
26223         * lib/unictype/pr_variation_selector.h: Likewise.
26224         * lib/unictype/pr_white_space.h: Likewise.
26225         * lib/unictype/pr_zero_width.h: Likewise.
26226         * lib/unictype/sy_c_ident.h: Likewise.
26227         * lib/unictype/sy_c_whitespace.h: Likewise.
26228         * lib/unictype/sy_java_whitespace.h: Likewise.
26229         * lib/uninorm/composition-table.gperf: Likewise.
26230         * lib/uninorm/decomposition-table1.h: Likewise.
26231         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
26232         LB8.
26233         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26234         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26235         * modules/unictype/*: Bump version number of expected libunistring
26236         version.
26237
26238 2011-01-09  Bruno Haible  <bruno@clisp.org>
26239
26240         Update to Unicode 5.2.0.
26241         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
26242         trailing whitespace removed.
26243
26244 2011-01-09  Bruno Haible  <bruno@clisp.org>
26245
26246         New Unicode character properties, from Unicode 5.2.0.
26247         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
26248         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
26249         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
26250         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
26251         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
26252         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
26253         uc_is_property_cased, uc_is_property_case_ignorable,
26254         uc_is_property_changes_when_lowercased,
26255         uc_is_property_changes_when_uppercased,
26256         uc_is_property_changes_when_titlecased,
26257         uc_is_property_changes_when_casefolded,
26258         uc_is_property_changes_when_casemapped): New declarations.
26259         * lib/unictype/pr_byname.gperf: Add the new properties.
26260         * modules/unictype/property-byname (Depends-on): Depend on the new
26261         properties modules.
26262         * modules/unictype/property-all (Depends-on): Likewise.
26263         * MODULES.html.sh (Unicode string functions): Add
26264         unictype/property-case-ignorable, unictype/property-cased,
26265         unictype/property-changes-when-casefolded,
26266         unictype/property-changes-when-casemapped,
26267         unictype/property-changes-when-lowercased,
26268         unictype/property-changes-when-titlecased,
26269         unictype/property-changes-when-uppercased.
26270
26271         New module 'unictype/property-changes-when-casemapped'.
26272         * modules/unictype/property-changes-when-casemapped: New file.
26273         * lib/unictype/pr_changes_when_casemapped.c: New file.
26274         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
26275         generated by gen-uni-tables.
26276         * modules/unictype/property-changes-when-casemapped-tests: New file.
26277         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
26278         automatically generated by gen-uni-tables.
26279
26280         New module 'unictype/property-changes-when-casefolded'.
26281         * modules/unictype/property-changes-when-casefolded: New file.
26282         * lib/unictype/pr_changes_when_casefolded.c: New file.
26283         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
26284         generated by gen-uni-tables.
26285         * modules/unictype/property-changes-when-casefolded-tests: New file.
26286         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
26287         automatically generated by gen-uni-tables.
26288
26289         New module 'unictype/property-changes-when-titlecased'.
26290         * modules/unictype/property-changes-when-titlecased: New file.
26291         * lib/unictype/pr_changes_when_titlecased.c: New file.
26292         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
26293         generated by gen-uni-tables.
26294         * modules/unictype/property-changes-when-titlecased-tests: New file.
26295         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
26296         automatically generated by gen-uni-tables.
26297
26298         New module 'unictype/property-changes-when-uppercased'.
26299         * modules/unictype/property-changes-when-uppercased: New file.
26300         * lib/unictype/pr_changes_when_uppercased.c: New file.
26301         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
26302         generated by gen-uni-tables.
26303         * modules/unictype/property-changes-when-uppercased-tests: New file.
26304         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
26305         automatically generated by gen-uni-tables.
26306
26307         New module 'unictype/property-changes-when-lowercased'.
26308         * modules/unictype/property-changes-when-lowercased: New file.
26309         * lib/unictype/pr_changes_when_lowercased.c: New file.
26310         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
26311         generated by gen-uni-tables.
26312         * modules/unictype/property-changes-when-lowercased-tests: New file.
26313         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
26314         automatically generated by gen-uni-tables.
26315
26316         New module 'unictype/property-case-ignorable'.
26317         * modules/unictype/property-case-ignorable: New file.
26318         * lib/unictype/pr_case_ignorable.c: New file.
26319         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
26320         by gen-uni-tables.
26321         * modules/unictype/property-case-ignorable-tests: New file.
26322         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
26323         generated by gen-uni-tables.
26324
26325         New module 'unictype/property-cased'.
26326         * modules/unictype/property-cased: New file.
26327         * lib/unictype/pr_cased.c: New file.
26328         * lib/unictype/pr_cased.h: New file, automatically generated by
26329         gen-uni-tables.
26330         * modules/unictype/property-cased-tests: New file.
26331         * tests/unictype/test-pr_cased.c: New file, automatically generated by
26332         gen-uni-tables.
26333
26334 2011-01-09  Bruno Haible  <bruno@clisp.org>
26335
26336         Update to Unicode 5.2.0.
26337         * lib/gen-uni-tables.c (output_predicate, output_category,
26338         output_combclass, output_bidi_category, output_decimal_digit_test,
26339         output_decimal_digit, output_digit_test, output_digit,
26340         output_numeric_test, output_numeric, output_mirror, output_scripts,
26341         output_scripts_byname, output_blocks, output_ident_category): Fix
26342         comment header.
26343         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
26344         get_wbp.
26345         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
26346         items.
26347         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
26348         Changes_When_Lowercased, Changes_When_Uppercased,
26349         Changes_When_Titlecased, Changes_When_Casefolded,
26350         Changes_When_Casemapped.
26351         (is_property_alphabetic, is_property_default_ignorable_code_point):
26352         Update for Unicode 5.2.0.
26353         (is_property_cased, is_property_case_ignorable,
26354         is_property_changes_when_lowercased,
26355         is_property_changes_when_uppercased,
26356         is_property_changes_when_titlecased,
26357         is_property_changes_when_casefolded,
26358         is_property_changes_when_casemapped): New functions.
26359         (output_properties): Output also the properties cased, case_ignorable,
26360         changes_when_lowercased, changes_when_uppercased,
26361         changes_when_titlecased, changes_when_casefolded,
26362         changes_when_casemapped.
26363         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
26364         Unicode TR#11 revision 17 -> 19.
26365         (LBP_CP): New enumeration value.
26366         (LBP_*): Adjust values accordingly.
26367         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26368         TR#14 revision 22 -> 24.
26369         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
26370         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
26371         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
26372         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
26373         is_WBP_MIDLETTER.
26374         (output_composition_tables): Allow for 24 bits instead of 16 bits in
26375         the code1 and code2 of each composition rule.
26376         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
26377         * lib/unicase/ignorable.h: Likewise.
26378         * lib/unicase/tocasefold.h: Likewise.
26379         * lib/unicase/tolower.h: Likewise.
26380         * lib/unicase/totitle.h: Likewise.
26381         * lib/unicase/toupper.h: Likewise.
26382         * lib/unictype/bidi_of.h: Likewise.
26383         * lib/unictype/blocks.h: Likewise.
26384         * lib/unictype/categ_C.h: Likewise.
26385         * lib/unictype/categ_Cf.h: Likewise.
26386         * lib/unictype/categ_Cn.h: Likewise.
26387         * lib/unictype/categ_L.h: Likewise.
26388         * lib/unictype/categ_Ll.h: Likewise.
26389         * lib/unictype/categ_Lm.h: Likewise.
26390         * lib/unictype/categ_Lo.h: Likewise.
26391         * lib/unictype/categ_Lu.h: Likewise.
26392         * lib/unictype/categ_M.h: Likewise.
26393         * lib/unictype/categ_Mc.h: Likewise.
26394         * lib/unictype/categ_Mn.h: Likewise.
26395         * lib/unictype/categ_N.h: Likewise.
26396         * lib/unictype/categ_Nd.h: Likewise.
26397         * lib/unictype/categ_Nl.h: Likewise.
26398         * lib/unictype/categ_No.h: Likewise.
26399         * lib/unictype/categ_P.h: Likewise.
26400         * lib/unictype/categ_Pd.h: Likewise.
26401         * lib/unictype/categ_Po.h: Likewise.
26402         * lib/unictype/categ_S.h: Likewise.
26403         * lib/unictype/categ_Sc.h: Likewise.
26404         * lib/unictype/categ_So.h: Likewise.
26405         * lib/unictype/categ_of.h: Likewise.
26406         * lib/unictype/combining.h: Likewise.
26407         * lib/unictype/ctype_alnum.h: Likewise.
26408         * lib/unictype/ctype_alpha.h: Likewise.
26409         * lib/unictype/ctype_graph.h: Likewise.
26410         * lib/unictype/ctype_lower.h: Likewise.
26411         * lib/unictype/ctype_print.h: Likewise.
26412         * lib/unictype/ctype_punct.h: Likewise.
26413         * lib/unictype/ctype_upper.h: Likewise.
26414         * lib/unictype/decdigit.h: Likewise.
26415         * lib/unictype/digit.h: Likewise.
26416         * lib/unictype/numeric.h: Likewise.
26417         * lib/unictype/pr_alphabetic.h: Likewise.
26418         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26419         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26420         * lib/unictype/pr_bidi_european_digit.h: Likewise.
26421         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26422         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26423         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26424         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26425         * lib/unictype/pr_combining.h: Likewise.
26426         * lib/unictype/pr_composite.h: Likewise.
26427         * lib/unictype/pr_currency_symbol.h: Likewise.
26428         * lib/unictype/pr_dash.h: Likewise.
26429         * lib/unictype/pr_decimal_digit.h: Likewise.
26430         * lib/unictype/pr_deprecated.h: Likewise.
26431         * lib/unictype/pr_diacritic.h: Likewise.
26432         * lib/unictype/pr_extender.h: Likewise.
26433         * lib/unictype/pr_grapheme_base.h: Likewise.
26434         * lib/unictype/pr_grapheme_extend.h: Likewise.
26435         * lib/unictype/pr_grapheme_link.h: Likewise.
26436         * lib/unictype/pr_id_continue.h: Likewise.
26437         * lib/unictype/pr_id_start.h: Likewise.
26438         * lib/unictype/pr_ideographic.h: Likewise.
26439         * lib/unictype/pr_ignorable_control.h: Likewise.
26440         * lib/unictype/pr_logical_order_exception.h: Likewise.
26441         * lib/unictype/pr_lowercase.h: Likewise.
26442         * lib/unictype/pr_numeric.h: Likewise.
26443         * lib/unictype/pr_other_alphabetic.h: Likewise.
26444         * lib/unictype/pr_punctuation.h: Likewise.
26445         * lib/unictype/pr_sentence_terminal.h: Likewise.
26446         * lib/unictype/pr_terminal_punctuation.h: Likewise.
26447         * lib/unictype/pr_unassigned_code_value.h: Likewise.
26448         * lib/unictype/pr_unified_ideograph.h: Likewise.
26449         * lib/unictype/pr_uppercase.h: Likewise.
26450         * lib/unictype/pr_xid_continue.h: Likewise.
26451         * lib/unictype/pr_xid_start.h: Likewise.
26452         * lib/unictype/pr_zero_width.h: Likewise.
26453         * lib/unictype/scripts.h: Likewise.
26454         * lib/unictype/scripts_byname.gperf: Likewise.
26455         * lib/unictype/sy_java_ident.h: Likewise.
26456         * lib/unigbrk/gbrkprop.h: Likewise.
26457         * lib/unilbrk/lbrkprop1.h: Likewise.
26458         * lib/unilbrk/lbrkprop2.h: Likewise.
26459         * lib/unilbrk/lbrktables.h: Likewise.
26460         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
26461         LBP_CP. Implement rule LB30.
26462         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
26463         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
26464         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
26465         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
26466         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
26467         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
26468         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
26469         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
26470         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
26471         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
26472         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
26473         bits instead of 16 bits in the code1 and code2 of each composition
26474         rule.
26475         (uc_composition): Update for Unicode 5.2.0.
26476         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
26477         * lib/uninorm/decomposition-table2.h: Likewise.
26478         * lib/uniwbrk/wbrkprop.h: Likewise.
26479         * tests/unicase/test-cased.c: Likewise.
26480         * tests/unicase/test-ignorable.c: Likewise.
26481         * tests/unicase/test-uc_tolower.c: Likewise.
26482         * tests/unicase/test-uc_totitle.c: Likewise.
26483         * tests/unicase/test-uc_toupper.c: Likewise.
26484         * tests/unictype/test-categ_C.c: Likewise.
26485         * tests/unictype/test-categ_Cf.c: Likewise.
26486         * tests/unictype/test-categ_Cn.c: Likewise.
26487         * tests/unictype/test-categ_L.c: Likewise.
26488         * tests/unictype/test-categ_Ll.c: Likewise.
26489         * tests/unictype/test-categ_Lm.c: Likewise.
26490         * tests/unictype/test-categ_Lo.c: Likewise.
26491         * tests/unictype/test-categ_Lu.c: Likewise.
26492         * tests/unictype/test-categ_M.c: Likewise.
26493         * tests/unictype/test-categ_Mc.c: Likewise.
26494         * tests/unictype/test-categ_Mn.c: Likewise.
26495         * tests/unictype/test-categ_N.c: Likewise.
26496         * tests/unictype/test-categ_Nd.c: Likewise.
26497         * tests/unictype/test-categ_Nl.c: Likewise.
26498         * tests/unictype/test-categ_No.c: Likewise.
26499         * tests/unictype/test-categ_P.c: Likewise.
26500         * tests/unictype/test-categ_Pd.c: Likewise.
26501         * tests/unictype/test-categ_Po.c: Likewise.
26502         * tests/unictype/test-categ_S.c: Likewise.
26503         * tests/unictype/test-categ_Sc.c: Likewise.
26504         * tests/unictype/test-categ_So.c: Likewise.
26505         * tests/unictype/test-ctype_alnum.c: Likewise.
26506         * tests/unictype/test-ctype_alpha.c: Likewise.
26507         * tests/unictype/test-ctype_graph.c: Likewise.
26508         * tests/unictype/test-ctype_lower.c: Likewise.
26509         * tests/unictype/test-ctype_print.c: Likewise.
26510         * tests/unictype/test-ctype_punct.c: Likewise.
26511         * tests/unictype/test-ctype_upper.c: Likewise.
26512         * tests/unictype/test-decdigit.h: Likewise.
26513         * tests/unictype/test-digit.h: Likewise.
26514         * tests/unictype/test-numeric.h: Likewise.
26515         * tests/unictype/test-pr_alphabetic.c: Likewise.
26516         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
26517         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
26518         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
26519         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
26520         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
26521         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
26522         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
26523         * tests/unictype/test-pr_combining.c: Likewise.
26524         * tests/unictype/test-pr_composite.c: Likewise.
26525         * tests/unictype/test-pr_currency_symbol.c: Likewise.
26526         * tests/unictype/test-pr_dash.c: Likewise.
26527         * tests/unictype/test-pr_decimal_digit.c: Likewise.
26528         * tests/unictype/test-pr_deprecated.c: Likewise.
26529         * tests/unictype/test-pr_diacritic.c: Likewise.
26530         * tests/unictype/test-pr_extender.c: Likewise.
26531         * tests/unictype/test-pr_grapheme_base.c: Likewise.
26532         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
26533         * tests/unictype/test-pr_grapheme_link.c: Likewise.
26534         * tests/unictype/test-pr_id_continue.c: Likewise.
26535         * tests/unictype/test-pr_id_start.c: Likewise.
26536         * tests/unictype/test-pr_ideographic.c: Likewise.
26537         * tests/unictype/test-pr_ignorable_control.c: Likewise.
26538         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
26539         * tests/unictype/test-pr_lowercase.c: Likewise.
26540         * tests/unictype/test-pr_numeric.c: Likewise.
26541         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
26542         * tests/unictype/test-pr_punctuation.c: Likewise.
26543         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
26544         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
26545         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
26546         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
26547         * tests/unictype/test-pr_uppercase.c: Likewise.
26548         * tests/unictype/test-pr_xid_continue.c: Likewise.
26549         * tests/unictype/test-pr_xid_start.c: Likewise.
26550         * tests/unictype/test-pr_zero_width.c: Likewise.
26551         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
26552         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
26553         changed behaviour: line breaking is now disallowed between a letter
26554         or '=' and '('.
26555         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
26556         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
26557         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
26558         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
26559         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26560         lib/uniwidth/width.c.
26561         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
26562         without comments, but with the original copyright notice.
26563         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
26564         changes.
26565         * lib/unictype/categ_Cc.h: Likewise.
26566         * lib/unictype/categ_Co.h: Likewise.
26567         * lib/unictype/categ_Cs.h: Likewise.
26568         * lib/unictype/categ_Lt.h: Likewise.
26569         * lib/unictype/categ_Me.h: Likewise.
26570         * lib/unictype/categ_Pc.h: Likewise.
26571         * lib/unictype/categ_Pe.h: Likewise.
26572         * lib/unictype/categ_Pf.h: Likewise.
26573         * lib/unictype/categ_Pi.h: Likewise.
26574         * lib/unictype/categ_Ps.h: Likewise.
26575         * lib/unictype/categ_Sk.h: Likewise.
26576         * lib/unictype/categ_Sm.h: Likewise.
26577         * lib/unictype/categ_Z.h: Likewise.
26578         * lib/unictype/categ_Zl.h: Likewise.
26579         * lib/unictype/categ_Zp.h: Likewise.
26580         * lib/unictype/categ_Zs.h: Likewise.
26581         * lib/unictype/ctype_blank.h: Likewise.
26582         * lib/unictype/ctype_cntrl.h: Likewise.
26583         * lib/unictype/ctype_digit.h: Likewise.
26584         * lib/unictype/ctype_space.h: Likewise.
26585         * lib/unictype/ctype_xdigit.h: Likewise.
26586         * lib/unictype/mirror.h: Likewise.
26587         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
26588         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26589         * lib/unictype/pr_bidi_block_separator.h: Likewise.
26590         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26591         * lib/unictype/pr_bidi_common_separator.h: Likewise.
26592         * lib/unictype/pr_bidi_control.h: Likewise.
26593         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
26594         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
26595         * lib/unictype/pr_bidi_pdf.h: Likewise.
26596         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
26597         * lib/unictype/pr_bidi_whitespace.h: Likewise.
26598         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
26599         * lib/unictype/pr_format_control.h: Likewise.
26600         * lib/unictype/pr_hex_digit.h: Likewise.
26601         * lib/unictype/pr_hyphen.h: Likewise.
26602         * lib/unictype/pr_ids_binary_operator.h: Likewise.
26603         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
26604         * lib/unictype/pr_iso_control.h: Likewise.
26605         * lib/unictype/pr_join_control.h: Likewise.
26606         * lib/unictype/pr_left_of_pair.h: Likewise.
26607         * lib/unictype/pr_line_separator.h: Likewise.
26608         * lib/unictype/pr_math.h: Likewise.
26609         * lib/unictype/pr_non_break.h: Likewise.
26610         * lib/unictype/pr_not_a_character.h: Likewise.
26611         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
26612         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
26613         * lib/unictype/pr_other_id_continue.h: Likewise.
26614         * lib/unictype/pr_other_id_start.h: Likewise.
26615         * lib/unictype/pr_other_lowercase.h: Likewise.
26616         * lib/unictype/pr_other_math.h: Likewise.
26617         * lib/unictype/pr_other_uppercase.h: Likewise.
26618         * lib/unictype/pr_paired_punctuation.h: Likewise.
26619         * lib/unictype/pr_paragraph_separator.h: Likewise.
26620         * lib/unictype/pr_pattern_syntax.h: Likewise.
26621         * lib/unictype/pr_pattern_white_space.h: Likewise.
26622         * lib/unictype/pr_private_use.h: Likewise.
26623         * lib/unictype/pr_quotation_mark.h: Likewise.
26624         * lib/unictype/pr_radical.h: Likewise.
26625         * lib/unictype/pr_soft_dotted.h: Likewise.
26626         * lib/unictype/pr_space.h: Likewise.
26627         * lib/unictype/pr_titlecase.h: Likewise.
26628         * lib/unictype/pr_variation_selector.h: Likewise.
26629         * lib/unictype/pr_white_space.h: Likewise.
26630         * lib/unictype/sy_c_ident.h: Likewise.
26631         * lib/unictype/sy_c_whitespace.h: Likewise.
26632         * lib/unictype/sy_java_whitespace.h: Likewise.
26633         * modules/uni*/*: Bump version number of expected libunistring version.
26634         Reported by Simon Josefsson.
26635
26636 2011-01-09  Karl Heuer  <kwzh@gnu.org>
26637
26638         useless-if-before-free: fix typo in --help and make the internal,
26639         automatic version date update process work once again.
26640         --help output contained a NUL character instead of the
26641         backslash-zero that was intended.  Also, the "must lie within
26642         the first 8 lines" line is on line 9, and hence not getting
26643         automatically updated.
26644         * build-aux/useless-if-before-free: Fix the former by adding a
26645         backslash, and the latter by condensing the three lines of what-it-does
26646         to a single line, leaving one line of slack for the future.
26647
26648 2011-01-09  Bruno Haible  <bruno@clisp.org>
26649
26650         uniwidth/width: Fix width of U+1D173..U+1D17A.
26651         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
26652         symbolic_width, output_width_property_test): New functions.
26653         (main): Invoke output_nonspacing_property, output_width_property_test.
26654         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
26655         U+1D173..U+1D17A.
26656         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
26657         1.
26658         * modules/uniwidth/*: Bump version number of expected libunistring
26659         version.
26660         * modules/unilbrk/*: Likewise.
26661
26662 2011-01-08  Bruno Haible  <bruno@clisp.org>
26663
26664         uninorm tests: Preserve copyright of Unicode data file.
26665         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
26666         Mention modifications.
26667
26668 2011-01-08  Bruno Haible  <bruno@clisp.org>
26669
26670         gen-uni-tables: Prepare for Unicode 5.2.0.
26671         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
26672         (debug_output_lbp, output_lbp): Update.
26673
26674 2011-01-08  Bruno Haible  <bruno@clisp.org>
26675
26676         unilbrk: Clarify gen-uni-tables.c code.
26677         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
26678         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
26679         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
26680
26681 2011-01-07  Bruno Haible  <bruno@clisp.org>
26682
26683         strtod: Restore errno when successfully parsing Infinity or NaN.
26684         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
26685         restore the original errno.
26686
26687 2011-01-07  Bruno Haible  <bruno@clisp.org>
26688
26689         remove test: Avoid failure on HP-UX 11.
26690         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
26691
26692 2011-01-07  Bruno Haible  <bruno@clisp.org>
26693
26694         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
26695         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
26696         error code.
26697
26698 2011-01-07  Pádraig Brady <P@draigBrady.com>
26699
26700         ignore-value: fixup comments, and add Eric Blake
26701         as an author since he rewrote the macros.
26702         * lib/ignore-value.h (ignore_value):  State that
26703         we now support aggregates.  Also specify exactly
26704         when the GCC warn_unused_result feature was added.
26705
26706 2011-01-06  Eric Blake  <eblake@redhat.com>
26707
26708         ignore-value: support aggregate types
26709         * lib/ignore-value.h (ignore_value): Provide separate gcc
26710         definition.
26711         * modules/ignore-value-tests: New test module.
26712         * tests/test-ignore-value.c: New test.
26713
26714         maint.mk: improve sc_prohibit_strcmp regex
26715         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
26716         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
26717         definition of STRNEQ.
26718
26719         signal: work around Haiku issue with SIGBUS
26720         * lib/siglist.h: Add comment.
26721         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
26722         strsignal's favoring of SIGSEGV.
26723         * tests/test-signal.c (main): Avoid test failure.
26724         * doc/posix-headers/signal.texi (signal.h): Document the issue.
26725         Reported by Scott McCreary.
26726
26727         maint.mk: add pre-release check to ensure submodule commits are public
26728         * top/maint.mk (public-submodule-commit): New rule.
26729         (submodule-checks): New variable.
26730         (alpha beta stable): Depend on the variable.
26731
26732 2011-01-05  Pádraig Brady <P@draigBrady.com>
26733         and Jim Meyering  <meyering@redhat.com>
26734
26735         ignore-value: make ignore_value more generic; deprecate ignore_ptr
26736         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
26737         (ATTRIBUTE_DEPRECATED): Define.
26738         (_ignore_case): New function.
26739         (ignore_value): New macro, to replace the old function.
26740         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
26741         * modules/ignore-value (Depends-on): Add stdint.
26742
26743 2011-01-04  Eric Blake  <eblake@redhat.com>
26744
26745         doc: regenerate INSTALL
26746         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
26747         @firstparagraphindent support, now that autoconf dropped it.
26748         (INSTALL_PRELUDE): Reinstate old macro.
26749         * doc/install.texi: Resync from autoconf.
26750         * doc/INSTALL: Reflect recent autoconf update.
26751         * doc/INSTALL.ISO: Likewise.
26752         * doc/INSTALL.UTF-8: Likewise.
26753         Reported by Karl Berry.
26754
26755 2011-01-04  Bruce Korb  <address@hidden>
26756
26757         git-version-gen: avoid a sub-shell
26758         * build-aux/git-version-gen: Redirect stderr in `...` via
26759         "exec 2>...", rather than via an added sub-shell.
26760
26761 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
26762
26763         git-version-gen: use (...) rather than sh -c '...'
26764         * build-aux/git-version-gen: Rather than hard-coding a shell's name
26765         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
26766
26767 2011-01-03  Jim Meyering  <meyering@redhat.com>
26768
26769         git-version-gen: convert leading TABs to spaces
26770         * build-aux/git-version-gen: Expand leading TABs.
26771
26772         git-version-gen: handle failed "git rev-list"
26773         * build-aux/git-version-gen: Rather than leaking a "fatal" error
26774         from git and proceeding as if it had succeeded but printed no SHA1
26775         checksums, suppress the diagnostic and handle the failure.
26776         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
26777
26778         git-version-gen: include command name in one more diagnostic
26779         * build-aux/git-version-gen: When the required .tarball-version file
26780         was missing or unreadable, you might see the diagnostic from "cat",
26781         but no trace of the name of the invoking script.  Now, you still see
26782         the diagnostic from cat, but also get one from "git-version-gen: ".
26783         Inspired by a patch from Bruce Korb.
26784
26785         update-copyright: adjust test to match changed code
26786         * tests/test-update-copyright.sh: Change test's expected output
26787         to match new actual output.
26788
26789 2011-01-02  Bruno Haible  <bruno@clisp.org>
26790
26791         getlogin_r: Avoid test failure on HP-UX 11.
26792         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
26793         ERANGE when the second argument is zero.
26794         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
26795         portability problem.
26796
26797 2011-01-02  Bruce Korb  <bkorb@gnu.org>
26798
26799         * build-aux/update-copyright: doc Simon's changes
26800
26801 2011-01-02  Simon Josefsson  <simon@josefsson.org>
26802
26803         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
26804         environment variable.
26805
26806 2011-01-02  Bruno Haible  <bruno@clisp.org>
26807
26808         unigbrk: Avoid gcc warnings.
26809         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
26810         unused variable.
26811         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
26812         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
26813         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
26814         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
26815         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
26816         Change type of first argument to 'const char *'.
26817         (main): Remove unused variable.
26818         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
26819         type of first argument to 'const char *'.
26820         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
26821         Likewise.
26822         (main): Change type of variable 's'.
26823         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
26824         to 'int'.
26825
26826 2011-01-02  Bruno Haible  <bruno@clisp.org>
26827
26828         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
26829         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
26830         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
26831         bug.
26832         * lib/pwrite.c: Undo 2010-12-31 patch.
26833         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26834
26835 2011-01-02  Bruno Haible  <bruno@clisp.org>
26836
26837         pread: Fix test whether it works.
26838         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26839
26840 2011-01-02  Bruno Haible  <bruno@clisp.org>
26841
26842         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26843         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26844         ends in "6". Don't require a specific month name. Try also the locale
26845         names found on HP-UX 11 and Solaris 7.
26846
26847 2011-01-02  Bruno Haible  <bruno@clisp.org>
26848
26849         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26850         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26851         C linkage.
26852         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26853
26854 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26855
26856         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26857         for consistency, since the "cluster" term is not used elsewhere.
26858         * lib/unigbrk.in.h: Update name.
26859         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26860         * lib/unigbrk/u16-grapheme-next.c: Update name.
26861         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26862         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26863         * lib/unigbrk/u32-grapheme-next.c: Update name.
26864         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26865         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26866         * lib/unigbrk/u8-grapheme-next.c: Update name.
26867         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26868         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26869         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26870         Suggested by Bruno Haible.
26871
26872 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26873
26874         Remove module 'u8-grapheme-len' as too redundant with
26875         'u8-grapheme-next'.
26876         * modules/unigbrk/u8-grapheme-len: Delete file.
26877         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26878         * lib/unigbrk.in.h: Remove prototype for deleted function.
26879         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26880         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26881
26882         Remove module 'u16-grapheme-len' as too redundant with
26883         'u16-grapheme-next'.
26884         * modules/unigbrk/u16-grapheme-len: Delete file.
26885         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26886         * lib/unigbrk.in.h: Remove prototype for deleted function.
26887         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26888         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26889
26890         Remove module 'u32-grapheme-len' as too redundant with
26891         'u32-grapheme-next'.
26892         * modules/unigbrk/u32-grapheme-len: Delete file.
26893         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26894         * lib/unigbrk.in.h: Remove prototype for deleted function.
26895         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26896         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26897
26898         Suggested by Bruno Haible.
26899
26900 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26901
26902         * unigbrk.in.h: Fix typo: "ben" => "been".
26903         Reported by Bruno Haible.
26904
26905 2011-01-01  Jim Meyering  <meyering@redhat.com>
26906
26907         maint: update almost all copyright ranges to include 2011
26908         Run the new "make update-copyright" rule.
26909
26910 2011-01-01  Jim Meyering  <meyering@redhat.com>
26911
26912         maint: update-copyright: exempt doc/INSTALL*
26913         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26914         since they are generated.  Suggested by Bruno Haible.
26915
26916 2011-01-01  Jim Meyering  <meyering@redhat.com>
26917
26918         maint: refine the update-copyright rule
26919         * Makefile (update-copyright): Also exclude any file that includes
26920         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26921         code that merely generates the comment.
26922
26923 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26924
26925         New module 'u8-grapheme-len'.
26926         * modules/unigbrk/u8-grapheme-len: New file.
26927         * modules/unigbrk/u8-grapheme-len-tests: New file.
26928         * lib/unigbrk.in.h: Add prototype for new function.
26929         * lib/unigbrk/u8-grapheme-len.c: New file.
26930         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26931
26932         New module 'u16-grapheme-len'.
26933         * modules/unigbrk/u16-grapheme-len: New file.
26934         * modules/unigbrk/u16-grapheme-len-tests: New file.
26935         * lib/unigbrk.in.h: Add prototype for new function.
26936         * lib/unigbrk/u16-grapheme-len.c: New file.
26937         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26938
26939         New module 'u32-grapheme-len'.
26940         * modules/unigbrk/u32-grapheme-len: New file.
26941         * modules/unigbrk/u32-grapheme-len-tests: New file.
26942         * lib/unigbrk.in.h: Add prototype for new function.
26943         * lib/unigbrk/u32-grapheme-len.c: New file.
26944         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26945
26946         New module 'u8-grapheme-next'.
26947         * modules/unigbrk/u8-grapheme-next: New file.
26948         * modules/unigbrk/u8-grapheme-next-tests: New file.
26949         * lib/unigbrk.in.h: Add prototype for new function.
26950         * lib/unigbrk/u8-grapheme-next.c: New file.
26951         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26952
26953         New module 'u16-grapheme-next'.
26954         * modules/unigbrk/u16-grapheme-next: New file.
26955         * modules/unigbrk/u16-grapheme-next-tests: New file.
26956         * lib/unigbrk.in.h: Add prototype for new function.
26957         * lib/unigbrk/u16-grapheme-next.c: New file.
26958         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26959
26960         New module 'u32-grapheme-next'.
26961         * modules/unigbrk/u32-grapheme-next: New file.
26962         * modules/unigbrk/u32-grapheme-next-tests: New file.
26963         * lib/unigbrk.in.h: Add prototype for new function.
26964         * lib/unigbrk/u32-grapheme-next.c: New file.
26965         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26966
26967         New module 'u8-grapheme-prev'.
26968         * modules/unigbrk/u8-grapheme-prev: New file.
26969         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26970         * lib/unigbrk.in.h: Add prototype for new function.
26971         * lib/unigbrk/u8-grapheme-prev.c: New file.
26972         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26973
26974         New module 'u16-grapheme-prev'.
26975         * modules/unigbrk/u16-grapheme-prev: New file.
26976         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26977         * lib/unigbrk.in.h: Add prototype for new function.
26978         * lib/unigbrk/u16-grapheme-prev.c: New file.
26979         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26980
26981         New module 'u32-grapheme-prev'.
26982         * modules/unigbrk/u32-grapheme-prev: New file.
26983         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26984         * lib/unigbrk.in.h: Add prototype for new function.
26985         * lib/unigbrk/u32-grapheme-prev.c: New file.
26986         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26987
26988         New module 'u8-grapheme-breaks'.
26989         * modules/unigbrk/u8-grapheme-breaks: New file.
26990         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26991         * lib/unigbrk.in.h: Add prototype for new function.
26992         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26993         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26994
26995         New module 'u16-grapheme-breaks'.
26996         * modules/unigbrk/u16-grapheme-breaks: New file.
26997         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26998         * lib/unigbrk.in.h: Add prototype for new function.
26999         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27000         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27001
27002         New module 'u32-grapheme-breaks'.
27003         * modules/unigbrk/u32-grapheme-breaks: New file.
27004         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27005         * lib/unigbrk.in.h: Add prototype for new function.
27006         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27007         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27008
27009         New module 'ulc-grapheme-breaks'.
27010         * modules/unigbrk/ulc-grapheme-breaks: New file.
27011         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27012         * m4/locale-ar.m4: New file.
27013         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27014         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27015         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27016
27017 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27018
27019         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27020         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27021         modified how this file was generated before I initially submitted
27022         the module, but failed to regenerate it.  This meant that several
27023         of the level2 entries were wrong.
27024         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27025         Remove the division-by-2 that is folded into the table now that
27026         gbrkprop.h has been regenerated properly.  Now -1 entries are
27027         handled correctly.
27028
27029         New module 'unigbrk/uc-gbrk-prop-tests'.
27030         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27031         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27032         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27033         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27034
27035 2011-01-01  Bruno Haible  <bruno@clisp.org>
27036
27037         Avoid use of hexadecimal escapes.
27038         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27039         instead of hexadecimal escapes.
27040
27041 2011-01-01  Jim Meyering  <meyering@redhat.com>
27042
27043         maint: new rule to update copyright year ranges
27044         * Makefile (update-copyright): New rule.
27045
27046         maint: indent with TABs in Makefile
27047         * Makefile: Expand leading sequences of spaces to TABs
27048
27049         version-etc: update the copyright year it reports
27050         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27051
27052 2010-12-31  Bruno Haible  <bruno@clisp.org>
27053
27054         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27055         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27056         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27057         zero.
27058
27059 2010-12-31  Bruno Haible  <bruno@clisp.org>
27060
27061         pwrite: Work around HP-UX 11.11 bug.
27062         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
27063         works and set REPLACE_PWRITE if not.
27064         * lib/pwrite.c (pwrite): Add an implementation that uses the system
27065         function.
27066         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
27067
27068 2010-12-31  Bruno Haible  <bruno@clisp.org>
27069
27070         pread: Work around HP-UX 11 bugs.
27071         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
27072         and set REPLACE_PREAD if not.
27073         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
27074
27075 2010-12-31  Eric Blake  <eblake@redhat.com>
27076
27077         nl_langinfo: fix YESEXPR on Irix 6.5
27078         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
27079         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
27080         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
27081         it.
27082
27083 2010-12-31  Bruno Haible  <bruno@clisp.org>
27084
27085         iconv: Document HP-UX 11 bug.
27086         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
27087
27088 2010-12-31  Bruno Haible  <bruno@clisp.org>
27089
27090         ldexpl: Fix link error on HP-UX 11.
27091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
27092         LDEXPL_LIBM, using $ISNANL_LIBM.
27093
27094 2010-12-31  Eric Blake  <eblake@redhat.com>
27095
27096         ftello: avoid compilation failure with SunStudio c89
27097         * lib/ftello.c (ftello): Use lseek, not llseek.
27098
27099         tests: avoid failing coreutils tests on cygwin
27100         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
27101         (create_exe_shims_): Return 0 when skipping.
27102
27103 2010-12-31  Bruno Haible  <bruno@clisp.org>
27104
27105         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
27106         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
27107
27108 2010-12-31  Bruno Haible  <bruno@clisp.org>
27109
27110         waitpid: Fix link error in C++ mode.
27111         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
27112
27113 2010-12-31  Bruno Haible  <bruno@clisp.org>
27114
27115         isnan: Use GCC built-ins when possible.
27116         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
27117         __builtin_isnan.
27118         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
27119         (isnan): Define using GCC built-ins for GCC >= 4.0.
27120
27121 2010-12-31  Bruno Haible  <bruno@clisp.org>
27122
27123         isnand: Fix mistake.
27124         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
27125         __builtin_isnand.
27126
27127 2010-12-31  Bruno Haible  <bruno@clisp.org>
27128
27129         open: Avoid C++ error on HP-UX 11.
27130         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
27131
27132 2010-12-31  Bruno Haible  <bruno@clisp.org>
27133
27134         time_r: Add missing declarations on HP-UX 11.
27135         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
27136         instead of HAVE_LOCALTIME_R.
27137         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
27138         HAVE_LOCALTIME_R always.
27139         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
27140         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
27141         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
27142         HAVE_LOCALTIME_R.
27143         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
27144         * doc/posix-functions/localtime_r.texi: Likewise.
27145
27146 2010-12-29  Eric Blake  <eblake@redhat.com>
27147
27148         mountlist: tweak previous commit
27149         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
27150         Reported by Paul Eggert.
27151
27152         mountlist: fix local drive detection on cygwin
27153         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
27154         that works for cygwin.
27155
27156 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
27157
27158         ftoastr, snprintf: ftoastr + snprintf module
27159         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
27160         since the snprintf module now should be good enough here.
27161         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
27162         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
27163         and gl_MODULE_INDICATOR([snprintf]), but the former enables
27164         GNULIB_SNPRINTF only for the test directory, and the latter
27165         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
27166         seems to suffice by itself.
27167
27168 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
27169
27170         alloca: one step towards thread-safety
27171         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
27172         need for a static variable.  All callers changed.  This does not
27173         make the alloca replacement thread-safe, but it's one step.
27174
27175         tests: minor indenting change
27176         * tests/init.sh: Sync from coreutils housekeeping patch
27177         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
27178         to keep lines within 80 columns.
27179
27180 2010-12-28  Jim Meyering  <meyering@redhat.com>
27181
27182         regex: don't infloop on persistent failing calloc
27183         * lib/regexec.c (build_trtable): Return failure indication upon
27184         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
27185         In glibc, this was fixed for version 2.13:
27186         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
27187
27188 2010-12-28  Bruno Haible  <bruno@clisp.org>
27189             Paul Eggert <eggert@cs.ucla.edu>
27190
27191         linkat: Make implementation robust against system behaviour variations.
27192         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
27193         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
27194         way, and to -2 if it needs a generic runtime test.
27195         * lib/linkat.c (solaris_optimized_link_immediate,
27196         solaris_optimized_link_follow): New functions.
27197         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
27198         (check_same_link): Use it.
27199
27200 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
27201
27202         New module 'unigbrk/base'.
27203         * modules/unigbrk/base: New file.
27204         * lib/unigbrk.in.h: New file.
27205
27206         New module 'unigbrk/uc-gbrk-prop'.
27207         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
27208         * modules/unigbrk/uc-gbrk-prop: New file.
27209         * lib/unigbrk/gbrkprop.h: New file.
27210         * lib/unigbrk/uc-gbrk-prop.c: New file.
27211
27212         New module 'unigbrk/uc-is-grapheme-break'.
27213         * modules/unigbrk/uc-is-grapheme-break: New file.
27214         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
27215         * lib/unigbrk/uc-is-grapheme-break.c: New file.
27216         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
27217         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
27218         * tests/unigbrk/GraphemeBreakTest.txt: New file.
27219
27220         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
27221
27222 2010-12-27  Bruno Haible  <bruno@clisp.org>
27223
27224         linkat test: Avoid failure on Solaris 11 2010-11.
27225         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
27226
27227 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27228
27229         utimens: work around glibc rounding bug on more platforms
27230         * lib/utimens.c (fdutimens): Work around rounding bug even if
27231         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
27232         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
27233
27234 2010-12-27  Bruno Haible  <bruno@clisp.org>
27235
27236         select tests: Improve comments.
27237         * tests/test-select.c (do_select): Add comments.
27238
27239 2010-12-27  Bruno Haible  <bruno@clisp.org>
27240
27241         select tests: Safer way of handling timeout.
27242         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
27243         at every invocation.
27244
27245 2010-12-27  Bruno Haible  <bruno@clisp.org>
27246
27247         select tests: Use 'bool' where appropriate.
27248         * tests/test-select.c (connect_to_socket): Change argument type to
27249         'bool'.
27250
27251 2010-12-27  Bruno Haible  <bruno@clisp.org>
27252
27253         select tests: Use existing modules.
27254         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
27255         (configure.ac): Don't test for unistd.h.
27256         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
27257         declared in <unistd.h>.
27258
27259 2010-12-27  Bruno Haible  <bruno@clisp.org>
27260
27261         mbrtowc: Work around a Solaris 7 bug.
27262         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
27263         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
27264         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
27265         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
27266         MBRTOWC_NULL_ARG1_BUG.
27267         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
27268         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
27269         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
27270         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
27271
27272 2010-12-27  Jim Meyering  <meyering@redhat.com>
27273
27274         read-file.c: tweak syntax
27275         * lib/read-file.c (fread_file): Remove space after "*" in function
27276         definitions.
27277
27278 2010-12-27  Bruno Haible  <bruno@clisp.org>
27279
27280         times test: Avoid gcc warnings on OSF/1.
27281         * tests/test-times.c (main): Cast printf arguments from clock_t to
27282         'long int'.
27283
27284 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
27285
27286         utimens: work around glibc rounding bug on older Linux kernels
27287         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
27288         on Linux with a glibc whose utimes might not work, then work
27289         around a longstanding glibc bug involving rounding rather than
27290         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
27291         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27292
27293 2010-12-26  Bruno Haible  <bruno@clisp.org>
27294
27295         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
27296         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
27297         _GL_CXXALIAS_SYS.
27298         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27299
27300 2010-12-26  Bruno Haible  <bruno@clisp.org>
27301
27302         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
27303         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
27304         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27305         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
27306         looking for the declaration.
27307         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
27308         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
27309         problem.
27310         * doc/posix-functions/inet_pton.texi: Likewise.
27311
27312 2010-12-26  Bruno Haible  <bruno@clisp.org>
27313
27314         arpa_inet: Use the common idioms with C++ support.
27315         * lib/arpa_inet.in.h: Include c++defs.h.
27316         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
27317         support.
27318         * modules/arpa_inet (Depends-on): Add c++defs.
27319         (Makefile.am): Substitute the contents of c++defs.h.
27320         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
27321         * modules/arpa_inet-c++-tests: New file.
27322         * tests/test-arpa_inet-c++.cc: New file.
27323
27324 2010-12-25  Bruno Haible  <bruno@clisp.org>
27325
27326         Fix more C++ link errors on Solaris 8.
27327         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
27328         $(LIB_EACCESS).
27329         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
27330         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
27331         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
27332         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
27333         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
27334
27335 2010-12-25  Bruno Haible  <bruno@clisp.org>
27336
27337         printf-posix: Fix link error when a non-GCC compiler is used.
27338         * lib/stdio.in.h (printf): When not using GCC, override printf
27339         correctly.
27340         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27341
27342 2010-12-25  Bruno Haible  <bruno@clisp.org>
27343
27344         strerror_r-posix: Update doc.
27345         * doc/posix-functions/strerror_r.texi: Update doc about the return
27346         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
27347
27348 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
27349
27350         utimens: simplify the logic of the previous change
27351         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
27352         This should not affect whether the test succeeds or fails.
27353
27354         utimens: configure better on hosts with NFS clock skew
27355         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
27356         uses the clock of the local host.  It might use the clock of the
27357         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
27358         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
27359
27360 2010-12-25  Bruno Haible  <bruno@clisp.org>
27361
27362         ptsname test: Avoid failure on Solaris.
27363         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
27364         open a pseudo-terminal; don't use BSD-style ptys.
27365         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
27366
27367 2010-12-25  Bruno Haible  <bruno@clisp.org>
27368
27369         ptsname: Avoid ERANGE failure on some systems.
27370         * lib/ptsname.c (buffer): Increase size.
27371
27372 2010-12-25  Bruno Haible  <bruno@clisp.org>
27373
27374         rename, renameat: Avoid test failures at NFS mounted locations.
27375         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
27376         so that subsequent mkdir calls succeed.
27377
27378 2010-12-25  Bruno Haible  <bruno@clisp.org>
27379
27380         iswblank: Fix C++ link error on Solaris 8.
27381         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
27382         _GL_FUNCDECL_SYS.
27383
27384 2010-12-25  Bruno Haible  <bruno@clisp.org>
27385
27386         unistd: Fix C++ link error on Solaris 8.
27387         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
27388
27389 2010-12-25  Bruno Haible  <bruno@clisp.org>
27390
27391         readlink doc: Mention an old glibc bug.
27392         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
27393
27394 2010-12-25  Bruno Haible  <bruno@clisp.org>
27395
27396         fcntl-h: Fix for use of C++ on glibc systems.
27397         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27398         also on glibc systems in C++ mode.
27399         Reported by Gary V. Vaughan <gary@gnu.org>.
27400
27401 2010-12-25  Bruno Haible  <bruno@clisp.org>
27402
27403         roundl-ieee: Make it work on OSF/1 5.1 with cc.
27404         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
27405
27406 2010-12-25  Bruno Haible  <bruno@clisp.org>
27407
27408         truncl-ieee: Make it work on OSF/1 5.1 with cc.
27409         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
27410         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
27411         test whether truncl works according to ISO C 99 with IEC 60559.
27412         * m4/truncl-ieee.m4: New file.
27413         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
27414         m4/signbit.m4.
27415         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
27416
27417 2010-12-25  Bruno Haible  <bruno@clisp.org>
27418
27419         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27420         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
27421         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
27422         test whether ceill works according to ISO C 99 with IEC 60559.
27423         * m4/ceill-ieee.m4: New file.
27424         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
27425         m4/signbit.m4.
27426         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
27427
27428 2010-12-25  Bruno Haible  <bruno@clisp.org>
27429
27430         Ensure all prerequisites of <wchar.h> are included.
27431         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
27432         before <wchar.h>.
27433         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27434         gl_MBRLEN_NUL_RETVAL): Likewise.
27435         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27436         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
27437         AC_FUNC_MBRTOWC): Likewise.
27438         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27439         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
27440         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27441         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
27442         Likewise.
27443         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27444         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
27445         (gl_WCHAR_H): Improve comments.
27446         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
27447
27448 2010-12-25  Bruno Haible  <bruno@clisp.org>
27449
27450         strtok_r: Fix C syntax error in autoconf macro.
27451         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
27452         characters in test program.
27453
27454 2010-12-24  Bruno Haible  <bruno@clisp.org>
27455
27456         ceil, trunc, round: Fix gcc warnings.
27457         * lib/ceil.c (MIN): Undefine before redefining.
27458         * lib/trunc.c (MIN): Likewise.
27459         * lib/round.c (MIN): Likewise.
27460         Include <math.h> first.
27461
27462 2010-12-24  Bruno Haible  <bruno@clisp.org>
27463
27464         select tests: Avoid failures on OSF/1 5.1.
27465         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
27466         failure of closing the last socket; it may fail with ECONNRESET.
27467
27468 2010-12-24  Eric Blake  <eblake@redhat.com>
27469
27470         stdint: avoid HP-UX 10.20 preprocessor bug
27471         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
27472         than #if.
27473         * tests/test-floor2.c (main): Likewise.
27474         Reported by Peter O'Gorman.
27475
27476         pipe: make obsoletion transition easier
27477         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
27478         * modules/pipe (Files): Include revived file.
27479         (Include): Drop reference, to mirror getdate's behavior.
27480
27481 2010-12-24  Bruno Haible  <bruno@clisp.org>
27482
27483         sys_socket: Hide mismatch of declarations on NonStop Kernel.
27484         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
27485         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
27486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27487
27488 2010-12-24  Bruno Haible  <bruno@clisp.org>
27489
27490         gethostname: Ensure declaration on NonStop Kernel.
27491         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
27492         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27493
27494 2010-12-24  Bruno Haible  <bruno@clisp.org>
27495
27496         sys_select: Ensure all necessary types on NonStop Kernel.
27497         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
27498         include <sys/time.h>.
27499         * doc/posix-headers/sys_select.texi: Mention that it's missing on
27500         NonStop Kernel.
27501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27502
27503 2010-12-24  Bruno Haible  <bruno@clisp.org>
27504
27505         sys_select: Remove unneeded include.
27506         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
27507         have <sys/select.h>.
27508
27509 2010-12-24  Bruno Haible  <bruno@clisp.org>
27510
27511         gethostname: Provide a fallback for HOST_NAME_MAX.
27512         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
27513         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
27514         instead.
27515         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27516
27517 2010-12-24  Bruno Haible  <bruno@clisp.org>
27518
27519         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
27520         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
27521         (SA_RESTART): Likewise.
27522         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27523
27524 2010-12-24  Bruno Haible  <bruno@clisp.org>
27525
27526         signal: Define NSIG.
27527         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
27528         * tests/test-signal.c (nsig): New variable.
27529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27530
27531 2010-12-24  Bruno Haible  <bruno@clisp.org>
27532
27533         rename, renameat: Avoid test failures on OSF/1 5.1.
27534         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
27535         alternative error codes.
27536         * tests/test-renameat.c (main): Likewise.
27537
27538 2010-12-24  Bruno Haible  <bruno@clisp.org>
27539
27540         *printf: Detect large precisions bug on Solaris 10/SPARC.
27541         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
27542         by Paul Eggert.
27543         * tests/test-snprintf-posix.h (test_function): Add this test code here
27544         too.
27545         * tests/test-sprintf-posix.h (test_function): Likewise.
27546         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27547         * tests/test-vasprintf-posix.c (test_function): Likewise.
27548         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
27549         around by gnulib.
27550         * doc/posix-functions/printf.texi: Likewise.
27551         * doc/posix-functions/snprintf.texi: Likewise.
27552         * doc/posix-functions/sprintf.texi: Likewise.
27553         * doc/posix-functions/vfprintf.texi: Likewise.
27554         * doc/posix-functions/vprintf.texi: Likewise.
27555         * doc/posix-functions/vsnprintf.texi: Likewise.
27556         * doc/posix-functions/vsprintf.texi: Likewise.
27557         * doc/posix-functions/dprintf.texi: Undo last commit.
27558         * doc/posix-functions/vdprintf.texi: Likewise.
27559
27560 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
27561
27562         tests: port test-fdutimensat.c to Solaris 8
27563         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
27564         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
27565         On Solaris 8, it fails with errno == ENOSYS, because there is no
27566         futimens (so it can't use the fd), and there is no lutimens (so it
27567         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
27568
27569         vsnprintf: make more consistent with snprintf; doc fixes
27570
27571         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
27572         the byte count return problem was promoted from the snprintf-posix
27573         to the snprintf module.
27574         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
27575         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
27576         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
27577         * tests/test-snprintf.c (main): Check the byte count returned.
27578         * tests/test-vsnprintf.c (main): Likewise.
27579
27580 2010-12-23  Eric Blake  <eblake@redhat.com>
27581
27582         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
27583         * modules/sigpipe (License): Relax license.
27584
27585 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27586
27587         doc: document Solaris printf bug with large float precisions
27588         * doc/posix-functions/dprintf.texi (dprintf):
27589         * doc/posix-functions/fprintf.texi (fprintf):
27590         * doc/posix-functions/printf.texi (printf):
27591         * doc/posix-functions/snprintf.texi (snprintf):
27592         * doc/posix-functions/sprintf.texi (sprintf):
27593         * doc/posix-functions/vdprintf.texi (vdprintf):
27594         * doc/posix-functions/vfprintf.texi (vfprintf):
27595         * doc/posix-functions/vprintf.texi (vprintf):
27596         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27597         * doc/posix-functions/vsprintf.texi (vsprintf):
27598         Mention that these functions mishandle large floating point
27599         precisions on Solaris 10.  The same bug is also present in Solaris
27600         8, and I assume earlier.  This causes "cd gnulib-tests; make
27601         check" to fail on Solaris 8 (and I assume, later) when building
27602         the latest coreutils, in test-vasprintf-posix's call to
27603         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
27604         the wide flavors (e.g., wprintf) so this patch just updates the
27605         documentation for the narrow ones.
27606
27607         test-posixtm.c: add two tests
27608         * tests/test-posixtm.c: Add two tests, to highlight the
27609         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
27610         around this bug; this is merely to document it.
27611
27612 2010-12-22  Bruno Haible  <bruno@clisp.org>
27613
27614         getlogin_r: Work around portability problem on OSF/1.
27615         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
27616         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
27617         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
27618         test for a truncated result.
27619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
27620         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
27621         * modules/getlogin_r (Depends-on): Add memchr.
27622         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
27623
27624 2010-12-22  Bruno Haible  <bruno@clisp.org>
27625
27626         ptsname: Avoid test failure on OSF/1 5.1.
27627         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
27628         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
27629         (same_slave): New function.
27630         (main): Use it to compare ptsname's result with the expected file name.
27631
27632 2010-12-22  Bruno Haible  <bruno@clisp.org>
27633
27634         Port extended stdio modules to HP NonStop Kernel.
27635         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
27636         macros.
27637         * lib/fbufmode.c: Update comments.
27638         * lib/fflush.c: Likewise.
27639         * lib/fpurge.c: Likewise.
27640         * lib/freadable.c: Likewise.
27641         * lib/freadahead.c: Likewise.
27642         * lib/freading.c: Likewise.
27643         * lib/freadptr.c: Likewise.
27644         * lib/freadseek.c: Likewise.
27645         * lib/fseeko.c: Likewise.
27646         * lib/fseterr.c: Likewise.
27647         * lib/fwritable.c: Likewise.
27648         * lib/fwriting.c: Likewise.
27649         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
27650
27651 2010-12-22  Bruno Haible  <bruno@clisp.org>
27652
27653         ttyname_r: Work around bug on OSF/1 5.1.
27654         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
27655         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
27656         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
27657         present.
27658         * lib/ttyname_r.c (ttyname_r): Update comments.
27659
27660 2010-12-22  Bruno Haible  <bruno@clisp.org>
27661
27662         round: Implement result sign according to IEEE 754.
27663         * lib/round.c (MIN, MINUS_ZERO): New macros.
27664         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
27665         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
27666         * tests/test-round-ieee.c (main): Likewise.
27667         * tests/test-roundl-ieee.c (main): Likewise.
27668
27669         trunc: Implement result sign according to IEEE 754.
27670         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
27671         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
27672         * tests/test-trunc2.c: Include minus-zero.h.
27673         (MINUS_ZERO): New macro.
27674         (trunc_reference): Keep in sync with lib/trunc.c.
27675         * tests/test-truncf2.c: Include minus-zero.h.
27676         (MINUS_ZERO): New macro.
27677         (truncf_reference): Keep in sync with lib/trunc.c.
27678         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
27679         * tests/test-trunc-ieee.c (main): Likewise.
27680         * tests/test-truncl-ieee.c (main): Likewise.
27681
27682         ceil: Implement result sign according to IEEE 754.
27683         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
27684         (FUNC): Return -0.0 for -1 < x < 0.
27685         * tests/test-ceil2.c: Include minus-zero.h.
27686         (MINUS_ZERO): New macro.
27687         (ceil_reference): Keep in sync with lib/ceil.c.
27688         * tests/test-ceilf2.c: Include minus-zero.h.
27689         (MINUS_ZERO): New macro.
27690         (ceilf_reference): Keep in sync with lib/ceil.c.
27691         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
27692         * tests/test-ceil-ieee.c (main): Likewise.
27693         * tests/test-ceill-ieee.c (main): Likewise.
27694
27695         floor: Implement result sign according to IEEE 754.
27696         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
27697         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
27698         * tests/test-floorf2.c (floorf_reference): Likewise.
27699         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
27700         * tests/test-floor-ieee.c (main): Likewise.
27701         * tests/test-floorl-ieee.c (main): Likewise.
27702
27703 2010-12-22  Bruno Haible  <bruno@clisp.org>
27704
27705         getaddrinfo: Update doc.
27706         * doc/posix-functions/gai_strerror.texi: Return type is also different
27707         on AIX and HP-UX.
27708
27709 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
27710
27711         getaddrinfo, inet_ntop: Update doc for Solaris.
27712         * doc/posix-functions/gai_strerror.texi: Return type is also an
27713         issue on Solaris 9 and earlier.
27714         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
27715         on Solaris 10 and earlier.
27716
27717 2010-12-21  Bruno Haible  <bruno@clisp.org>
27718
27719         New module 'roundl-ieee'.
27720         * modules/roundl-ieee: New file.
27721         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
27722         test whether roundl works according to ISO C 99 with IEC 60559.
27723         * m4/roundl-ieee.m4: New file.
27724         * modules/roundl-ieee-tests: New file.
27725         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
27726         * tests/test-roundl.c (main): Remove signbit tests.
27727         * modules/roundl-tests (Depends-on): Remove signbit.
27728         * doc/posix-functions/roundl.texi: Mention the new module.
27729
27730 2010-12-21  Bruno Haible  <bruno@clisp.org>
27731
27732         New module 'truncl-ieee'.
27733         * modules/truncl-ieee: New file.
27734         * modules/truncl-ieee-tests: New file.
27735         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
27736         * tests/test-truncl.c (main): Remove signbit tests.
27737         * modules/truncl-tests (Depends-on): Remove signbit.
27738         * doc/posix-functions/truncl.texi: Mention the new module.
27739
27740 2010-12-21  Bruno Haible  <bruno@clisp.org>
27741
27742         New module 'ceill-ieee'.
27743         * modules/ceill-ieee: New file.
27744         * modules/ceill-ieee-tests: New file.
27745         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
27746         * tests/test-ceill.c (main): Remove signbit tests.
27747         * modules/ceill-tests (Depends-on): Remove signbit.
27748         * doc/posix-functions/ceill.texi: Mention the new module.
27749
27750 2010-12-21  Bruno Haible  <bruno@clisp.org>
27751
27752         New module 'floorl-ieee'.
27753         * modules/floorl-ieee: New file.
27754         * modules/floorl-ieee-tests: New file.
27755         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
27756         * tests/test-floorl.c (main): Remove signbit tests.
27757         * modules/floorl-tests (Depends-on): Remove signbit.
27758         * doc/posix-functions/floorl.texi: Mention the new module.
27759
27760 2010-12-21  Bruno Haible  <bruno@clisp.org>
27761
27762         New module 'round-ieee'.
27763         * modules/round-ieee: New file.
27764         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
27765         whether round works according to ISO C 99 with IEC 60559.
27766         * m4/round-ieee.m4: New file.
27767         * modules/round-ieee-tests: New file.
27768         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
27769         * tests/test-round1.c (main): Remove signbit tests.
27770         * modules/round-tests (Depends-on): Remove 'signbit'.
27771         * doc/posix-functions/round.texi: Mention the new module.
27772
27773 2010-12-21  Bruno Haible  <bruno@clisp.org>
27774
27775         New module 'trunc-ieee'.
27776         * modules/trunc-ieee: New file.
27777         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
27778         whether trunc works according to ISO C 99 with IEC 60559.
27779         * m4/trunc-ieee.m4: New file.
27780         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
27781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
27782         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
27783         * modules/trunc-ieee-tests: New file.
27784         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
27785         * tests/test-trunc1.c (main): Remove signbit tests.
27786         * modules/trunc-tests (Depends-on): Remove 'signbit'.
27787         * doc/posix-functions/trunc.texi: Mention the new module.
27788
27789 2010-12-21  Bruno Haible  <bruno@clisp.org>
27790
27791         New module 'ceil-ieee'.
27792         * modules/ceil-ieee: New file.
27793         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
27794         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
27795         ISO C 99 with IEC 60559.
27796         * m4/ceil-ieee.m4: New file.
27797         * modules/ceil (Files): Add lib/ceil.c.
27798         (Depends-on): Add 'float'.
27799         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27800         * lib/math.in.h (ceil): New declaration.
27801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
27802         REPLACE_CEIL.
27803         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
27804         * modules/ceil-ieee-tests: New file.
27805         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
27806         * tests/test-math-c++.cc: Check the signature of 'ceil'.
27807         * doc/posix-functions/ceil.texi: Mention the new module.
27808
27809 2010-12-21  Bruno Haible  <bruno@clisp.org>
27810
27811         New module 'floor-ieee'.
27812         * modules/floor-ieee: New file.
27813         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
27814         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
27815         ISO C 99 with IEC 60559.
27816         * m4/floor-ieee.m4: New file.
27817         * modules/floor (Files): Add lib/floor.c.
27818         (Depends-on): Add 'float'.
27819         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
27820         * lib/math.in.h (floor): New declaration.
27821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
27822         REPLACE_FLOOR.
27823         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
27824         * modules/floor-ieee-tests: New file.
27825         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
27826         * tests/test-math-c++.cc: Check the signature of 'floor'.
27827         * doc/posix-functions/floor.texi: Mention the new module.
27828
27829 2010-12-21  Bruno Haible  <bruno@clisp.org>
27830
27831         New module 'roundf-ieee'.
27832         * modules/roundf-ieee: New file.
27833         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27834         test whether roundf works according to ISO C 99 with IEC 60559.
27835         * m4/roundf-ieee.m4: New file.
27836         * modules/roundf-ieee-tests: New file.
27837         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27838         * tests/test-roundf1.c (main): Remove signbit tests.
27839         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27840         * doc/posix-functions/roundf.texi: Mention the new module.
27841
27842 2010-12-21  Bruno Haible  <bruno@clisp.org>
27843
27844         New module 'truncf-ieee'.
27845         * modules/truncf-ieee: New file.
27846         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27847         test whether truncf works according to ISO C 99 with IEC 60559.
27848         * m4/truncf-ieee.m4: New file.
27849         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27851         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27852         * modules/truncf-ieee-tests: New file.
27853         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27854         * tests/test-truncf1.c (main): Remove signbit tests.
27855         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27856         * doc/posix-functions/truncf.texi: Mention the new module.
27857
27858 2010-12-21  Bruno Haible  <bruno@clisp.org>
27859
27860         New module 'ceilf-ieee'.
27861         * modules/ceilf-ieee: New file.
27862         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27863         test whether ceilf works according to ISO C 99 with IEC 60559.
27864         * m4/ceilf-ieee.m4: New file.
27865         * modules/ceilf-ieee-tests: New file.
27866         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27867         * tests/test-ceilf1.c (main): Remove signbit tests.
27868         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27869         * doc/posix-functions/ceilf.texi: Mention the new module.
27870
27871 2010-12-21  Bruno Haible  <bruno@clisp.org>
27872
27873         New module 'floorf-ieee'.
27874         * modules/floorf-ieee: New file.
27875         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27876         test whether floorf works according to ISO C 99 with IEC 60559.
27877         * m4/floorf-ieee.m4: New file.
27878         * modules/floorf-ieee-tests: New file.
27879         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27880         * tests/test-floorf1.c (main): Remove signbit tests.
27881         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27882         * doc/posix-functions/floorf.texi: Mention the new module.
27883
27884 2010-12-21  Bruno Haible  <bruno@clisp.org>
27885
27886         Support for minus zero in autoconf macros.
27887         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27888         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27889         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27890         * tests/minus-zero.h: Update comments.
27891
27892 2010-12-21  Bruno Haible  <bruno@clisp.org>
27893
27894         Tests for module 'ceil'.
27895         * modules/ceil-tests: New file.
27896         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27897         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27898
27899 2010-12-21  Bruno Haible  <bruno@clisp.org>
27900
27901         Tests for module 'floor'.
27902         * modules/floor-tests: New file.
27903         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27904         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27905
27906 2010-12-21  Bruno Haible  <bruno@clisp.org>
27907
27908         math: Fix indentation.
27909         * lib/math.in.h (floorf): Fix indentation.
27910
27911 2010-12-21  Bruno Haible  <bruno@clisp.org>
27912
27913         Fix cross-compilation guesses on Solaris.
27914         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27915         not match "solaris2.10".
27916         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27917         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27918         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27919
27920 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27921
27922         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27923         This fixes a problem observed with the latest coreutils snapshot
27924         that caused a test to fail on Solaris 8.  src/csplit.c's call
27925         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27926         earlier, instead of returning the number of bytes that would have
27927         been generated; this causes csplit to incorrectly report memory
27928         exhaustion.
27929         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27930         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27931         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27932         comments to match.
27933         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27934         Fix typo in matching older versions of Solaris: "solaris2.10"
27935         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27936         only for guessing while cross-compiling.
27937         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27938
27939 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27940
27941         ftoastr: fix comment again
27942         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27943         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27944         Also, simplify example a bit by using flags = 0.
27945
27946 2010-12-20  Bruno Haible  <bruno@clisp.org>
27947
27948         round*, trunc*: Update documentation regarding glibc.
27949         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27950         * doc/posix-functions/round.texi: Likewise.
27951         * doc/posix-functions/roundl.texi: Likewise.
27952         * doc/posix-functions/truncf.texi: Likewise.
27953         * doc/posix-functions/trunc.texi: Likewise.
27954         * doc/posix-functions/truncl.texi: Likewise.
27955
27956 2010-12-20  Bruno Haible  <bruno@clisp.org>
27957
27958         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27959         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27960         * doc/posix-functions/round.texi: Likewise.
27961         * doc/posix-functions/roundl.texi: Likewise.
27962
27963 2010-12-20  Bruno Haible  <bruno@clisp.org>
27964
27965         ttyname_r: Add missing declaration on HP-UX 11.
27966         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27967         HAVE_TTYNAME_R.
27968         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27969         declared. Set HAVE_TTYNAME_R always.
27970         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27971         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27972         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27973         HAVE_TTYNAME_R.
27974         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27975
27976 2010-12-20  Bruno Haible  <bruno@clisp.org>
27977
27978         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27979         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27980         * doc/posix-functions/getlogin_r.texi: Likewise.
27981         * tests/test-getlogin.c: Include <errno.h>.
27982         (main): Avoid test failure on HP-UX 11.11.
27983         * tests/test-getlogin_r.c (main): Likewise.
27984
27985 2010-12-20  Bruno Haible  <bruno@clisp.org>
27986
27987         getlogin_r: Add missing declaration on HP-UX 11.
27988         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27989         declared also when it exists as a function.
27990         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27991
27992 2010-12-20  Bruno Haible  <bruno@clisp.org>
27993
27994         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27995         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27996         through wcrtomb.
27997
27998 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27999
28000         ftoastr: fix comment
28001         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28002         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28003
28004 2010-12-19  Bruno Haible  <bruno@clisp.org>
28005
28006         isnan: Ensure it is a macro.
28007         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28008         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28009         Solaris.
28010
28011 2010-12-19  Bruno Haible  <bruno@clisp.org>
28012
28013         ldexpl test: Fix link error on OSF/1 5.1.
28014         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28015
28016 2010-12-19  Bruno Haible  <bruno@clisp.org>
28017
28018         wctype: Make it work in C++ mode on OSF/1 5.1.
28019         * lib/wctype.in.h (iswblank): Declare but not define here.
28020         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28021         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28022         * modules/wctype (Files): Add lib/iswblank.c.
28023
28024 2010-12-19  Bruno Haible  <bruno@clisp.org>
28025
28026         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28027         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28028         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28029
28030 2010-12-19  Bruno Haible  <bruno@clisp.org>
28031
28032         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28033         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28034         _POSIX_PII_SOCKET.
28035         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28036         * doc/posix-functions/recvfrom.texi: Likewise.
28037         * doc/posix-functions/send.texi: Likewise.
28038         * doc/posix-functions/sendto.texi: Likewise.
28039
28040 2010-12-19  Bruno Haible  <bruno@clisp.org>
28041
28042         tcgetsid: Add missing declaration on OSF/1 5.1.
28043         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28044         HAVE_TCGETSID.
28045         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28046         Don't set HAVE_TCGETSID.
28047         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28048         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28049         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28050         HAVE_TCGETSID.
28051         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28052
28053 2010-12-19  Bruno Haible  <bruno@clisp.org>
28054
28055         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28056         * lib/stdio.in.h: During the include_next statement, let recursive
28057         includes of this file include only the system header file.
28058
28059 2010-12-19  Bruno Haible  <bruno@clisp.org>
28060
28061         iconv_open: Fix regression from 2010-12-04.
28062         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
28063         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
28064
28065 2010-12-19  Bruno Haible  <bruno@clisp.org>
28066
28067         stdbool test: Avoid a gcc warning.
28068         * tests/test-stdbool.c (main): Fail if e1 is false.
28069         Reported by Jim Meyering.
28070
28071 2010-12-19  Jim Meyering  <meyering@redhat.com>
28072
28073         setenv: restore to working order
28074         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
28075         mistakenly removed.
28076         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
28077         HAVE_SETENV.
28078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
28079         HAVE_SETENV.
28080
28081 2010-12-19  Bruno Haible  <bruno@clisp.org>
28082
28083         Document some different function declarations on OSF/1 5.1.
28084         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
28085         * doc/posix-functions/inet_ntop.texi: Likewise.
28086         * doc/posix-functions/gethostname.texi: Likewise.
28087         * lib/unistd.in.h (gethostname): Update comment.
28088
28089 2010-12-19  Bruno Haible  <bruno@clisp.org>
28090
28091         doc: Mention vasprintf-posix module.
28092         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
28093         the 'vasprintf-posix' module.
28094         * doc/glibc-functions/vasprintf.texi: Likewise.
28095
28096 2010-12-19  Bruno Haible  <bruno@clisp.org>
28097
28098         unsetenv: Add missing declaration on OSF/1 5.1.
28099         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
28100         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
28101         Don't set HAVE_UNSETENV. In the test program, set _BSD.
28102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
28103         not HAVE_UNSETENV.
28104         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
28105         HAVE_UNSETENV.
28106         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
28107
28108 2010-12-19  Bruno Haible  <bruno@clisp.org>
28109
28110         setenv: Add missing declaration on OSF/1 5.1.
28111         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
28112         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
28113         declared. Don't set HAVE_SETENV.
28114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
28115         not HAVE_SETENV.
28116         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
28117         HAVE_SETENV.
28118         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
28119
28120 2010-12-19  Bruno Haible  <bruno@clisp.org>
28121
28122         nl_langinfo tests: Avoid gcc warning.
28123         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
28124
28125 2010-12-19  Bruno Haible  <bruno@clisp.org>
28126
28127         mknod: Avoid error in C++ mode on OSF/1 with GCC.
28128         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
28129         _GL_CXXALIAS_SYS.
28130
28131 2010-12-19  Bruno Haible  <bruno@clisp.org>
28132
28133         stdbool: Relax test.
28134         * tests/test-stdbool.c (e): Don't require that casts from a variable's
28135         address to 'bool' work in static initializer, for compilers other than
28136         GCC.
28137
28138 2010-12-19  Bruno Haible  <bruno@clisp.org>
28139
28140         ftello: Add missing declaration on OSF/1 5.1.
28141         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
28142         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
28143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
28144         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
28145         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
28146
28147 2010-12-19  Bruno Haible  <bruno@clisp.org>
28148
28149         fseeko: Add missing declaration on OSF/1 5.1.
28150         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
28151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
28152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
28153         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
28154         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
28155
28156 2010-12-19  Bruno Haible  <bruno@clisp.org>
28157
28158         fchdir: Add missing declaration on OSF/1 5.1.
28159         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
28160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
28161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
28162         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
28163         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
28164
28165 2010-12-19  Bruno Haible  <bruno@clisp.org>
28166
28167         relocatable-prog-wrapper: Separate from relocatable-prog.
28168         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
28169         uninstall-relocwrapper rule here.
28170         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
28171         Reported by Ian Beckwith <ianb@erislabs.net>.
28172
28173 2010-12-19  Bruno Haible  <bruno@clisp.org>
28174
28175         unistr/u8-mbsnlen: Add missing dependency.
28176         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
28177         Reported by Ian Beckwith <ianb@erislabs.net>.
28178
28179 2010-12-19  Bruno Haible  <bruno@clisp.org>
28180
28181         iconv: Make it possible again to use this module without 'iconv-h'.
28182         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
28183         if it is not defined.
28184         Reported by Ian Beckwith <ianb@erislabs.net>.
28185
28186 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28187
28188         acl: port to Solaris 8 when copying from tmpfs to ufs
28189         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
28190         error number.  Problem observed on Solaris 8 with latest
28191         coreutils, with "mv A B", where A is on a tmpfs file system and B
28192         is on a ufs file system.  This caused coreutils' mv/part-symlink
28193         test to fail.
28194
28195         tests: set fail=0 at start
28196         * tests/init.sh (setup_): Move fail=0 initialization here ...
28197         (mktempd_): ... from here, so that tests can rely on fail being
28198         set to 0 initially.  This fixes a problem in coreutils; see:
28199         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
28200
28201 2010-12-18  Bruno Haible  <bruno@clisp.org>
28202
28203         memmem-simple: Stylistic changes.
28204         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
28205         Fix preprocessor directive indentation.
28206
28207 2010-12-15  Pádraig Brady <P@draigBrady.com>
28208
28209         memmem, memmem-simple: reorganize and expand empty needle check
28210         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
28211         functional checks to memmem-simple so that one has a fully functional
28212         memmem by using just this module.
28213         Restrict the performance only check to the memmem module.
28214         Also expand the empty needle check to ensure the correct
28215         pointer is returned, not just a non NULL pointer.
28216         * doc/glibc-functions/memmem.texi: Rearrange the portability
28217         documentation to correlate with the rearranged checks.
28218         Clarify exactly how the memmem and memmem-simple modules
28219         relate to each other.
28220
28221 2010-12-15  Pádraig Brady <P@draigBrady.com>
28222             Bruno Haible  <bruno@clisp.org>
28223
28224         Improve cross-compilation guesses for uClibc.
28225         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
28226         that uClibc does not have the glibc bug.
28227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
28228         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
28229
28230 2010-12-14  Eric Blake  <eblake@redhat.com>
28231
28232         configmake: provide fallbacks for oldest supported autotools
28233         * m4/configmake.m4: New file.
28234         * modules/configmake (Files): Ship it.
28235         (configure.ac): Use it to guarantee fallbacks.
28236
28237 2010-12-13  Pádraig Brady <P@draigBrady.com>
28238
28239         read-file: Improve handling of large files
28240         * lib/read-file.c (fread_file): Minimize realloc()s
28241         for regular files, and better manage sizes around SIZE_MAX.
28242
28243 2010-12-13  Eric Blake  <eblake@redhat.com>
28244
28245         cloexec, fcntl: relax license
28246         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
28247         consent from all contributors.
28248         * modules/fcntl (License): Likewise.
28249
28250 2010-12-10  Bruno Haible  <bruno@clisp.org>
28251
28252         Tests for module 'pipe-posix'.
28253         * modules/pipe-posix-tests: New file.
28254         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
28255
28256 2010-12-10  Bruno Haible  <bruno@clisp.org>
28257
28258         pipe-posix: Make it work in C++ mode.
28259         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
28260         (pipe): Use common idiom, not a macro definition.
28261         * lib/pipe.c: New file.
28262         * m4/pipe.m4: New file.
28263         * modules/pipe-posix (Description): Enhance.
28264         (Files): Add lib/pipe.c, m4/pipe.m4.
28265         (configure.ac): Invoke gl_FUNC_PIPE.
28266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
28267         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
28268         * tests/test-unistd-c++.cc: Check the signature of pipe.
28269
28270 2010-12-10  Bruno Haible  <bruno@clisp.org>
28271
28272         Rename module 'pipe' to 'spawn-pipe'.
28273         * modules/spawn-pipe: New file, renamed from modules/pipe.
28274         (Files, configure.ac, Makefile.am): Update.
28275         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
28276         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
28277         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
28278         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
28279         "spawn-pipe.h" instead of "pipe.h".
28280         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
28281         to gl_SPAWN_PIPE.
28282         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
28283         (Files, Makefile.am): Update.
28284         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
28285         Update.
28286         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
28287         Include "spawn-pipe.h" instead of "pipe.h".
28288         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
28289         * lib/javacomp.c: Likewise.
28290         * lib/javaversion.c: Likewise.
28291         * lib/pipe-filter-gi.c: Likewise.
28292         * lib/pipe-filter-ii.c: Likewise.
28293         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
28294         * modules/javacomp (Depends-on): Likewise.
28295         * modules/javaversion (Depends-on): Likewise.
28296         * modules/pipe-filter-gi (Depends-on): Likewise.
28297         * modules/pipe-filter-ii (Depends-on): Likewise.
28298         * MODULES.html.sh (Executing programs): Update.
28299         * NEWS: Mention the change.
28300
28301 2010-12-10  Eric Blake  <eblake@redhat.com>
28302
28303         pipe-posix: new module
28304         * modules/pipe-posix: New file.
28305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
28306         (gl_UNISTD_H): Check for declaration.
28307         * modules/unistd (Makefile.am): Substitute it.
28308         * lib/unistd.in.h (pipe): Provide it for mingw.
28309         * doc/posix-functions/pipe.texi (pipe): Update documentation.
28310         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
28311
28312 2010-12-07  Bruno Haible  <bruno@clisp.org>
28313
28314         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
28315         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
28316         u8_strcmp_gnu.
28317         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
28318
28319 2010-12-06  Bruno Haible  <bruno@clisp.org>
28320
28321         Update internal documentation.
28322         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
28323
28324 2010-12-04  Bruno Haible  <bruno@clisp.org>
28325
28326         Put more information about failed tests into the test return codes.
28327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
28328         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
28329         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
28330         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28331         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
28332         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28333         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28334         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28335         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
28336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
28338         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
28339         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28340         * m4/stdint.m4 (gl_STDINT_H): Likewise.
28341         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
28342         returns a bit mask.
28343         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
28344         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
28345         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
28346         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
28347         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28348         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
28351         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28352         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28353         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
28354         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28355         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28357         * m4/link.m4 (gl_FUNC_LINK): Likewise.
28358         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
28359         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
28360         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
28361         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28362         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
28363         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28364         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
28365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
28366         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28367         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28368         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
28369         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
28370         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28371         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28372         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
28373         gl_PRINTF_PRECISION): Likewise.
28374         * m4/regex.m4 (gl_REGEX): Likewise.
28375         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
28376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
28377         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
28378         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
28379         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
28382         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
28383         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28384         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28385         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
28386         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
28387         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28388         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28389         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
28390         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28391         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
28392         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28394         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
28395         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
28396         enumerated value.
28397         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
28398
28399 2010-12-04  Bruno Haible  <bruno@clisp.org>
28400
28401         Update for Solaris 11 2010-11.
28402         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
28403         Express, released in November 2010.
28404
28405 2010-12-04  Bruno Haible  <bruno@clisp.org>
28406
28407         nproc: Relax license.
28408         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
28409         and Paul Eggert.
28410         Requested by Ludovic Courtès <ludo@gnu.org>.
28411
28412 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
28413
28414         utimecmp: fine-grained src to nearby coarse-grained dest
28415
28416         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
28417         and the source is on a file system with higher-resolution time
28418         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
28419         not work, and the time stamps are close together, the algorithm to
28420         determine the exact resolution from the read-back mtime was buggy:
28421         it had a "!=" where it should have had an "==".  This bug has been
28422         in the code ever since it was introduced to gnulib.
28423         Problem reported by Dan Jacobson in
28424         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
28425
28426 2010-11-30  Bruno Haible  <bruno@clisp.org>
28427
28428         strerror_r-posix: Fix autoconf test.
28429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
28430
28431 2010-11-28  Bruno Haible  <bruno@clisp.org>
28432             Paul Eggert  <eggert@cs.ucla.edu>
28433
28434         Tests for module 'getdomainname'.
28435         * modules/getdomainname-tests: New file.
28436         * tests/test-getdomainname.c: New file, based on
28437         tests/test-gethostname.c.
28438
28439 2010-11-28  Bruno Haible  <bruno@clisp.org>
28440             Paul Eggert  <eggert@cs.ucla.edu>
28441
28442         getdomainname: Use the system function when possible.
28443         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
28444         (getdomainname): Replace if needed. Provide the declaration if it is
28445         missing. Don't use _GL_CXXALIAS_SYS_CAST.
28446         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
28447         (getdomainname): When the system has getdomainname, call the system
28448         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
28449         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28450         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
28451         found in libnsl. Look for the declaration also in <netdb.h>. Replace
28452         the function if its second argument is of type 'int' or if it is found
28453         in libnsl.
28454         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
28455         <sys/systeminfo.h> and sysinfo().
28456         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
28457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28458         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
28459         HAVE_GETDOMAINNAME.
28460         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
28461         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
28462         * doc/glibc-functions/getdomainname.texi: Document the problems with
28463         the getdomainname declaration.
28464
28465 2010-11-28  Bruno Haible  <bruno@clisp.org>
28466
28467         sys_socket: Ensure ss_family field on AIX.
28468         * lib/sys_socket.in.h (ss_family): New macro definition.
28469         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
28470         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
28471         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28472         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28473         * modules/sys_socket (Makefile.am): Substitute
28474         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
28475         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
28476
28477 2010-11-27  Bruno Haible  <bruno@clisp.org>
28478
28479         readline: Improve configure output.
28480         * m4/readline.m4 (gl_FUNC_READLINE): Make the
28481         "checking for readline..." result understandable.
28482
28483 2010-11-27  Bruno Haible  <bruno@clisp.org>
28484
28485         *printf-posix: Detect a bug on Solaris 10/x86.
28486         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
28487         for floating-point output.
28488         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
28489         directive.
28490         * tests/test-snprintf-posix.h (test_function): Likewise.
28491         * tests/test-sprintf-posix.h (test_function): Likewise.
28492         * tests/test-vasprintf-posix.c (test_function): Likewise.
28493         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
28494         * doc/posix-functions/printf.texi: Likewise.
28495         * doc/posix-functions/snprintf.texi: Likewise.
28496         * doc/posix-functions/sprintf.texi: Likewise.
28497         * doc/posix-functions/vfprintf.texi: Likewise.
28498         * doc/posix-functions/vprintf.texi: Likewise.
28499         * doc/posix-functions/vsnprintf.texi: Likewise.
28500         * doc/posix-functions/vsprintf.texi: Likewise.
28501         * doc/glibc-functions/obstack_printf.texi: Likewise.
28502         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28503
28504 2010-11-27  Bruno Haible  <bruno@clisp.org>
28505
28506         Fix link error when module libunistring-optional is in use.
28507         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
28508         * modules/striconveha-tests (Makefile.am): Likewise.
28509
28510 2010-11-27  Bruno Haible  <bruno@clisp.org>
28511
28512         regex: Mention link dependencies.
28513         * modules/regex (Link): New section.
28514         * modules/rpmatch (Link): Likewise.
28515         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
28516
28517 2010-11-27  Bruno Haible  <bruno@clisp.org>
28518
28519         ftoastr: Fix compilation error on Solaris.
28520         * lib/ftoastr.c: Include <config.h>.
28521
28522 2010-11-27  Bruno Haible  <bruno@clisp.org>
28523
28524         getloadavg: Update documentation.
28525         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
28526
28527 2010-11-27  Bruno Haible  <bruno@clisp.org>
28528
28529         sys_socket: Fix test whether the functions are declared.
28530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
28531         not <sys/select.h>.
28532
28533 2010-11-27  Bruno Haible  <bruno@clisp.org>
28534
28535         getpass: Make sure to get system declaration on some platforms.
28536         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
28537         gl_USE_SYSTEM_EXTENSIONS.
28538         * modules/getpass (Depends-on): Add extensions.
28539
28540 2010-11-26  Bruno Haible  <bruno@clisp.org>
28541
28542         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
28543         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
28544         'iconv' module is present.
28545         (ICONV_CONST): New macro.
28546         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
28547         ICONV_CONST.
28548         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
28549         set ICONV_CONST.
28550         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
28551         here.
28552         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
28553         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
28554         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
28555         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
28556         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
28557         present.
28558
28559 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28560
28561         ftoastr: comment fix
28562         * lib/ftoastr.c: "little" -> "little or no" in comment
28563
28564 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
28565
28566         stdint: port to GCC 4.3 + OSX + Octave
28567         On this platform, stdint.h is buggy and defines int64_t to long
28568         long int.  The replacement defined it to long int, causing
28569         problems with C++ style name mangling.  Instead, trust the system
28570         definition if INT64_MAX is defined, and likewise for the unsigned
28571         variant.   Problem reported by Jarno Rajahalme in
28572         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
28573         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
28574         and don't mess with int64_t and INT64_MAX in this case.
28575         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
28576
28577 2010-11-24  Bruno Haible  <bruno@clisp.org>
28578
28579         doc: Corrections regarding MacOS X 10.4 and 10.5.
28580         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
28581         MacOS X.
28582         Reported by Simon Josefsson.
28583
28584 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
28585
28586         Uninstall ".bin" files installed by relocwrapper.
28587         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
28588         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
28589         unless it is already there.
28590
28591 2010-11-21  Bruno Haible  <bruno@clisp.org>
28592
28593         Update for NetBSD 5.0.
28594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28595         NetBSD; the test fails on NetBSD 5.0.
28596         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28597         about NetBSD.
28598
28599 2010-11-21  Bruno Haible  <bruno@clisp.org>
28600
28601         Update for HP-UX 11.23 and HP-UX 11.31.
28602         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
28603         HP-UX.
28604
28605 2010-11-21  Bruno Haible  <bruno@clisp.org>
28606
28607         Update for MacOS X 10.5.
28608         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
28609         MacOS X; the test fails on MacOS X 10.5.8.
28610         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
28611         about MacOS X.
28612
28613 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
28614
28615         bootstrap: add bootstrap_sync option.
28616         See discussion at
28617         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
28618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
28619         * build-aux/bootstrap: Accept --bootstrap-sync to update
28620         bootstrap if it is not identical to the local gnulib's
28621         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
28622         enable this by default.  Accept --no-bootstrap-sync to disable
28623         it.
28624
28625 2010-11-20  Bruno Haible  <bruno@clisp.org>
28626
28627         Ensure that <features.h> is included before __GLIBC__ is tested.
28628         * lib/printf-parse.h: Include <features.h>.
28629         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
28630         Reported by Mike Frysinger <vapier@gentoo.org>.
28631
28632         Ensure that <features.h> is included before __GLIBC__ is tested.
28633         * lib/wchar.in.h: Include <features.h>.
28634         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
28635         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
28636         Reported by Mike Frysinger <vapier@gentoo.org>.
28637
28638         Ensure that <features.h> is included before __GLIBC__ is tested.
28639         * lib/arpa_inet.in.h: Include <features.h>.
28640         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
28641         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
28642         Reported by Mike Frysinger <vapier@gentoo.org>.
28643
28644         Ensure that <features.h> is included before __GLIBC__ is tested.
28645         * build-aux/link-warning.h: Include <features.h>.
28646         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
28647         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
28648         Reported by Mike Frysinger <vapier@gentoo.org>.
28649
28650         Ensure that <features.h> is included before __GLIBC__ is tested.
28651         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
28652         Reported by Mike Frysinger <vapier@gentoo.org>.
28653
28654 2010-11-20  Bruno Haible  <bruno@clisp.org>
28655
28656         memmem: Fix autoconf test.
28657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
28658
28659 2010-11-20  Bruno Haible  <bruno@clisp.org>
28660
28661         Port to uClibc.
28662         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
28663         * lib/fcntl.in.h: Likewise.
28664         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
28665         * lib/mbrtowc.c (mbrtowc): Likewise.
28666         * lib/relocatable.c (find_shared_library_fullname): Likewise.
28667         * lib/strerror_r.c: Likewise.
28668         * lib/unistr/u8-strnlen.c: Likewise.
28669         * lib/vasnprintf.c (decimal_point_char): Likewise.
28670         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28671         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28673         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
28674         * tests/test-sigaction.c (handler, main): Likewise.
28675         * lib/freading.h: Treat uClibc like a non-glibc platform.
28676         * lib/freading.c: Likewise.
28677         * lib/gettext.h: Likewise.
28678         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
28679         Likewise.
28680         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
28681         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
28682         * lib/propername.c (proper_name_utf8): Likewise.
28683         * lib/spawn.in.h: Likewise.
28684         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
28685         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
28686         mem_cd_iconveh_internal): Likewise.
28687         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
28688         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28689         strstr, strcasestr): Likewise.
28690         * lib/unicodeio.c (unicode_to_mb): Likewise.
28691         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
28692         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
28693         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
28694         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
28695         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
28696         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
28697         * lib/unistr/u8-stpncpy.c: Likewise.
28698         * lib/vasnprintf.c (VASNPRINTF): Likewise.
28699         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
28700         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28701         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28702         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
28703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
28704         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
28705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
28706         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
28707         Likewise.
28708         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28709         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
28710         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28713         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28714         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28715         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
28716         * tests/test-getopt.h (OPTIND_MIN): Likewise.
28717         * tests/test-striconveha.c (main): Likewise.
28718         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28719         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
28720         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
28721         * doc/posix-functions/getline.texi: Likewise.
28722         Reported by Mike Frysinger <vapier@gentoo.org>.
28723
28724 2010-11-20  Bruno Haible  <bruno@clisp.org>
28725
28726         nproc: Fix condition.
28727         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
28728         HAVE_PTHREAD_AFFINITY_NP.
28729
28730 2010-11-20  Bruno Haible  <bruno@clisp.org>
28731
28732         Fix a comment.
28733         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
28734
28735 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
28736
28737         ftoastr: don't assume snprintf
28738         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
28739         Implement a subset of snprintf here, by using sprintf safely.
28740         * modules/ftoastr (Depends-on): Remove snprintf.
28741
28742 2010-11-19  Jim Meyering  <meyering@redhat.com>
28743
28744         test-rename.h: fix compilation failure
28745         * tests/test-rename.h (test_rename): Add omitted "}".
28746
28747 2010-11-17  Jim Meyering  <meyering@redhat.com>
28748
28749         maint.mk: add a URL discussing the no-@acronym policy
28750         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
28751
28752 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
28753
28754         ftoastr: depend on snprintf, improve comments
28755         * lib/ftoastr.c: Also mention Loitsch's draft.
28756         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
28757         needed in the current implementation, but it might simplify
28758         speeding up the code later.
28759         * modules/ftoastr: Depend on snprintf; this improves portability.
28760         Suggested by Bruno Haible in the same email.
28761
28762         ftoastr: port to hosts lacking strtof and strtold
28763         Problem reported by Bruno Haible in
28764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
28765         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
28766         environment and strtold (and presumably strtof) are not available.
28767         * modules/ftoastr (Files): Add m4/c-strtod.m4.
28768         (configure.ac): Require gl_C99_STRTOLD.
28769
28770 2010-11-18  Bruno Haible  <bruno@clisp.org>
28771
28772         c-strtold: Avoid link error on AIX 7.
28773         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
28774         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
28775         (gl_C_STRTOLD): Test whether strtold_l exists.
28776         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28777
28778 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28779
28780         intprops: new macro INT_BITS_STRLEN_BOUND
28781         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
28782         ftoastr.h.  This exposes an internal of intprops.h that was formerly
28783         not exposed.  Also, it uses a slightly tighter bound than before;
28784         though this makes no practical difference, we might as well be as
28785         tight as we easily can.
28786
28787         ftoastr: new module, for lossless conversion of floats to short strings
28788         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
28789         * modules/ftoastr: New files.
28790
28791 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
28792
28793         bootstrap: port to Solaris sed
28794         * build-aux/bootstrap (get_version): Port to Solaris sed.
28795         See Ralf Wildenhues's note in
28796         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
28797
28798 2010-11-14  Jim Meyering  <meyering@redhat.com>
28799
28800         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
28801         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
28802         and move definition closer to sole use.
28803
28804 2010-11-13  Jim Meyering  <meyering@redhat.com>
28805
28806         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
28807         Now we require at least autoconf-2.59, which means the work-around
28808         is no longer needed.
28809         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
28810         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28811         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28812         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
28813         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
28814
28815 2010-11-13  Bruno Haible  <bruno@clisp.org>
28816
28817         rename, renameat: Avoid test failures at NFS mounted locations.
28818         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
28819         functions.
28820         (test_rename): Use assert_nonexistent.
28821         * tests/test-rename.c: Include <dirent.h>.
28822         * tests/test-renameat.c: Likewise.
28823         Reported by Gary V. Vaughan <gary@gnu.org>.
28824
28825         rename, renameat: Document Linux bug with NFS
28826         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
28827         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
28828         * doc/posix-functions/renameat.texi: Likewise.
28829         Suggested by Eric Blake.
28830
28831 2010-11-13  Bruno Haible  <bruno@clisp.org>
28832
28833         rename test: Add comments.
28834         * tests/test-rename.h (test_rename): Add structure and comments.
28835
28836 2010-11-13  Eric Blake  <eblake@redhat.com>
28837
28838         maintainer-makefile: cover a few more files
28839         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28840         scripts generated within C files, for libvirt.
28841
28842 2010-11-13  Bruno Haible  <bruno@clisp.org>
28843
28844         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28845         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28846         character, return the number of bytes that belong together, not always
28847         1.
28848         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28849         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28850         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28851         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28852         number of bytes of an invalid character.
28853         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28854         (main): Invoke it.
28855         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28856         results.
28857         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28858         malformed byte sequences.
28859         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28860         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28861         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28862         Reported by Ben Pfaff and Paolo Bonzini.
28863
28864 2010-11-13  Bruno Haible  <bruno@clisp.org>
28865
28866         openat: Work around glibc bug with fchownat() and empty file names.
28867         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28868         (gl_FUNC_FCHOWNAT): Invoke it.
28869         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28870         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28871         Reported by Gary V. Vaughan <gary@gnu.org>.
28872
28873 2010-11-13  Bruno Haible  <bruno@clisp.org>
28874
28875         openat: Ensure autoconf macro ordering.
28876         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28877         gl_USE_SYSTEM_EXTENSIONS.
28878         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28879
28880 2010-11-13  Bruno Haible  <bruno@clisp.org>
28881
28882         Update comments.
28883         * lib/unistr/u8-check.c: Update file name in comments.
28884         * lib/unistr/u8-mblen.c: Likewise.
28885         * lib/unistr/u8-prev.c: Likewise.
28886         * lib/unistr/u8-strmblen.c: Likewise.
28887         * lib/unistr/u8-strmbtouc.c: Likewise.
28888
28889 2010-11-13  Jim Meyering  <meyering@redhat.com>
28890
28891         tests: avoid test failure on Solaris 10 due to lack of PATH export
28892         * tests/test-update-copyright.sh: Don't forget to export PATH.
28893
28894         init.sh: ensure that IFS is defined, just in case...
28895         * tests/init.sh (setup_): Ensure that IFS is defined,
28896         so that saving and restoring it works as expected.  This
28897         appears to be useful at least for an old version of dash
28898         from a long time ago (RH 6).  See here for details:
28899         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28900
28901         maint.mk: tighten "test a == b" check
28902         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28903         test to files that contain something like #!/bin/sh.
28904         Without this, coreutils would get two false positives in
28905         the comments of C source files.
28906
28907 2010-11-12  Eric Blake  <eblake@redhat.com>
28908
28909         bootstrap: fix typo in previous attempt
28910         * build-aux/bootstrap (buildreq): Correct the grouping.
28911         Reported by Paul Eggert.
28912
28913         maintainer-makefile: prohibit test x == x
28914         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28915         Based on a report by Matthias Bolte.
28916
28917         bootstrap: allow FreeBSD gzip
28918         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28919         which has no '.' and goes to stderr.
28920         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28921         Reported by Matthias Bolte.
28922
28923         maintainer-makefile: check for i18n setup
28924         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28925         will likely work.
28926
28927 2010-11-12  Bruno Haible  <bruno@clisp.org>
28928
28929         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28930         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28931         * lib/nanosleep.c (nanosleep): Likewise.
28932
28933 2010-11-11  Bruno Haible  <bruno@clisp.org>
28934
28935         fcntl-h: Fix for use of C++ on glibc systems.
28936         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28937         also on glibc systems in C++ mode.
28938         Reported by Gary V. Vaughan <gary@gnu.org>.
28939
28940 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28941
28942         mknod: avoid false failure with dash
28943         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28944
28945 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         unlink: Fix "is it should" typo in diagnostic.
28948         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28949         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28950
28951 2010-11-11  Bruno Haible  <bruno@clisp.org>
28952
28953         Tests for module 'strerror_r-posix'.
28954         * modules/strerror_r-posix-tests: New file.
28955         * tests/test-strerror_r.c: New file.
28956         * tests/test-string-c++.cc: Check the signature of strerror_r.
28957
28958         New module 'strerror_r-posix'.
28959         * lib/string.in.h (strerror_r): New declaration.
28960         * lib/strerror_r.c: New file.
28961         * m4/strerror_r.m4: New file.
28962         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28963         of strerror_r.
28964         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28965         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28966         * modules/strerror_r-posix: New file.
28967         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28968         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28969         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28970         portability problems.
28971
28972 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28973
28974         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28975         line is also considered for output. Quoted function name in shell
28976         command, so temporary files for functions like MyClass::operator()
28977         are removed correctly without errors.
28978
28979 2010-11-09  Bruno Haible  <bruno@clisp.org>
28980
28981         * doc/posix-functions/strerror.texi: List more failing platforms.
28982
28983         * doc/posix-functions/strerror.texi: Add a comment.
28984
28985 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28986
28987         fdopendir: fix bug on MacOS X when low on file descriptors
28988
28989         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28990         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28991         All callers changed.
28992         (fdopendir): Invoke save_cwd at the top level, not after using
28993         multiple dup() calls to use up file descriptors.  Then retry
28994         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28995         less than the maximum number of open file descriptors, because
28996         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28997         on Mac OS X 10.6.4 for tar 1.24
28998         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28999         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29000         and for tar 1.25
29001         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29002
29003 2010-11-07  Bruno Haible  <bruno@clisp.org>
29004
29005         vasnprintf: Support I flag on glibc systems.
29006         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29007         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29008         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29009         snprintf function.
29010         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29011         glibc systems.
29012         * tests/test-vasnprintf-posix3.c: New file.
29013         * modules/vasnprintf-posix-tests (Files): Add it.
29014         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29015
29016 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29017
29018         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29019         * MODULES.html.sh: For compiler warnings, use name
29020         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29021
29022 2010-11-05  Eric Blake  <eblake@redhat.com>
29023
29024         ceil, floor: avoid spurious failure with icc
29025         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29026         [denormals-as-zero] when optimizing without -mieee-fp option.
29027         * tests/test-floorf2.c (floorf_reference): Likewise.
29028         * tests/test-ceilf1.c (dummy): New function.
29029         (main): Use it to outsmart icc's optimization.
29030         * tests/test-floorf1.c (dummy, main): Likewise.
29031
29032         tests: require working signbit
29033         * modules/ceilf-tests (Depends-on): Add signbit.
29034         * modules/ceill-tests (Depends-on): Likewise.
29035         * modules/floorf-tests (Depends-on): Likewise.
29036         * modules/floorl-tests (Depends-on): Likewise.
29037         * modules/round-tests (Depends-on): Likewise.
29038         * modules/roundf-tests (Depends-on): Likewise.
29039         * modules/roundl-tests (Depends-on): Likewise.
29040         * modules/trunc-tests (Depends-on): Likewise.
29041         * modules/truncf-tests (Depends-on): Likewise.
29042         * modules/truncl-tests (Depends-on): Likewise.
29043
29044         strtod: work around icc bug
29045         * lib/strtod.c (minus_zero): Define to working value.
29046         (strtod): Use it to avoid icc bug.
29047
29048         copysign: enhance tests
29049         * modules/copysign-tests (Files): Add minus-zero.h.
29050         * tests/test-copysign.c (main): Also test zeros.
29051
29052 2010-11-04  Eric Blake  <eblake@redhat.com>
29053
29054         ceil, floor, round, trunc: enhance tests of -0
29055         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29056         * tests/test-ceill.c (main): Likewise.
29057         * tests/test-floorf1.c (main): Likewise.
29058         * tests/test-floorl.c (main): Likewise.
29059         * tests/test-round1.c (main): Likewise.
29060         * tests/test-roundf1.c (main): Likewise.
29061         * tests/test-roundl.c (main): Likewise.
29062         * tests/test-trunc1.c (main): Likewise.
29063         * tests/test-truncf1.c (main): Likewise.
29064         * tests/test-truncl.c (main): Likewise.
29065
29066 2010-11-04  Eric Blake  <eblake@redhat.com>
29067
29068         frexp, tests: work around ICC bug with -zero
29069         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
29070         works with more compilers.
29071         * tests/minus-zero.h: New file.
29072         * modules/ceilf-tests (Files): Include it.
29073         * modules/ceill-tests (Files): Likewise.
29074         * modules/floorf-tests (Files): Likewise.
29075         * modules/floorl-tests (Files): Likewise.
29076         * modules/frexp-nolibm-tests (Files): Likewise.
29077         * modules/frexp-tests (Files): Likewise.
29078         * modules/frexpl-nolibm-tests (Files): Likewise.
29079         * modules/frexpl-tests (Files): Likewise.
29080         * modules/isnan-tests (Files): Likewise.
29081         * modules/isnand-nolibm-tests (Files): Likewise.
29082         * modules/isnand-tests (Files): Likewise.
29083         * modules/isnanf-nolibm-tests (Files): Likewise.
29084         * modules/isnanf-tests (Files): Likewise.
29085         * modules/isnanl-nolibm-tests (Files): Likewise.
29086         * modules/isnanl-tests (Files): Likewise.
29087         * modules/round-tests (Files): Likewise.
29088         * modules/roundf-tests (Files): Likewise.
29089         * modules/roundl-tests (Files): Likewise.
29090         * modules/ldexpl-tests (Files): Likewise.
29091         * modules/signbit-tests (Files): Likewise.
29092         * modules/snprintf-posix-tests (Files): Likewise.
29093         * modules/sprintf-posix-tests (Files): Likewise.
29094         * modules/strtod-tests (Files): Likewise.
29095         * modules/trunc-tests (Files): Likewise.
29096         * modules/truncf-tests (Files): Likewise.
29097         * modules/truncl-tests (Files): Likewise.
29098         * modules/vsnprintf-posix-tests (Files): Likewise.
29099         * modules/vsprintf-posix-tests (Files): Likewise.
29100         * modules/vasnprintf-posix-tests (Files): Likewise.
29101         * modules/vasprintf-posix-tests (Files): Likewise.
29102         * tests/test-ceilf1.c (main): Use it.
29103         * tests/test-ceill.c (main): Likewise.
29104         * tests/test-floorf1.c (main): Likewise.
29105         * tests/test-floorl.c (main): Likewise.
29106         * tests/test-frexp.c (main): Likewise.
29107         * tests/test-frexpl.c (main): Likewise.
29108         * tests/test-isnan.c (main): Likewise.
29109         * tests/test-isnand.h (main): Likewise.
29110         * tests/test-isnanf.h (main): Likewise.
29111         * tests/test-isnanl.h (main): Likewise.
29112         * tests/test-ldexpl.c (main): Likewise.
29113         * tests/test-round.c (main): Likewise.
29114         * tests/test-roundf.c (main): Likewise.
29115         * tests/test-roundl.c (main): Likewise.
29116         * tests/test-signbit.c (test_signbitf, test_signbitd)
29117         (test_signbitl): Likewise.
29118         * tests/test-snprintf-posix.h (test_function): Likewise.
29119         * tests/test-sprintf-posix.h (test_function): Likewise.
29120         * tests/test-strtod.c (main): Likewise.
29121         * tests/test-trunc1.c (main): Likewise.
29122         * tests/test-truncf1.c (main): Likewise.
29123         * tests/test-truncl.c (main): Likewise.
29124
29125         isnanl: work around icc bug
29126         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
29127
29128 2010-11-03  Eric Blake  <eblake@redhat.com>
29129
29130         tests: fix compiler warnings
29131         * tests/test-getopt.h (test_getopt): Fix condition.
29132         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29133         * tests/test-pipe2.c (main): Likewise.
29134         * tests/test-quotearg-simple.c (main): Avoid icc warning.
29135
29136         utimens: fix broken m4 test
29137         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
29138
29139 2010-10-28  Bruno Haible  <bruno@clisp.org>
29140
29141         posix_spawn*, getdtablesize: Relax license.
29142         * modules/posix_spawn (License): Change to LGPLv2+.
29143         * modules/posix_spawnp (License): Likewise.
29144         * modules/posix_spawn-internal (License): Likewise.
29145         * modules/posix_spawnattr_init (License): Likewise.
29146         * modules/posix_spawnattr_getflags (License): Likewise.
29147         * modules/posix_spawnattr_setflags (License): Likewise.
29148         * modules/posix_spawnattr_getpgroup (License): Likewise.
29149         * modules/posix_spawnattr_setpgroup (License): Likewise.
29150         * modules/posix_spawnattr_getschedparam (License): Likewise.
29151         * modules/posix_spawnattr_setschedparam (License): Likewise.
29152         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
29153         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
29154         * modules/posix_spawnattr_getsigdefault (License): Likewise.
29155         * modules/posix_spawnattr_setsigdefault (License): Likewise.
29156         * modules/posix_spawnattr_getsigmask (License): Likewise.
29157         * modules/posix_spawnattr_setsigmask (License): Likewise.
29158         * modules/posix_spawnattr_destroy (License): Likewise.
29159         * modules/posix_spawn_file_actions_init (License): Likewise.
29160         * modules/posix_spawn_file_actions_addclose (License): Likewise.
29161         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
29162         * modules/posix_spawn_file_actions_addopen (License): Likewise.
29163         * modules/posix_spawn_file_actions_destroy (License): Likewise.
29164         * modules/getdtablesize (License): Likewise.
29165         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
29166
29167 2010-10-26  Bruno Haible  <bruno@clisp.org>
29168
29169         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
29170         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
29171         Cygwin and mingw.
29172         Suggested by Eric Blake.
29173
29174 2010-10-26  Bruno Haible  <bruno@clisp.org>
29175
29176         stdio: Work around compilation error due to renameat() on Solaris 10.
29177         * lib/stdio.in.h: Include <unistd.h> on Solaris.
29178         * lib/renameat.c: Don't include <unistd.h> here.
29179         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
29180         Reported by Paul Eggert and Eric Blake.
29181
29182 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
29183
29184         renameat: port to Solaris 10, which declares renameat in unistd.h
29185
29186         * lib/renameat.c: Include unistd.h before stdio.h, because
29187         Solaris 10 declares renameat in unistd.h.  Problem encountered
29188         when building GNU tar 1.24 on Solaris 10.
29189
29190 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29191
29192         fdopendir: fix C89 compilation
29193         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
29194         compilers.
29195
29196 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
29197
29198         inttostr: simplify by removing unnecessary redundancy
29199         * lib/anytostr.c: Don't include verify.h.
29200         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
29201         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
29202         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
29203         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
29204         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
29205         Likewise.
29206         * modules/inttostr (Depends-on): Remove 'verify'.
29207
29208 2010-10-23  Bruno Haible  <bruno@clisp.org>
29209
29210         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
29211         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
29212         Reported by Eric Blake.
29213
29214 2010-10-23  Bruno Haible  <bruno@clisp.org>
29215
29216         Tests: Fix LOCALE_JA on MirBSD 10.
29217         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
29218         to an UTF-8 locale.
29219         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
29220         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29221         Reported by Eric Blake.
29222
29223 2010-10-21  Bruno Haible  <bruno@clisp.org>
29224
29225         nl_langinfo test: Avoid test failure on NetBSD 5.
29226         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
29227         Reported by Eric Blake.
29228
29229 2010-10-21  Eric Blake  <eblake@redhat.com>
29230
29231         c-stack: work around libsigsegv 2.8 bug
29232         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
29233         overflow on at least PowerPC64.
29234
29235 2010-10-17  Bruno Haible  <bruno@clisp.org>
29236
29237         userspec: Drop redundant file.
29238         * modules/userspec (Files): Remove lib/inttostr.h.
29239
29240 2010-10-17  Bruno Haible  <bruno@clisp.org>
29241
29242         nl_langinfo tests: Silence some warnings.
29243         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
29244         Reported by Jim Meyering.
29245
29246 2010-10-17  Bruno Haible  <bruno@clisp.org>
29247
29248         Make use of GCC's attribute __alloc_size__.
29249         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
29250         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
29251         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
29252         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
29253         __alloc_size__.
29254         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29255         Suggested by Jim Meyering.
29256
29257 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
29258
29259         bootstrap: anchor .gitignore entries.
29260         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
29261         with...
29262         (insert_vc_ignore): ... this new function, which prepends `/' to
29263         all .gitignore entries before passing them to
29264         insert_sorted_if_absent.
29265
29266 2010-10-16  Bruno Haible  <bruno@clisp.org>
29267
29268         nextafter: Fix configure check.
29269         * modules/nextafter (configure.ac): Correct expected prototype.
29270
29271 2010-10-16  Bruno Haible  <bruno@clisp.org>
29272
29273         termios: Update documentation.
29274         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
29275
29276 2010-10-16  Bruno Haible  <bruno@clisp.org>
29277
29278         tests: Make them compile with TinyCC.
29279         * tests/test-strstr.c (main): Remove parentheses around array
29280         initializer.
29281
29282 2010-10-15  Eric Blake  <eblake@redhat.com>
29283
29284         ignore-value: make header idempotent
29285         * lib/ignore-value.h: Add double-inclusion guards.
29286         Reported by Stefan Berger.
29287
29288 2010-10-15  Jim Meyering  <meyering@redhat.com>
29289
29290         GNUmakefile: handle "stable" target, not "major"
29291         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
29292         lists in maint.mk and announce-gen.  Without this, "make stable"
29293         would fail to ensure that $(VERSION) is up to date.
29294
29295 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
29296
29297         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
29298         & co.
29299
29300 2010-10-14  Bruno Haible  <bruno@clisp.org>
29301
29302         vasnprintf: Don't set errno to 0.
29303         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
29304         block that sets it to 0.
29305         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
29306
29307 2010-10-14  Bruno Haible  <bruno@clisp.org>
29308
29309         socketlib: Fix.
29310         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
29311         gl_PREREQ_SYS_H_WINSOCK2.
29312         Reported by Ian Beckwith <ianb@erislabs.net>.
29313
29314 2010-10-13  Jim Meyering  <meyering@redhat.com>
29315
29316         test-select-stdin.c: avoid warn_unused_result warnings
29317         * tests/test-select-stdin.c: Include "macros.h".
29318         ASSERT that read and fflush succeed.
29319
29320 2010-10-13  Jim Meyering  <meyering@redhat.com>
29321
29322         git-version-gen: do require git-VC'd files in cwd
29323         * build-aux/git-version-gen: Reject a git version string
29324         if there are no commits associated with the current directory.
29325         This avoids an unlikely false-positive (unrelated dir whose parent
29326         repository also contains a tag matching v*), as pointed out
29327         by Giuseppe Scrivano in
29328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
29329
29330 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29331
29332         argv-iter: omit nonconforming declaration
29333         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
29334         enum arg_iter_err declaration, which doesn't conform to C99.
29335         Solaris 10 cc warns about this.
29336
29337 2010-10-13  Eric Blake  <eblake@redhat.com>
29338
29339         termios: fix compilation on mingw
29340         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
29341         (gl_TERMIOS_H): Adjust it on mingw.
29342         * modules/termios (Makefile.am): Substitute new key.
29343         * lib/termios.in.h (includes): Make include_next conditional.
29344         * doc/posix-headers/termios.texi (termios.h): Update
29345         documentation.
29346         Reported by Daniel P. Berrange.
29347
29348 2010-10-13  Jim Meyering  <meyering@redhat.com>
29349
29350         git-version-gen: don't require that .git/ be in the current dir
29351         * build-aux/git-version-gen: Adjust this script so that it works
29352         when run from any working directory beneath the top-level .git/-
29353         containing directory.  Inspired by a patch from Giuseppe Scrivano,
29354         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
29355
29356         test-select: avoid warn_unused_result warnings
29357         * tests/test-select.c: Include "macros.h".
29358         ASSERT that each call to read, write, and pipe succeeds.
29359         While not technically required, also check each "close".
29360         * modules/select-tests (Files): Add tests/macros.h.
29361
29362         test-symlinkat: remove declaration of unused local
29363         * tests/test-symlinkat.c (main): Remove unused local, "buf".
29364
29365         test-inttostr: avoid shadowing warnings
29366         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
29367         and use malloc rather than the stack for the same reason as
29368         mentioned in the comment justifying the other allocation.
29369
29370 2010-10-11  Bruno Haible  <bruno@clisp.org>
29371
29372         stdlib: Allow multiple gnulib generated replacements to coexist.
29373         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
29374         Reported by Sam Steingold <sds@gnu.org>.
29375
29376 2010-10-11  Jim Meyering  <meyering@redhat.com>
29377
29378         fix a documentation typo
29379         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
29380
29381 2010-10-11  Eric Blake  <eblake@redhat.com>
29382
29383         futimens: work around Solaris 11 bug
29384         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
29385         * tests/test-futimens.h (test_futimens): Enhance, rather than
29386         weaken test.
29387         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29388
29389 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29390
29391         Indentation.
29392         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
29393         higher-level operators more to the left.
29394
29395 2010-10-11  Jim Meyering  <meyering@redhat.com>
29396
29397         test-futimens: avoid unwarranted test failure on Solaris 5.11
29398         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
29399         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
29400         because it tries to dereference the NULL name argument.
29401
29402 2010-10-11  Bruno Haible  <bruno@clisp.org>
29403
29404         Indentation.
29405         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
29406         indentation.
29407
29408 2010-10-11  Jim Meyering  <meyering@redhat.com>
29409
29410         spawn.in.h: make indentation consistent with parentheses
29411         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
29412         Make indentation consistent with parentheses.
29413
29414 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
29415
29416         Fix mismatched parens in previous commit
29417         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
29418         parens.
29419
29420 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29421
29422         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
29423
29424         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
29425         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
29426         * lib/malloca.c: Include "verify.h".
29427         (verify1): Remove, replacing with a verify call.
29428         * lib/relocwrapper.c (verify1): Likewise.
29429         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
29430         Likewise.
29431         * modules/malloca (Depends-on): Add 'verify'.
29432         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
29433         * modules/vasnprintf (Depends-on): Add 'verify'.
29434         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
29435         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29436         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29437         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29438         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29439         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29440         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29441
29442         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
29443
29444         Formerly the style was sometimes 2*X - 1, because the C standard
29445         was wrongly thought to disallow ?: in integral constant expressions.
29446         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
29447         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
29448         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
29449         * lib/stdint.in.h (_verify_intmax_size): Likewise.
29450         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
29451         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
29452         verify that time_t cannot be floating.
29453
29454 2010-10-08  Eric Blake  <eblake@redhat.com>
29455
29456         time: enforce recent POSIX ruling that time_t is integral
29457         * lib/time.in.h (__time_t_must_be_integral): Detect any
29458         problematic systems, allowing the rest of gnulib to assume POSIX.
29459
29460 2010-10-08  Jim Meyering  <meyering@redhat.com>
29461
29462         fdopendir: fix a bug on systems lacking openat and /proc support
29463         OpenBSD 4.7 is one such system.  The most noticeable effect was
29464         failure of any application making nontrivial use of fts: rm, du,
29465         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
29466           ./rm: traversal failed: `a': Bad file descriptor
29467         Debugging that, you see that even though FD 6 was closed just
29468         prior to the opendir call in fd_clone_opendir, its resulting
29469         dir->dd_fd was 8, rather than the expected value of 6:
29470
29471         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
29472         93                close (fd);
29473         (gdb) n
29474         94                dir = fd_clone_opendir (dupfd);
29475         (gdb) n
29476         95                saved_errno = errno;
29477         (gdb) p dir->dd_fd
29478         $11 = 8
29479
29480         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
29481         The problem is that on OpenBSD, fd_clone_opendir has to resort
29482         to using the old-style save/restore CWD mechanism, due to its
29483         lack of openat/proc support, and *that* would steal the FD (6)
29484         that opendir was supposed to use.
29485
29486         The fix is to squirrel away the desired FD so that save_cwd uses a
29487         different one, and then free the dest FD right before calling opendir.
29488         That guarantees opendir will use the required file descriptor.
29489
29490         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
29491
29492 2010-10-08  Bruno Haible  <bruno@clisp.org>
29493
29494         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
29495         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
29496
29497 2010-10-08  Bruno Haible  <bruno@clisp.org>
29498
29499         nanosleep: Make replacement POSIX compliant.
29500         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
29501         is out of range.
29502         Reported by Jim Meyering.
29503
29504 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29505
29506         bootstrap: add hook for altering gnulib.mk, for Bison
29507         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
29508         the Bison bootstrapping process can rewrite file names and variables
29509         in this file before later parts of 'bootstrap' use the file.
29510         Bison wants to include lib/gnulib.mk from the top-level makefile,
29511         so it needs the file names in this file to be relative to the top
29512         level, not relative to lib; plus it needs variable names to be
29513         rewritten.
29514         (slurp): Use the new function.
29515
29516         bootstrap: reformat for readability
29517         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
29518
29519 2010-10-08  Eric Blake  <eblake@redhat.com>
29520
29521         docs: update cygwin progress
29522         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
29523         1.7.7.
29524         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
29525         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
29526         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
29527         * doc/posix-functions/carg.texi (carg): Likewise.
29528         * doc/posix-functions/cargf.texi (cargf): Likewise.
29529         * doc/posix-functions/casin.texi (casin): Likewise.
29530         * doc/posix-functions/casinf.texi (casinf): Likewise.
29531         * doc/posix-functions/casinh.texi (casinh): Likewise.
29532         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
29533         * doc/posix-functions/catan.texi (catan): Likewise.
29534         * doc/posix-functions/catanf.texi (catanf): Likewise.
29535         * doc/posix-functions/catanh.texi (catanh): Likewise.
29536         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
29537         * doc/posix-functions/ccos.texi (ccos): Likewise.
29538         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
29539         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
29540         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
29541         * doc/posix-functions/cexp.texi (cexp): Likewise.
29542         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
29543         * doc/posix-functions/cimag.texi (cimag): Likewise.
29544         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
29545         * doc/posix-functions/clog.texi (clog): Likewise.
29546         * doc/posix-functions/clogf.texi (clogf): Likewise.
29547         * doc/posix-functions/conj.texi (conj): Likewise.
29548         * doc/posix-functions/conjf.texi (conjf): Likewise.
29549         * doc/posix-functions/cpow.texi (cpow): Likewise.
29550         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
29551         * doc/posix-functions/cproj.texi (cproj): Likewise.
29552         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
29553         * doc/posix-functions/creal.texi (creal): Likewise.
29554         * doc/posix-functions/crealf.texi (crealf): Likewise.
29555         * doc/posix-functions/csin.texi (csin): Likewise.
29556         * doc/posix-functions/csinf.texi (csinf): Likewise.
29557         * doc/posix-functions/csinh.texi (csinh): Likewise.
29558         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
29559         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
29560         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
29561         * doc/posix-functions/ctan.texi (ctan): Likewise.
29562         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
29563         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
29564         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
29565         * doc/posix-headers/complex.texi (complex.h): Likewise.
29566
29567 2010-10-07  Jim Meyering  <meyering@redhat.com>
29568
29569         parse-datetime: avoid compilation failure on OpenBSD 4.7
29570         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
29571         This works around a compilation failure on OpenBSD 4.7:
29572         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
29573
29574 2010-10-07  Eric Blake  <eblake@redhat.com>
29575
29576         docs: update cygwin progress
29577         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
29578         1.7.6.
29579         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29580         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
29581         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
29582         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
29583         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
29584         Likewise.
29585         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
29586         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
29587         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
29588         Likewise.
29589         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
29590         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
29591         Likewise.
29592         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
29593         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
29594         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
29595         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
29596         Likewise.
29597         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
29598         Likewise.
29599         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
29600
29601         docs: update parse-datetime history
29602         * doc/parse-datetime.texi (Authors of parse_datetime): Better
29603         documentation of this function's history and alternatives.
29604
29605         cygwin: use more robust version check
29606         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
29607         exclude an eventual cygwin 1.9.1.
29608         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29609         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29610         (gl_FUNC_STRCASESTR): Likewise.
29611         Reported by Bruno Haible.
29612
29613 2010-10-06  Bruno Haible  <bruno@clisp.org>
29614
29615         string, sys_select: Avoid #including large headers unless necessary.
29616         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
29617         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
29618         OSF/1, BeOS, Haiku.
29619         Reported by Jim Meyering.
29620
29621 2010-10-05  Eric Blake  <eblake@redhat.com>
29622
29623         memmem, strstr, strcasestr: fix bug with long periodic needle
29624         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
29625         periodic needle having false positive.
29626         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
29627         and cygwin 1.7.7.
29628         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
29629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
29630         (gl_FUNC_STRCASESTR): Likewise.
29631         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29632         * tests/test-memmem.c (main): Expose the bug.
29633         * tests/test-strcasestr.c (main): Likewise.
29634         * tests/test-strstr.c (main): Likewise.
29635         * tests/test-c-strcasestr.c (main): Likewise.
29636         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
29637         * doc/posix-functions/strstr.texi (strstr): Likewise.
29638         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29639         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
29640
29641 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29642
29643         parse-datetime: do some more renaming
29644         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
29645         parse_datetime, not get_date.  Mention the renaming.
29646         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
29647         in comments.
29648         * m4/bison.m4: Likewise.
29649
29650 2010-10-05  Eric Blake  <eblake@redhat.com>
29651
29652         parse-datetime: better name than get_date
29653         * NEWS: Reword the deprecation notice.
29654         * modules/get_date: Rename to modules/parse-datetime.
29655         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
29656         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
29657         * lib/get_date.y: Rename to lib/parse-datetime.y.
29658         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
29659         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
29660         * doc/getdate.texi: Provide fallback wrapper.
29661         * lib/getdate.h: Move guts, and wrap...
29662         * lib/parse-datetime.h: ...new file.
29663         * lib/parse-datetime.y (get_date): Rename...
29664         (parse_datetime): ...to this.
29665         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
29666         (gl_PARSE_DATETIME): ...to this.
29667         * doc/posix-functions/getdate.texi (get_date): Provide fallback
29668         documentation.
29669         * modules/getdate (Files): Provide fallback docs and header.
29670         (Notice, Depends-on): Update references.
29671         * tests/test-parse-datetime.c: Likewise.
29672         * DEPENDENCIES: Likewise.
29673         * MODULES.html.sh (Date and time <time.h>): Likewise.
29674         * doc/parse-datetime.texi (Date input formats)
29675         (Authors of parse_datetime): Likewise.
29676         * modules/parse-datetime (Files, configure.ac, Makefile.am)
29677         (Include): Likewise.
29678         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
29679         * gnulib-tool: Likewise.
29680         * m4/bison.m4 (gl_BISON): Likewise.
29681         Suggested by Bruno Haible.
29682
29683 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
29684
29685         more ports to Solaris tr, which needs [] around ranges
29686         * gnulib-tool: Solaris tr needs [] around ranges.
29687         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29688         * tests/test-pipe-filter-gi1.c (main): Likewise.
29689         * tests/test-pipe-filter-ii1.c (main): Likewise.
29690
29691 2010-10-05  Eric Blake  <eblake@redhat.com>
29692
29693         bootstrap: fix Solaris regression
29694         * build-aux/bootstrap (check_versions): Solaris tr still needs []
29695         around ranges.
29696         Reported by Pádraig Brady.
29697
29698         bootstrap: work with pkg-config
29699         * build-aux/bootstrap (check_versions): Also transliterate - in
29700         prerequisite name.
29701         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
29702         prerequisites that were already found, to avoid confusion.
29703         Reported by Justin Clift.
29704
29705         faccessat: remove unused wrappers
29706         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
29707         presence of these wrappers dragged in -lgen on Solaris.
29708         Reported by Clemens Brogi; fix suggested by Paul Eggert.
29709
29710 2010-10-05  Jim Meyering  <meyering@redhat.com>
29711
29712         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
29713         * Makefile (sc_pragma_columns): New syntax-check rule.
29714
29715 2010-10-04  Bruno Haible  <bruno@clisp.org>
29716
29717         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
29718         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
29719         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
29720         Reported by Bruce Korb and Eric Blake.
29721
29722 2010-10-04  Bruno Haible  <bruno@clisp.org>
29723
29724         threadlib: Make option --with-libpth-prefix work.
29725         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
29726         use $LIBPTH, not just -lpth.
29727
29728 2010-10-04  Bruno Haible  <bruno@clisp.org>
29729
29730         Avoid line length limitation from HP NonStop system header files.
29731         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
29732         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
29733         * lib/ctype.in.h: Likewise.
29734         * lib/dirent.in.h: Likewise.
29735         * lib/errno.in.h: Likewise.
29736         * lib/fcntl.in.h: Likewise.
29737         * lib/float.in.h: Likewise.
29738         * lib/getopt.in.h: Likewise.
29739         * lib/iconv.in.h: Likewise.
29740         * lib/inttypes.in.h: Likewise.
29741         * lib/langinfo.in.h: Likewise.
29742         * lib/locale.in.h: Likewise.
29743         * lib/math.in.h: Likewise.
29744         * lib/netdb.in.h: Likewise.
29745         * lib/netinet_in.in.h: Likewise.
29746         * lib/poll.in.h: Likewise.
29747         * lib/pthread.in.h: Likewise.
29748         * lib/pty.in.h: Likewise.
29749         * lib/sched.in.h: Likewise.
29750         * lib/se-selinux.in.h: Likewise.
29751         * lib/search.in.h: Likewise.
29752         * lib/signal.in.h: Likewise.
29753         * lib/spawn.in.h: Likewise.
29754         * lib/stdarg.in.h: Likewise.
29755         * lib/stddef.in.h: Likewise.
29756         * lib/stdint.in.h: Likewise.
29757         * lib/stdio.in.h: Likewise.
29758         * lib/stdlib.in.h: Likewise.
29759         * lib/string.in.h: Likewise.
29760         * lib/strings.in.h: Likewise.
29761         * lib/sys_file.in.h: Likewise.
29762         * lib/sys_ioctl.in.h: Likewise.
29763         * lib/sys_select.in.h: Likewise.
29764         * lib/sys_socket.in.h: Likewise.
29765         * lib/sys_stat.in.h: Likewise.
29766         * lib/sys_time.in.h: Likewise.
29767         * lib/sys_times.in.h: Likewise.
29768         * lib/sys_utsname.in.h: Likewise.
29769         * lib/sys_wait.in.h: Likewise.
29770         * lib/sysexits.in.h: Likewise.
29771         * lib/termios.in.h: Likewise.
29772         * lib/time.in.h: Likewise.
29773         * lib/unistd.in.h: Likewise.
29774         * lib/wchar.in.h: Likewise.
29775         * lib/wctype.in.h: Likewise.
29776         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
29777         * modules/ctype (Makefile.am): Likewise.
29778         * modules/dirent (Makefile.am): Likewise.
29779         * modules/errno (Makefile.am): Likewise.
29780         * modules/fcntl-h (Makefile.am): Likewise.
29781         * modules/float (Makefile.am): Likewise.
29782         * modules/getopt-posix (Makefile.am): Likewise.
29783         * modules/iconv-h (Makefile.am): Likewise.
29784         * modules/inttypes (Makefile.am): Likewise.
29785         * modules/langinfo (Makefile.am): Likewise.
29786         * modules/locale (Makefile.am): Likewise.
29787         * modules/math (Makefile.am): Likewise.
29788         * modules/netdb (Makefile.am): Likewise.
29789         * modules/netinet_in (Makefile.am): Likewise.
29790         * modules/poll-h (Makefile.am): Likewise.
29791         * modules/pthread (Makefile.am): Likewise.
29792         * modules/pty (Makefile.am): Likewise.
29793         * modules/sched (Makefile.am): Likewise.
29794         * modules/search (Makefile.am): Likewise.
29795         * modules/selinux-h (Makefile.am): Likewise.
29796         * modules/signal (Makefile.am): Likewise.
29797         * modules/spawn (Makefile.am): Likewise.
29798         * modules/stdarg (Makefile.am): Likewise.
29799         * modules/stddef (Makefile.am): Likewise.
29800         * modules/stdint (Makefile.am): Likewise.
29801         * modules/stdio (Makefile.am): Likewise.
29802         * modules/stdlib (Makefile.am): Likewise.
29803         * modules/string (Makefile.am): Likewise.
29804         * modules/strings (Makefile.am): Likewise.
29805         * modules/sys_file (Makefile.am): Likewise.
29806         * modules/sys_ioctl (Makefile.am): Likewise.
29807         * modules/sys_select (Makefile.am): Likewise.
29808         * modules/sys_socket (Makefile.am): Likewise.
29809         * modules/sys_stat (Makefile.am): Likewise.
29810         * modules/sys_time (Makefile.am): Likewise.
29811         * modules/sys_times (Makefile.am): Likewise.
29812         * modules/sys_utsname (Makefile.am): Likewise.
29813         * modules/sys_wait (Makefile.am): Likewise.
29814         * modules/sysexits (Makefile.am): Likewise.
29815         * modules/termios (Makefile.am): Likewise.
29816         * modules/time (Makefile.am): Likewise.
29817         * modules/unistd (Makefile.am): Likewise.
29818         * modules/wchar (Makefile.am): Likewise.
29819         * modules/wctype (Makefile.am): Likewise.
29820
29821 2010-10-04  Bruno Haible  <bruno@clisp.org>
29822
29823         read-file tests: Avoid a test failure on NonStop Kernel.
29824         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
29825         a regular file.
29826         Reported by Joachim Schmitz <schmitz@hp.com>.
29827
29828 2010-10-03  Bruno Haible  <bruno@clisp.org>
29829
29830         gnulib-tool: Fixes for --create-testdir with --libtool.
29831         * gnulib-tool (func_get_automake_snippet): Don't augment
29832         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29833         an executable.
29834         (func_create_testdir): Handle module 'alloca' like func_import.
29835         Reported by Bruce Korb <bruce.korb@gmail.com>.
29836
29837 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29838
29839         Avoid some lines longer than 80 characters.
29840         * lib/stdint.in.h: Break long comment lines.
29841         * lib/math.in.h: Likewise.
29842         (_GL_NUM_UINT_WORDS): New macro, for readability.
29843         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29844         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29845         * lib/stdlib.in.h: Likewise.
29846         * lib/spawn.in.h: Likewise.
29847         * lib/sys_socket.in.h: Update an URL.
29848         * lib/sys_stat.in.h: Break long line.
29849
29850 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29851
29852         Improve pmccabe2html.
29853         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29854         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29855         when the sources change. Remove the line in the HTML about "Used
29856         ranges" (which implied that there might be other unused ranges),
29857         rename "Resume" to "Summary" (easier to understand for more users).
29858         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29859         styles, and some unnecessary blank lines.
29860
29861 2010-10-03  Bruno Haible  <bruno@clisp.org>
29862             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29863
29864         acl: Add support for ACLs on NonStop Kernel.
29865         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29866         Check whether the function aclsort() exists.
29867         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29868         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29869         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29870         (acl_nontrivial [HAVE_ACLSORT]: New function.
29871         (file_has_acl): Implement for NonStop Kernel.
29872         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29873         (qset_acl): Implement for NonStop Kernel.
29874         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29875         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29876         (main): Implement for NonStop Kernel.
29877         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29878         Kernel. Handle this flavor.
29879         * tests/test-set-mode-acl.sh: Likewise.
29880         * tests/test-copy-acl.sh: Likewise.
29881         * tests/test-copy-file.sh: Likewise.
29882
29883 2010-10-03  Bruno Haible  <bruno@clisp.org>
29884
29885         Info about ACLs on NonStop Kernel.
29886         * doc/acl-resources.txt: Add info about NonStop Kernel.
29887         References by Joachim Schmitz <schmitz@hp.com>.
29888
29889 2010-10-02  Bruno Haible  <bruno@clisp.org>
29890
29891         Define missing EDQUOT on NonStop Kernel.
29892         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29893         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29894         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29895         missing.
29896         * doc/posix-headers/errno.texi: Mention the NSK bug.
29897         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29898         Reported by Joachim Schmitz <schmitz@hp.com>.
29899
29900 2010-10-02  Bruno Haible  <bruno@clisp.org>
29901
29902         Update doc for POSIX:2008.
29903         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29904         Update URL of POSIX specification.
29905
29906 2010-10-02  Bruno Haible  <bruno@clisp.org>
29907
29908         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29909         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29910         from gnulib, not from Automake.
29911
29912 2010-10-02  Bruno Haible  <bruno@clisp.org>
29913
29914         New module 'system-posix'.
29915         * modules/system-posix: New file.
29916         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29917         module is present.
29918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29919         GNULIB_SYSTEM_POSIX.
29920         * modules/stdlib (Depends-on): Remove sys_wait.
29921         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29922         * doc/posix-functions/system.texi: Mention the new module.
29923         * doc/posix-headers/stdlib.texi: Likewise.
29924         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29925         define test_sys_wait_macros to a no-op.
29926         Reported by Sam Steingold <sds@gnu.org>.
29927
29928 2010-09-30  Bruno Haible  <bruno@clisp.org>
29929
29930         More renaming from 'getdate' to 'get_date'.
29931         * doc/get_date.texi: Renamed from doc/getdate.texi.
29932         * modules/get_date (Files): Update.
29933         * MODULES.html.sh (Date and time <time.h>): Update.
29934         * DEPENDENCIES: Update.
29935         * gnulib-tool: Update comment.
29936         * m4/bison.m4 (gl_BISON): Likewise.
29937         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29938
29939 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29940
29941         bootstrap: support ACLOCAL_FLAGS during aclocal
29942         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29943         can add additional -I dir for third-party .m4 files.
29944
29945 2010-09-30  Eric Blake  <eblake@redhat.com>
29946
29947         bootstrap: use glibtoolize on MacOS
29948         * build-aux/bootstrap (check_versions): Convert libtool into
29949         libtoolize.
29950         (tool search): Move libtool check earlier, and look for
29951         glibtoolize for MacOS.
29952         (gnulib_tool_options): Auto-add --libtool when appropriate.
29953         Reported by Justin Clift.
29954
29955         poll: fix typo that broke test on MacOS
29956         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29957         Reported by Justin Clift.
29958
29959         getdate: rename to get_date
29960         Note: getdate.h is not renamed, to minimize client impact.
29961         * modules/getdate: Mark obsolete.  Move old contents...
29962         * modules/get_date: ...to new module name.
29963         * modules/getdate-tests: Move...
29964         * modules/get_date-tests: ...here.
29965         * m4/getdate.m4: Move...
29966         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29967         * lib/getdate.y: Move...
29968         * lib/get_date.y: ...here.
29969         * tests/test-getdate.c: Move...
29970         * tests/test-get_date.c: ...here.
29971         * doc/posix-functions/getdate.texi (getdate): Update name.
29972         * NEWS: Mention the change.
29973
29974 2010-09-29  Bruno Haible  <bruno@clisp.org>
29975
29976         Separate the module 'waitpid' from the module 'sys_wait'.
29977         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29978         present.
29979         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29980         gl_MODULE_INDICATOR_FOR_TESTS.
29981         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29982         * modules/sys_wait (Depends-on): Remove waitpid.
29983         (Makefile.am): Substitute GNULIB_WAITPID.
29984         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29985         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29986         signature only if the 'waitpid' module is present.
29987         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29988         * NEWS: Mention the change.
29989         * modules/grantpt (Depends-on): Add waitpid.
29990         * modules/wait-process (Depends-on): Likewise.
29991
29992 2010-09-29  Bruno Haible  <bruno@clisp.org>
29993
29994         More tests for module 'sys_wait'.
29995         * modules/sys_wait-c++-tests: New file.
29996         * tests/test-sys_wait-c++.cc: New file.
29997         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29998         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29999
30000 2010-09-29  Bruno Haible  <bruno@clisp.org>
30001
30002         New module 'waitpid'.
30003         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30004         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30005         Don't include <process.h>.
30006         (waitpid): Declare only, using modern idiom.
30007         * m4/waitpid.m4: New file.
30008         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30009         * modules/waitpid: New file.
30010         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30011         (Makefile.am): Update.
30012         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30013
30014 2010-09-28  Bruno Haible  <bruno@clisp.org>
30015
30016         poll: Assume ANSI C.
30017         * lib/poll.c (poll): Use an ANSI C declaration.
30018
30019 2010-09-28  Bruno Haible  <bruno@clisp.org>
30020
30021         poll-h: Create poll.h on all platforms.
30022         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30023         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30024         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30025         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30026         (gl_REPLACE_POLL_H): Don't set POLL_H.
30027         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30028         * modules/poll-h (Depends-on): Add include_next.
30029         (Makefile.am): Create poll.h unconditionally. Substitute also
30030         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30031
30032 2010-09-28  Bruno Haible  <bruno@clisp.org>
30033
30034         Tests for module 'poll-h'.
30035         * modules/poll-h-c++-tests: New file.
30036         * tests/test-poll-h-c++.cc: New file.
30037
30038         Tests for module 'poll-h'.
30039         * modules/poll-h-tests: New file.
30040         * tests/test-poll-h.c: New file.
30041
30042 2010-09-28  Bruno Haible  <bruno@clisp.org>
30043
30044         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30045         * modules/poll-h (Depends-on): Add 'extensions'.
30046
30047 2010-09-28  Bruno Haible  <bruno@clisp.org>
30048
30049         New module 'poll-h'.
30050         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30051         (poll): Use modern idiom.
30052         * modules/poll-h: New file.
30053         * modules/poll (Files): Remove lib/poll.in.h.
30054         (Depends-on): Add poll-h.
30055         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30056         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30057         * m4/poll_h.m4: New file.
30058         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30059         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30060         and invoke gl_REPLACE_POLL_H.
30061         * lib/poll.c: Use common idiom.
30062         * tests/test-poll.c: Likewise.
30063         * doc/posix-headers/poll.texi: Mention the poll-h module.
30064         Suggested by Eric Blake.
30065
30066 2010-09-26  Bruno Haible  <bruno@clisp.org>
30067
30068         sys_wait: Implement WSTOPSIG.
30069         * lib/sys_wait.in.h (WSTOPSIG): New macro.
30070         Reported by Simon Josefsson.
30071
30072 2010-09-26  Simon Josefsson  <simon@josefsson.org>
30073
30074         stdlib, sys_wait: Avoid compilation error on mingw.
30075         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
30076
30077 2010-09-26  Bruno Haible  <bruno@clisp.org>
30078
30079         stdlib tests: Avoid code duplication.
30080         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
30081         * modules/sys_wait-tests (Files): Likewise.
30082         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
30083         * tests/test-stdlib.c: Include test-sys_wait.h.
30084         (main): Invoke test_sys_wait_macros.
30085         * tests/test-sys_wait.c: Include test-sys_wait.h.
30086         (main): Invoke test_sys_wait_macros.
30087
30088 2010-09-25  Simon Josefsson  <simon@josefsson.org>
30089
30090         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
30091         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
30092         sure Windows sockets are working before calling getaddrinfo.
30093         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
30094         * doc/gnulib.texi (Windows sockets): Fix typo.
30095
30096 2010-09-25  Bruno Haible  <bruno@clisp.org>
30097
30098         Tests for module 'regex-quote'.
30099         * modules/regex-quote-tests: New file.
30100         * tests/test-regex-quote.c: New file.
30101
30102         New module 'regex-quote'.
30103         * lib/regex-quote.h: New file.
30104         * lib/regex-quote.c: New file.
30105         * modules/regex-quote: New file.
30106         Suggested by Reuben Thomas <rrt@sc3d.org>.
30107
30108 2010-09-24  Bruno Haible  <bruno@clisp.org>
30109
30110         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
30111         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
30112
30113 2010-09-23  Bruno Haible  <bruno@clisp.org>
30114
30115         setenv: Relax license.
30116         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
30117         Blake.
30118         Requested by Eric Blake.
30119
30120 2010-09-22  Bruno Haible  <bruno@clisp.org>
30121
30122         termios: Relax license.
30123         * modules/termios (License): Change to LGPLv2+.
30124         Requested by Eric Blake.
30125
30126 2010-09-22  Bruno Haible  <bruno@clisp.org>
30127
30128         threadlib: Allow the package to change the default to 'no'.
30129         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
30130         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
30131         Reported by Paul Eggert.
30132
30133 2010-09-22  Pádraig Brady  <P@draigbrady.com>
30134             Bruno Haible  <bruno@clisp.org>
30135
30136         Fix endless loop in mbmemcasecoll.
30137         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
30138         byte.
30139         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
30140
30141 2010-09-22  Bruno Haible  <bruno@clisp.org>
30142
30143         Tests for module 'memcoll'.
30144         * modules/memcoll-tests: New file.
30145         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
30146
30147         memcoll, xmemcoll: Clarify size vs. length.
30148         * modules/memcoll.c (memcoll0): Clarify specification.
30149         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
30150         passed to collate_error.
30151
30152 2010-09-22  Bruno Haible  <bruno@clisp.org>
30153
30154         Tests for module 'memcasecmp'.
30155         * modules/memcasecmp-tests: New file.
30156         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
30157
30158 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30159
30160         * lib/pthread.in.h: Add split double-inclusion guard, and include
30161         system <pthread.h> if there is one.  Use @@-style as in other
30162         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
30163         pthread.h doesn't.
30164         (pthread_mutexattr_destroy, pthread_mutexattr_init):
30165         (pthread_mutexattr_settype, pthread_mutex_trylock):
30166         New static inline functions, if there's no system <pthread.h>.
30167         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
30168         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
30169         Approximate with mutexes if the system lacks spinlocks, as in
30170         MacOS.
30171         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
30172         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
30173         @@-style.  Check for spinlocks separately.
30174         (gl_PTHREAD_DEFAULTS): New macro.
30175         * modules/pthread: Redo to use a more typical style for in.h files.
30176
30177 2010-09-21  Eric Blake  <eblake@redhat.com>
30178
30179         net_if: enhance tests
30180         * tests/test-net_if.c (main): Move signature checks earlier.
30181         Print failures to stderr.
30182         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
30183         Document the bug that we do not yet fix.
30184
30185 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30186
30187         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
30188         about gnulib, not GSS.
30189
30190 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
30191
30192         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
30193         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
30194         for Emacs.
30195         * build-aux/pmccabe2html: Make Makefile.am example code more
30196         cut-and-paste friendly.
30197
30198 2010-09-21  Simon Josefsson  <simon@josefsson.org>
30199
30200         * tests/test-net_if.c: New file.
30201         * modules/net_if-tests: New file.
30202
30203 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
30204
30205         pthread: add pthread_spin_destroy
30206         * lib/pthread.in.h (pthread_spin_destroy): New function.
30207
30208 2010-09-19  Bruno Haible  <bruno@clisp.org>
30209
30210         gnulib-tool: Fix --help output.
30211         * gnulib-tool (func_usage): Fix help message.
30212         Reported by Reuben Thomas <rrt@sc3d.org>.
30213
30214 2010-09-18  Jim Meyering  <meyering@redhat.com>
30215
30216         maint.mk: avoid unexpanded \n in two diagnostics
30217         * top/maint.mk (sc_prohibit_always_true_header_tests):
30218         Don't use a literal \n in a halt=... assignment.  It would not be
30219         expanded, and the two \n bytes would appear in the diagnostic output
30220         rather than the desired newline.  Use halt=$$(printf ... instead.
30221         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30222
30223 2010-09-18  Bruno Haible  <bruno@clisp.org>
30224
30225         netinet_in: Doc tweak.
30226         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
30227         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30228
30229 2010-09-18  Jim Meyering  <meyering@redhat.com>
30230
30231         init.sh: correct an outdated comment
30232         * tests/init.sh (create_exe_shims_):  s/function/alias/
30233
30234         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
30235         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
30236         a file named "*.exe" is removed between the glob expansion and the
30237         processing of that oddly named file.
30238
30239 2010-09-17  Eric Blake  <eblake@redhat.com>
30240
30241         mirbsd: add some more support
30242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
30243         in BSD family.
30244         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
30245         devices as OpenBSD.
30246         * m4/host-os.m4 (mirbsd): Add MirBSD.
30247
30248         tests: fix unportable assumption on sys/wait.h
30249         * tests/test-sys_wait.c (main): Relax test.
30250         * tests/test-stdlib.c (main): Likewise.
30251
30252         init.sh: accommodate directory with no .exes
30253         * tests/init.sh: Accomodate directory containing only scripts.
30254
30255         tests: avoid compiler warning
30256         * tests/test-stdlib.c (main): Use the variable.
30257
30258         fdutimens, fdutimensat: update signature, again
30259         * lib/utimens.h (gl_futimens): Delete, and move signature...
30260         (fdutimens): ...here.
30261         (fdutimensat): Rearrange signature.
30262         (lutimensat): Rename variable for clarity.
30263         * lib/fdutimensat.c (fdutimensat): Update signature.
30264         * lib/utimens.c (fdutimens): Likewise.
30265         (gl_futimens): Delete.
30266         (utimens, lutimens): Update callers.
30267         * lib/futimens.c (futimens): Likewise.
30268         * tests/test-fdutimensat.c: Likewise.
30269         * tests/test-utimens.c: Likewise.
30270         * tests/test-futimens.h: Update comment.
30271         * NEWS: Mention this.
30272         Suggested by Paul Eggert.
30273
30274 2010-09-17  Bruno Haible  <bruno@clisp.org>
30275
30276         Take over the maintenance of some older macros from Autoconf.
30277         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
30278         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
30279         GNU Autoconf.
30280         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
30281         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
30282
30283 2010-09-17  Eric Blake  <eblake@redhat.com>
30284
30285         fdutimensat: drop atflag validation
30286         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
30287         with valid fd, to close a race scenario where futimens is
30288         unsupported and FILE was replaced by a symlink.
30289         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
30290         accordingly.
30291         Suggested by Paul Eggert.
30292
30293 2010-09-16  Bruno Haible  <bruno@clisp.org>
30294
30295         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
30296         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
30297
30298 2010-09-16  Bruno Haible  <bruno@clisp.org>
30299
30300         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
30301         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
30302         login_tty exists.
30303         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30304
30305 2010-09-16  Bruno Haible  <bruno@clisp.org>
30306
30307         login_tty: Make the replacement code work on BSD systems.
30308         * lib/login_tty.c: Include <sys/ioctl.h>.
30309         (login_tty): Use ioctl TIOCSCTTY when available.
30310         * modules/login_tty (Depends-on): Add sys_ioctl.
30311         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30312
30313 2010-09-16  Bruno Haible  <bruno@clisp.org>
30314
30315         login_tty: Stricter unit test.
30316         * modules/login_tty-tests (Depends-on): Add tcgetsid.
30317         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
30318         and tcgetsid() after login_tty.
30319         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30320
30321 2010-09-16  Bruno Haible  <bruno@clisp.org>
30322
30323         New module 'tcgetsid'.
30324         * lib/tcgetsid.c: New file.
30325         * m4/tcgetsid.m4: New file.
30326         * modules/tcgetsid: New file.
30327         * modules/termios (Depends-on): Add c++defs, warn-on-use.
30328         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
30329         GNULIB_TCGETSID, HAVE_TCGETSID.
30330         * lib/termios.in.h: Include <sys/types.h>.
30331         (tcgetsid): New declaration.
30332         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
30333         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
30334         * doc/posix-functions/tcgetsid.texi: Mention the new module.
30335         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
30336
30337 2010-09-16  Bruno Haible  <bruno@clisp.org>
30338
30339         Tests for module 'termios'.
30340         * modules/termios-c++-tests: New file.
30341         * modules/termios-tests: New file.
30342         * tests/test-termios-c++.cc: New file.
30343         * tests/test-termios.c: New file.
30344
30345         New module 'termios'.
30346         * modules/termios: New file.
30347         * lib/termios.in.h: New file.
30348         * m4/termios_h.m4: New file.
30349         * doc/posix-headers/termios.texi: Mention the new module.
30350
30351 2010-09-16  Eric Blake  <eblake@redhat.com>
30352
30353         fdutimensat: add an atflag parameter
30354         * lib/fdutimensat.c (fdutimensat): Add new parameter.
30355         * lib/utimens.h (fdutimensat): Update prototype.
30356         * tests/test-fdutimensat.c: Adjust test to match.
30357         * NEWS: Document the change.
30358         Suggested by Paul Eggert.
30359
30360 2010-09-16  Bruno Haible  <bruno@clisp.org>
30361
30362         Fix typos in comments.
30363         * lib/striconveh.h: Fix typo in comment.
30364         * lib/login_tty.c (login_tty): Likewise.
30365
30366 2010-09-15  Bruno Haible  <bruno@clisp.org>
30367
30368         stdlib: clarify MirBSD WEXITSTATUS bug
30369         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
30370         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30371
30372 2010-09-15  Eric Blake  <eblake@redhat.com>
30373
30374         stdlib: work around MirBSD WEXITSTATUS bug
30375         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
30376         * modules/stdlib (Depends-on): Add sys_wait.
30377         * tests/test-sys_wait.c (main): Enhance test.
30378         * tests/test-stdlib.c (main): Likewise.
30379         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
30380
30381         docs: mention MacOS issue with WEXITSTATUS(constant)
30382         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
30383         issue.
30384         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
30385
30386         strnlen: add tests
30387         * modules/strnlen-tests: New file.
30388         * tests/test-strnlen.c: Likewise.
30389
30390 2010-09-14  Bruno Haible  <bruno@clisp.org>
30391
30392         unistr/base: Avoid link errors when module 'libunistring' is also used.
30393         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
30394         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
30395         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
30396         Declare also when HAVE_LIBUNISTRING is set.
30397         Reported by Pádraig Brady <P@draigbrady.com>.
30398
30399 2010-09-14  Eric Blake  <eblake@redhat.com>
30400
30401         test-rawmemchr: make more robust
30402         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
30403         (Depends-on, configure.ac): Add needed prerequisites to use it.
30404         * modules/memchr-tests (Files, Depends-on, configure.ac):
30405         Likewise, to avoid implicit reliance on memchr module prereqs.
30406         * tests/test-memchr.c (main): Ensure proper masking.
30407         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
30408         reads.
30409
30410         memchr: detect glibc Alpha bug
30411         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
30412         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
30413         Alpha.
30414         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
30415         * tests/test-memchr.c (main): Enhance test.
30416         Reported by Nelson H. F. Beebe.
30417
30418 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30419
30420         fts, getcwd, glob: audit for dirfd returning -1
30421         * lib/fts.c (opendir): Remove #define; no longer used.
30422         (opendirat): New arg PDIR_FD.  All callers changed.
30423         (fts_build, _opendir2): Use new opendirat to avoid the need for
30424         dirfd, or for checking whether dirfd returns a negative value.
30425         Don't use opendir; always use openat followed by fdopendir.
30426         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
30427         it.
30428         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
30429         returns -1 here.
30430         * modules/fts (Depends-on): Remove dirfd.
30431         * modules/getcwd (Depends-on): Likewise.
30432
30433 2010-09-13  Eric Blake  <eblake@redhat.com>
30434
30435         float: fix broken MirBSD header
30436         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
30437         * doc/posix-headers/float.texi (float.h): Document it.
30438
30439 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
30440
30441         fts: use O_NOFOLLOW to avoid race condition when opening a directory
30442         * lib/fts.c (opendirat): New arg extra_flags.
30443         (__opendir2): Use it to avoid following symlinks when opening
30444         a directory, if symlinks are not supposed to be followed.  See
30445         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
30446
30447         fdopendir: preserve argument fd before returning
30448         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
30449         (fdopendir_with_dup, fd_clone_opendir): New static functions.
30450         (fdopendir): Use them, arranging for FD to be open to the same
30451         directory that it was when it started.  (It might be temporarily
30452         closed while fdopendir is running, so this not thread- or
30453         signal-safe.)  Be careful to do the right thing even when file
30454         descriptors are scarce and dup fails with errno == EMFILE.  See
30455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
30456
30457 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
30458
30459         regex: Pass the system regex if its only problem is 32-bit regoff_t.
30460         * NEWS: Document change.
30461         * m4/regex.m4: Disable test for regoff_t size.
30462
30463 2010-09-13  Jim Meyering  <meyering@redhat.com>
30464
30465         fts: don't operate on an invalid file descriptor after failed dup
30466         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
30467         negative file descriptor.
30468
30469 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30470
30471         savedir: add streamsavedir, deprecate fdsavedir
30472         * NEWS: Mention deprecation of fdsavedir.
30473         * lib/savedir.c (streamsavedir): New extern function, whose name
30474         ends in "savedir" to be consistent with the others.  This differs
30475         from savedirstream in that it doesn't close its argument.  The
30476         next version of GNU tar will use this instead of fdsavedir, to
30477         avoid some race conditions and conserve file descriptors.
30478         (savedirstream): Reimplement as a wrapper around streamsavedir.
30479         (fdsavedir): Add a comment deprecating this function.  As far as
30480         I know, only GNU tar used it, and GNU tar doesn't need it any more.
30481         * lib/savedir.h (streamsavedir): New decl.
30482         (fdsavedir): Add a comment deprecating this.
30483
30484 2010-09-10  Bruno Haible  <bruno@clisp.org>
30485
30486         langinfo: Fix last commit.
30487         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
30488         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
30489         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30490
30491 2010-09-10  Bruno Haible  <bruno@clisp.org>
30492
30493         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
30494         * lib/progreloc.c (O_EXEC): Define fallback.
30495
30496 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
30497
30498         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
30499         * NEWS: Document recent changes to fcntl-h.
30500         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
30501         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
30502         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
30503         Similarly for O_SEARCH; this last was already true, but not documented.
30504         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
30505         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
30506         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
30507         Likewise.
30508         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
30509         is zero, not whether it is defined.
30510         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
30511         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
30512         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
30513
30514 2010-09-10  Bruno Haible  <bruno@clisp.org>
30515
30516         langinfo, nl_langinfo: Fix for IRIX 5.3.
30517         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
30518         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
30519         HAVE_LANGINFO_YESEXPR.
30520         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
30521         HAVE_LANGINFO_YESEXPR.
30522         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
30523         HAVE_LANGINFO_T_FMT_AMPM is 0.
30524         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
30525         HAVE_LANGINFO_YESEXPR is 0.
30526         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
30527         NOEXPR.
30528         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
30529         * doc/posix-functions/nl_langinfo.texi: Likewise.
30530         Reported by Eric Blake.
30531
30532 2010-09-10  Bruno Haible  <bruno@clisp.org>
30533
30534         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
30535         * doc/glibc-functions/login_tty.texi: Mention the include file problem
30536         on FreeBSD 8.0 and OpenBSD 4.6.
30537         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
30538         * m4/pty_h.m4 (gl_PTY_H): Likewise.
30539         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
30540         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
30541         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
30542         ac_includes_default.
30543         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
30544
30545 2010-09-09  Eric Blake  <eblake@redhat.com>
30546
30547         strsignal: work around NetBSD bug
30548         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
30549         * lib/string.in.h (includes): Likewise.
30550         * doc/posix-functions/strsignal.texi (strsignal): Document the
30551         bug.
30552         Reported by Nelson H. F. Beebe.
30553
30554         gnulib-tool: work with NetBSD /bin/sh
30555         * gnulib-tool (func_cache_var, func_cache_lookup_module)
30556         (func_get_description, func_get_comment, func_get_status)
30557         (func_get_notice, func_get_applicability, func_get_filelist)
30558         (func_get_dependencies, func_get_autoconf_early_snippet)
30559         (func_get_autoconf_snippet, func_get_automake_snippet)
30560         (func_get_include_directive, func_get_link_directive)
30561         (func_get_license, func_get_maintainer, func_import): Avoid
30562         shell syntax errors from parsing syntax extensions.
30563
30564 2010-09-09  Bruno Haible  <bruno@clisp.org>
30565
30566         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30567         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
30568         a reliable way to determine whether the 'alias' command works.
30569
30570 2010-09-08  Jim Meyering  <meyering@redhat.com>
30571
30572         init.sh: penalize a set-x-impaired shell; don't disqualify it
30573         * tests/init.sh: Too many shells corrupt application stderr when
30574         you set -x, so we can't afford to disqualify them, since at least
30575         on Irix-6.5, that would disqualify all bourne shells.
30576         Instead, use a two-pass approach.
30577         On the first pass, try to find a shell that meets the stricter
30578         condition that set -x does not corrupt stderr.
30579         If no shell meets the stricter condition, retest each candidate
30580         shell, but without that extra condition.  Finally, when
30581         VERBOSE=yes is requested and set -x might cause trouble, simply
30582         issue a warning and refrain from enabling debug output.
30583
30584 2010-09-08  Eric Blake  <eblake@redhat.com>
30585
30586         unsetenv: fix OpenBSD bug
30587         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
30588         * doc/posix-functions/unsetenv.texi (unsetenv): Update
30589         documentation.
30590         Reported by Jim Meyering.
30591
30592         strtod: work around IRIX 6.5 bug
30593         * lib/strtod.c (strtod): Reparse number on shorter string if
30594         exponent parse was invalid.
30595         * tests/test-strtod.c (main): Add check for "0x1p 2".
30596         Reported by Tom G. Christensen.
30597
30598         getopt: optimize previous patch
30599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
30600         empty variable.  Speed up awk script.
30601         Reported by Paolo Bonzini.
30602
30603 2010-09-08  Jim Meyering  <meyering@redhat.com>
30604
30605         test.sh: disqualify shells for which set -x corrupts stderr
30606         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
30607         and OpenBSD 4.7.  They make it so with "set -x", environment settings
30608         appear in stderr output.  For example, this command:
30609             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
30610         prints "P=1" on those two systems:
30611
30612 2010-09-08  Bruno Haible  <bruno@clisp.org>
30613
30614         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
30615         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
30616         commands, because some shells ignore redirections when there is an
30617         error in the command lookup.
30618         Reported by Eric Blake.
30619
30620 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
30621
30622         * lib/regex.h: Fix a mention of `regex_compile' (should be
30623         `re_compile_pattern').
30624         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
30625         (re_set_registers): Correct name of parameter in comment.
30626
30627         * doc/regex.texi: Add documentation for missing syntax flags.
30628         Remove commented-out documentation of defunct syntax option
30629         RE_NO_EMPTY_ALTS.
30630         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
30631         Add documentation of re_set_registers.
30632         Document trick to re-use a pattern buffer by setting fastmap manually.
30633         Update documentation of struct re_pattern_buffer per public members.
30634         Uncomment documentation of equivalence class operators and
30635         collating symbol operators, since they are now implemented,
30636         Explain leftmost-longest matching in relation to alternatives.
30637         Tidy documentation of substring matching.
30638         Remove POSIX documentation, which is done better in
30639         glibc, and refer the reader there. Keep BSD API documentation, as
30640         that is not readily available elsewhere.
30641
30642 2010-09-07  Eric Blake  <eblake@redhat.com>
30643
30644         getopt: handle POSIXLY_CORRECT set but not exported
30645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
30646         export state of POSIXLY_CORRECT, due to bash set -o posix.
30647         Reported by Dustin J. Mitchell.
30648
30649 2010-09-05  Bruno Haible  <bruno@clisp.org>
30650
30651         gnulib-tool: Highlight the changed options.
30652         * gnulib-tool (func_usage): Display the --import, --add-import,
30653         --remove-import explanations in bold font.
30654
30655 2010-09-06  Karl Berry  <karl@gnu.org>
30656
30657         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
30658
30659 2010-09-05  Bruno Haible  <bruno@clisp.org>
30660
30661         uniwidth/width: Update comment.
30662         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
30663         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
30664
30665 2010-09-05  Bruno Haible  <bruno@clisp.org>
30666
30667         isinf, isnan: Relax license.
30668         * modules/isinf (License): Change from GPL to LGPL, with consent from
30669         Ben Pfaff.
30670         * modules/isnan (License): Likewise.
30671         Requested by Ludovic Courtès.
30672
30673 2010-09-04  Bruno Haible  <bruno@clisp.org>
30674
30675         gnulib-tool: Help migration from --import to --add-import or --update.
30676         * gnulib-tool: Emit a verbose error message when --import is used
30677         without any module name.
30678
30679 2010-09-04  Bruno Haible  <bruno@clisp.org>
30680
30681         Update doc about gnulib-tool.
30682         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
30683         'gnulib-tool --update' in more detail.
30684         Reported by Eric Blake.
30685
30686 2010-09-04  Bruno Haible  <bruno@clisp.org>
30687
30688         gnulib-tool: Change --import. New options --add/remove-import.
30689         * gnulib-tool: New options --add-import, --remove-import.
30690         (func_usage): Document them.
30691         (have_associative): Define always.
30692         (func_import): In import mode, don't merge the specified settings with
30693         the cached settings. Implement remove-import mode.
30694         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
30695         Explain when to use them versus --import.
30696         (Simple update): Use --add-import instead of --import.
30697         * NEWS: Mention the change.
30698
30699 2010-09-04  Bruno Haible  <bruno@clisp.org>
30700
30701         * doc/gnulib-tool.texi (Initial import): Update paragraph about
30702         separate gnulib.mk.
30703
30704 2010-09-04  Bruno Haible  <bruno@clisp.org>
30705
30706         gnulib-tool: Don't talk about CVS any more.
30707         * gnulib-tool (func_usage, func_import): Write "version control"
30708         instead of CVS.
30709
30710 2010-09-04  Jim Meyering  <meyering@redhat.com>
30711
30712         maint.mk: avoid obscure sc_copyright_check failure in coreutils
30713         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
30714         false positives (whose names may be ill-chosen) when searching
30715         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
30716         would cause a false-positive.
30717
30718         avoid coreutils "make distcheck" failure
30719         Coreutils tests with an absolute build directory name that contains
30720         a space.  Not quoting this directory name caused a failure.
30721         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
30722         * tests/test-vc-list-files-cvs.sh: Likewise.
30723
30724 2010-09-04  Bruno Haible  <bruno@clisp.org>
30725
30726         gnulib-tool: Avoid error when run in a package without Makefile.am.
30727         * gnulib-tool: When collecting the m4dirs in a package that does not
30728         have a Makefile.am, eliminate those directories that contain no
30729         gnulib-cache.m4. Fix expression that counts these directories.
30730
30731 2010-09-04  Bruno Haible  <bruno@clisp.org>
30732
30733         update-copyright test: Improve output when perl is missing or too old.
30734         * tests/test-update-copyright.sh: Move test of Perl version down after
30735         the test whether Perl exists. Provide an explanation relating Perl's
30736         error message to Automake's SKIP: message.
30737
30738 2010-09-04  Bruno Haible  <bruno@clisp.org>
30739
30740         Don't augment PATH in TESTS_ENVIRONMENT.
30741         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
30742         set abs_aux_dir instead of augmenting PATH.
30743         * modules/vc-list-files-tests (Makefile.am): Likewise.
30744         * tests/test-update-copyright.sh: Augment PATH here.
30745         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
30746         path_prepend_.
30747         * tests/test-vc-list-files-git.sh: Likewise.
30748
30749 2010-09-04  Jim Meyering  <meyering@redhat.com>
30750
30751         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
30752         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
30753
30754 2010-09-04  Bruno Haible  <bruno@clisp.org>
30755
30756         strdup: Fix compilation error in C++ mode.
30757         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
30758         the macro.
30759
30760 2010-09-04  Bruno Haible  <bruno@clisp.org>
30761
30762         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
30763         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
30764         macro into a function.
30765         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30766
30767 2010-09-04  Bruno Haible  <bruno@clisp.org>
30768
30769         Set PATH_SEPARATOR the same way autoconf does.
30770         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
30771         the value of PATH_SEPARATOR the same way autoconf-generated configure
30772         scripts do.
30773         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
30774         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30775
30776 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
30777
30778         Set PATH_SEPARATOR the same way autoconf does.
30779         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
30780         the same way autoconf-generated configure scripts do.
30781         * posix-modules: Likewise.
30782
30783 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30784
30785         hash: fix safe_hasher const typo
30786         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
30787         const; otherwise, there is a type error later.
30788
30789 2010-09-02  Jim Meyering  <meyering@redhat.com>
30790
30791         test-update-copyright.sh: require perl 5.8.0
30792         * tests/test-update-copyright.sh: Require 5.8.0,
30793         which Tom G. Christensen has confirmed is adequate,
30794         while 5.6.1 is not.
30795
30796 2010-09-02  Eric Blake  <eblake@redhat.com>
30797
30798         tests: init.sh improvements for re-exec'ing with zsh
30799         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
30800         -vx through shell re-exec.
30801         Reported by Tom G. Christensen.
30802
30803         wctype: fix typo in previous commit
30804         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
30805         Reported by Ludovic Courtès.
30806
30807 2010-09-02  Jim Meyering  <meyering@redhat.com>
30808
30809         test-update-copyright.sh: skip test if Perl is too old
30810         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
30811         Reported by Tom G. Christensen.
30812
30813 2010-09-02  Bruno Haible  <bruno@clisp.org>
30814
30815         wctype: Avoid compilation error on IRIX 6.5.30.
30816         * lib/wctype.in.h (iswblank): Declare with a replacement if
30817         REPLACE_ISWBLANK is set.
30818         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
30819         declared. Set REPLACE_ISWBLANK.
30820         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
30821         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
30822         * doc/posix-headers/wctype.texi: Likewise.
30823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30824
30825 2010-09-01  Bruno Haible  <bruno@clisp.org>
30826
30827         New module 'socketlib'.
30828         * modules/socketlib: New file.
30829         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
30830         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
30831         * modules/sockets (Depends-on): Add socketlib.
30832         Suggested by Sam Steingold <sds@gnu.org>.
30833
30834 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30835
30836         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30837
30838         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30839         when one needs search access to a directory but not read access.
30840         On systems where it is available, it works in some cases where
30841         O_RDONLY does not, namely on directories that are searchable but
30842         not readable, and which need only to be searchable.  If O_SEARCH
30843         is not available, fall back to the traditional method of using
30844         O_RDONLY.
30845
30846         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30847         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30848         when opening a directory that needs only to be searchable.
30849         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30850         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30851         * lib/openat-proc.c (openat_proc_name): Likewise.
30852         * lib/openat.c (openat_needs_fchdir): Likewise.
30853         * lib/save-cwd.c (save_cwd): Likewise.
30854         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30855
30856 2010-08-28  Bruno Haible  <bruno@clisp.org>
30857
30858         New module 'host-cpu-c-abi'.
30859         * modules/host-cpu-c-abi: New file.
30860         * m4/host-cpu-c-abi.m4: New file, based on part of
30861         clisp/src/m4/general.m4.
30862         Requested by Sam Steingold <sds@gnu.org>.
30863
30864 2010-08-31  Eric Blake  <eblake@redhat.com>
30865         and Jim Meyering  <meyering@redhat.com>
30866
30867         hash: factor, and guard against misbehaving hasher function
30868         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30869         of table->hasher's return value.  Also protect against a hash value
30870         so large that adding it to table->bucket results in a NULL pointer.
30871         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30872         Use it in place of open-coded check-and-abort.
30873
30874 2010-08-30  Bruno Haible  <bruno@clisp.org>
30875
30876         hash: silence spurious clang warning
30877         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30878         Reported by Eric Blake.
30879
30880 2010-08-30  Eric Blake  <eblake@redhat.com>
30881
30882         strstr, memmem, strcasestr: avoid leaked shell message
30883         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30884         FreeBSD.
30885         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30887
30888         tests: silence clang warning
30889         * tests/test-malloca.c (do_allocation): Avoid dead store.
30890
30891 2010-08-29  Bruno Haible  <bruno@clisp.org>
30892
30893         gettext: Fix recent mistake.
30894         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30895
30896 2010-08-29  Bruno Haible  <bruno@clisp.org>
30897
30898         selinux-h: Offer a --without-selinux option.
30899         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30900         --without-selinux was specified, skip all tests and define
30901         HAVE_SELINUX_SELINUX_H to 0.
30902         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30903         set LIB_SELINUX to empty.
30904         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30905         gl_LIBSELINUX. If --without-selinux was specified, replace
30906         selinux/context.h.
30907         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30908
30909 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30910             Bruno Haible  <bruno@clisp.org>
30911
30912         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30913         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30914         of HAVE_REALLOC.
30915         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30916         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30917         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30918         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30919
30920 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30921             Bruno Haible  <bruno@clisp.org>
30922
30923         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30924         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30925         HAVE_CALLOC.
30926         * lib/xmalloc.c: Update accordingly.
30927         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30928         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30929         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30930
30931 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30932             Bruno Haible  <bruno@clisp.org>
30933
30934         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30935         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30936         HAVE_MALLOC.
30937         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30938         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30939         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30940
30941 2010-08-29  Bruno Haible  <bruno@clisp.org>
30942
30943         Update modules list.
30944         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30945         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30946         (String handling <string.h>): Add astrxfrm.
30947         (File system functions): Add readlinkat.
30948
30949 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30950
30951         Tests for module 'realloc-gnu'.
30952         * modules/realloc-gnu-tests: New file.
30953         * tests/test-realloc-gnu.c: New file.
30954
30955         Tests for module 'calloc-gnu'.
30956         * modules/calloc-gnu-tests: New file.
30957         * tests/test-calloc-gnu.c: New file.
30958
30959         Tests for module 'malloc-gnu'.
30960         * modules/malloc-gnu-tests: New file.
30961         * tests/test-malloc-gnu.c: New file.
30962
30963 2010-08-28  Bruno Haible  <bruno@clisp.org>
30964
30965         Rename module 'realloc' -> 'realloc-gnu'.
30966         * modules/realloc-gnu: New file, copied from modules/realloc.
30967         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30968         obsolete.
30969         * modules/mgetgroups (Depends-on): Update.
30970         * doc/posix-functions/realloc.texi: Update.
30971         * NEWS: Mention the change.
30972
30973         Rename module 'calloc' -> 'calloc-gnu'.
30974         * modules/calloc-gnu: New file, copied from modules/calloc.
30975         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30976         obsolete.
30977         * doc/posix-functions/calloc.texi: Update.
30978         * NEWS: Mention the change.
30979
30980         Rename module 'malloc' -> 'malloc-gnu'.
30981         * modules/malloc-gnu: New file, copied from modules/malloc.
30982         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30983         obsolete.
30984         * modules/argp (Depends-on): Update.
30985         * modules/regex (Depends-on): Update.
30986         * doc/posix-functions/malloc.texi: Update.
30987         * NEWS: Mention the change.
30988
30989 2010-08-28  Eric Blake  <eblake@redhat.com>
30990
30991         pread, pwrite: add missing dependency
30992         * modules/pread (Depends-on): Add extensions.
30993         * modules/pwrite (Depends-on): Likewise.
30994
30995 2010-08-28  Bruno Haible  <bruno@clisp.org>
30996
30997         unistr/u*-strchr: Fix tests dependencies.
30998         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30999         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31000         Reported by Ian Beckwith <ianb@erislabs.net>.
31001
31002 2010-08-28  Bruno Haible  <bruno@clisp.org>
31003
31004         read-file: Don't occupy too much unused memory.
31005         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31006
31007 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31008             Eric Blake  <eblake@redhat.com>
31009             Bruno Haible  <bruno@clisp.org>
31010
31011         read-file: Avoid memory reallocations with regular files.
31012         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31013         (fread_file): With regular files, use the remaining length as the
31014         initial buffer size.  Check against overflow.
31015         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31016         sys_stat.
31017
31018 2010-08-28  Bruno Haible  <bruno@clisp.org>
31019
31020         ftello: Relax license.
31021         * modules/ftello (License): Relax to LGPLv2+.
31022         Reported by Eric Blake.
31023
31024 2010-08-28  Bruno Haible  <bruno@clisp.org>
31025
31026         Avoid relocwrapper link errors due to gnulib replacement functions.
31027         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31028         function.
31029         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31030
31031 2010-08-28  Bruno Haible  <bruno@clisp.org>
31032
31033         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31034         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31035         defined.
31036         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31037         Suggested by Eric Blake.
31038
31039 2010-08-28  Bruno Haible  <bruno@clisp.org>
31040
31041         sys_socket, netdb: Ensure socklen_t gets defined.
31042         * modules/sys_socket (Depends-on): Add socklen.
31043         * modules/netdb (Depends-on): Likewise.
31044         * modules/getaddrinfo (Depends-on): Remove socklen.
31045         * modules/getsockopt (Depends-on): Likewise.
31046         * modules/setsockopt (Depends-on): Likewise.
31047         * tests/test-sys_socket.c: Check that socklen_t is defined.
31048         * tests/test-netdb.c: Likewise.
31049         * m4/socklen.m4: Update comments.
31050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31051
31052 2010-08-27  Eric Blake  <eblake@redhat.com>
31053
31054         login_tty: add missing dependency
31055         * modules/login_tty (Depends-on): Add pty.
31056
31057 2010-08-26  Eric Blake  <eblake@redhat.com>
31058
31059         lib-symbol-versions: fix m4 quoting
31060         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31061         format for AC_LINK_IFELSE.
31062
31063         glob: fix compile test
31064         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
31065
31066         btowc: fix missing file
31067         * modules/btowc (Files): Also ship locale-fr.m4.
31068
31069         lseek: fix link test
31070         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
31071         AC_LINK_IFELSE.
31072
31073         include_next: silence autoconf 2.68 warning
31074         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
31075         AC_COMPILE_IFELSE as special.
31076         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
31077         autoconf < 2.68.
31078
31079         acl: fix compilation test
31080         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
31081         AC_COMPILE_IFELSE.
31082
31083 2010-08-26  Bruno Haible  <bruno@clisp.org>
31084
31085         Modernize AC_TRY_RUN invocations.
31086         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
31087         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
31088         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
31089         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
31090         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
31091         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
31093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
31094         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31095         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31096         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
31097         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
31098         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
31099         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31100         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
31101         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
31102         gl_MBRLEN_NUL_RETVAL): Likewise.
31103         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
31104         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
31105         Likewise.
31106         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
31107         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
31108         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
31109         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
31110         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
31111         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
31112         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
31113         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31114         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
31115         Likewise.
31116         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
31117         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
31118         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31119         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31120         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31121         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
31122         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
31123         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
31124         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
31125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31126
31127 2010-08-26  Bruno Haible  <bruno@clisp.org>
31128
31129         Modernize AC_TRY_LINK invocations.
31130         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
31131         AC_TRY_LINK.
31132         * m4/argp.m4 (gl_ARGP): Likewise.
31133         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
31134         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
31135         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
31136         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31137         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31138         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
31139         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
31140         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
31141         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31142         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31143         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31144         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
31145         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
31146         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31147         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
31148         * m4/hostent.m4 (gl_HOSTENT): Likewise.
31149         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
31150         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
31151         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
31152         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
31153         Likewise.
31154         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
31155         Likewise.
31156         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
31157         Likewise.
31158         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
31159         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
31160         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
31161         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31162         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
31163         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31164         * m4/servent.m4 (gl_SERVENT): Likewise.
31165         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
31166         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
31167         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
31168         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
31169         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
31170         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
31171         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
31172         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
31173         * modules/tsearch-tests (configure.ac): Likewise.
31174
31175 2010-08-26  Bruno Haible  <bruno@clisp.org>
31176
31177         Modernize AC_TRY_COMPILE invocations.
31178         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
31179         AC_TRY_COMPILE.
31180         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
31181         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
31182         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
31183         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
31184         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
31185         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
31186         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31187         * m4/lock.m4 (gl_LOCK): Likewise.
31188         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
31189         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31190         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
31191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31192         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
31193         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
31194         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31195         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
31196         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
31197         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
31198         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
31199         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31200         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
31201         extraneous semicolon.
31202
31203 2010-08-26  Jim Meyering  <meyering@redhat.com>
31204
31205         stat-time: relax license LGPL
31206         * modules/stat-time (License): Change from GPL to LGPL,
31207         with consent from all contributors, for use in libguile.
31208         Requested by Ludovic Courtès.
31209
31210 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
31211
31212         poll: return immediately on POLLHUP.
31213         * lib/poll.c (poll): Always set timeout before wait_timeout is
31214         computed.
31215
31216 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31217
31218         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
31219         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
31220         rmdir ("dir/.//"), unlinkat.
31221
31222 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31223
31224         stdbool: avoid spurious failure with modern xlc
31225         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31226
31227 2010-08-24  Bruno Haible  <bruno@clisp.org>
31228
31229         getloadavg: simplify code
31230         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
31231         gl_have_func. Update comments.
31232
31233 2010-08-24  Eric Blake  <eblake@redhat.com>
31234
31235         getloadavg: don't define SVR4 on cygwin
31236         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
31237         only define SVR4 when -lkvm is required.
31238         Reported by Yaakov Selkowitz.
31239
31240 2010-08-24  Bruno Haible  <bruno@clisp.org>
31241
31242         priv-set: fix comment
31243         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
31244
31245 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31246
31247         priv-set: fix comments
31248         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
31249         to match code, as suggested by David Bartley in:
31250         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
31251
31252 2010-08-23  Eric Blake  <eblake@redhat.com>
31253
31254         stdbool: avoid rejecting clang
31255         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
31256         * tests/test-stdbool.c: Enable more tests if using the system
31257         <stdbool.h> instead of the gnulib replacement.
31258         (main): Move xlc bug test to a runtime test for all compilers.
31259         Reported by Anders Kaseorg.
31260
31261         argz: fix shell quoting issue
31262         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
31263         Reported by Charles Wilson.
31264
31265 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
31266             Erik Faye-Lund <kusmabite@gmail.com>
31267
31268         poll, select: handle ERROR_BROKEN_PIPE.
31269         * lib/poll.c (win32_compute_revents): Return POLLHUP when
31270         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31271         * lib/select.c (win32_compute_revents): Do not mark a pipe
31272         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
31273
31274 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
31275
31276         fts: allow compilation with C++
31277         * lib/fts_.h: Specify extern "C" linkage with C++.
31278
31279 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31280
31281         Fix gnulib-tool sed script de-commentation for AIX sed.
31282         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
31283         sed.
31284
31285 2010-08-17  Eric Blake  <eblake@redhat.com>
31286
31287         test-stddef: test for (some) offsetof bugs
31288         * tests/test-stddef.c: Enhance test to ensure correct type of
31289         offsetof.
31290         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
31291         that we are not fixing at this time.
31292
31293 2010-08-15  Bruno Haible  <bruno@clisp.org>
31294
31295         stpncpy: Allow stpncpy to be defined as a macro.
31296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
31297         if it's already correctly declared.
31298         * lib/string.in.h (stpncpy): Undefine before redefining.
31299         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
31300
31301 2010-08-14  Bruno Haible  <bruno@clisp.org>
31302
31303         Rename module 'memxfrm' to 'amemxfrm'.
31304         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
31305         (amemxfrm): Renamed from memxfrm.
31306         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
31307         (amemxfrm): Renamed from memxfrm.
31308         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
31309         * NEWS: Mention the change.
31310         * MODULES.html.sh (String handling <string.h>): Update.
31311         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
31312         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
31313         * lib/unicase/u16-casexfrm.c: Likewise.
31314         * lib/unicase/u32-casexfrm.c: Likewise.
31315         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
31316         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
31317         * lib/uninorm/u16-normxfrm.c: Likewise.
31318         * lib/uninorm/u32-normxfrm.c: Likewise.
31319         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
31320         memxfrm.
31321         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
31322         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
31323         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
31324         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
31325         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
31326         Suggested by Paul Eggert.
31327
31328 2010-08-14  Bruno Haible  <bruno@clisp.org>
31329
31330         Tests for module 'astrxfrm'.
31331         * modules/astrxfrm-tests: New file.
31332         * tests/test-astrxfrm.c: New file.
31333
31334         New module 'astrxfrm'.
31335         * lib/astrxfrm.h: New file.
31336         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
31337         * modules/astrxfrm: New file.
31338
31339 2010-08-14  Reuben Thomas <rrt@sc3d.org>
31340
31341         regex: Tweak doc.
31342         * doc/regex.texi (Overview): Don't mention regex.c.
31343         (GNU Regular Expression Compiling): Likewise.
31344         (Match-end-of-line Operator): Mention 'not_eol'.
31345
31346 2010-08-14  Brian Gough  <bjg@gnu.org>
31347             Bruno Haible  <bruno@clisp.org>
31348
31349         git-merge-changelog: add doc relating to use with bzr and hg.
31350         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
31351
31352 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
31353
31354         pthread: fix pthread.h creation for srcdir != builddir
31355         * modules/pthread (Makefile.am): Fix the rule to work also in a
31356         non-srcdir build.
31357
31358 2010-08-13  Karl Berry  <karl@gnu.org>
31359
31360         * doc/regex.texi (Predefined Syntaxes): @smallexample.
31361         * doc/posix-*/*: force line break before @url of POSIX
31362         specifications.
31363         Suggested by Werner Lemberg.
31364
31365 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31366
31367         strtod: fix const diagnostic
31368         * lib/strtod.c (strtod): Don't assign const char * to char *,
31369         as this elicits a warning from GCC when warnings are enabled.
31370
31371 2010-08-10  Pádraig Brady <P@draigbrady.com>
31372         and Eric Blake  <eblake@redhat.com>
31373
31374         copy-acl: ignore ENOTSUP on HP-UX
31375         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
31376         so that it is available for HP-UX.
31377         * lib/copy-acl.c (qcopy_acl): Use it.
31378         Reported by Patrick M. Callahan.
31379
31380 2010-08-10  Eric Blake  <eblake@redhat.com>
31381
31382         open, chown: relax license
31383         * modules/open (License): Change to LGPLv2+, with consent by all
31384         authors, for use in augeas.
31385         * modules/chown (License): Likewise.
31386         * modules/lchown (Likewise): Likewise.
31387         Requested by Adam Stokes.
31388
31389 2010-08-09  Karl Berry  <karl@gnu.org>
31390
31391         * build-aux/ar-lib: new file, import from Automake.
31392         * config/srclist.txt: autocheck for updates.
31393
31394 2010-08-09  Eric Blake  <eblake@redhat.com>
31395
31396         readlinkat: adjust client modules
31397         * modules/areadlinkat (Depends-on): Use readlinkat, not
31398         symlinkat.
31399         * modules/areadlinkat-with-size (Depends-on): Likewise.
31400
31401         mknod: be more vocal about danger of running tests as root
31402         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
31403         root, since that is just asking for problems.
31404         Suggested by Bruno Haible, based on a report by Rainer Tammer.
31405
31406         readlinkat: split into its own module
31407         * modules/symlinkat: Split readlinkat...
31408         * modules/readlinkat: ...into separate module.
31409         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
31410         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
31411         * lib/symlinkat.c (readlinkat): Move...
31412         * lib/readlinkat.c: ...into new file.
31413         * modules/symlinkat-tests: Split readlinkat test...
31414         * modules/readlinkat-tests: ...into separate module.
31415         * tests/test-symlinkat.c: Split...
31416         * tests/test-readlinkat.c: ...into new file.
31417         * NEWS: Document the split.
31418         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31419         * lib/unistd.in.h (readlinkat): Likewise.
31420         Suggested by Bruno Haible.
31421
31422 2010-08-08  Bruno Haible  <bruno@clisp.org>
31423
31424         memxfrm: Speed up.
31425         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
31426         that usually only one call to strxfrm is necessary for each string
31427         part.
31428         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31429
31430 2010-08-07  Karl Berry  <karl@gnu.org>
31431
31432         * doc/posix-headers/limits.texi,
31433         * doc/posix-functions/malloc.texi,
31434         * doc/posix-functions/strsignal.texi: missing @item.
31435         * doc/ld-version-script.texi: spurious leading i.
31436         * doc/regex.texi (Interval Operators): no commas inside @var.
31437
31438 2010-08-01  Bruno Haible  <bruno@clisp.org>
31439
31440         Integrate the regex documentation.
31441         * doc/gnulib.texi: Define 'cn' index.
31442         (Regular expressions): New a chapter that includes regex.texi and
31443         regexprops-generic.texi.
31444         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
31445         syntax.
31446
31447         Whitespace cleanup.
31448         * doc/regex.texi: Remove trailing spaces.
31449
31450         Add regex documentation.
31451         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
31452         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
31453         Written by Kathy A. Hargreaves and Karl Berry.
31454
31455 2010-08-01  Bruno Haible  <bruno@clisp.org>
31456
31457         link: Update documentation.
31458         * doc/posix-functions/link.texi: Update regarding Solaris.
31459
31460 2010-07-31  Bruno Haible  <bruno@clisp.org>
31461
31462         Update modules list.
31463         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
31464         (String handling <string.h>): Add memcmp2, memxfrm.
31465         (Container data structures): Add xlist, xsublist, xoset.
31466         (Core language properties): Add alignof, unused-parameter.
31467         (Process control, Numeric conversion functions <stdlib.h>): Renamed
31468         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
31469         (Unibyte characters <ctype.h>): New section.
31470         (String handling <string.h>): New section.
31471         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
31472         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
31473         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
31474         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
31475         tan, tanh, tanl, y0, y1, yn.
31476         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
31477         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
31478         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
31479         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
31480         unlockpt, vdprintf, vdprintf-posix.
31481         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
31482         (File system functions): Add concat-filename, sys_file, sys_ioctl,
31483         xconcat-filename.
31484         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
31485         getdtablesize, pipe2, pipe2-safer.
31486         (Security): New section.
31487         (Networking functions): Add accept4.
31488         (Signal handling): Add sigpipe.
31489         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
31490         mbmemcasecoll.
31491         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
31492         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
31493         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
31494         pipe-filter-ii.
31495         (Misc): Add argp-version-etc, login_tty, parse-duration.
31496
31497 2010-07-31  Bruno Haible  <bruno@clisp.org>
31498
31499         Improve doc in MODULES.html.
31500         * modules/linkat (Description): Add the word "function".
31501         * modules/mkfifo (Description): Likewise.
31502         * modules/mknod (Description): Likewise.
31503         * modules/remove (Description): Likewise.
31504         * modules/renameat (Description): Likewise.
31505         * modules/stat (Description): Likewise.
31506         * modules/symlink (Description): Likewise.
31507         * modules/unlink (Description): Likewise.
31508
31509 2010-07-31  Bruno Haible  <bruno@clisp.org>
31510
31511         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
31512         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
31513         option --enable/disable-c++ instead of --enable/disable-cxx.
31514         * NEWS: Mention the change.
31515
31516 2010-07-31  Bruno Haible  <bruno@clisp.org>
31517
31518         readlink, areadlink: Relax test a bit.
31519         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
31520         alternative to ENOTDIR.
31521         * tests/test-areadlink.h (test_areadlink): Likewise.
31522         Reported by Rainer Tammer.
31523
31524 2010-07-31  Bruno Haible  <bruno@clisp.org>
31525
31526         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
31527         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
31528         character, perform the search using U_STRCHR.
31529         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
31530         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
31531         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
31532         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
31533         Suggested by Paolo Bonzini.
31534
31535 2010-07-31  Bruno Haible  <bruno@clisp.org>
31536
31537         unistr/u*-strstr: Fix dependencies.
31538         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
31539         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
31540         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
31541
31542 2010-07-31  Bruno Haible  <bruno@clisp.org>
31543
31544         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
31545         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
31546         the beginning of the loop.
31547         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
31548         cases in 'switch' statement.
31549
31550         unistr/u8-strchr: Fix several bugs.
31551         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
31552         the string. When not found, return NULL, not a pointer near the end.
31553
31554         More tests for unistr/u8-strchr.
31555         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
31556         that the function does not read past the first occurrence of the byte
31557         being searched.
31558         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
31559         * tests/unistr/test-u16-strchr.c (main): New function.
31560         * tests/unistr/test-u32-strchr.c (main): New function.
31561
31562 2010-07-31  Bruno Haible  <bruno@clisp.org>
31563
31564         posix-modules: Ignore backup files of documentation files.
31565         * posix-modules: grep only through files named *.texi.
31566
31567 2010-07-31  Bruno Haible  <bruno@clisp.org>
31568
31569         symlinkat: Fix documentation.
31570         * doc/posix-functions/readlinkat.texi: Fix module name.
31571
31572 2010-07-31  Bruno Haible  <bruno@clisp.org>
31573
31574         fchownat: Replace also when chown has the trailing slash bug.
31575         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
31576         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
31577         introduced on 2010-04-10.
31578         Reported by Rainer Tammer.
31579
31580 2010-07-31  Bruno Haible  <bruno@clisp.org>
31581
31582         linkat: Work around AIX 7.1 bug.
31583         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
31584         whether linkat handles trailing slash correctly. If not, replace linkat
31585         and define LINKAT_TRAILING_SLASH_BUG.
31586         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
31587         check whether (fd1,file1) points to a directory if file1 or file2 ends
31588         in a slash. Code taken from lib/link.c.
31589         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
31590         Reported by Rainer Tammer.
31591
31592 2010-07-31  Bruno Haible  <bruno@clisp.org>
31593
31594         Correctly determine whether pow is available in libc on AIX 7 with xlc.
31595         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
31596         This disables an xlc optimization that was causing wrong test results.
31597         Reported by Rainer Tammer.
31598
31599 2010-07-31  Bruno Haible  <bruno@clisp.org>
31600
31601         iconv: Work around AIX 6.1..7.1 bug.
31602         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
31603         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
31604         cross-compiling, guess no on all versions of AIX.
31605         Reported by Rainer Tammer.
31606
31607 2010-07-31  Bruno Haible  <bruno@clisp.org>
31608
31609         readlink: Relax test a bit.
31610         * tests/test-readlink.h (test_readlink): Allow different errno value
31611         when readlink is called with a file name that ends in / and refers to
31612         a file.
31613         Suggested by Eric Blake.
31614         Reported by Rainer Tammer.
31615
31616 2010-07-31  Bruno Haible  <bruno@clisp.org>
31617
31618         copysign: Does not require -lm on glibc systems.
31619         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
31620         gl_COMMON_DOUBLE_MATHFUNC.
31621         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
31622
31623 2010-07-31  Bruno Haible  <bruno@clisp.org>
31624
31625         duplocale: Work around AIX 7.1 bug.
31626         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
31627         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
31628         * lib/duplocale.c (rpl_duplocale): Update comment.
31629         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
31630         Reported by Rainer Tammer.
31631
31632 2010-07-30  Bruno Haible  <bruno@clisp.org>
31633
31634         dirfd: Avoid link error on AIX 7.1.
31635         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
31636         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
31637         exist, set REPLACE_DIRFD.
31638         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
31639         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
31640         * doc/posix-functions/dirfd.texi: Update.
31641         Reported by Rainer Tammer.
31642
31643 2010-07-30  Eric Blake  <eblake@redhat.com>
31644
31645         strtod: next round of AIX fixes
31646         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
31647         exponent.
31648         * tests/test-strtod.c (main): Enhance tests.
31649         * doc/posix-functions/strtod.texi (strtod): Document next bug.
31650         Reported by Rainer Tammer.
31651
31652         futimens: fix configure check
31653         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
31654         Reported by Bruno Haible.
31655
31656 2010-07-30  Bruno Haible  <bruno@clisp.org>
31657
31658         getline: Update regarding AIX.
31659         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
31660         Reported by Rainer Tammer.
31661
31662 2010-07-30  Bruno Haible  <bruno@clisp.org>
31663
31664         wcwidth: Drop replacement on AIX 7.
31665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
31666         AIX 7.
31667         Reported by Rainer Tammer.
31668
31669 2010-07-30  Bruno Haible  <bruno@clisp.org>
31670
31671         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
31672         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
31673         a 'char *'.
31674         Reported by Rainer Tammer.
31675
31676 2010-07-30  Bruno Haible  <bruno@clisp.org>
31677
31678         unlink: Update regarding AIX.
31679         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
31680         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
31681         Reported by Rainer Tammer.
31682
31683 2010-07-30  Bruno Haible  <bruno@clisp.org>
31684
31685         symlink: Update regarding AIX.
31686         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
31687         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
31688         Reported by Rainer Tammer.
31689
31690 2010-07-30  Bruno Haible  <bruno@clisp.org>
31691
31692         strndup: Update regarding AIX.
31693         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
31694         AIX 7.
31695         Reported by Rainer Tammer.
31696
31697 2010-07-30  Bruno Haible  <bruno@clisp.org>
31698
31699         stat: Update regarding AIX.
31700         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
31701         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
31702         Reported by Rainer Tammer.
31703
31704 2010-07-30  Bruno Haible  <bruno@clisp.org>
31705
31706         truncl: Fix autoconf test.
31707         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
31708         whether truncl works.
31709         Reported by Rainer Tammer.
31710
31711 2010-07-30  Bruno Haible  <bruno@clisp.org>
31712
31713         round: Update regarding AIX.
31714         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
31715         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
31716         Reported by Rainer Tammer.
31717
31718 2010-07-30  Bruno Haible  <bruno@clisp.org>
31719
31720         rename: Update regarding AIX.
31721         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
31722         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
31723         Reported by Rainer Tammer.
31724
31725 2010-07-30  Bruno Haible  <bruno@clisp.org>
31726
31727         printf.m4: Update regarding AIX.
31728         * m4/printf.m4: Update comments regarding AIX.
31729         Reported by Rainer Tammer.
31730
31731 2010-07-30  Bruno Haible  <bruno@clisp.org>
31732
31733         iconv: Update regarding AIX.
31734         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
31735         AIX 7.
31736         Reported by Rainer Tammer.
31737
31738 2010-07-30  Bruno Haible  <bruno@clisp.org>
31739
31740         getopt: Update regarding AIX.
31741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
31742         no on AIX.
31743         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
31744         Reported by Rainer Tammer.
31745
31746 2010-07-30  Bruno Haible  <bruno@clisp.org>
31747
31748         ldexpl; Update regarding AIX.
31749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
31750         on AIX 7.
31751         Reported by Rainer Tammer.
31752
31753 2010-07-30  Bruno Haible  <bruno@clisp.org>
31754
31755         frexpl: Update regarding AIX.
31756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
31757         on AIX 7.
31758         Reported by Rainer Tammer.
31759
31760 2010-07-30  Bruno Haible  <bruno@clisp.org>
31761
31762         open, fopen: Update regarding AIX.
31763         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
31764         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
31765         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
31766         * doc/posix-functions/fopen.texi: Likewise.
31767         Reported by Rainer Tammer.
31768
31769 2010-07-30  Bruno Haible  <bruno@clisp.org>
31770
31771         chown: Update doc regarding AIX.
31772         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
31773         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
31774         Reported by Rainer Tammer.
31775
31776 2010-07-30  Eric Blake  <eblake@redhat.com>
31777
31778         strtod: fix bug in replacement function on AIX
31779         * lib/strtod.c (strtod): Special case broken "0x" parse in
31780         underlying strtod.
31781         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
31782         * doc/posix-functions/strtod.texi (strtod): Likewise.
31783         Reported by Rainer Tammer.
31784
31785 2010-07-30  Bruno Haible  <bruno@clisp.org>
31786
31787         mbrlen: Fix cross-compilation guess for AIX.
31788         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
31789         guess. Leftover from 2008-12-22.
31790
31791 2010-07-30  Bruno Haible  <bruno@clisp.org>
31792
31793         mbrtowc: Fix cross-compilation guess for AIX.
31794         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
31795         guess. Leftover from 2008-12-21.
31796
31797 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
31798
31799         init.sh: work around trap limitation of some shells
31800         * tests/init.sh (setup_): Move exit trap outside of shell function.
31801
31802 2010-07-29  Eric Blake  <eblake@redhat.com>
31803
31804         strtod: aid debugging
31805         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
31806         understanding why strtod is rejected.
31807
31808 2010-07-28  Bruno Haible  <bruno@clisp.org>
31809
31810         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
31811         * lib/unistr/u8-chr.c: Include <string.h>.
31812         * tests/unistr/test-u8-chr.c: Likewise.
31813         * tests/unistr/test-u16-chr.c: Likewise.
31814         * tests/unistr/test-u32-chr.c: Likewise.
31815         * tests/unistr/test-u8-strchr.c: Likewise.
31816         * tests/unistr/test-u16-strchr.c: Likewise.
31817         * tests/unistr/test-u32-strchr.c: Likewise.
31818         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
31819         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
31820         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
31821         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
31822
31823 2010-07-28  Bruno Haible  <bruno@clisp.org>
31824
31825         Use spaces for indentation, not tabs.
31826         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
31827
31828 2010-07-27  Bruno Haible  <bruno@clisp.org>
31829
31830         mbspcasecmp: Fix function specification.
31831         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31832         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31833         Reported by Eric Blake <eblake@redhat.com>.
31834
31835 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31836
31837         timespec: use cast and not conditional, as truncation isn't possible
31838         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31839         instead of a conditional.  Comment about the situation in more detail.
31840         This undoes most of the 2009-10-29 patch.
31841
31842 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31843
31844         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31845         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31846         * lib/unistr/u8-strchr.c: Likewise.
31847         * modules/unistr/u8-chr: Depend on memchr.
31848
31849         unistr/u*-strchr: add tests
31850         * modules/unistr/u8-strchr-tests: New file.
31851         * modules/unistr/u16-strchr-tests: New file.
31852         * modules/unistr/u32-strchr-tests: New file.
31853         * tests/unistr/test-strchr.h: New file.
31854         * tests/unistr/test-u8-strchr.c: New file.
31855         * tests/unistr/test-u16-strchr.c: New file.
31856         * tests/unistr/test-u32-strchr.c: New file.
31857
31858         unistr/u*-chr: test multibyte sequences more
31859         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31860         test vector.
31861         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31862         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31863         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31864
31865         unistr/u*-chr: test multibyte sequences
31866         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31867
31868         unistr/u*-chr: prepare for multibyte tests
31869         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31870         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31871         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31872         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31873         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31874         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31875
31876 2010-07-18  Bruno Haible  <bruno@clisp.org>
31877
31878         unistr/u8-strchr: Optimize non-ASCII argument case.
31879         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31880         because the first byte often matches anyway.
31881         Reported by Pádraig Brady <P@draigbrady.com>.
31882
31883 2010-07-15  Karl Berry  <karl@gnu.org>
31884
31885         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31886
31887 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31888
31889         getcwd: on Solaris, work better if ancestors are inaccessible
31890         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31891         buffer and size, try again with a large buffer.  This works better
31892         on Solaris, since its getcwd succeeds even if the path to the root
31893         is inaccessible, and this is helpful in common cases such as .zfs
31894         hidden directories.  Problem reported by J Chapman Flack in
31895         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31896         Use system getcwd if it's declared, not merely if it's partly
31897         working; use the partly-working test only to avoid needless effort
31898         if the system getcwd fails.
31899         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31900         comment that was already obsolete and is now even more obsolete.
31901         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31902         now might call strdup.
31903
31904 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31905
31906         pthread: Add enough so that coreutils/src/sort.c compiles.
31907         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31908         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31909         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31910         Include <sys/types.h>, in case it defines pthread_t.
31911         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31912         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31913         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31914         (pthread_rwlockattr_t, pthread_spinlock_t):
31915         New typedefs, if HAVE_PTHREAD_T is not defined.
31916         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31917         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31918         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31919         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31920         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31921         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31922         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31923         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31924         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31925         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31926         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31927         New macros.
31928         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31929         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31930         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31931         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31932         (pthread_spin_unlock): New dummy functions.
31933         (pthread_create): Return EAGAIN; don't set errno.
31934         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31935         require AC_C_INLINE.
31936         * modules/pthread (Depends-on): Add sched, time.
31937         (pthread.h): Use AM_V_GEN.
31938
31939 2010-07-13  Bruno Haible  <bruno@clisp.org>
31940
31941         striconveh: Don't malloc memory if the result buffer is sufficient.
31942         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31943         buffer if its size is sufficient.
31944         Reported by Ludovic Courtès <ludo@gnu.org>.
31945
31946 2010-07-13  Bruno Haible  <bruno@clisp.org>
31947
31948         strtod: Add safety check.
31949         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31950
31951 2010-07-12  Bruno Haible  <bruno@clisp.org>
31952
31953         Unify tests that set gl_cv_func_ldexpl_no_libm.
31954         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31955         gl_FUNC_LDEXPL.
31956         (gl_FUNC_LDEXPL): Invoke it.
31957         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31958
31959 2010-07-12  Bruno Haible  <bruno@clisp.org>
31960
31961         Unify tests that set gl_cv_func_ldexp_no_libm.
31962         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31963         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31964         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31965         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31966         * modules/strtod (Files): Add m4/ldexp.m4.
31967
31968 2010-07-12  Bruno Haible  <bruno@clisp.org>
31969
31970         Unify tests that set gl_cv_func_frexpl_no_libm.
31971         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31972         gl_FUNC_FREXPL_NO_LIBM.
31973         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31974         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31975
31976 2010-07-12  Bruno Haible  <bruno@clisp.org>
31977
31978         Unify tests that set gl_cv_func_frexp_no_libm.
31979         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31980         gl_FUNC_FREXP_NO_LIBM.
31981         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31982         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31983
31984 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31985
31986         memcoll: clarify sizes versus lengths, document better, and tweak perf
31987         * lib/memcoll.c (strcoll_loop, memcoll0):
31988         Improve quality of descriptive comments.  Name variables
31989         consistently as to whether they are lengths (which do not include
31990         terminating null) versus sizes (which do).
31991         * lib/xmemcoll.c (xmemcoll0): Likewise.
31992         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31993         returned when s1size == 0; this is easier to compile and saves
31994         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31995
31996 2010-07-12  Bruno Haible  <bruno@clisp.org>
31997
31998         Tests for module '_Exit'.
31999         * modules/_Exit-tests: New file.
32000         * tests/test-_Exit.sh: New file.
32001         * tests/test-_Exit.c: New file.
32002
32003         New module '_Exit'.
32004         * lib/stdlib.in.h (__attribute__): New macro.
32005         (_Exit): New declaration.
32006         * lib/_Exit.c: New file.
32007         * m4/_Exit.m4: New file.
32008         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32009         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32010         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32011         * modules/_Exit: New file.
32012         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32013         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32014
32015 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32016
32017         strtod: make it more-accurate typically, and don't require libm
32018         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32019         Include limits.h.  Don't include string.h.
32020         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32021         (locale_isspace): New function, so that no casts are needed to
32022         check whether *s is a space.
32023         (ldexp): Provide an unused dummy if not available.
32024         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32025         (strtod): Use them.  This implementation prefers to use the
32026         underlying strtod if available, falling back on our own code
32027         only to fix known bugs.  This is more likely to produce an
32028         accurate result.  Also, it avoids the use of libm functions.
32029         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32030         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32031         was absent, but it caused a test failure with coreutils.
32032         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32033         with libm.
32034         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32035         * modules/strtod-tests (Makefile.am): Likewise.
32036
32037 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32038             Bruno Haible  <bruno@clisp.org>
32039
32040         unistr/u8-strchr: Optimize ASCII argument case.
32041         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32042
32043 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32044
32045         (x)memcoll: minor tweaks
32046         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32047         is after the type that it qualifies.
32048         (memcoll0): Likewise.
32049         * lib/memcoll.h (memcoll0): Likewise.
32050         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32051         * lib/xmemcoll.h (xmemcoll0): Likewise.
32052         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32053         differs from memcoll in that the NUL byte is part of the argument.
32054         Omit the abort-checks, as performance is a real issue here.  Plus,
32055         the checks were wrong anyway (an off-by-one error).  Omit local
32056         variable 'diff', as it's a bit clearer that way.
32057         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32058         no longer needed.
32059
32060 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32061
32062         (x)memcoll: speedup when input is known to be NUL delimited
32063         * lib/memcoll.c: Include stdlib.
32064         (memcoll0): New function.
32065         (strcoll_loop): New function, refactored for use in both memcoll
32066         and memcoll0.
32067         * lib/memcoll.h (memcoll0): Add prototype.
32068         * lib/xmemcoll.c (xmemcoll0): New function.
32069         (collate_error): New function, refactored for use in both xmemcoll
32070         and xmemcoll0.
32071         * lib/xmemcoll.h (xmemcoll0): Add prototype.
32072         * m4/memcoll.m4: add inline invocation.
32073
32074 2010-07-06  Pádraig Brady  <P@draigBrady.com>
32075
32076         * build-aux/bootstrap: Remove any local translations
32077         from the translation project synchronization directory,
32078         so that local only translations are not distributed.
32079
32080 2010-07-04  Bruno Haible  <bruno@clisp.org>
32081
32082         fsusage: Clarify which code applies to which platforms.
32083         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
32084         platform.
32085         * lib/fsusage.c (get_fs_usage): Likewise.
32086
32087 2010-07-04  Bruno Haible  <bruno@clisp.org>
32088
32089         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
32090         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
32091         Reported by Martin Lambers <marlam@marlam.de>.
32092
32093 2010-07-04  Jim Meyering  <meyering@redhat.com>
32094
32095         hash: once again explicitly disallow insertion of NULL
32096         * lib/hash.c (hash_insert0): Reinstate just-removed test:
32097         inserting a NULL pointer cannot work with these functions.
32098         Add a comment with details.
32099         This reverts part of the 2010-07-01 commit, 5bef1a35
32100         "hash: extend module to deal with non-pointer keys".
32101
32102 2010-07-01  Bruno Haible  <bruno@clisp.org>
32103
32104         stdbool: Update doc.
32105         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
32106         Info from Christian Weisgerber <naddy@mips.inka.de>.
32107
32108 2010-07-01  Jim Meyering  <meyering@redhat.com>
32109
32110         hash: extend module to deal with non-pointer keys
32111         * lib/hash.c (hash_insert0): New interface, much like hash_insert
32112         but that allows insertion of non-pointer entries.
32113         Do not disallow an ENTRY value of NULL.
32114         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
32115         * lib/hash.h (hash_insert0): Declare.
32116
32117 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
32118
32119         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
32120         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
32121         not present (i.e. with autoconf 2.59 and when using gettextize, not
32122         gnulib), require AC_GNU_SOURCE instead.
32123
32124 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
32125
32126         idpriv-drop: Fix tests.
32127         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
32128         not to the test-idpriv-droptemp program.
32129
32130 2010-06-29  Bruno Haible  <bruno@clisp.org>
32131
32132         string: Fix syntax error with g++ 2.96.
32133         * lib/string.in.h (__pure__): Remove definition.
32134         (_GL_ATTRIBUTE_PURE): New macro.
32135         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
32136         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
32137         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32138
32139 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
32140
32141         unitypes: Fix bug introduced on 2010-05-18.
32142         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
32143
32144 2010-06-22  Eric Blake  <eblake@redhat.com>
32145
32146         memmem: slight optimization
32147         * lib/str-two-way.h (critical_factorization): Update comments.
32148         Reduce work during factorization phase.
32149         Reported by Carlos Bueno <carlos@bueno.org>.
32150
32151 2010-06-21  Bruno Haible  <bruno@clisp.org>
32152
32153         Fix HAVE_CALLOC_POSIX misnomer.
32154         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
32155         !HAVE_CALLOC_POSIX.
32156         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
32157         HAVE_CALLOC_POSIX.
32158         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
32159         instead of HAVE_CALLOC_POSIX.
32160         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
32161         HAVE_CALLOC_POSIX.
32162
32163         Use modern idiom for calloc() replacement.
32164         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
32165         AC_FUNC_CALLOC.
32166         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
32167         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
32168         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32169         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
32170         (gl_REPLACE_CALLOC): New macro.
32171
32172 2010-06-21  Bruno Haible  <bruno@clisp.org>
32173
32174         Fix HAVE_REALLOC_POSIX misnomer.
32175         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
32176         !HAVE_REALLOC_POSIX.
32177         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
32178         HAVE_REALLOC_POSIX.
32179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
32180         instead of HAVE_REALLOC_POSIX.
32181         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
32182         HAVE_REALLOC_POSIX.
32183
32184         Use modern idiom for realloc() replacement.
32185         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
32186         AC_FUNC_REALLOC.
32187         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
32188         Autoconf's AC_FUNC_REALLOC.
32189         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32190         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
32191         (gl_REPLACE_REALLOC): New macro.
32192         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32193
32194 2010-06-21  Bruno Haible  <bruno@clisp.org>
32195
32196         Fix HAVE_MALLOC_POSIX misnomer.
32197         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
32198         !HAVE_MALLOC_POSIX.
32199         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
32200         HAVE_MALLOC_POSIX.
32201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
32202         instead of HAVE_MALLOC_POSIX.
32203         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
32204         HAVE_MALLOC_POSIX.
32205
32206         Use modern idiom for malloc() replacement.
32207         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
32208         AC_FUNC_MALLOC.
32209         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
32210         Autoconf's AC_FUNC_MALLOC.
32211         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
32212         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
32213         (gl_REPLACE_MALLOC): New macro.
32214         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
32215
32216 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
32217
32218         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
32219         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
32220         This macro takes 3 arguments, not 4.
32221
32222 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
32223
32224         ipv6: fix detection under mingw
32225         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
32226         in6_addr.
32227
32228 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
32229
32230         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
32231         that strtod() works when cross-compiling to a glibc version known
32232         to work.
32233
32234 2010-06-15  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
32237
32238 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
32239
32240         select: Correct timeout.
32241         * lib/select.c (rpl_select): Compute wait_timeout correctly.
32242
32243 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32244
32245         git-version-gen: init shell var to avoid env var influence
32246         * build-aux/git-version-gen (v): Init shell var to empty.
32247
32248 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         priv-set: Don't assume that priv.h exists merely because getppriv does.
32251         See Jan Andersen's bug report about AIX 5L in
32252         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
32253         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
32254         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
32255         * lib/priv-set.h: Likewise.
32256         * tests/test-priv-set.c: Likewise.
32257
32258 2010-06-13  Bruno Haible  <bruno@clisp.org>
32259
32260         relocatable: Make it easier to test whether to install wrappers.
32261         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
32262         RELOCATABLE_VIA_WRAPPER.
32263
32264 2010-06-13  Bruno Haible  <bruno@clisp.org>
32265
32266         gnulib-tool: Display specified modules and dependencies differently.
32267         * gnulib-tool (func_show_module_list): New function.
32268         (func_import, func_create_testdir): Invoke it.
32269         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32270
32271 2010-06-13  Bruno Haible  <bruno@clisp.org>
32272
32273         gnulib-tool: Align code of func_import and func_create_testdir.
32274         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
32275         specified_modules.
32276
32277 2010-06-12  Jim Meyering  <meyering@redhat.com>
32278
32279         test-inttostr: avoid spurious failure on Solaris 9
32280         * tests/test-inttostr.c (main): Skip the test when snprintf fails
32281         to accept "%ju".  Reported by Bruno Haible.
32282
32283 2010-06-11  Jim Meyering  <meyering@redhat.com>
32284
32285         test-sys_socket: mark variables as used more readably
32286         * tests/test-sys_socket.c (main): Mark otherwise unused variables
32287         as "used" explicitly via (void) statement casts.  This is more
32288         readable than using them in an artificial return expression.
32289         Suggestion from Bruno Haible.
32290
32291 2010-06-11  Bruno Haible  <bruno@clisp.org>
32292
32293         Avoid some more warnings from "gcc -Wwrite-strings".
32294         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
32295         to 'const char *'.
32296         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
32297         * tests/test-c-strcasestr.c (main): Likewise.
32298         * tests/test-mbscasestr1.c (main): Likewise.
32299         * tests/test-mbscasestr2.c (main): Likewise.
32300         * tests/test-memmem.c (main): Likewise.
32301         * tests/test-strstr.c (main): Likewise.
32302         * tests/test-strcasestr.c (main): Likewise.
32303
32304 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32305
32306         init.sh: change framework_failure_ to fail with status 99, not 1
32307         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
32308         automake's parallel-tests rule that this is an unexpected failure,
32309         even if the test is listed in XFAIL_TESTS.
32310
32311 2010-06-11  Jim Meyering  <meyering@redhat.com>
32312
32313         test-inttostr: avoid warnings about 4-6KB literal strings
32314         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
32315         Include "macros.h", for its definition of ASSERT.
32316         (CK): s/assert/ASSERT/
32317         * modules/inttostr-tests (Files): Add macros.h.
32318
32319         init.sh: don't use $ME_ or skip_ before they are defined
32320         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
32321         their first uses.  Also hoist their companions: warn_, fail_,
32322         framework_failure_, $stderr_fileno.  Prompted by a patch from
32323         Stefano Lattarini.
32324
32325         test-sys_socket: avoid set-but-not-used warnings from gcc
32326         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
32327         avoid warning about set-but-not-used variables.
32328
32329         test-xvasprintf: avoid 'const' discard warnings
32330         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
32331         "const" when assigning from literal strings.
32332         (test_xasprintf): Add "void" in function argument list to placate
32333         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
32334
32335         tests: avoid compilation warnings in argmatch and exclude tests...
32336         in packages that define ARGMATCH_DIE_DECL, like coreutils.
32337         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
32338         Since it always exits, declare with the "noreturn" attribute.
32339         * tests/test-argmatch.c: Likewise.
32340
32341         tests: avoid 'const' discard warnings in mbsstr tests
32342         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
32343         * tests/test-mbsstr2.c (main): Likewise.
32344
32345         test-verify: avoid warning from gcc's -Wmissing-declarations
32346         * tests/test-verify.c (function): Declare to be static.
32347
32348         test-inttostr.c: include <string.h> for use of strcmp
32349         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
32350
32351         test-linkat: avoid failed assertion on "other" architectures
32352         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
32353         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
32354         sparc: https://bugs.launchpad.net/bugs/591968
32355
32356 2010-06-11  Jim Meyering  <meyering@redhat.com>
32357
32358         printf.m4: avoid autoconf's "Expanded Before Required" warning
32359         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
32360         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
32361         autoconf warning.
32362
32363 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
32364
32365         Replacement header templates are now named with ".in", not "_".
32366         * doc/gnulib-intro.texi: Correct.
32367
32368 2010-06-10  Jim Meyering  <meyering@redhat.com>
32369
32370         inttostr-tests: depend on snprintf, not snprintf-posix
32371         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
32372         snprintf-posix, to avoid this aclocal failure:
32373           missing file gnulib-tests/vasnprintf.c
32374           configure.ac:45: error: expected source file, required through \
32375           AC_LIBSOURCES, not found
32376
32377 2010-06-10  Jim Meyering  <meyering@redhat.com>
32378
32379         inttostr: add a new function, inttostr, and tests
32380         The namesake function was not available.  The existence of the
32381         template file, inttostr.c makes its addition nontrivial.
32382         * lib/anytostr.c: Rename from inttostr.c.
32383         (anytostr): Rename from inttostr.
32384         * lib/inttostr.c: New file.
32385         * modules/inttostr (Files): Add anytostr.c.
32386         (Makefile.am): Set lib_SOURCES instead of ...
32387         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
32388         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
32389         * lib/offtostr.c: Likewise.
32390         * lib/uinttostr.c: Likewise.
32391         * lib/umaxtostr.c: Likewise.
32392         * modules/inttostr-tests: New file.
32393         * tests/test-inttostr.c: New file.  Test these functions.
32394
32395 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
32396             Bruno Haible  <bruno@clisp.org>
32397
32398         Add "Extending Gnulib" chapter to manual.
32399         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
32400         chapter.
32401         (Extending Gnulib): New chapter.
32402         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
32403         chapter.
32404
32405 2010-06-09  Bruno Haible  <bruno@clisp.org>
32406
32407         Avoid relocwrapper link errors due to gnulib replacement functions.
32408         * lib/areadlink.c: Use the system's malloc, realloc functions.
32409         (areadlink): Set errno to ENOMEM explicitly.
32410         * modules/areadlink (Depends-on): Remove malloc-posix.
32411         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32412
32413 2010-06-09  Bruno Haible  <bruno@clisp.org>
32414
32415         Avoid relocwrapper link errors due to gnulib replacement functions.
32416         * lib/canonicalize-lgpl.c: Use the system's malloc function.
32417         * lib/malloca.c: Likewise.
32418         * lib/relocatable.c: Likewise.
32419         * lib/progreloc.c: Use the system's malloc, sprintf functions.
32420         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
32421         * lib/setenv.c: Use the system's malloc, realloc functions.
32422         * lib/strerror.c: Use the system's sprintf function.
32423         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32424
32425 2010-06-04  Bruno Haible  <bruno@clisp.org>
32426
32427         Prefer documented low-level autoconf macro names.
32428         * m4/lib-link.m4: Use m4_translit instead of translit.
32429         * m4/environ.m4: Likewise.
32430         * m4/mathfunc.m4: Likewise.
32431         * m4/onceonly.m4: Likewise.
32432         * m4/stdint.m4: Likewise.
32433         Suggested by Eric Blake.
32434
32435 2010-06-04  Martin Lambers  <marlam@marlam.de>
32436             Bruno Haible  <bruno@clisp.org>
32437
32438         havelib: Allow library names with '+' characters.
32439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32440         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
32441
32442 2010-06-09  Bruno Haible  <bruno@clisp.org>
32443
32444         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
32445         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
32446         realloc failed.
32447
32448 2010-06-08  Peter Simons  <simons@cryp.to>
32449
32450         maint.mk: make the news-check rule more configurable
32451         * top/maint.mk (news-check-lines-spec): New variable.
32452         (news-check): Use "sed -n 1,10p" in place of "head".
32453
32454 2010-06-07  Jim Meyering  <meyering@redhat.com>
32455
32456         do-release-commit-and-tag: fix typo in --help
32457         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
32458
32459         regex: avoid new dead-code warning with gcc-4.6.0
32460         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
32461         if-block containing a while-loop.  It's been unused for at least
32462         5 years.
32463
32464 2010-06-05  Bruno Haible  <bruno@clisp.org>
32465
32466         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
32467         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
32468
32469 2010-06-04  Bruno Haible  <bruno@clisp.org>
32470
32471         Update to GNU gettext 0.18.1.
32472         * modules/gettext (configure.ac): Require gettext infrastructure from
32473         version 0.18.1.
32474
32475 2010-06-03  Bruno Haible  <bruno@clisp.org>
32476
32477         Don't use AC_LIBOBJ with file names in subdirectories.
32478         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
32479         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
32480         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
32481         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
32482         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
32483         gl_LIBUNISTRING_LIBSOURCE.
32484         (Makefile.am): Augment lib_SOURCES here, conditionally.
32485         * NEWS: Drop requirement for Automake option 'subdir-objects'.
32486
32487 2010-06-03  Bruno Haible  <bruno@clisp.org>
32488
32489         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
32490         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
32491         expansion does not end with a newline.
32492         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
32493         unnecessary newline.
32494
32495 2010-06-03  Bruno Haible  <bruno@clisp.org>
32496
32497         Reduce dependencies.
32498         * tests/test-quotearg.h: New file, extracted from
32499         tests/test-quotearg.c.
32500         * tests/test-quotearg-simple.c: New file, extracted from
32501         tests/test-quotearg.c.
32502         * tests/test-quotearg.c: Don't include <ctype.h>.
32503         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
32504         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
32505         use_quote_double_quotes, use_quotearg_colon): Moved to
32506         tests/test-quotearg.h.
32507         (results_g, flag_results, custom_quotes, custom_results): Moved
32508         to tests/test-quotearg-simple.c.
32509         (main): Moved the part that does not depend on gettext to
32510         tests/test-quotearg-simple.c. Return 77 if the test cannot be
32511         performed.
32512         * modules/quotearg-simple: New file.
32513         * modules/quotearg-simple-tests: New file.
32514         * modules/quotearg (Depends-on): Add quotearg-simple.
32515         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
32516         (Files): Add tests/test-quotearg.h.
32517         Reported by Paolo Bonzini.
32518
32519 2010-06-03  Bruno Haible  <bruno@clisp.org>
32520
32521         Reduce dependencies.
32522         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
32523
32524 2010-06-03  Bruno Haible  <bruno@clisp.org>
32525
32526         time: Undefine more broken macros.
32527         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
32528         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
32529         Reported by Eric Blake.
32530
32531 2010-06-03  Bruno Haible  <bruno@clisp.org>
32532
32533         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
32534         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
32535         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
32536         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
32537         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
32538         Reported by Ludovic Courtès <ludo@gnu.org>.
32539
32540 2010-06-02  Eric Blake  <eblake@redhat.com>
32541
32542         time: work with mingw + pthreads-win32 library
32543         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
32544         if timespec is defined only in pthread.h.
32545         * modules/time (Makefile.am): Substitute it.
32546         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
32547         <pthread.h>, when needed.
32548         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
32549         from the library.
32550
32551 2010-05-31  Bruno Haible  <bruno@clisp.org>
32552
32553         Avoid expanding two macros in the wrong order.
32554         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
32555         gl_LIBUNISTRING if it is defined.
32556         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
32557         autoconf >= 2.64.
32558         Reported by Ludovic Courtès <ludo@gnu.org>.
32559
32560 2010-05-27  Jim Meyering  <meyering@redhat.com>
32561
32562         maint.mk: also prohibit "#undef" of always-defined symbols
32563         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
32564         Allow more than one space before the symbol name.
32565         (sc_prohibit_always-defined_macros): Use grep's -E, now that
32566         the regexp uses alternation.
32567
32568 2010-05-26  Eric Blake  <eblake@redhat.com>
32569
32570         maint.mk: avoid echo -e
32571         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
32572         Convert all uses of echo -* to printf.
32573         Reported by Matthias Bolte.
32574
32575 2010-05-25  Bruno Haible  <bruno@clisp.org>
32576
32577         Update to GNU gettext 0.18, part 2.
32578         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
32579         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
32580
32581 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32582
32583         Add missing include in test-pwrite.c.
32584         * tests/test-pwrite.c: Include string.h, for strcmp.
32585
32586 2010-05-24  Bruno Haible  <bruno@clisp.org>
32587
32588         * NEWS: Mention requirement for Automake option 'subdir-objects'.
32589
32590 2010-05-24  Bruno Haible  <bruno@clisp.org>
32591
32592         Don't use conversion with transliteration in u{8,16,32}_strcoll.
32593         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
32594         iconveh_error argument.
32595         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
32596         U_STRCONV_TO_LOCALE.
32597         * lib/unistr/u16-strcoll.c: Likewise.
32598         * lib/unistr/u32-strcoll.c: Likewise.
32599         * modules/unistr/u8-strcoll (Depends-on): Add
32600         uniconv/u8-strconv-to-enc, localcharset. Remove
32601         uniconv/u8-strconv-to-locale.
32602         (configure.ac): Bump version number.
32603         * modules/unistr/u16-strcoll (Depends-on): Add
32604         uniconv/u16-strconv-to-enc, localcharset. Remove
32605         uniconv/u16-strconv-to-locale.
32606         (configure.ac): Bump version number.
32607         * modules/unistr/u32-strcoll (Depends-on): Add
32608         uniconv/u32-strconv-to-enc, localcharset. Remove
32609         uniconv/u32-strconv-to-locale.
32610         (configure.ac): Bump version number.
32611
32612 2010-05-24  Bruno Haible  <bruno@clisp.org>
32613
32614         Avoid a test failure on NetBSD 5.0.
32615         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
32616         an iconv() bug.
32617
32618 2010-05-24  Bruno Haible  <bruno@clisp.org>
32619
32620         Adjust #include directive style.
32621         * modules/regex (Includes): Recommend to write <regex.h>.
32622
32623 2010-05-24  Bruno Haible  <bruno@clisp.org>
32624
32625         regex: Don't require alloca.
32626         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
32627         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
32628         only inside if (0).
32629
32630 2010-05-23  Jim Meyering  <meyering@redhat.com>
32631
32632         test-renameat.c: include <sys/stat.h>
32633         * tests/test-renameat.c: Include <sys/stat.h>; required for
32634         definition of S_IS* macros.
32635
32636 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
32637
32638         Update maintainer documentation for 'relocatable-prog' module.
32639         * doc/relocatable-maint.texi: Update.
32640         Comments by Bruno Haible.
32641
32642 2010-05-23  Bruno Haible  <bruno@clisp.org>
32643
32644         git-merge-changelog: Enable --split-merged-entry by default.
32645         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
32646         (usage): Don't mention this option any more.
32647         Reported by Ralf Wildenhues.
32648
32649 2010-05-23  Jim Meyering  <meyering@redhat.com>
32650
32651         test-pwrite: do not leave behind a test file named "out"
32652         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
32653         The trivial-looking use of init.sh is really necessary.
32654         It ensures that the temporary file, "out", is created in
32655         a temporary directory, and removed upon termination.
32656         * tests/test-pwrite.sh: Re-add file.
32657         * modules/pwrite-tests: Reference it.
32658
32659 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32660
32661         Fix output redirection buglet in init.sh.
32662         * tests/init.sh: Fix redirection of stderr.
32663
32664 2010-05-20  Simon Josefsson  <simon@josefsson.org>
32665
32666         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
32667
32668 2010-05-17  Simon Josefsson  <simon@josefsson.org>
32669
32670         * modules/valgrind-tests: New file.
32671         * m4/valgrind-tests.m4: New file.
32672         * doc/valgrind-tests.texi: New file.
32673         * doc/gnulib.texi (Running self-tests under valgrind): New
32674         section.
32675
32676 2010-05-19  Bruno Haible  <bruno@clisp.org>
32677
32678         Clean up dead code in recent commit.
32679         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
32680         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
32681         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
32682         Suggested by Paolo Bonzini.
32683
32684 2010-05-19  Bruno Haible  <bruno@clisp.org>
32685
32686         Avoid valgrind error reports from libunistring.
32687         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
32688         * modules/libunistring (Files): Add it.
32689         * modules/libunistring-optional (Files): Likewise.
32690
32691 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
32692             Bruno Haible  <bruno@clisp.org>
32693
32694         New module 'libunistring-optional'.
32695         * modules/libunistring-optional: New file.
32696         * m4/libunistring-base.m4: New file.
32697         * m4/libunistring-optional.m4: New file.
32698         * lib/unicase.in.h: Renamed from lib/unicase.h.
32699         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
32700         * lib/unictype.in.h: Renamed from lib/unictype.h.
32701         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
32702         * lib/uniname.in.h: Renamed from lib/uniname.h.
32703         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
32704         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
32705         * lib/unistr.in.h: Renamed from lib/unistr.h.
32706         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
32707         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
32708         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
32709         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
32710         gl_LIBUNISTRING. If the library was found, determine the installed
32711         version and set LIBUNISTRING_VERSION.
32712         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
32713         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
32714         handle a configuration option --with-included-libunistring.
32715         * modules/libunistring (Files): Add m4/absolute-header.m4.
32716         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
32717         Add m4/libunistring-base.m4.
32718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32719         (Makefile.am): Build unicase.h from unicase.in.h.
32720         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
32721         Add m4/libunistring-base.m4.
32722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32723         (Makefile.am): Build uniconv.h from uniconv.in.h.
32724         * modules/unictype/base (Files): Use unictype.in.h instead of
32725         unictype.h. Add m4/libunistring-base.m4.
32726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32727         (Makefile.am): Build unictype.h from unictype.in.h.
32728         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
32729         Add m4/libunistring-base.m4.
32730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32731         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
32732         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
32733         Add m4/libunistring-base.m4.
32734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32735         (Makefile.am): Build uniname.h from uniname.in.h.
32736         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
32737         Add m4/libunistring-base.m4.
32738         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32739         (Makefile.am): Build uninorm.h from uninorm.in.h.
32740         * modules/unistdio/base (Files): Use unistdio.in.h instead of
32741         unistdio.h. Add m4/libunistring-base.m4.
32742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32743         (Makefile.am): Build unistdio.h from unistdio.in.h.
32744         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
32745         Add m4/libunistring-base.m4.
32746         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32747         (Makefile.am): Build unistr.h from unistr.in.h.
32748         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
32749         Add m4/libunistring-base.m4.
32750         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32751         (Makefile.am): Build unitypes.h from unitypes.in.h.
32752         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
32753         Add m4/libunistring-base.m4.
32754         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32755         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
32756         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
32757         uniwidth.h. Add m4/libunistring-base.m4.
32758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
32759         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
32760         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
32761         instead of augmenting lib_SOURCES.
32762         * modules/unicase/empty-suffix-context: Likewise.
32763         * modules/unicase/locale-language: Likewise.
32764         * modules/unicase/tolower: Likewise.
32765         * modules/unicase/totitle: Likewise.
32766         * modules/unicase/toupper: Likewise.
32767         * modules/unicase/u8-casecmp: Likewise.
32768         * modules/unicase/u8-casecoll: Likewise.
32769         * modules/unicase/u8-casefold: Likewise.
32770         * modules/unicase/u8-casexfrm: Likewise.
32771         * modules/unicase/u8-ct-casefold: Likewise.
32772         * modules/unicase/u8-ct-tolower: Likewise.
32773         * modules/unicase/u8-ct-totitle: Likewise.
32774         * modules/unicase/u8-ct-toupper: Likewise.
32775         * modules/unicase/u8-is-cased: Likewise.
32776         * modules/unicase/u8-is-casefolded: Likewise.
32777         * modules/unicase/u8-is-lowercase: Likewise.
32778         * modules/unicase/u8-is-titlecase: Likewise.
32779         * modules/unicase/u8-is-uppercase: Likewise.
32780         * modules/unicase/u8-prefix-context: Likewise.
32781         * modules/unicase/u8-suffix-context: Likewise.
32782         * modules/unicase/u8-tolower: Likewise.
32783         * modules/unicase/u8-totitle: Likewise.
32784         * modules/unicase/u8-toupper: Likewise.
32785         * modules/unicase/u16-casecmp: Likewise.
32786         * modules/unicase/u16-casecoll: Likewise.
32787         * modules/unicase/u16-casefold: Likewise.
32788         * modules/unicase/u16-casexfrm: Likewise.
32789         * modules/unicase/u16-ct-casefold: Likewise.
32790         * modules/unicase/u16-ct-tolower: Likewise.
32791         * modules/unicase/u16-ct-totitle: Likewise.
32792         * modules/unicase/u16-ct-toupper: Likewise.
32793         * modules/unicase/u16-is-cased: Likewise.
32794         * modules/unicase/u16-is-casefolded: Likewise.
32795         * modules/unicase/u16-is-lowercase: Likewise.
32796         * modules/unicase/u16-is-titlecase: Likewise.
32797         * modules/unicase/u16-is-uppercase: Likewise.
32798         * modules/unicase/u16-prefix-context: Likewise.
32799         * modules/unicase/u16-suffix-context: Likewise.
32800         * modules/unicase/u16-tolower: Likewise.
32801         * modules/unicase/u16-totitle: Likewise.
32802         * modules/unicase/u16-toupper: Likewise.
32803         * modules/unicase/u32-casecmp: Likewise.
32804         * modules/unicase/u32-casecoll: Likewise.
32805         * modules/unicase/u32-casefold: Likewise.
32806         * modules/unicase/u32-casexfrm: Likewise.
32807         * modules/unicase/u32-ct-casefold: Likewise.
32808         * modules/unicase/u32-ct-tolower: Likewise.
32809         * modules/unicase/u32-ct-totitle: Likewise.
32810         * modules/unicase/u32-ct-toupper: Likewise.
32811         * modules/unicase/u32-is-cased: Likewise.
32812         * modules/unicase/u32-is-casefolded: Likewise.
32813         * modules/unicase/u32-is-lowercase: Likewise.
32814         * modules/unicase/u32-is-titlecase: Likewise.
32815         * modules/unicase/u32-is-uppercase: Likewise.
32816         * modules/unicase/u32-prefix-context: Likewise.
32817         * modules/unicase/u32-suffix-context: Likewise.
32818         * modules/unicase/u32-tolower: Likewise.
32819         * modules/unicase/u32-totitle: Likewise.
32820         * modules/unicase/u32-toupper: Likewise.
32821         * modules/unicase/ulc-casecmp: Likewise.
32822         * modules/unicase/ulc-casecoll: Likewise.
32823         * modules/unicase/ulc-casexfrm: Likewise.
32824         * modules/uniconv/u8-conv-from-enc: Likewise.
32825         * modules/uniconv/u8-conv-to-enc: Likewise.
32826         * modules/uniconv/u8-strconv-from-enc: Likewise.
32827         * modules/uniconv/u8-strconv-from-locale: Likewise.
32828         * modules/uniconv/u8-strconv-to-enc: Likewise.
32829         * modules/uniconv/u8-strconv-to-locale: Likewise.
32830         * modules/uniconv/u16-conv-from-enc: Likewise.
32831         * modules/uniconv/u16-conv-to-enc: Likewise.
32832         * modules/uniconv/u16-strconv-from-enc: Likewise.
32833         * modules/uniconv/u16-strconv-from-locale: Likewise.
32834         * modules/uniconv/u16-strconv-to-enc: Likewise.
32835         * modules/uniconv/u16-strconv-to-locale: Likewise.
32836         * modules/uniconv/u32-conv-from-enc: Likewise.
32837         * modules/uniconv/u32-conv-to-enc: Likewise.
32838         * modules/uniconv/u32-strconv-from-enc: Likewise.
32839         * modules/uniconv/u32-strconv-from-locale: Likewise.
32840         * modules/uniconv/u32-strconv-to-enc: Likewise.
32841         * modules/uniconv/u32-strconv-to-locale: Likewise.
32842         * modules/unictype/bidicategory-byname: Likewise.
32843         * modules/unictype/bidicategory-name: Likewise.
32844         * modules/unictype/bidicategory-of: Likewise.
32845         * modules/unictype/bidicategory-test: Likewise.
32846         * modules/unictype/block-list: Likewise.
32847         * modules/unictype/block-test: Likewise.
32848         * modules/unictype/category-C: Likewise.
32849         * modules/unictype/category-Cc: Likewise.
32850         * modules/unictype/category-Cf: Likewise.
32851         * modules/unictype/category-Cn: Likewise.
32852         * modules/unictype/category-Co: Likewise.
32853         * modules/unictype/category-Cs: Likewise.
32854         * modules/unictype/category-L: Likewise.
32855         * modules/unictype/category-Ll: Likewise.
32856         * modules/unictype/category-Lm: Likewise.
32857         * modules/unictype/category-Lo: Likewise.
32858         * modules/unictype/category-Lt: Likewise.
32859         * modules/unictype/category-Lu: Likewise.
32860         * modules/unictype/category-M: Likewise.
32861         * modules/unictype/category-Mc: Likewise.
32862         * modules/unictype/category-Me: Likewise.
32863         * modules/unictype/category-Mn: Likewise.
32864         * modules/unictype/category-N: Likewise.
32865         * modules/unictype/category-Nd: Likewise.
32866         * modules/unictype/category-Nl: Likewise.
32867         * modules/unictype/category-No: Likewise.
32868         * modules/unictype/category-P: Likewise.
32869         * modules/unictype/category-Pc: Likewise.
32870         * modules/unictype/category-Pd: Likewise.
32871         * modules/unictype/category-Pe: Likewise.
32872         * modules/unictype/category-Pf: Likewise.
32873         * modules/unictype/category-Pi: Likewise.
32874         * modules/unictype/category-Po: Likewise.
32875         * modules/unictype/category-Ps: Likewise.
32876         * modules/unictype/category-S: Likewise.
32877         * modules/unictype/category-Sc: Likewise.
32878         * modules/unictype/category-Sk: Likewise.
32879         * modules/unictype/category-Sm: Likewise.
32880         * modules/unictype/category-So: Likewise.
32881         * modules/unictype/category-Z: Likewise.
32882         * modules/unictype/category-Zl: Likewise.
32883         * modules/unictype/category-Zp: Likewise.
32884         * modules/unictype/category-Zs: Likewise.
32885         * modules/unictype/category-and: Likewise.
32886         * modules/unictype/category-and-not: Likewise.
32887         * modules/unictype/category-byname: Likewise.
32888         * modules/unictype/category-name: Likewise.
32889         * modules/unictype/category-none: Likewise.
32890         * modules/unictype/category-of: Likewise.
32891         * modules/unictype/category-or: Likewise.
32892         * modules/unictype/category-test: Likewise.
32893         * modules/unictype/combining-class: Likewise.
32894         * modules/unictype/ctype-alnum: Likewise.
32895         * modules/unictype/ctype-alpha: Likewise.
32896         * modules/unictype/ctype-blank: Likewise.
32897         * modules/unictype/ctype-cntrl: Likewise.
32898         * modules/unictype/ctype-digit: Likewise.
32899         * modules/unictype/ctype-graph: Likewise.
32900         * modules/unictype/ctype-lower: Likewise.
32901         * modules/unictype/ctype-print: Likewise.
32902         * modules/unictype/ctype-punct: Likewise.
32903         * modules/unictype/ctype-space: Likewise.
32904         * modules/unictype/ctype-upper: Likewise.
32905         * modules/unictype/ctype-xdigit: Likewise.
32906         * modules/unictype/decimal-digit: Likewise.
32907         * modules/unictype/digit: Likewise.
32908         * modules/unictype/mirror: Likewise.
32909         * modules/unictype/numeric: Likewise.
32910         * modules/unictype/property-alphabetic: Likewise.
32911         * modules/unictype/property-ascii-hex-digit: Likewise.
32912         * modules/unictype/property-bidi-arabic-digit: Likewise.
32913         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32914         * modules/unictype/property-bidi-block-separator: Likewise.
32915         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32916         * modules/unictype/property-bidi-common-separator: Likewise.
32917         * modules/unictype/property-bidi-control: Likewise.
32918         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32919         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32920         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32921         * modules/unictype/property-bidi-european-digit: Likewise.
32922         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32923         * modules/unictype/property-bidi-left-to-right: Likewise.
32924         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32925         * modules/unictype/property-bidi-other-neutral: Likewise.
32926         * modules/unictype/property-bidi-pdf: Likewise.
32927         * modules/unictype/property-bidi-segment-separator: Likewise.
32928         * modules/unictype/property-bidi-whitespace: Likewise.
32929         * modules/unictype/property-byname: Likewise.
32930         * modules/unictype/property-combining: Likewise.
32931         * modules/unictype/property-composite: Likewise.
32932         * modules/unictype/property-currency-symbol: Likewise.
32933         * modules/unictype/property-dash: Likewise.
32934         * modules/unictype/property-decimal-digit: Likewise.
32935         * modules/unictype/property-default-ignorable-code-point: Likewise.
32936         * modules/unictype/property-deprecated: Likewise.
32937         * modules/unictype/property-diacritic: Likewise.
32938         * modules/unictype/property-extender: Likewise.
32939         * modules/unictype/property-format-control: Likewise.
32940         * modules/unictype/property-grapheme-base: Likewise.
32941         * modules/unictype/property-grapheme-extend: Likewise.
32942         * modules/unictype/property-grapheme-link: Likewise.
32943         * modules/unictype/property-hex-digit: Likewise.
32944         * modules/unictype/property-hyphen: Likewise.
32945         * modules/unictype/property-id-continue: Likewise.
32946         * modules/unictype/property-id-start: Likewise.
32947         * modules/unictype/property-ideographic: Likewise.
32948         * modules/unictype/property-ids-binary-operator: Likewise.
32949         * modules/unictype/property-ids-trinary-operator: Likewise.
32950         * modules/unictype/property-ignorable-control: Likewise.
32951         * modules/unictype/property-iso-control: Likewise.
32952         * modules/unictype/property-join-control: Likewise.
32953         * modules/unictype/property-left-of-pair: Likewise.
32954         * modules/unictype/property-line-separator: Likewise.
32955         * modules/unictype/property-logical-order-exception: Likewise.
32956         * modules/unictype/property-lowercase: Likewise.
32957         * modules/unictype/property-math: Likewise.
32958         * modules/unictype/property-non-break: Likewise.
32959         * modules/unictype/property-not-a-character: Likewise.
32960         * modules/unictype/property-numeric: Likewise.
32961         * modules/unictype/property-other-alphabetic: Likewise.
32962         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32963         * modules/unictype/property-other-grapheme-extend: Likewise.
32964         * modules/unictype/property-other-id-continue: Likewise.
32965         * modules/unictype/property-other-id-start: Likewise.
32966         * modules/unictype/property-other-lowercase: Likewise.
32967         * modules/unictype/property-other-math: Likewise.
32968         * modules/unictype/property-other-uppercase: Likewise.
32969         * modules/unictype/property-paired-punctuation: Likewise.
32970         * modules/unictype/property-paragraph-separator: Likewise.
32971         * modules/unictype/property-pattern-syntax: Likewise.
32972         * modules/unictype/property-pattern-white-space: Likewise.
32973         * modules/unictype/property-private-use: Likewise.
32974         * modules/unictype/property-punctuation: Likewise.
32975         * modules/unictype/property-quotation-mark: Likewise.
32976         * modules/unictype/property-radical: Likewise.
32977         * modules/unictype/property-sentence-terminal: Likewise.
32978         * modules/unictype/property-soft-dotted: Likewise.
32979         * modules/unictype/property-space: Likewise.
32980         * modules/unictype/property-terminal-punctuation: Likewise.
32981         * modules/unictype/property-test: Likewise.
32982         * modules/unictype/property-titlecase: Likewise.
32983         * modules/unictype/property-unassigned-code-value: Likewise.
32984         * modules/unictype/property-unified-ideograph: Likewise.
32985         * modules/unictype/property-uppercase: Likewise.
32986         * modules/unictype/property-variation-selector: Likewise.
32987         * modules/unictype/property-white-space: Likewise.
32988         * modules/unictype/property-xid-continue: Likewise.
32989         * modules/unictype/property-xid-start: Likewise.
32990         * modules/unictype/property-zero-width: Likewise.
32991         * modules/unictype/scripts: Likewise.
32992         * modules/unictype/syntax-c-ident: Likewise.
32993         * modules/unictype/syntax-c-whitespace: Likewise.
32994         * modules/unictype/syntax-java-ident: Likewise.
32995         * modules/unictype/syntax-java-whitespace: Likewise.
32996         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32997         * modules/unilbrk/u8-width-linebreaks: Likewise.
32998         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32999         * modules/unilbrk/u16-width-linebreaks: Likewise.
33000         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33001         * modules/unilbrk/u32-width-linebreaks: Likewise.
33002         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33003         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33004         * modules/uniname/uniname: Likewise.
33005         * modules/uninorm/canonical-decomposition: Likewise.
33006         * modules/uninorm/composition: Likewise.
33007         * modules/uninorm/decomposing-form: Likewise.
33008         * modules/uninorm/decomposition: Likewise.
33009         * modules/uninorm/filter: Likewise.
33010         * modules/uninorm/nfc: Likewise.
33011         * modules/uninorm/nfd: Likewise.
33012         * modules/uninorm/nfkc: Likewise.
33013         * modules/uninorm/nfkd: Likewise.
33014         * modules/uninorm/u8-normalize: Likewise.
33015         * modules/uninorm/u8-normcmp: Likewise.
33016         * modules/uninorm/u8-normcoll: Likewise.
33017         * modules/uninorm/u8-normxfrm: Likewise.
33018         * modules/uninorm/u16-normalize: Likewise.
33019         * modules/uninorm/u16-normcmp: Likewise.
33020         * modules/uninorm/u16-normcoll: Likewise.
33021         * modules/uninorm/u16-normxfrm: Likewise.
33022         * modules/uninorm/u32-normalize: Likewise.
33023         * modules/uninorm/u32-normcmp: Likewise.
33024         * modules/uninorm/u32-normcoll: Likewise.
33025         * modules/uninorm/u32-normxfrm: Likewise.
33026         * modules/unistdio/u8-asnprintf: Likewise.
33027         * modules/unistdio/u8-asprintf: Likewise.
33028         * modules/unistdio/u8-snprintf: Likewise.
33029         * modules/unistdio/u8-sprintf: Likewise.
33030         * modules/unistdio/u8-u8-asnprintf: Likewise.
33031         * modules/unistdio/u8-u8-asprintf: Likewise.
33032         * modules/unistdio/u8-u8-snprintf: Likewise.
33033         * modules/unistdio/u8-u8-sprintf: Likewise.
33034         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33035         * modules/unistdio/u8-u8-vasprintf: Likewise.
33036         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33037         * modules/unistdio/u8-u8-vsprintf: Likewise.
33038         * modules/unistdio/u8-vasnprintf: Likewise.
33039         * modules/unistdio/u8-vasprintf: Likewise.
33040         * modules/unistdio/u8-vsnprintf: Likewise.
33041         * modules/unistdio/u8-vsprintf: Likewise.
33042         * modules/unistdio/u16-asnprintf: Likewise.
33043         * modules/unistdio/u16-asprintf: Likewise.
33044         * modules/unistdio/u16-snprintf: Likewise.
33045         * modules/unistdio/u16-sprintf: Likewise.
33046         * modules/unistdio/u16-u16-asnprintf: Likewise.
33047         * modules/unistdio/u16-u16-asprintf: Likewise.
33048         * modules/unistdio/u16-u16-snprintf: Likewise.
33049         * modules/unistdio/u16-u16-sprintf: Likewise.
33050         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33051         * modules/unistdio/u16-u16-vasprintf: Likewise.
33052         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33053         * modules/unistdio/u16-u16-vsprintf: Likewise.
33054         * modules/unistdio/u16-vasnprintf: Likewise.
33055         * modules/unistdio/u16-vasprintf: Likewise.
33056         * modules/unistdio/u16-vsnprintf: Likewise.
33057         * modules/unistdio/u16-vsprintf: Likewise.
33058         * modules/unistdio/u32-asnprintf: Likewise.
33059         * modules/unistdio/u32-asprintf: Likewise.
33060         * modules/unistdio/u32-snprintf: Likewise.
33061         * modules/unistdio/u32-sprintf: Likewise.
33062         * modules/unistdio/u32-u32-asnprintf: Likewise.
33063         * modules/unistdio/u32-u32-asprintf: Likewise.
33064         * modules/unistdio/u32-u32-snprintf: Likewise.
33065         * modules/unistdio/u32-u32-sprintf: Likewise.
33066         * modules/unistdio/u32-u32-vasnprintf: Likewise.
33067         * modules/unistdio/u32-u32-vasprintf: Likewise.
33068         * modules/unistdio/u32-u32-vsnprintf: Likewise.
33069         * modules/unistdio/u32-u32-vsprintf: Likewise.
33070         * modules/unistdio/u32-vasnprintf: Likewise.
33071         * modules/unistdio/u32-vasprintf: Likewise.
33072         * modules/unistdio/u32-vsnprintf: Likewise.
33073         * modules/unistdio/u32-vsprintf: Likewise.
33074         * modules/unistdio/ulc-asnprintf: Likewise.
33075         * modules/unistdio/ulc-asprintf: Likewise.
33076         * modules/unistdio/ulc-fprintf: Likewise.
33077         * modules/unistdio/ulc-snprintf: Likewise.
33078         * modules/unistdio/ulc-sprintf: Likewise.
33079         * modules/unistdio/ulc-vasnprintf: Likewise.
33080         * modules/unistdio/ulc-vasprintf: Likewise.
33081         * modules/unistdio/ulc-vfprintf: Likewise.
33082         * modules/unistdio/ulc-vsnprintf: Likewise.
33083         * modules/unistdio/ulc-vsprintf: Likewise.
33084         * modules/unistr/u8-check: Likewise.
33085         * modules/unistr/u8-chr: Likewise.
33086         * modules/unistr/u8-cmp: Likewise.
33087         * modules/unistr/u8-cmp2: Likewise.
33088         * modules/unistr/u8-cpy: Likewise.
33089         * modules/unistr/u8-cpy-alloc: Likewise.
33090         * modules/unistr/u8-endswith: Likewise.
33091         * modules/unistr/u8-mblen: Likewise.
33092         * modules/unistr/u8-mbsnlen: Likewise.
33093         * modules/unistr/u8-mbtouc: Likewise.
33094         * modules/unistr/u8-mbtouc-unsafe: Likewise.
33095         * modules/unistr/u8-mbtoucr: Likewise.
33096         * modules/unistr/u8-move: Likewise.
33097         * modules/unistr/u8-next: Likewise.
33098         * modules/unistr/u8-prev: Likewise.
33099         * modules/unistr/u8-set: Likewise.
33100         * modules/unistr/u8-startswith: Likewise.
33101         * modules/unistr/u8-stpcpy: Likewise.
33102         * modules/unistr/u8-stpncpy: Likewise.
33103         * modules/unistr/u8-strcat: Likewise.
33104         * modules/unistr/u8-strchr: Likewise.
33105         * modules/unistr/u8-strcmp: Likewise.
33106         * modules/unistr/u8-strcoll: Likewise.
33107         * modules/unistr/u8-strcpy: Likewise.
33108         * modules/unistr/u8-strcspn: Likewise.
33109         * modules/unistr/u8-strdup: Likewise.
33110         * modules/unistr/u8-strlen: Likewise.
33111         * modules/unistr/u8-strmblen: Likewise.
33112         * modules/unistr/u8-strmbtouc: Likewise.
33113         * modules/unistr/u8-strncat: Likewise.
33114         * modules/unistr/u8-strncmp: Likewise.
33115         * modules/unistr/u8-strncpy: Likewise.
33116         * modules/unistr/u8-strnlen: Likewise.
33117         * modules/unistr/u8-strpbrk: Likewise.
33118         * modules/unistr/u8-strrchr: Likewise.
33119         * modules/unistr/u8-strspn: Likewise.
33120         * modules/unistr/u8-strstr: Likewise.
33121         * modules/unistr/u8-strtok: Likewise.
33122         * modules/unistr/u8-to-u16: Likewise.
33123         * modules/unistr/u8-to-u32: Likewise.
33124         * modules/unistr/u8-uctomb: Likewise.
33125         * modules/unistr/u16-check: Likewise.
33126         * modules/unistr/u16-chr: Likewise.
33127         * modules/unistr/u16-cmp: Likewise.
33128         * modules/unistr/u16-cmp2: Likewise.
33129         * modules/unistr/u16-cpy: Likewise.
33130         * modules/unistr/u16-cpy-alloc: Likewise.
33131         * modules/unistr/u16-endswith: Likewise.
33132         * modules/unistr/u16-mblen: Likewise.
33133         * modules/unistr/u16-mbsnlen: Likewise.
33134         * modules/unistr/u16-mbtouc: Likewise.
33135         * modules/unistr/u16-mbtouc-unsafe: Likewise.
33136         * modules/unistr/u16-mbtoucr: Likewise.
33137         * modules/unistr/u16-move: Likewise.
33138         * modules/unistr/u16-next: Likewise.
33139         * modules/unistr/u16-prev: Likewise.
33140         * modules/unistr/u16-set: Likewise.
33141         * modules/unistr/u16-startswith: Likewise.
33142         * modules/unistr/u16-stpcpy: Likewise.
33143         * modules/unistr/u16-stpncpy: Likewise.
33144         * modules/unistr/u16-strcat: Likewise.
33145         * modules/unistr/u16-strchr: Likewise.
33146         * modules/unistr/u16-strcmp: Likewise.
33147         * modules/unistr/u16-strcoll: Likewise.
33148         * modules/unistr/u16-strcpy: Likewise.
33149         * modules/unistr/u16-strcspn: Likewise.
33150         * modules/unistr/u16-strdup: Likewise.
33151         * modules/unistr/u16-strlen: Likewise.
33152         * modules/unistr/u16-strmblen: Likewise.
33153         * modules/unistr/u16-strmbtouc: Likewise.
33154         * modules/unistr/u16-strncat: Likewise.
33155         * modules/unistr/u16-strncmp: Likewise.
33156         * modules/unistr/u16-strncpy: Likewise.
33157         * modules/unistr/u16-strnlen: Likewise.
33158         * modules/unistr/u16-strpbrk: Likewise.
33159         * modules/unistr/u16-strrchr: Likewise.
33160         * modules/unistr/u16-strspn: Likewise.
33161         * modules/unistr/u16-strstr: Likewise.
33162         * modules/unistr/u16-strtok: Likewise.
33163         * modules/unistr/u16-to-u32: Likewise.
33164         * modules/unistr/u16-to-u8: Likewise.
33165         * modules/unistr/u16-uctomb: Likewise.
33166         * modules/unistr/u32-check: Likewise.
33167         * modules/unistr/u32-chr: Likewise.
33168         * modules/unistr/u32-cmp: Likewise.
33169         * modules/unistr/u32-cmp2: Likewise.
33170         * modules/unistr/u32-cpy: Likewise.
33171         * modules/unistr/u32-cpy-alloc: Likewise.
33172         * modules/unistr/u32-endswith: Likewise.
33173         * modules/unistr/u32-mblen: Likewise.
33174         * modules/unistr/u32-mbsnlen: Likewise.
33175         * modules/unistr/u32-mbtouc: Likewise.
33176         * modules/unistr/u32-mbtouc-unsafe: Likewise.
33177         * modules/unistr/u32-mbtoucr: Likewise.
33178         * modules/unistr/u32-move: Likewise.
33179         * modules/unistr/u32-next: Likewise.
33180         * modules/unistr/u32-prev: Likewise.
33181         * modules/unistr/u32-set: Likewise.
33182         * modules/unistr/u32-startswith: Likewise.
33183         * modules/unistr/u32-stpcpy: Likewise.
33184         * modules/unistr/u32-stpncpy: Likewise.
33185         * modules/unistr/u32-strcat: Likewise.
33186         * modules/unistr/u32-strchr: Likewise.
33187         * modules/unistr/u32-strcmp: Likewise.
33188         * modules/unistr/u32-strcoll: Likewise.
33189         * modules/unistr/u32-strcpy: Likewise.
33190         * modules/unistr/u32-strcspn: Likewise.
33191         * modules/unistr/u32-strdup: Likewise.
33192         * modules/unistr/u32-strlen: Likewise.
33193         * modules/unistr/u32-strmblen: Likewise.
33194         * modules/unistr/u32-strmbtouc: Likewise.
33195         * modules/unistr/u32-strncat: Likewise.
33196         * modules/unistr/u32-strncmp: Likewise.
33197         * modules/unistr/u32-strncpy: Likewise.
33198         * modules/unistr/u32-strnlen: Likewise.
33199         * modules/unistr/u32-strpbrk: Likewise.
33200         * modules/unistr/u32-strrchr: Likewise.
33201         * modules/unistr/u32-strspn: Likewise.
33202         * modules/unistr/u32-strstr: Likewise.
33203         * modules/unistr/u32-strtok: Likewise.
33204         * modules/unistr/u32-to-u16: Likewise.
33205         * modules/unistr/u32-to-u8: Likewise.
33206         * modules/unistr/u32-uctomb: Likewise.
33207         * modules/uniwbrk/u8-wordbreaks: Likewise.
33208         * modules/uniwbrk/u16-wordbreaks: Likewise.
33209         * modules/uniwbrk/u32-wordbreaks: Likewise.
33210         * modules/uniwbrk/ulc-wordbreaks: Likewise.
33211         * modules/uniwbrk/wordbreak-property: Likewise.
33212         * modules/uniwidth/u8-strwidth: Likewise.
33213         * modules/uniwidth/u8-width: Likewise.
33214         * modules/uniwidth/u16-strwidth: Likewise.
33215         * modules/uniwidth/u16-width: Likewise.
33216         * modules/uniwidth/u32-strwidth: Likewise.
33217         * modules/uniwidth/u32-width: Likewise.
33218         * modules/uniwidth/width: Likewise.
33219         * modules/unicase/cased-tests (Makefile.am): Link all test programs
33220         with $(LIBUNISTRING).
33221         * modules/unicase/ignorable-tests: Likewise.
33222         * modules/unicase/locale-language-tests: Likewise.
33223         * modules/unicase/tolower-tests: Likewise.
33224         * modules/unicase/totitle-tests: Likewise.
33225         * modules/unicase/toupper-tests: Likewise.
33226         * modules/unicase/u8-casecmp-tests: Likewise.
33227         * modules/unicase/u8-casecoll-tests: Likewise.
33228         * modules/unicase/u8-casefold-tests: Likewise.
33229         * modules/unicase/u8-is-cased-tests: Likewise.
33230         * modules/unicase/u8-is-casefolded-tests: Likewise.
33231         * modules/unicase/u8-is-lowercase-tests: Likewise.
33232         * modules/unicase/u8-is-titlecase-tests: Likewise.
33233         * modules/unicase/u8-is-uppercase-tests: Likewise.
33234         * modules/unicase/u8-tolower-tests: Likewise.
33235         * modules/unicase/u8-totitle-tests: Likewise.
33236         * modules/unicase/u8-toupper-tests: Likewise.
33237         * modules/unicase/u16-casecmp-tests: Likewise.
33238         * modules/unicase/u16-casecoll-tests: Likewise.
33239         * modules/unicase/u16-casefold-tests: Likewise.
33240         * modules/unicase/u16-is-cased-tests: Likewise.
33241         * modules/unicase/u16-is-casefolded-tests: Likewise.
33242         * modules/unicase/u16-is-lowercase-tests: Likewise.
33243         * modules/unicase/u16-is-titlecase-tests: Likewise.
33244         * modules/unicase/u16-is-uppercase-tests: Likewise.
33245         * modules/unicase/u16-tolower-tests: Likewise.
33246         * modules/unicase/u16-totitle-tests: Likewise.
33247         * modules/unicase/u16-toupper-tests: Likewise.
33248         * modules/unicase/u32-casecmp-tests: Likewise.
33249         * modules/unicase/u32-casecoll-tests: Likewise.
33250         * modules/unicase/u32-casefold-tests: Likewise.
33251         * modules/unicase/u32-is-cased-tests: Likewise.
33252         * modules/unicase/u32-is-casefolded-tests: Likewise.
33253         * modules/unicase/u32-is-lowercase-tests: Likewise.
33254         * modules/unicase/u32-is-titlecase-tests: Likewise.
33255         * modules/unicase/u32-is-uppercase-tests: Likewise.
33256         * modules/unicase/u32-tolower-tests: Likewise.
33257         * modules/unicase/u32-totitle-tests: Likewise.
33258         * modules/unicase/u32-toupper-tests: Likewise.
33259         * modules/unicase/ulc-casecmp-tests: Likewise.
33260         * modules/unicase/ulc-casecoll-tests: Likewise.
33261         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
33262         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
33263         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
33264         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
33265         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
33266         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
33267         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
33268         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
33269         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
33270         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
33271         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
33272         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
33273         * modules/unictype/bidicategory-byname-tests: Likewise.
33274         * modules/unictype/bidicategory-name-tests: Likewise.
33275         * modules/unictype/bidicategory-of-tests: Likewise.
33276         * modules/unictype/bidicategory-test-tests: Likewise.
33277         * modules/unictype/block-list-tests: Likewise.
33278         * modules/unictype/block-of-tests: Likewise.
33279         * modules/unictype/block-test-tests: Likewise.
33280         * modules/unictype/category-C-tests: Likewise.
33281         * modules/unictype/category-Cc-tests: Likewise.
33282         * modules/unictype/category-Cf-tests: Likewise.
33283         * modules/unictype/category-Cn-tests: Likewise.
33284         * modules/unictype/category-Co-tests: Likewise.
33285         * modules/unictype/category-Cs-tests: Likewise.
33286         * modules/unictype/category-L-tests: Likewise.
33287         * modules/unictype/category-Ll-tests: Likewise.
33288         * modules/unictype/category-Lm-tests: Likewise.
33289         * modules/unictype/category-Lo-tests: Likewise.
33290         * modules/unictype/category-Lt-tests: Likewise.
33291         * modules/unictype/category-Lu-tests: Likewise.
33292         * modules/unictype/category-M-tests: Likewise.
33293         * modules/unictype/category-Mc-tests: Likewise.
33294         * modules/unictype/category-Me-tests: Likewise.
33295         * modules/unictype/category-Mn-tests: Likewise.
33296         * modules/unictype/category-N-tests: Likewise.
33297         * modules/unictype/category-Nd-tests: Likewise.
33298         * modules/unictype/category-Nl-tests: Likewise.
33299         * modules/unictype/category-No-tests: Likewise.
33300         * modules/unictype/category-P-tests: Likewise.
33301         * modules/unictype/category-Pc-tests: Likewise.
33302         * modules/unictype/category-Pd-tests: Likewise.
33303         * modules/unictype/category-Pe-tests: Likewise.
33304         * modules/unictype/category-Pf-tests: Likewise.
33305         * modules/unictype/category-Pi-tests: Likewise.
33306         * modules/unictype/category-Po-tests: Likewise.
33307         * modules/unictype/category-Ps-tests: Likewise.
33308         * modules/unictype/category-S-tests: Likewise.
33309         * modules/unictype/category-Sc-tests: Likewise.
33310         * modules/unictype/category-Sk-tests: Likewise.
33311         * modules/unictype/category-Sm-tests: Likewise.
33312         * modules/unictype/category-So-tests: Likewise.
33313         * modules/unictype/category-Z-tests: Likewise.
33314         * modules/unictype/category-Zl-tests: Likewise.
33315         * modules/unictype/category-Zp-tests: Likewise.
33316         * modules/unictype/category-Zs-tests: Likewise.
33317         * modules/unictype/category-and-not-tests: Likewise.
33318         * modules/unictype/category-and-tests: Likewise.
33319         * modules/unictype/category-byname-tests: Likewise.
33320         * modules/unictype/category-name-tests: Likewise.
33321         * modules/unictype/category-none-tests: Likewise.
33322         * modules/unictype/category-of-tests: Likewise.
33323         * modules/unictype/category-or-tests: Likewise.
33324         * modules/unictype/category-test-withtable-tests: Likewise.
33325         * modules/unictype/combining-class-tests: Likewise.
33326         * modules/unictype/ctype-alnum-tests: Likewise.
33327         * modules/unictype/ctype-alpha-tests: Likewise.
33328         * modules/unictype/ctype-blank-tests: Likewise.
33329         * modules/unictype/ctype-cntrl-tests: Likewise.
33330         * modules/unictype/ctype-digit-tests: Likewise.
33331         * modules/unictype/ctype-graph-tests: Likewise.
33332         * modules/unictype/ctype-lower-tests: Likewise.
33333         * modules/unictype/ctype-print-tests: Likewise.
33334         * modules/unictype/ctype-punct-tests: Likewise.
33335         * modules/unictype/ctype-space-tests: Likewise.
33336         * modules/unictype/ctype-upper-tests: Likewise.
33337         * modules/unictype/ctype-xdigit-tests: Likewise.
33338         * modules/unictype/decimal-digit-tests: Likewise.
33339         * modules/unictype/digit-tests: Likewise.
33340         * modules/unictype/mirror-tests: Likewise.
33341         * modules/unictype/numeric-tests: Likewise.
33342         * modules/unictype/property-alphabetic-tests: Likewise.
33343         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
33344         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
33345         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
33346         * modules/unictype/property-bidi-block-separator-tests: Likewise.
33347         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
33348         * modules/unictype/property-bidi-common-separator-tests: Likewise.
33349         * modules/unictype/property-bidi-control-tests: Likewise.
33350         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
33351         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
33352         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
33353         * modules/unictype/property-bidi-european-digit-tests: Likewise.
33354         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
33355         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
33356         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
33357         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
33358         * modules/unictype/property-bidi-pdf-tests: Likewise.
33359         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
33360         * modules/unictype/property-bidi-whitespace-tests: Likewise.
33361         * modules/unictype/property-byname-tests: Likewise.
33362         * modules/unictype/property-combining-tests: Likewise.
33363         * modules/unictype/property-composite-tests: Likewise.
33364         * modules/unictype/property-currency-symbol-tests: Likewise.
33365         * modules/unictype/property-dash-tests: Likewise.
33366         * modules/unictype/property-decimal-digit-tests: Likewise.
33367         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
33368         * modules/unictype/property-deprecated-tests: Likewise.
33369         * modules/unictype/property-diacritic-tests: Likewise.
33370         * modules/unictype/property-extender-tests: Likewise.
33371         * modules/unictype/property-format-control-tests: Likewise.
33372         * modules/unictype/property-grapheme-base-tests: Likewise.
33373         * modules/unictype/property-grapheme-extend-tests: Likewise.
33374         * modules/unictype/property-grapheme-link-tests: Likewise.
33375         * modules/unictype/property-hex-digit-tests: Likewise.
33376         * modules/unictype/property-hyphen-tests: Likewise.
33377         * modules/unictype/property-id-continue-tests: Likewise.
33378         * modules/unictype/property-id-start-tests: Likewise.
33379         * modules/unictype/property-ideographic-tests: Likewise.
33380         * modules/unictype/property-ids-binary-operator-tests: Likewise.
33381         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
33382         * modules/unictype/property-ignorable-control-tests: Likewise.
33383         * modules/unictype/property-iso-control-tests: Likewise.
33384         * modules/unictype/property-join-control-tests: Likewise.
33385         * modules/unictype/property-left-of-pair-tests: Likewise.
33386         * modules/unictype/property-line-separator-tests: Likewise.
33387         * modules/unictype/property-logical-order-exception-tests: Likewise.
33388         * modules/unictype/property-lowercase-tests: Likewise.
33389         * modules/unictype/property-math-tests: Likewise.
33390         * modules/unictype/property-non-break-tests: Likewise.
33391         * modules/unictype/property-not-a-character-tests: Likewise.
33392         * modules/unictype/property-numeric-tests: Likewise.
33393         * modules/unictype/property-other-alphabetic-tests: Likewise.
33394         * modules/unictype/property-other-default-ignorable-code-point-tests:
33395         Likewise.
33396         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
33397         * modules/unictype/property-other-id-continue-tests: Likewise.
33398         * modules/unictype/property-other-id-start-tests: Likewise.
33399         * modules/unictype/property-other-lowercase-tests: Likewise.
33400         * modules/unictype/property-other-math-tests: Likewise.
33401         * modules/unictype/property-other-uppercase-tests: Likewise.
33402         * modules/unictype/property-paired-punctuation-tests: Likewise.
33403         * modules/unictype/property-paragraph-separator-tests: Likewise.
33404         * modules/unictype/property-pattern-syntax-tests: Likewise.
33405         * modules/unictype/property-pattern-white-space-tests: Likewise.
33406         * modules/unictype/property-private-use-tests: Likewise.
33407         * modules/unictype/property-punctuation-tests: Likewise.
33408         * modules/unictype/property-quotation-mark-tests: Likewise.
33409         * modules/unictype/property-radical-tests: Likewise.
33410         * modules/unictype/property-sentence-terminal-tests: Likewise.
33411         * modules/unictype/property-soft-dotted-tests: Likewise.
33412         * modules/unictype/property-space-tests: Likewise.
33413         * modules/unictype/property-terminal-punctuation-tests: Likewise.
33414         * modules/unictype/property-test-tests: Likewise.
33415         * modules/unictype/property-titlecase-tests: Likewise.
33416         * modules/unictype/property-unassigned-code-value-tests: Likewise.
33417         * modules/unictype/property-unified-ideograph-tests: Likewise.
33418         * modules/unictype/property-uppercase-tests: Likewise.
33419         * modules/unictype/property-variation-selector-tests: Likewise.
33420         * modules/unictype/property-white-space-tests: Likewise.
33421         * modules/unictype/property-xid-continue-tests: Likewise.
33422         * modules/unictype/property-xid-start-tests: Likewise.
33423         * modules/unictype/property-zero-width-tests: Likewise.
33424         * modules/unictype/scripts-tests: Likewise.
33425         * modules/unictype/syntax-c-ident-tests: Likewise.
33426         * modules/unictype/syntax-c-whitespace-tests: Likewise.
33427         * modules/unictype/syntax-java-ident-tests: Likewise.
33428         * modules/unictype/syntax-java-whitespace-tests: Likewise.
33429         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
33430         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
33431         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
33432         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
33433         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
33434         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
33435         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
33436         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
33437         * modules/uniname/uniname-tests: Likewise.
33438         * modules/uninorm/canonical-decomposition-tests: Likewise.
33439         * modules/uninorm/compat-decomposition-tests: Likewise.
33440         * modules/uninorm/composition-tests: Likewise.
33441         * modules/uninorm/decomposing-form-tests: Likewise.
33442         * modules/uninorm/decomposition-tests: Likewise.
33443         * modules/uninorm/filter-tests: Likewise.
33444         * modules/uninorm/nfc-tests: Likewise.
33445         * modules/uninorm/nfd-tests: Likewise.
33446         * modules/uninorm/nfkc-tests: Likewise.
33447         * modules/uninorm/nfkd-tests: Likewise.
33448         * modules/uninorm/u8-normcmp-tests: Likewise.
33449         * modules/uninorm/u8-normcoll-tests: Likewise.
33450         * modules/uninorm/u16-normcmp-tests: Likewise.
33451         * modules/uninorm/u16-normcoll-tests: Likewise.
33452         * modules/uninorm/u32-normcmp-tests: Likewise.
33453         * modules/uninorm/u32-normcoll-tests: Likewise.
33454         * modules/unistdio/u8-asnprintf-tests: Likewise.
33455         * modules/unistdio/u8-vasnprintf-tests: Likewise.
33456         * modules/unistdio/u8-vasprintf-tests: Likewise.
33457         * modules/unistdio/u8-vsnprintf-tests: Likewise.
33458         * modules/unistdio/u8-vsprintf-tests: Likewise.
33459         * modules/unistdio/u16-asnprintf-tests: Likewise.
33460         * modules/unistdio/u16-vasnprintf-tests: Likewise.
33461         * modules/unistdio/u16-vasprintf-tests: Likewise.
33462         * modules/unistdio/u16-vsnprintf-tests: Likewise.
33463         * modules/unistdio/u16-vsprintf-tests: Likewise.
33464         * modules/unistdio/u32-asnprintf-tests: Likewise.
33465         * modules/unistdio/u32-vasnprintf-tests: Likewise.
33466         * modules/unistdio/u32-vasprintf-tests: Likewise.
33467         * modules/unistdio/u32-vsnprintf-tests: Likewise.
33468         * modules/unistdio/u32-vsprintf-tests: Likewise.
33469         * modules/unistdio/ulc-asnprintf-tests: Likewise.
33470         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
33471         * modules/unistdio/ulc-vasprintf-tests: Likewise.
33472         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
33473         * modules/unistdio/ulc-vsprintf-tests: Likewise.
33474         * modules/unistr/u8-check-tests: Likewise.
33475         * modules/unistr/u8-chr-tests: Likewise.
33476         * modules/unistr/u8-cmp-tests: Likewise.
33477         * modules/unistr/u8-cmp2-tests: Likewise.
33478         * modules/unistr/u8-cpy-alloc-tests: Likewise.
33479         * modules/unistr/u8-cpy-tests: Likewise.
33480         * modules/unistr/u8-mblen-tests: Likewise.
33481         * modules/unistr/u8-mbsnlen-tests: Likewise.
33482         * modules/unistr/u8-mbtouc-tests: Likewise.
33483         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
33484         * modules/unistr/u8-mbtoucr-tests: Likewise.
33485         * modules/unistr/u8-move-tests: Likewise.
33486         * modules/unistr/u8-next-tests: Likewise.
33487         * modules/unistr/u8-prev-tests: Likewise.
33488         * modules/unistr/u8-set-tests: Likewise.
33489         * modules/unistr/u8-stpcpy-tests: Likewise.
33490         * modules/unistr/u8-stpncpy-tests: Likewise.
33491         * modules/unistr/u8-strcat-tests: Likewise.
33492         * modules/unistr/u8-strcmp-tests: Likewise.
33493         * modules/unistr/u8-strcoll-tests: Likewise.
33494         * modules/unistr/u8-strcpy-tests: Likewise.
33495         * modules/unistr/u8-strdup-tests: Likewise.
33496         * modules/unistr/u8-strlen-tests: Likewise.
33497         * modules/unistr/u8-strmblen-tests: Likewise.
33498         * modules/unistr/u8-strmbtouc-tests: Likewise.
33499         * modules/unistr/u8-strncat-tests: Likewise.
33500         * modules/unistr/u8-strncmp-tests: Likewise.
33501         * modules/unistr/u8-strncpy-tests: Likewise.
33502         * modules/unistr/u8-strnlen-tests: Likewise.
33503         * modules/unistr/u8-to-u16-tests: Likewise.
33504         * modules/unistr/u8-to-u32-tests: Likewise.
33505         * modules/unistr/u8-uctomb-tests: Likewise.
33506         * modules/unistr/u16-check-tests: Likewise.
33507         * modules/unistr/u16-chr-tests: Likewise.
33508         * modules/unistr/u16-cmp-tests: Likewise.
33509         * modules/unistr/u16-cmp2-tests: Likewise.
33510         * modules/unistr/u16-cpy-alloc-tests: Likewise.
33511         * modules/unistr/u16-cpy-tests: Likewise.
33512         * modules/unistr/u16-mblen-tests: Likewise.
33513         * modules/unistr/u16-mbsnlen-tests: Likewise.
33514         * modules/unistr/u16-mbtouc-tests: Likewise.
33515         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
33516         * modules/unistr/u16-mbtoucr-tests: Likewise.
33517         * modules/unistr/u16-move-tests: Likewise.
33518         * modules/unistr/u16-next-tests: Likewise.
33519         * modules/unistr/u16-prev-tests: Likewise.
33520         * modules/unistr/u16-set-tests: Likewise.
33521         * modules/unistr/u16-stpcpy-tests: Likewise.
33522         * modules/unistr/u16-stpncpy-tests: Likewise.
33523         * modules/unistr/u16-strcat-tests: Likewise.
33524         * modules/unistr/u16-strcmp-tests: Likewise.
33525         * modules/unistr/u16-strcoll-tests: Likewise.
33526         * modules/unistr/u16-strcpy-tests: Likewise.
33527         * modules/unistr/u16-strdup-tests: Likewise.
33528         * modules/unistr/u16-strlen-tests: Likewise.
33529         * modules/unistr/u16-strmblen-tests: Likewise.
33530         * modules/unistr/u16-strmbtouc-tests: Likewise.
33531         * modules/unistr/u16-strncat-tests: Likewise.
33532         * modules/unistr/u16-strncmp-tests: Likewise.
33533         * modules/unistr/u16-strncpy-tests: Likewise.
33534         * modules/unistr/u16-strnlen-tests: Likewise.
33535         * modules/unistr/u16-to-u32-tests: Likewise.
33536         * modules/unistr/u16-to-u8-tests: Likewise.
33537         * modules/unistr/u16-uctomb-tests: Likewise.
33538         * modules/unistr/u32-check-tests: Likewise.
33539         * modules/unistr/u32-chr-tests: Likewise.
33540         * modules/unistr/u32-cmp-tests: Likewise.
33541         * modules/unistr/u32-cmp2-tests: Likewise.
33542         * modules/unistr/u32-cpy-alloc-tests: Likewise.
33543         * modules/unistr/u32-cpy-tests: Likewise.
33544         * modules/unistr/u32-mblen-tests: Likewise.
33545         * modules/unistr/u32-mbsnlen-tests: Likewise.
33546         * modules/unistr/u32-mbtouc-tests: Likewise.
33547         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
33548         * modules/unistr/u32-mbtoucr-tests: Likewise.
33549         * modules/unistr/u32-move-tests: Likewise.
33550         * modules/unistr/u32-next-tests: Likewise.
33551         * modules/unistr/u32-prev-tests: Likewise.
33552         * modules/unistr/u32-set-tests: Likewise.
33553         * modules/unistr/u32-stpcpy-tests: Likewise.
33554         * modules/unistr/u32-stpncpy-tests: Likewise.
33555         * modules/unistr/u32-strcat-tests: Likewise.
33556         * modules/unistr/u32-strcmp-tests: Likewise.
33557         * modules/unistr/u32-strcoll-tests: Likewise.
33558         * modules/unistr/u32-strcpy-tests: Likewise.
33559         * modules/unistr/u32-strdup-tests: Likewise.
33560         * modules/unistr/u32-strlen-tests: Likewise.
33561         * modules/unistr/u32-strmblen-tests: Likewise.
33562         * modules/unistr/u32-strmbtouc-tests: Likewise.
33563         * modules/unistr/u32-strncat-tests: Likewise.
33564         * modules/unistr/u32-strncmp-tests: Likewise.
33565         * modules/unistr/u32-strncpy-tests: Likewise.
33566         * modules/unistr/u32-strnlen-tests: Likewise.
33567         * modules/unistr/u32-to-u16-tests: Likewise.
33568         * modules/unistr/u32-to-u8-tests: Likewise.
33569         * modules/unistr/u32-uctomb-tests: Likewise.
33570         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
33571         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
33572         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
33573         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
33574         * modules/uniwidth/u8-strwidth-tests: Likewise.
33575         * modules/uniwidth/u8-width-tests: Likewise.
33576         * modules/uniwidth/u16-strwidth-tests: Likewise.
33577         * modules/uniwidth/u16-width-tests: Likewise.
33578         * modules/uniwidth/u32-strwidth-tests: Likewise.
33579         * modules/uniwidth/u32-width-tests: Likewise.
33580         * modules/uniwidth/width-tests: Likewise.
33581
33582 2010-05-18  Richard Jones  <rjones@redhat.com>
33583
33584         doc: users.txt: list hivex
33585         * users.txt: Add hivex.
33586
33587 2010-05-18  Richard Jones  <rjones@redhat.com>
33588
33589         doc: users.txt: list febootstrap
33590         * users.txt: Add febootstrap.
33591
33592 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
33593
33594         bootstrap: fix an error when gnulib is not used as a git submodule
33595         * build-aux/bootstrap (gnulib_path): If its length is zero then
33596         assign "gnulib" to it.
33597         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
33598
33599 2010-05-16  Bruno Haible  <bruno@clisp.org>
33600
33601         Avoid autoconf warnings about AM_ICONV.
33602         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
33603         2.64.
33604
33605 2010-05-16  Bruno Haible  <bruno@clisp.org>
33606
33607         absolute-header: Make the macro usable in more situations.
33608         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
33609         from gl_ABSOLUTE_HEADER.
33610         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
33611
33612 2010-05-16  James Youngman  <jay@gnu.org>
33613
33614         doc: update users.txt
33615         * users.txt: Add CSSC.
33616
33617 2010-05-16  Jim Meyering  <meyering@redhat.com>
33618
33619         init.sh: fix an error in the previous change; add more comments
33620         * tests/init.sh: Compare exit code in loop against 9, not 2.
33621         Patch by Bruno Haible.
33622         Make the two tests more similar by adding an empty "then" clause.
33623         Add comments.
33624
33625         init.sh: avoid unnecessary shell re-exec
33626         * tests/init.sh: Improve the re-exec-required check to first test the
33627         current shell.  If it passes the test, do not search for a shell that
33628         does pass, and do not re-exec.  This test is particularly contorted to
33629         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
33630         of $(...) evokes a syntax error and causes immediate shell exit with
33631         status 2.  Bruno Haible reported that the re-exec made it impossible
33632         to single-step through any init.sh-using script.
33633
33634 2010-05-16  Bruno Haible  <bruno@clisp.org>
33635
33636         Fix collision between gnulib's and libintl's printf replacements.
33637         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
33638         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
33639         (printf): When using GNU C, map the __printf__ function to rpl_printf
33640         via __asm__. When not using GNU C, define rpl_printf instead of
33641         __printf__.
33642         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
33643         commit.
33644         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
33645         commit.
33646         * m4/asm-underscore.m4: New file.
33647         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
33648         * modules/stdio (Files): Add m4/asm-underscore.m4.
33649         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
33650         Reported by Ben Pfaff.
33651
33652 2010-05-16  Bruno Haible  <bruno@clisp.org>
33653
33654         verify: Avoid skipping the test on openSUSE 11.0.
33655         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
33656
33657 2010-05-13  Bruno Haible  <bruno@clisp.org>
33658
33659         Avoid useless warnings from G++.
33660         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
33661         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
33662         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33663
33664 2010-05-11  Jim Meyering  <meyering@redhat.com>
33665
33666         maint.mk: tweak preceding change
33667         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
33668         regexps tighter by anchoring at EOL, and make the new group "shy"
33669         for slightly decreased overhead.
33670
33671 2010-05-11  Eric Blake  <eblake@redhat.com>
33672
33673         maint.mk: gnulib doesn't guarantee NSIG
33674         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
33675
33676 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33677
33678         test-pwrite.c: Remove unused variable declaration.
33679         * tests/test-pwrite.c (main): Remove read_buf declaration.
33680
33681         Remove useless test-pwrite.sh file.
33682         * tests/test-pwrite.sh: Delete file.
33683         * modules/pwrite-tests: Remove references.
33684         Reported by Bruno Haible.
33685
33686 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
33687
33688         init.sh: fix a typo
33689         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
33690
33691 2010-05-10  Jim Meyering  <meyering@redhat.com>
33692
33693         maint.mk: avoid using a temporary file in the always-defined-macros check
33694         * top/maint.mk (.re-defmac): Remove rule.
33695         (gl_trap_): Remove definition.
33696         (sc_prohibit_always-defined_macros): Rewrite not to create and
33697         depend on a temporary file.  Instead, depend on GNU grep's ability
33698         to read a list of regular expressions from stdin when given "-f -".
33699
33700 2010-05-09  Bruno Haible  <bruno@clisp.org>
33701
33702         Update to GNU gettext 0.18, part 1.
33703         * m4/gettext.m4: Update to GNU gettext 0.18.
33704         * m4/intl.m4: Likewise.
33705         * m4/po.m4: Likewise.
33706         * modules/gettext (Files): Add m4/fcntl-o.m4.
33707         (configure.ac): Require gettext infrastructure from version 0.18.
33708
33709 2010-05-09  Jim Meyering  <meyering@redhat.com>
33710
33711         init.sh: enable MALLOC_PERTURB_
33712         * tests/init.sh: Enable glibc's malloc-perturbing option.
33713
33714         maint.mk: improve sc_cross_check_PATH_usage_in_tests
33715         With my recent change in init.sh from the two-line form:
33716             -#   : ${srcdir=.}
33717             -#   . "$srcdir/init.sh"; path_prepend_ .
33718             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
33719         I noticed that using the one-line form would cause this test
33720         to fail with a false-positive, or to stop working altogether,
33721         depending on whether help-version changed or all the tests did.
33722         * top/maint.mk (_hv_regex): Remove this definition.
33723         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
33724         (_hv_regex_strong): Use a stronger regex to check for conformance.
33725         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
33726         Give a separate diagnostic for lack of conforming use.
33727
33728         maint.mk: prohibit definition of symbols defined by gnulib
33729         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
33730         definition of symbols defined by gnulib.
33731
33732 2010-05-09  Bruno Haible  <bruno@clisp.org>
33733
33734         acl: Avoid test failure on Cygwin-hosted mingw.
33735         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
33736
33737 2010-05-09  Bruno Haible  <bruno@clisp.org>
33738
33739         error: Use system's fcntl function.
33740         * lib/error.c (fcntl): Undefine.
33741
33742 2010-05-09  Jim Meyering  <meyering@redhat.com>
33743
33744         verify: adjust formatting to be more consistent
33745         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
33746         argument-list '('s, and after one comma.
33747
33748 2010-05-09  Bruno Haible  <bruno@clisp.org>
33749
33750         error: More reliable output on mingw.
33751         * lib/error.c: Include <windows.h>.
33752         (is_open): New function.
33753         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
33754         defined.
33755
33756 2010-05-09  Bruno Haible  <bruno@clisp.org>
33757
33758         vasnprintf: Fix syntax errors in libintl build on mingw.
33759         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
33760         pad_ourselves and prec_ourselves after use.
33761
33762 2010-05-08  Bruno Haible  <bruno@clisp.org>
33763
33764         * lib/config.charset: Update comments for Cygwin 1.7.
33765         * lib/localcharset.c: Likewise.
33766
33767 2010-05-07  Jim Meyering  <meyering@redhat.com>
33768
33769         init.sh: improve comments
33770         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
33771         . "${srcdir=.}/init.sh"; path_prepend_ .
33772         Add a note about path_prepend_ and the alternative of using
33773         TESTS_ENVIRONMENT.
33774
33775 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33776
33777         exclude: Unescape hashed patterns in wildcard mode.
33778         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
33779         to the hash list.
33780         * tests/test-exclude8.sh: New test case.
33781         * modules/exclude-tests: Add new test.
33782
33783 2010-05-05  Eric Blake  <eblake@redhat.com>
33784
33785         verify: automate tests
33786         * modules/verify-tests: New module.
33787         * tests/test-verify.sh: New file.
33788         * tests/test-verify.c: Guard each negative test with a unique id.
33789         Also avoid warning about unused left hand of comma expressions.
33790
33791 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33792
33793         Further improvements to verify.h, suggested by Eric Blake.
33794         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
33795         the GL_* versions, to avoid collision with OpenGL.
33796         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
33797         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
33798         than testing merely whether it's defined.
33799
33800         Modify verify.h to pacify gcc -Wredundant_decls.
33801         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
33802         These use the prefix "GL_" since they're likely to be useful elsewhere.
33803         We may need to break them out into a different .h file.
33804         (__COUNTER__): Define to 0 if the compiler doesn't support it.
33805         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
33806         of verify_function__.
33807
33808 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33809
33810         Tests for module pwrite.
33811         * modules/pwrite-tests: New file.
33812         * tests/test-pwrite.sh: New file.
33813         * tests/test-pwrite.c: New file.
33814
33815         New module pwrite.
33816         * lib/unistd.in.h (pwrite): New declaration.
33817         * lib/pwrite.c: New file, from glibc with modifications.
33818         * m4/pwrite.m4: New file.
33819         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
33820         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
33821         REPLACE_PWRITE.
33822         * modules/pwrite: New file.
33823         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
33824         REPLACE_PWRITE.
33825         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
33826         * doc/posix-functions/pwrite.texi: Mention the new module.
33827
33828 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
33829
33830         pread: Update documentation.
33831         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33832
33833 2010-05-04  Eric Blake  <eblake@redhat.com>
33834
33835         docs: update cygwin progress
33836         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33837         this bug.
33838         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33839         Added in cygwin 1.7.2.
33840         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33841         Likewise.
33842         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33843         Likewise.
33844         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33845         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33846         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33847         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33848         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33849         Mention nproc module.
33850         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33851         bug in cygwin 1.7.5 addition.
33852         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33853         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33854         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33855         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33856         1.7.5.
33857         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33858         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33859         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33860         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33861         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33862         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33863         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33864         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33865         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33866         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33867         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33868         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33869         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33870         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33871         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33872         Likewise.
33873         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33874         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33875         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33876         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33877         Likewise.
33878         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33879         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33880         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33881         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33882         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33883         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33884         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33885         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33886         Likewise.
33887         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33888         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33889         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33890         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33891         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33892         Likewise.
33893         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33894         Likewise.
33895         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33896         Likewise.
33897         * doc/glibc-functions/xdrrec_endofrecord.texi
33898         (xdrrec_endofrecord): Likewise.
33899         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33900         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33901         Likewise.
33902         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33903         Likewise.
33904
33905 2010-05-04  Jim Meyering  <meyering@redhat.com>
33906
33907         gendocs.sh: make its "-s FILE" option more useful
33908         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33909         $PACKAGE to reflect the probably-different basename of "FILE".
33910
33911 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33912
33913         bootstrap: don't ignore download_po_files failure
33914         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33915         failure.
33916
33917 2010-05-03  Jim Meyering  <meyering@redhat.com>
33918
33919         maint.mk: allow to pass options to gendocs.sh
33920         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33921         (gendocs_options_): New overridable variable.
33922
33923         gnu-web-doc-update: don't ignore configure or build failure
33924         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33925
33926         announce-gen: backslash-escape '@'s in --help output
33927         * build-aux/announce-gen: Fix syntax errors.
33928
33929         maint.mk, announce-gen: allow project-specific announcement mail headers
33930         * top/maint.mk (translation_project_): Define default.
33931         (announcement_Cc_, announcement_mail_headers_): Likewise.
33932         (announcement): Invoke announce-gen with new --mail-headers option.
33933         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33934
33935         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33936         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33937         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33938         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33939         line in the "err2" output file when running "make check" in verbose
33940         mode (i.e., with set -x enabled).
33941
33942 2010-05-03  Bruno Haible  <bruno@clisp.org>
33943
33944         wctob: Fix for weird platforms.
33945         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33946         argument value.
33947
33948 2010-05-03  Jim Meyering  <meyering@redhat.com>
33949
33950         maint.mk: prohibit unwarranted use of <strings.h>
33951         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33952         strings.h in a file that does not also use strcasecmp, strncasecmp,
33953         ffs or ffsll.
33954
33955         maint.mk: remove obsolete comments
33956         * top/maint.mk: Remove stale, commented-out rules.
33957
33958 2010-05-02  Bruno Haible  <bruno@clisp.org>
33959
33960         wcwidth: Declare also when it's aliased.
33961         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33962         macro.
33963
33964 2010-05-02  Bruno Haible  <bruno@clisp.org>
33965
33966         Fix regression from 2010-04-25.
33967         * gnulib-tool (func_modules_transitive_closure): Check the status of
33968         all modules, not only of the tests that are of the form foo-tests where
33969         foo is a module.
33970
33971 2010-05-02  Bruno Haible  <bruno@clisp.org>
33972
33973         wctob: Work around nasty Cygwin 1.7.2 bug.
33974         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33975         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33976
33977 2010-05-01  Bruno Haible  <bruno@clisp.org>
33978
33979         fpurge: Sharper test.
33980         * tests/test-fpurge.c (main): Add one more ftell check.
33981         * modules/fpurge-tests (Depends-on): Add ftell.
33982         Suggested by Eric Blake.
33983
33984 2010-05-01  Bruno Haible  <bruno@clisp.org>
33985
33986         ftello: Another test.
33987         * tests/test-ftello3.c: New file.
33988         * modules/ftello-tests (Files): Add it.
33989         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33990         MOSTLYCLEANFILES.
33991
33992         ftell: Another test.
33993         * tests/test-ftell3.c: New file.
33994         * modules/ftell-tests (Files): Add it.
33995         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33996         MOSTLYCLEANFILES.
33997
33998 2010-05-01  Bruno Haible  <bruno@clisp.org>
33999
34000         ftell, ftello: Work around Solaris bug.
34001         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34002         * lib/ftello.c: Include stdio-impl.h.
34003         (ftello): On Solaris, when _IOWRT is set, compute the result without
34004         looking at _IOREAD.
34005         * modules/ftello (Files): Add lib/stdio-impl.h.
34006         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34007         * doc/posix-functions/ftello.texi: Likewise.
34008         Reported by Eric Blake.
34009
34010 2010-05-01  Bruno Haible  <bruno@clisp.org>
34011
34012         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34013         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34014         the _IOWRT flag is also set.
34015
34016 2010-05-01  Bruno Haible  <bruno@clisp.org>
34017
34018         Fix doc about a HP-UX stdio bug.
34019         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34020         * doc/posix-functions/ftello.texi: Likewise.
34021
34022 2010-05-01  Bruno Haible  <bruno@clisp.org>
34023
34024         lseek test: Fix failure on Solaris.
34025         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34026         output.
34027
34028 2010-04-30  Jim Meyering  <meyering@redhat.com>
34029
34030         bootstrap: don't ignore failure to generate po*/Makevars
34031         * build-aux/bootstrap (with_gettext): Don't ignore failure
34032         to create po/Makevars or runtime-po/Makevars.
34033
34034 2010-04-29  Eric Blake  <eblake@redhat.com>
34035
34036         headers: relax license to LGPLv2+
34037         * modules/fcntl-h (License): Relax license.
34038         * modules/getopt-posix (License): Likewise.
34039         * modules/locale (License): Likewise.
34040         * modules/math (License): Likewise.
34041         * modules/pty (License): Likewise.
34042         * modules/sched (License): Likewise.
34043         * modules/search (License): Likewise.
34044         * modules/spawn (License): Likewise.
34045         * modules/stdarg (License): Likewise.
34046         * modules/sysexits (License): Likewise.
34047
34048 2010-04-29  Jim Meyering  <meyering@redhat.com>
34049
34050         inttypes: relax license to LGPLv2+
34051         * modules/inttypes (License): Relax license.
34052
34053 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34054
34055         * top/maint.mk (indent): Run twice to produce idempotent results.
34056
34057 2010-04-28  Bruno Haible  <bruno@clisp.org>
34058
34059         getdate: Generate getdate.c in the source directory.
34060         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34061         MOSTLYCLEANFILES.
34062         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
34063
34064 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
34065
34066         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
34067         is not declared as a const *; avoid warnings in that case.
34068
34069 2010-04-28  Eric Blake  <eblake@redhat.com>
34070
34071         canonicalize-lgpl: avoid compiler warning
34072         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
34073         declaration' / 'extraneous semicolon' warning with some compilers.
34074         Reported by Andreas Gruenbacher.
34075
34076 2010-04-28  Jim Meyering  <meyering@redhat.com>
34077
34078         init.sh: ensure a more reliable exit status when exiting via trap
34079         * tests/init.sh (setup_): Don't rely on $? in signal handler.
34080         Inspired by patches from Dmitry V. Levin.
34081         Also trap on signal 3 (SIGQUIT).
34082
34083 2010-04-27  Bruno Haible  <bruno@clisp.org>
34084
34085         Update doc about utimes().
34086         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
34087         'utimens' module.
34088         Reported by Andreas Gruenbacher <agruen@suse.de>.
34089
34090 2010-04-27  Eric Blake  <eblake@redhat.com>
34091
34092         full-read, full-write: relax license
34093         * modules/full-read (License): Drop to LGPLv2+.
34094         * modules/full-write (License): Likewise.
34095         * modules/safe-read (License): Likewise.
34096         * modules/safe-write (License): Likewise.
34097
34098         pthread: mention library for linking
34099         * modules/pthread (Link): Mention $(LIB_PTHREAD).
34100
34101 2010-04-27  Jim Meyering  <meyering@redhat.com>
34102
34103         maint.mk: fix a bug introduced in last change
34104         * top/maint.mk (gl_assured_headers_): Now that all names are on
34105         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
34106         is not anchored to end of word, it should be adequate.
34107
34108         maint.mk: avoid side-effect in latest syntax-check
34109         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
34110         to run commands via $(shell...), and hence to incur cost only when
34111         the new rule is actually run.
34112
34113         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
34114         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
34115         and use that to create a regexp used to detect all #if HAVE_..._H uses.
34116         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
34117         (gl_assured_headers_, az_, AZ_): Define.
34118         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
34119
34120 2010-04-26  Jim Meyering  <jim@meyering.net>
34121             Bruno Haible  <bruno@clisp.org>
34122
34123         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
34124         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
34125         Prompted by an exchange with Gilles Espinasse.
34126
34127 2010-04-26  Jim Meyering  <meyering@redhat.com>
34128
34129         git-version-gen: aesthetic tweak
34130         * build-aux/git-version-gen: Use "$nl" rather than a literal,
34131         so that the command remains on a single line.
34132
34133 2010-04-26  Eric Blake  <eblake@redhat.com>
34134
34135         git-version-gen: allow use on EBCDIC hosts
34136         * build-aux/git-version-gen (dirty): Use literal rather than tying
34137         ourselves to ascii.
34138         Reported by Steve Goetze.
34139
34140 2010-04-25  Bruno Haible  <bruno@clisp.org>
34141
34142         netdb: Add support for GNULIB_POSIXCHECK.
34143         * lib/netdb.in.h: Include warn-on-use.h.
34144         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
34145         functions are used when GNULIB_POSIXCHECK is defined and the
34146         getaddrinfo module is not in use.
34147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
34148         freeaddrinfo, gai_strerror, getnameinfo are declared.
34149         * modules/netdb (Depends-on): Add warn-on-use.
34150         (Makefile.am): Include warn-on-use.h in netdb.h.
34151
34152 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
34153
34154         build: avoid "make check" failure without .git/ directory
34155         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
34156         there is no .git/ directory.
34157
34158 2010-04-25  Bruno Haible  <bruno@clisp.org>
34159
34160         ptsname: Fix misuse of ttyname_r.
34161         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
34162         of errno.
34163
34164 2010-04-25  Bruno Haible  <bruno@clisp.org>
34165
34166         ttyname_r: Make it work on Solaris 10.
34167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
34168         if the system function has the POSIX declaration. Test whether the
34169         function fails if the buffer is less than 128 bytes large.
34170         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
34171         system's ttyname_r function. Provide a reasonably large buffer.
34172         * modules/ttyname_r (Depends-on): Add extensions.
34173         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
34174
34175 2010-04-25  Bruno Haible  <bruno@clisp.org>
34176
34177         Use the 'extensions' module for some more functions on Solaris.
34178         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
34179         module.
34180         * doc/posix-functions/ctime_r.texi: Likewise.
34181         * doc/posix-functions/getgrgid_r.texi: Likewise.
34182         * doc/posix-functions/getgrnam_r.texi: Likewise.
34183         * doc/posix-functions/getpwnam_r.texi: Likewise.
34184         * doc/posix-functions/getpwuid_r.texi: Likewise.
34185         * doc/posix-functions/readdir_r.texi: Likewise.
34186         * doc/posix-functions/sigwait.texi: Likewise.
34187         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
34188         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
34189
34190 2010-04-25  Bruno Haible  <bruno@clisp.org>
34191
34192         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
34193         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
34194         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
34195         * lib/ttyname_r.c: Include <limits.h>.
34196         (ttyname_r): Define using the system's ttyname_r function, if it exists
34197         and not on Solaris.
34198         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
34199         set.
34200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
34201         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
34202         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
34203         Reported by Simon Josefsson.
34204
34205 2010-04-25  Bruno Haible  <bruno@clisp.org>
34206
34207         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
34208         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
34209         * doc/posix-functions/ctime_r.texi: Likewise.
34210         * doc/posix-functions/getgrgid_r.texi: Likewise.
34211         * doc/posix-functions/getgrnam_r.texi: Likewise.
34212         * doc/posix-functions/getlogin_r.texi: Likewise.
34213         * doc/posix-functions/getpwnam_r.texi: Likewise.
34214         * doc/posix-functions/getpwuid_r.texi: Likewise.
34215         * doc/posix-functions/readdir_r.texi: Likewise.
34216         * doc/posix-functions/sigwait.texi: Likewise.
34217         * doc/posix-functions/ttyname_r.texi: Likewise.
34218         Reported by Simon Josefsson.
34219
34220 2010-04-25  Bruno Haible  <bruno@clisp.org>
34221
34222         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
34223         * gnulib-tool (func_usage): Document that --with-*-tests options apply
34224         also to --create-testdir.
34225         (func_acceptable): Don't consider the status of *-tests modules here.
34226         (func_modules_transitive_closure): Consider it here, before including a
34227         test module.
34228         (func_import, func_create_testdir): Set inc_all_direct_tests,
34229         inc_all_indirect_tests.
34230         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
34231         --create-testdir and --create-megatestdir.
34232
34233 2010-04-25  Bruno Haible  <bruno@clisp.org>
34234
34235         gnulib-tool: Add --without-*-tests options.
34236         * gnulib-tool (func_usage): Document the --without-*-tests options.
34237         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
34238         excl_unportable_tests): New variables.
34239         Fail if they are specified with --import or --update.
34240         (func_acceptable): Respect the excl_*_tests variables.
34241         (func_import): Set the excl_*_tests variables to empty.
34242
34243 2010-04-25  Simon Josefsson  <simon@josefsson.org>
34244             Bruno Haible  <bruno@clisp.org>
34245
34246         Work around a MacOS X 10.4 bug with openpty.
34247         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
34248         * tests/test-openpty.c (main): Close the master side explicitly.
34249
34250 2010-04-25  Bruno Haible  <bruno@clisp.org>
34251
34252         strnlen: Fix a C++ test error on MacOS X and Solaris.
34253         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
34254         the function is not declared.
34255         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
34256         Simon Josefsson.
34257
34258 2010-04-24  Bruno Haible  <bruno@clisp.org>
34259
34260         Avoid a gcc warning.
34261         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
34262         of correct type for %08lx directive.
34263         Reported by Eric Blake.
34264
34265 2010-04-24  Bruno Haible  <bruno@clisp.org>
34266
34267         vasnprintf: Correct errno value in case of out-of-memory.
34268         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
34269         or sprintf. Use the errno value from SNPRINTF or sprintf.
34270         Reported by Ian Beckwith <ianb@erislabs.net>.
34271
34272 2010-04-24  Bruno Haible  <bruno@clisp.org>
34273
34274         ansi-c++-opt: Find correct compiler when cross-compiling.
34275         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
34276         AC_CHECK_PROGS.
34277         Reported by Simon Josefsson.
34278
34279 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
34280
34281         vc-list-files: Add support for subversion
34282         * build-aux/vc-list-files: Use "svn list" to generate the list of
34283         files controlled by subversion.
34284
34285 2010-04-23  Jim Meyering  <meyering@redhat.com>
34286
34287         vc-list-files tests: convert to use init.sh
34288         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
34289         path_prepend_.
34290         Use Exit, not exit.
34291         Use skip_ rather than open coding it.
34292         Remove trap set-up and compare definitions.
34293         * tests/test-vc-list-files-git.sh: Likewise.
34294         * modules/vc-list-files-tests (Files): Add tests/init.sh.
34295
34296 2010-04-22  Simon Josefsson  <simon@josefsson.org>
34297
34298         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
34299         backup files.
34300
34301 2010-04-21  Simon Josefsson  <simon@josefsson.org>
34302
34303         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
34304
34305 2010-04-20  Eric Blake  <eblake@redhat.com>
34306
34307         tests: be robust to ignored SIGPIPE
34308         * tests/test-select-in.sh: Consume all output.
34309         * tests/test-lseek.sh: Check correct exit status, while avoiding
34310         EPIPE.
34311
34312 2010-04-20  Simon Josefsson  <simon@josefsson.org>
34313             Bruno Haible  <bruno@clisp.org>
34314
34315         visibility: Don't use -fvisibility if it leads to a warning.
34316         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
34317         yes, don't pretend that visibility works if it leads to a warning.
34318         Reported by Mike Gran <spk121@yahoo.com>.
34319
34320 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
34321
34322         * build-aux/bootstrap: Use "git -h" for testing for supported options
34323         instead of "git --help".  The short-form option only shows a summary,
34324         and doesn't layout the full man page.  Grep for the full option name
34325         in the summary, too.
34326
34327 2010-04-19  Bruno Haible  <bruno@clisp.org>
34328
34329         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
34330         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
34331         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
34332         mention of RELOCATABLE_STRIP.
34333         Reported by Sylvain Beucler <beuc@beuc.net>.
34334
34335 2010-04-19  Bruno Haible  <bruno@clisp.org>
34336
34337         * lib/diffseq.h: Fix typo in comment.
34338         Reported by Eric Blake.
34339
34340 2010-04-19  Bruno Haible  <bruno@clisp.org>
34341
34342         ioctl: Move autoconf macro to a .m4 file.
34343         * m4/ioctl.m4: New file, extracted from modules/ioctl.
34344         * modules/ioctl (Files): Add it.
34345         (configure.ac): Simply invoke gl_FUNC_IOCTL.
34346         Reported by Ian Beckwith <ianb@erislabs.net>.
34347
34348 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
34349             Bruno Haible  <bruno@clisp.org>
34350
34351         diffseq: Accommodate use-case with abstract arrays.
34352         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
34353         is not defined.
34354         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
34355         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
34356
34357 2010-04-18  Bruno Haible  <bruno@clisp.org>
34358
34359         * doc/posix-headers/stdbool.texi: More precise wording.
34360
34361 2010-04-17  Jim Meyering  <meyering@redhat.com>
34362
34363         maint.mk: use gnu-style indentation in an embedded perl script
34364         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
34365         Rename variable: s/two/last_two_bytes/
34366
34367 2010-04-16  Eric Blake  <eblake@redhat.com>
34368
34369         test-stdbool: skip test that fails with Solaris CC
34370         * tests/test-stdbool.c (f): Skip test that causes compilation
34371         error under buggy C++ compiler.
34372         * lib/stdbool.in.h: Document the limitation.
34373         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
34374
34375         setenv: allow compilation with C++
34376         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
34377         register keyword.
34378
34379         stdint: allow test to pass with C++
34380         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
34381
34382         getopt: allow compilation with C++
34383         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
34384         struct.
34385         * lib/getopt.c (_getopt_internal_r): Use correct type.
34386         Reported by Dagobert Michelson, via Joel E. Denny.
34387
34388 2010-04-16  Bruno Haible  <bruno@clisp.org>
34389
34390         Override netdb.h always.
34391         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
34392         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
34393         Reported by Ludovic Courtès <ludo@gnu.org>.
34394
34395 2010-04-15  Bruno Haible  <bruno@clisp.org>
34396
34397         openpty: Fix mistake from 2010-03-21.
34398         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
34399         Reported by Simon Josefsson.
34400
34401 2010-04-15  Eric Blake  <eblake@redhat.com>
34402
34403         test-forkpty: fix expected signature
34404         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
34405         Reported by Simon Josefsson.
34406
34407 2010-04-15  Jim Meyering  <meyering@redhat.com>
34408
34409         maint.mk: texinfo_suffix_re_: correct the default regexp
34410         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
34411
34412         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
34413         make it configurable via texinfo_suffix_re_.
34414
34415 2010-04-14  Eric Blake  <eblake@redhat.com>
34416
34417         strtok_r: relax license to LGPLv2+
34418         * modules/strtok_r (License): Relax license.
34419         Reported by Matthias Bolte.
34420
34421 2010-04-14  Simon Josefsson  <simon@josefsson.org>
34422
34423         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
34424         version 1.4.4 by default instead of requiring the libgcrypt
34425         version used during build.  This makes it possible to use the
34426         application with older but still binary compatible libgcrypt
34427         versions.
34428
34429 2010-04-13  Eric Blake  <eblake@redhat.com>
34430
34431         getopt-gnu: match recent glibc fixes and posix ruling
34432         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
34433         '+' handling, when requesting extensions.
34434         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
34435         'W;' handling.
34436         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
34437         * doc/posix-functions/getopt.texi (getopt): Document this.
34438         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34439         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34440         Likewise.
34441
34442         getopt: merge bug fixes from glibc
34443         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
34444         diagnostics.  Honor '+:' correctly.  Reject ';'.
34445
34446         getopt-posix: detect MacOS bug
34447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
34448         optind when missing a required argument.
34449         * doc/posix-functions/getopt.texi (getopt): Document the bug.
34450         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
34451         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34452         Likewise.
34453
34454         getopt-posix: avoid spurious failure on Solaris
34455         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
34456         an indicator that setting optind=1 is sufficient for reset.
34457
34458         getopt-posix: avoid spurious failure on FreeBSD
34459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
34460         in POSIX mode, since the m4 test uses it.
34461
34462         gnulib-tool: silence warning on BSD sh
34463         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
34464
34465 2010-04-13  Jim Meyering  <meyering@redhat.com>
34466
34467         doc: users.txt: GNU patch now uses gnulib
34468         * users.txt: Add patch.
34469
34470 2010-04-12  Jim Meyering  <meyering@redhat.com>
34471
34472         maint.mk: generate more concise timing data for syntax-check rules
34473         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
34474         " done" from each line that reports a syntax-check test duration.
34475
34476 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
34477
34478         git-version-gen: use "git update-index..." rather than "git status"
34479         * build-aux/git-version-gen: Use git update-index --refresh, not
34480         "git status".  With some versions of git, "git status" would fail
34481         to update the index and result in an unwarranted "-dirty" suffix.
34482
34483 2010-04-11  Jim Meyering  <meyering@redhat.com>
34484
34485         openat: correct formatting (no semantic change)
34486         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
34487         Suggested by Bruno Haible.
34488
34489 2010-04-11  Bruno Haible  <bruno@clisp.org>
34490
34491         Stricter declaration checking in testdirs.
34492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34493         If for_tests is true, augment AM_CPPFLAGS to define
34494         GNULIB_STRICT_CHECKING.
34495         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
34496         GNULIB_STRICT_CHECKING is defined, verify that the function is
34497         declared.
34498
34499 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
34500             Bruno Haible  <bruno@clisp.org>
34501
34502         libunistring: Improve configure output.
34503         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
34504         Don't say "consider installing GNU libunistring" when checking again
34505         with libiconv.
34506
34507 2010-04-11  Bruno Haible  <bruno@clisp.org>
34508
34509         libunistring: Correct value of $LTLIBUNISTRING.
34510         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
34511         correct the value of $LTLIBUNISTRING.
34512
34513 2010-04-11  Bruno Haible  <bruno@clisp.org>
34514
34515         havelib: Add static libraries to LIBS in the right order.
34516         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
34517         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
34518
34519 2010-04-11  Bruno Haible  <bruno@clisp.org>
34520
34521         libunistring: Detect libunistring also when it depends on libiconv.
34522         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
34523         the second AC_LIB_HAVE_LINKFLAGS invocation.
34524
34525 2010-04-11  James Youngman  <jay@gnu.org>
34526
34527         close-stream: declare local scalars to be "const"
34528         * lib/close-stream.c (close_stream): Make boolean variables const
34529         to document the fact that we set but do not change them.
34530
34531 2010-04-11  Bruno Haible  <bruno@clisp.org>
34532
34533         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
34534
34535 2010-04-11  Jim Meyering  <meyering@redhat.com>
34536
34537         maint.mk: don't include dist-check.mk
34538         * top/maint.mk: Remove bogus include directive.
34539
34540         maint.mk: improve empty-line-at-EOF check
34541         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
34542         solution, rather than tail+Perl-based one.  The latter would read
34543         a few kilobytes from the end of each file, and did not handle empty
34544         files properly.
34545
34546         maint.mk: print the elapsed time for each syntax-check rule
34547         * top/maint.mk (sc_m_rules_): Save start time in a file.
34548         (sc_z_rules_): New rules: remove temp file and print elapsed time.
34549         (local-check): Interpose the .z rules
34550
34551 2010-04-11  Jim Meyering  <meyering@redhat.com>
34552
34553         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
34554         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
34555         empty file with one that ends in an empty line.
34556
34557 2010-04-10  Bruno Haible  <bruno@clisp.org>
34558
34559         mkdir: Make it work on mingw64.
34560         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
34561         * lib/mkdir.c: Update comment.
34562         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
34563
34564 2010-04-10  Bruno Haible  <bruno@clisp.org>
34565
34566         Don't override improved macro from newer autoconf.
34567         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
34568         autoconf >= 2.62.
34569         Reported by Joel E. Denny <jdenny@clemson.edu>.
34570
34571 2010-04-10  Jim Meyering  <meyering@redhat.com>
34572
34573         maint.mk: new syntax-check rule: prohibit empty lines at end of file
34574         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
34575
34576         maint.mk: correct a diagnostic
34577         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
34578         in diagnostic; now use $prohibit.
34579
34580 2010-04-10  Bruno Haible  <address@hidden>
34581
34582         fchownat: Fix a C++ test error on Solaris 8.
34583         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
34584         the function does not exist.
34585
34586 2010-04-10  Bruno Haible  <bruno@clisp.org>
34587
34588         vasnprintf: Add more tests.
34589         * tests/test-vasnprintf-posix.c: Include <errno.h>.
34590         (test_function): Test converting an invalid wide string.
34591
34592         vasnprintf: Correct handling of unconvertible wide string arguments.
34593         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
34594         VASNPRINTF.
34595         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
34596         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
34597         smaller than the expected maximum need for the directive. Set errno to
34598         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
34599         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
34600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
34601         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
34602         * modules/vasnprintf (Files): Add m4/printf.m4.
34603         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34604
34605 2010-04-10  Bruno Haible  <bruno@clisp.org>
34606
34607         vasnprintf: Fix crash in %ls directive.
34608         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
34609         string is passed as argument to %ls, with no precision and no width.
34610         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34611
34612 2010-04-10  Bruno Haible  <bruno@clisp.org>
34613
34614         vasnprintf: Fix multiple test failures on mingw.
34615         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
34616         _snprintf, or snwprintf, not _snwprintf.
34617
34618 2010-04-10  Bruno Haible  <bruno@clisp.org>
34619
34620         write: Fix a C++ test error on mingw.
34621         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
34622
34623 2010-04-10  Bruno Haible  <bruno@clisp.org>
34624
34625         vasnprintf test: Reduce code duplication.
34626         * tests/test-vasnprintf.c (test_function): New function, extracted from
34627         test_vasnprintf.
34628         (test_vasnprintf, test_asnprintf): Invoke it.
34629
34630 2010-04-10  Bruno Haible  <bruno@clisp.org>
34631
34632         strnlen: Fix warning in C++ mode on MacOS X.
34633         * lib/string.in.h (strnlen): Use the modern idiom.
34634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
34635         defining strnlen as a macro already in <config.h>.
34636         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34637         REPLACE_STRNLEN.
34638         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
34639         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34640
34641 2010-04-08  James Youngman  <jay@gnu.org>
34642
34643         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
34644         the example.
34645
34646 2010-04-09  Jim Meyering  <meyering@redhat.com>
34647
34648         maint.mk: print better diagnostic when there is no $(_hv_file)
34649         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
34650         announce that when $(_hv_file) (aka help-version) does not exist.
34651
34652         init.sh: run tr in the "C" locale to avoid multibyte interpretation
34653         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
34654         not try to interpret its random input bytes.  Jarno Rajahalme reported
34655         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
34656         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
34657         (mktempd_): Likewise, just in case.
34658
34659         ftruncate: add two years to projected module removal date: 2012
34660         * m4/ftruncate.m4: Adjust comments.
34661
34662         ftruncate: mark module as obsolete; even MinGW provides it, now
34663         * modules/ftruncate (Status): Obsolete.
34664         (Notice): Say that.
34665         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
34666         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
34667
34668 2010-04-08  Bruno Haible  <bruno@clisp.org>
34669
34670         Fix side effects from tests-related modules.
34671         * modules/dprintf-posix (Comment): New section.
34672         * modules/fprintf-posix (Comment): Likewise.
34673         * modules/obstack-printf-posix (Comment): Likewise.
34674         * modules/printf-posix (Comment): Likewise.
34675         * modules/snprintf-posix (Comment): Likewise.
34676         * modules/sprintf-posix (Comment): Likewise.
34677         * modules/vasnprintf-posix (Comment): Likewise.
34678         * modules/vasprintf-posix (Comment): Likewise.
34679         * modules/vdprintf-posix (Comment): Likewise.
34680         * modules/vfprintf-posix (Comment): Likewise.
34681         * modules/vprintf-posix (Comment): Likewise.
34682         * modules/vsnprintf-posix (Comment): Likewise.
34683         * modules/vsprintf-posix (Comment): Likewise.
34684         * modules/xprintf-posix (Comment): Likewise.
34685         * modules/xvasprintf-posix (Comment): Likewise.
34686         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
34687         * modules/floorf-tests (Depends-on): Likewise.
34688         * modules/round-tests (Depends-on): Likewise.
34689         * modules/roundf-tests (Depends-on): Likewise.
34690         * modules/trunc-tests (Depends-on): Likewise.
34691         * modules/truncf-tests (Depends-on): Likewise.
34692         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
34693         'fprintf-posix' module is not present.
34694         * tests/test-floorf2.c (check): Likewise.
34695         * tests/test-trunc2.c (check): Likewise.
34696         * tests/test-truncf2.c (check): Likewise.
34697         * tests/test-round2.c (equal): Likewise.
34698         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34699
34700 2010-04-07  Karl Berry  <karl@gnu.org>
34701
34702         * config/srclist.txt,
34703         * config/srclistvars.sh,
34704         * config/srclist-update: doc fixes.
34705
34706 2010-04-07  Jim Meyering  <meyering@redhat.com>
34707
34708         maint.mk: add a PATH crosschecking syntax-check rule
34709         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
34710         Useful if you use a test like the one in help-version (coreutils,
34711         diffutils, grep, gzip) that ensures $(VERSION) matches what is
34712         printed by prog --version.
34713
34714 2010-04-06  Bruno Haible  <bruno@clisp.org>
34715
34716         Fix link error on mingw.
34717         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
34718         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
34719
34720 2010-04-06  Bruno Haible  <bruno@clisp.org>
34721
34722         Assume rmdir exists.
34723         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
34724
34725 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
34726
34727         doc: update users.txt
34728         * users.txt: Add gcal.
34729
34730 2010-04-06  Jim Meyering  <meyering@redhat.com>
34731
34732         init.sh: simply unset TMPDIR rather than risking env -i
34733         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
34734         although it probably works fine on all Unix-based systems, some
34735         systems (Cygwin?) cannot tolerate a totally cleared environment.
34736         Suggestion from Eric Blake.
34737
34738 2010-04-06  Jim Meyering  <meyering@redhat.com>
34739
34740         init.sh: portability fix: use env's POSIX-specified -i option not -u
34741         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
34742         than unportable env -u.  Solaris 5.11's env lacks support for -u.
34743
34744 2010-04-05  Bruno Haible  <bruno@clisp.org>
34745
34746         btowc: Work around Cygwin 1.7.2 bug.
34747         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
34748         does not map NUL to 0.
34749         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
34750
34751 2010-04-05  Bruno Haible  <bruno@clisp.org>
34752
34753         Make the multithread modules work on Cygwin 1.7.2.
34754         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
34755         imported symbols can be declared weak, so that it returns "no" on
34756         Cygwin 1.7.2.
34757
34758 2010-04-05  Bruno Haible  <bruno@clisp.org>
34759
34760         Use the module 'strncat'.
34761         * modules/unistr/u8-strncat (Depends-on): Add strncat.
34762
34763         Tests for module 'strncat'.
34764         * modules/strncat-tests: New file.
34765         * tests/test-strncat.c: New file.
34766
34767         New module 'strncat'.
34768         * lib/string.in.h (strncat): New declaration.
34769         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
34770         * m4/strncat.m4: New file, based on m4/memchr.m4.
34771         * modules/strncat: New file.
34772         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
34773         is declared.
34774         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
34775         REPLACE_STRNCAT.
34776         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
34777         REPLACE_STRNCAT.
34778         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
34779         module.
34780         * tests/test-string-c++.cc: Check signature of strncat.
34781
34782 2010-04-05  Jim Meyering  <meyering@redhat.com>
34783
34784         xstrtoumax-tests: convert to use init.sh
34785         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
34786         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34787         Use Exit, not exit.
34788         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34789
34790         xstrtoimax-tests: convert to use init.sh
34791         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
34792         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34793         Use Exit, not exit.
34794         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34795
34796 2010-04-05  Bruno Haible  <bruno@clisp.org>
34797
34798         sys_socket: Avoid #define replacements in C++ mode.
34799         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
34800         warning to the function if possible, rather than #defining the symbol
34801         to a dysfunctional alias.
34802
34803 2010-04-05  Bruno Haible  <bruno@clisp.org>
34804
34805         fseeko: Fix C++ test error on mingw.
34806         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
34807         gl_FUNC_FSEEKO.
34808         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
34809         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
34810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
34811         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
34812
34813 2010-04-05  Bruno Haible  <bruno@clisp.org>
34814
34815         duplocale: Improve test output.
34816         * tests/test-duplocale.c (main): Print reason for skipped test.
34817
34818 2010-04-05  Bruno Haible  <bruno@clisp.org>
34819
34820         Assume rmdir exists.
34821         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
34822         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
34823
34824 2010-04-05  Bruno Haible  <bruno@clisp.org>
34825
34826         Fix link error on Solaris 8 with cc.
34827         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
34828
34829 2010-04-05  Bruno Haible  <bruno@clisp.org>
34830
34831         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34832         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34833
34834 2010-04-05  Bruno Haible  <bruno@clisp.org>
34835
34836         vasprintf: Update documentation.
34837         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34838
34839 2010-04-05  Bruno Haible  <bruno@clisp.org>
34840
34841         ptsname: Improve test.
34842         * tests/test-ptsname.c (main): Also try the various master names of BSD
34843         systems.
34844
34845 2010-04-05  Bruno Haible  <bruno@clisp.org>
34846
34847         memchr: Avoid a possible C++ test error.
34848         * lib/string.in.h (memchr): Provide declaration if function is missing.
34849         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34850         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34852         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34853
34854 2010-04-05  Bruno Haible  <bruno@clisp.org>
34855
34856         strtok_r: Improve idiom.
34857         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34858         AC_LIBOBJ is used.
34859
34860 2010-04-05  Bruno Haible  <bruno@clisp.org>
34861
34862         strdup: Improve idiom.
34863         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34864         AC_LIBOBJ is used.
34865         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34866         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34867         when AC_LIBOBJ is used.
34868
34869 2010-04-05  Bruno Haible  <bruno@clisp.org>
34870
34871         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34872         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34873         don't set REPLACE_MBSINIT to 1.
34874         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34875         don't set REPLACE_MBRTOWC to 1.
34876         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34877         exist, don't set REPLACE_MBSRTOWCS to 1.
34878         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34879         exist, don't set REPLACE_MBSNRTOWCS to 1.
34880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34881         don't set REPLACE_WCRTOMB to 1.
34882         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34883         exist, don't set REPLACE_WCSRTOMBS to 1.
34884         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34885         exist, don't set REPLACE_WCSNRTOMBS to 1.
34886
34887 2010-04-05  Bruno Haible  <bruno@clisp.org>
34888
34889         ldexpl: Improve idiom.
34890         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34891         make sure to set HAVE_DECL_LDEXPL to 0.
34892
34893 2010-04-05  Jim Meyering  <meyering@redhat.com>
34894
34895         xstrtol-tests: convert to use init.sh
34896         * modules/xstrtol-tests (Files): Add tests/init.sh.
34897         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34898         Use Exit, not exit.
34899         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34900
34901         atexit-tests: convert to use init.sh
34902         * modules/atexit-tests (Files): Add tests/init.sh.
34903         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34904         Use Exit, not exit.
34905         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34906
34907         init.sh: fix typo
34908         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34909
34910         init.sh: make it easier for a test script to write to the tty, ...
34911         when using automake's parallel-tests mode.
34912         * tests/init.sh (stderr_fileno_): Define overridable variable.
34913         (warn_): New function, to use it.
34914         (fail_, skip_, framework_failure_): Use warn_.
34915
34916 2010-04-04  Bruno Haible  <bruno@clisp.org>
34917
34918         btowc: Avoid warning.
34919         * lib/btowc.c: Include <stdlib.h>.
34920         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34921
34922 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34923             Bruno Haible  <bruno@clisp.org>
34924
34925         wchar: Port to NetBSD 1.5.
34926         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34927         * lib/wctype.in.h (WEOF): Likewise.
34928
34929 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34930             Bruno Haible  <bruno@clisp.org>
34931
34932         Port extended stdio to NetBSD 1.5.
34933         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34934         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34935         older.
34936
34937 2010-04-04  Bruno Haible  <bruno@clisp.org>
34938
34939         string: Remove unused substitution.
34940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34941         HAVE_DECL_STRERROR.
34942         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34943
34944 2010-04-04  Bruno Haible  <bruno@clisp.org>
34945
34946         strtod: Avoid a possible C++ test error.
34947         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34948         set REPLACE_STRTOD.
34949
34950 2010-04-04  Bruno Haible  <bruno@clisp.org>
34951
34952         strerror: Update documentation.
34953         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34954
34955 2010-04-04  Bruno Haible  <bruno@clisp.org>
34956
34957         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34958         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34959         _GL_CXXALIAS_SYS_CAST.
34960
34961 2010-04-04  Bruno Haible  <bruno@clisp.org>
34962
34963         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34964         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34965         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34966         REPLACE_FREXPL to 1.
34967         * doc/posix-functions/frexpl.texi: Update documentation.
34968
34969 2010-04-04  Bruno Haible  <bruno@clisp.org>
34970
34971         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34972         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34973
34974 2010-04-04  Bruno Haible  <bruno@clisp.org>
34975
34976         Implement nanosleep for native Windows.
34977         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34978
34979 2010-04-04  Bruno Haible  <bruno@clisp.org>
34980
34981         math: Fix some C++ test errors on Solaris 8.
34982         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34983
34984 2010-04-04  Bruno Haible  <bruno@clisp.org>
34985
34986         math: Fix some C++ test errors on Cygwin.
34987         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34988         truncl): Provide declaration if the system does not have it.
34989         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34990         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34991         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34992         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34993         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34994         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34995         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34996         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34997         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34998         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34999         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35000         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35001         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35002         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35003         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35004         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35006         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35007         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35008         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35009         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35010         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35011
35012 2010-04-04  Bruno Haible  <bruno@clisp.org>
35013
35014         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35015         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35016         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35017         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35018         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35019         * m4/isinf.m4 (gl_ISINF): Likewise.
35020         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35021
35022 2010-04-04  Bruno Haible  <bruno@clisp.org>
35023
35024         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35025         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35026
35027 2010-04-04  Bruno Haible  <bruno@clisp.org>
35028
35029         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35030         * modules/tmpfile (configure.ac): Update.
35031
35032         tmpfile: Fix C++ test error on mingw.
35033         * lib/stdio.in.h (tmpfile): New declaration.
35034         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35035         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35036         * modules/tmpfile (Depends-on): Add stdio.
35037         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35038         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35039         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35040         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35041         REPLACE_TMPFILE.
35042         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35043
35044 2010-04-04  Bruno Haible  <bruno@clisp.org>
35045
35046         ioctl: Fix C++ test error on mingw.
35047         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35048         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35049         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35050
35051 2010-04-03  Bruno Haible  <bruno@clisp.org>
35052
35053         wcwidth: Fix C++ test error on mingw.
35054         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35056         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35057
35058 2010-04-03  Bruno Haible  <bruno@clisp.org>
35059
35060         nanosleep: Fix C++ test error on mingw.
35061         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35062         * lib/time.in.h (nanosleep): Use modern idiom.
35063         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
35064         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
35065         REPLACE_NANOSLEEP to 1.
35066         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
35067         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
35068
35069 2010-04-03  Bruno Haible  <bruno@clisp.org>
35070
35071         strptime: Fix C++ test error on mingw.
35072         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
35073         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
35074         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
35075         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
35076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
35077         not REPLACE_STRPTIME.
35078         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
35079         REPLACE_STRPTIME.
35080
35081 2010-04-03  Bruno Haible  <bruno@clisp.org>
35082
35083         timegm: Fix C++ test error on mingw.
35084         * lib/time.in.h (timegm): Use modern idiom.
35085         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
35086         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
35087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
35088         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
35089
35090 2010-04-03  Bruno Haible  <bruno@clisp.org>
35091
35092         timegm: Assume declaration if function exists.
35093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
35094         if it exists. Don't clobber ac_cv_func_timegm.
35095
35096 2010-04-03  Bruno Haible  <bruno@clisp.org>
35097
35098         time_r: Fix C++ test error on mingw.
35099         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
35100         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
35101         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
35102         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
35103         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
35104
35105 2010-04-03  Bruno Haible  <bruno@clisp.org>
35106
35107         time_r: Minor updates.
35108         * modules/time_r (Description): Mention the provided functions.
35109         * lib/time_r.c: Don't include <string.h>.
35110         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
35111         * doc/posix-functions/localtime_r.texi: Likewise.
35112
35113 2010-04-03  Bruno Haible  <bruno@clisp.org>
35114
35115         time: Fix regression introduced on 2010-03-08.
35116         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
35117         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
35118
35119 2010-04-03  Jim Meyering  <meyering@redhat.com>
35120
35121         maint.mk: don't silently disable project-specific syntax-check rules
35122         * top/maint.mk (_prohibit_regexp): Define, to help people realize
35123         that they need to convert their project-specific syntax-check rules
35124         to use the new _sc_search_regexp.
35125
35126 2010-04-03  Bruno Haible  <bruno@clisp.org>
35127
35128         fchdir: Fix regression introduced on 2010-03-08.
35129         * lib/unistd.in.h (fchdir): Fix declaration.
35130         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
35131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
35132         REPLACE_FCHDIR.
35133         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
35134         REPLACE_FCHDIR.
35135
35136 2010-04-03  Bruno Haible  <bruno@clisp.org>
35137
35138         getpagesize: Fix C++ test error on mingw.
35139         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
35140         system does not declare the function.
35141         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
35142         declared.
35143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35144         HAVE_DECL_GETPAGESIZE.
35145         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
35146
35147 2010-04-03  Bruno Haible  <bruno@clisp.org>
35148
35149         stdio: Make C++ tests work on mingw.
35150         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
35151         does not declare the function.
35152
35153 2010-04-03  Bruno Haible  <bruno@clisp.org>
35154
35155         ftello: Fix C++ test error on mingw.
35156         * lib/stdio.in.h (ftello): Use modern idiom.
35157         * lib/ftello.c (ftello): Renamed from rpl_ftello.
35158         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
35159         is missing and that it needs to be replaced.
35160         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
35161         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
35162         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
35163
35164 2010-04-03  Bruno Haible  <bruno@clisp.org>
35165
35166         fseeko: Fix C++ test error on mingw.
35167         * lib/stdio.in.h (fseeko): Use modern idiom.
35168         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
35169         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
35170         is missing and that it needs to be replaced.
35171         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
35172         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
35173         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
35174
35175 2010-04-03  Bruno Haible  <bruno@clisp.org>
35176
35177         mkstemp: Fix C++ test error on mingw.
35178         * lib/stdlib.in.h (mkstemp): Use modern idiom.
35179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
35180         function is missing and that it needs to be replaced.
35181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
35182         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
35183
35184 2010-04-03  Bruno Haible  <bruno@clisp.org>
35185
35186         stpncpy: Fix C++ test error on mingw.
35187         * lib/string.in.h (stpncpy): Use modern idiom.
35188         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
35189         function is missing and that it needs to be replaced.
35190         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35191         REPLACE_STPNCPY.
35192         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
35193
35194 2010-04-03  Bruno Haible  <bruno@clisp.org>
35195
35196         sys_stat: Fix C++ test error on mingw.
35197         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
35198         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
35199
35200 2010-04-03  Bruno Haible  <bruno@clisp.org>
35201
35202         pty: Update doc.
35203         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
35204
35205 2010-04-03  Bruno Haible  <bruno@clisp.org>
35206
35207         unistd: Fix C++ test error on mingw.
35208         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
35209
35210 2010-04-03  Bruno Haible  <bruno@clisp.org>
35211
35212         Update doc regarding mingw.
35213         * doc/glibc-functions/openpty.texi: Update regarding mingw.
35214         * doc/glibc-functions/login_tty.texi: Likewise.
35215         * doc/glibc-functions/forkpty.texi: Likewise.
35216
35217 2010-04-03  Bruno Haible  <bruno@clisp.org>
35218
35219         stdlib: Avoid compilation failure of c-strtold on mingw.
35220         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
35221
35222 2010-04-03  Bruno Haible  <bruno@clisp.org>
35223
35224         locale: Make C++ tests work on Cygwin and mingw.
35225         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
35226         cannot provide the function.
35227         Reported by Simon Josefsson.
35228
35229 2010-04-03  Bruno Haible  <bruno@clisp.org>
35230
35231         localename: Port to MacOS X 10.6.
35232         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
35233         memory layout of the locales in MacOS X 10.6 as well.
35234         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
35235
35236 2010-04-02  Bruno Haible  <bruno@clisp.org>
35237
35238         gnulib-tool: Ensure that long-running tests are executed last.
35239         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
35240         running tests after the one for the other tests.
35241
35242 2010-04-02  Bruno Haible  <bruno@clisp.org>
35243
35244         gnulib-tool: Ensure the tests in the main directory are executed first.
35245         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
35246         start with the current directory.
35247
35248 2010-04-02  Bruno Haible  <bruno@clisp.org>
35249
35250         Tests for module 'havelib', moved here from GNU gettext.
35251         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
35252         modifications.
35253         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
35254         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
35255         with modifications.
35256         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
35257         modifications.
35258         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
35259         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
35260         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
35261         with modifications.
35262         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
35263         with modifications.
35264         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
35265         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
35266         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
35267         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
35268         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
35269         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
35270         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
35271         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
35272         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
35273         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
35274         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
35275         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
35276         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
35277         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
35278         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
35279         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
35280         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
35281         with modifications.
35282         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
35283         with modifications.
35284         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
35285         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
35286         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
35287         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
35288         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
35289         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
35290         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
35291         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
35292         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
35293         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
35294         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
35295         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
35296         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
35297         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
35298         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
35299         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
35300         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
35301         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
35302         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
35303         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
35304         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
35305         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
35306         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
35307         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
35308         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
35309         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
35310         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
35311         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
35312         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
35313         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
35314         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
35315         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
35316         * tests/havelib/rpathx/rpathx.c: New file, from
35317         gettext/autoconf-lib-link.
35318         * tests/havelib/rpathx/Makefile.am: New file, from
35319         gettext/autoconf-lib-link.
35320         * tests/havelib/rpathx/configure.ac: New file, from
35321         gettext/autoconf-lib-link with modifications.
35322         * tests/havelib/rpathy/rpathy.c: New file, from
35323         gettext/autoconf-lib-link.
35324         * tests/havelib/rpathy/Makefile.am: New file, from
35325         gettext/autoconf-lib-link.
35326         * tests/havelib/rpathy/configure.ac: New file, from
35327         gettext/autoconf-lib-link with modifications.
35328         * tests/havelib/rpathz/rpathz.c: New file, from
35329         gettext/autoconf-lib-link.
35330         * tests/havelib/rpathz/Makefile.am: New file, from
35331         gettext/autoconf-lib-link.
35332         * tests/havelib/rpathz/configure.ac: New file, from
35333         gettext/autoconf-lib-link with modifications.
35334         * tests/havelib/rpathlx/usex.c: New file, from
35335         gettext/autoconf-lib-link.
35336         * tests/havelib/rpathlx/Makefile.am: New file, from
35337         gettext/autoconf-lib-link.
35338         * tests/havelib/rpathlx/configure.ac: New file, from
35339         gettext/autoconf-lib-link with modifications.
35340         * tests/havelib/rpathly/usey.c: New file, from
35341         gettext/autoconf-lib-link.
35342         * tests/havelib/rpathly/Makefile.am: New file, from
35343         gettext/autoconf-lib-link.
35344         * tests/havelib/rpathly/configure.ac: New file, from
35345         gettext/autoconf-lib-link with modifications.
35346         * tests/havelib/rpathlz/usez.c: New file, from
35347         gettext/autoconf-lib-link.
35348         * tests/havelib/rpathlz/Makefile.am: New file, from
35349         gettext/autoconf-lib-link.
35350         * tests/havelib/rpathlz/configure.ac: New file, from
35351         gettext/autoconf-lib-link with modifications.
35352         * tests/havelib/rpathlyx/usey.c: New file, from
35353         gettext/autoconf-lib-link.
35354         * tests/havelib/rpathlyx/Makefile.am: New file, from
35355         gettext/autoconf-lib-link.
35356         * tests/havelib/rpathlyx/configure.ac: New file, from
35357         gettext/autoconf-lib-link with modifications.
35358         * tests/havelib/rpathlzyx/usez.c: New file, from
35359         gettext/autoconf-lib-link.
35360         * tests/havelib/rpathlzyx/Makefile.am: New file, from
35361         gettext/autoconf-lib-link.
35362         * tests/havelib/rpathlzyx/configure.ac: New file, from
35363         gettext/autoconf-lib-link with modifications.
35364         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
35365         with modifications.
35366
35367 2010-04-02  Bruno Haible  <bruno@clisp.org>
35368
35369         gnulib-tool: Create distributed built sources also for the tests.
35370         * gnulib-tool (func_create_testdir): Also generate distributed built
35371         sources in the tests directory.
35372
35373 2010-04-02  Bruno Haible  <bruno@clisp.org>
35374
35375         gnulib-tool: Obey user's environment variables.
35376         * gnulib-tool (func_create_testdir): When creating built sources,
35377         respect the environment variables for autoconf, automake, etc. given by
35378         the user.
35379
35380 2010-04-02  Bruno Haible  <bruno@clisp.org>
35381
35382         gnulib-tool: Provide the value of --m4-base to modules.
35383         * gnulib-tool (func_import, func_create_testdir): Emit a definition
35384         of gl_m4_base.
35385
35386 2010-04-02  Eric Blake  <eblake@redhat.com>
35387
35388         maint.mk: fix some fallout
35389         * NEWS: Document the incompatible change, and its effect on cfg.mk.
35390         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
35391
35392 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35393
35394         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
35395         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
35396         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
35397         (sc_cast_of_x_alloc_return_value): Likewise.
35398         (sc_cast_of_alloca_return_value): Likewise.
35399         (sc_space_tab): Likewise.
35400         (sc_prohibit_atoi_atof): Likewise.
35401         (sc_prohibit_magic_number_exit): Likewise.
35402         (sc_error_exit_success): Likewise.
35403         (sc_file_system): Likewise.
35404         (sc_prohibit_have_config_h): Likewise.
35405         (sc_require_config_h): Likewise.
35406         (sc_prohibit_HAVE_MBRTOWC): Likewise.
35407         (sc_obsolete_symbols): Likewise.
35408         (sc_changelog): Likewise.
35409         (sc_program_name): Likewise.
35410         (sc_the_the): Likewise.
35411         (sc_trailing_blank): Likewise.
35412         (sc_two_space_separator_in_usage): Likewise.
35413         (sc_useless_cpp_parens): Likewise.
35414         (sc_GPL_version): Likewise.
35415         (sc_GFDL_version): Likewise.
35416         (sc_texinfo_acronym): Likewise.
35417         (sc_prohibit_cvs_keyword): Likewise.
35418         (sc_prohibit_stat_st_blocks): Likewise.
35419         (sc_prohibit_S_IS_definition): Likewise.
35420         (sc_redundant_const): Likewise.
35421         (sc_makefile_TAB_only_indentation): Likewise.
35422         (sc_m4_quote_check): Likewise.
35423         (sc_makefile_path_separator_check): Likewise.
35424         (sc_copyright_check): Likewise.
35425         (sc_Wundef_boolean): Likewise.
35426         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
35427
35428         maint.mk: match 0 or more whitespace-before-function-call '('
35429         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
35430         that have zero or two-and-more spaces between the function name
35431         and the open parenthesis.
35432         (sc_error_message_warn_fatal): Likewise.
35433         (sc_error_message_uppercase): Likewise.
35434         (sc_error_message_period): Likewise.
35435
35436 2010-03-31  Eric Blake  <eblake@redhat.com>
35437
35438         maint.mk: check for [ as well as test
35439         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
35440         Based on a libvirt report by Matthias Bolte.
35441
35442         gnumakefile: don't squelch _version output
35443         * top/GNUmakefile (_version): Create one-shot dependency rather
35444         than using $(shell) when version must be regenerated.
35445         (_autoreconf): Run verbosely, by default.
35446
35447         sys_time: avoid compiler warnings
35448         * lib/sys_time.in.h (includes): Ensure gcc pragma is
35449         unconditional, fixing regression from 2010-03-29.
35450         Reported by Simon Josefsson.
35451
35452 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
35453
35454         maint.mk: s/_header_without_use/_sc_header_without_use/
35455         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
35456         (sc_prohibit_assert_without_use): Use the new name.
35457         (sc_prohibit_close_stream_without_use): Likewise.
35458         (sc_prohibit_getopt_without_use): Likewise.
35459         (sc_prohibit_quotearg_without_use): Likewise.
35460         (sc_prohibit_quote_without_use): Likewise.
35461         (sc_prohibit_long_options_without_use): Likewise.
35462         (sc_prohibit_inttostr_without_use): Likewise.
35463         (sc_prohibit_ignore_value_without_use): Likewise.
35464         (sc_prohibit_error_without_use): Likewise.
35465         (sc_prohibit_xalloc_without_use): Likewise.
35466         (sc_prohibit_hash_without_use): Likewise.
35467         (sc_prohibit_hash_pjw_without_use): Likewise.
35468         (sc_prohibit_safe_read_without_use): Likewise.
35469         (sc_prohibit_argmatch_without_use): Likewise.
35470         (sc_prohibit_canonicalize_without_use): Likewise.
35471         (sc_prohibit_root_dev_ino_without_use): Likewise.
35472         (sc_prohibit_openat_without_use): Likewise.
35473         (sc_prohibit_c_ctype_without_use): Likewise.
35474         (sc_prohibit_signal_without_use): Likewise.
35475         (sc_prohibit_intprops_without_use): Likewise.
35476
35477 2010-03-30  Eric Blake  <eblake@redhat.com>
35478
35479         maint: improve module indicators
35480         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
35481         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
35482         columns, and avoid extra macro expansion.
35483
35484         fdopendir: work around FreeBSD bug
35485         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35486         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
35487         * modules/dirent (Makefile.am): Substitute it.
35488         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
35489         declaration.
35490         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
35491         fix.
35492         Reported by Christian Weisgerber <naddy@mips.inka.de>.
35493
35494 2010-03-29  Bruno Haible  <bruno@clisp.org>
35495
35496         Emit #pragma system_header after the inclusion guard, not before.
35497         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
35498         guard that spans the entire file, not before. This enables an
35499         optimization in GCC's preprocessor.
35500         * lib/ctype.in.h: Likewise.
35501         * lib/dirent.in.h: Likewise.
35502         * lib/errno.in.h: Likewise.
35503         * lib/float.in.h: Likewise.
35504         * lib/getopt.in.h: Likewise.
35505         * lib/iconv.in.h: Likewise.
35506         * lib/langinfo.in.h: Likewise.
35507         * lib/locale.in.h: Likewise.
35508         * lib/math.in.h: Likewise.
35509         * lib/netdb.in.h: Likewise.
35510         * lib/netinet_in.in.h: Likewise.
35511         * lib/pty.in.h: Likewise.
35512         * lib/sched.in.h: Likewise.
35513         * lib/se-selinux.in.h: Likewise.
35514         * lib/search.in.h: Likewise.
35515         * lib/spawn.in.h: Likewise.
35516         * lib/stdarg.in.h: Likewise.
35517         * lib/stdint.in.h: Likewise.
35518         * lib/string.in.h: Likewise.
35519         * lib/strings.in.h: Likewise.
35520         * lib/sys_file.in.h: Likewise.
35521         * lib/sys_ioctl.in.h: Likewise.
35522         * lib/sys_time.in.h: Likewise.
35523         * lib/sys_times.in.h: Likewise.
35524         * lib/sys_utsname.in.h: Likewise.
35525         * lib/sys_wait.in.h: Likewise.
35526         * lib/sysexits.in.h: Likewise.
35527         * lib/wctype.in.h: Likewise.
35528
35529 2010-03-28  James Youngman  <jay@gnu.org>
35530
35531         save-cwd: don't leak a file descriptor when the caller execs.
35532         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
35533         saved file descriptor.
35534         * modules/save-cwd (Depends-on): Depend on cloexec.
35535
35536 2010-03-29  Bruno Haible  <bruno@clisp.org>
35537
35538         Remove vestiges of fts-lgpl module.
35539         * lib/fts_.h: Assume GNULIB_FTS is 1.
35540         * lib/fts.c: Likewise.
35541         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35542
35543 2010-03-28  Bruno Haible  <bruno@clisp.org>
35544
35545         Fix definition of tests witness macro.
35546         * gnulib-tool (func_import): Fix definition of witness macro.
35547
35548 2010-03-28  Bruno Haible  <bruno@clisp.org>
35549
35550         Fix ioctl's protoype on glibc systems.
35551         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
35552         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
35553         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
35554         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
35555         signature. If not, arrange to replace the ioctl function.
35556         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35557         REPLACE_IOCTL.
35558         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
35559         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
35560         Reported by Ludovic Courtès <ludo@gnu.org>.
35561
35562 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
35563
35564         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
35565         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
35566         made it so grep -r --include=GLOB* ... did not work.
35567
35568 2010-03-26  Jim Meyering  <meyering@redhat.com>
35569             Eric Blake  <eblake@redhat.com>
35570
35571         maint.mk: prohibit use of test's -o and -a operators
35572         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
35573
35574 2010-03-28  Bruno Haible  <bruno@clisp.org>
35575
35576         Remove unused GNULIB_XYZ macro definitions.
35577         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
35578         invocation.
35579
35580 2010-03-28  Bruno Haible  <bruno@clisp.org>
35581
35582         Mark privileged tests modules.
35583         * modules/idpriv-drop-tests (Status): New section.
35584         * modules/idpriv-droptemp-tests (Status): New section.
35585
35586 2010-03-28  Bruno Haible  <bruno@clisp.org>
35587
35588         Split C++ tests into separate tests modules.
35589         * modules/dirent-c++-tests: New file, extracted from
35590         modules/dirent-tests.
35591         * modules/dirent-tests: Depend on it.
35592         * modules/fcntl-h-c++-tests: New file, extracted from
35593         modules/fcntl-h-tests.
35594         * modules/fcntl-h-tests: Depend on it.
35595         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
35596         * modules/glob-tests: Depend on it.
35597         * modules/iconv-h-c++-tests: New file, extracted from
35598         modules/iconv-h-tests.
35599         * modules/iconv-h-tests: Depend on it.
35600         * modules/langinfo-c++-tests: New file, extracted from
35601         modules/langinfo-tests.
35602         * modules/langinfo-tests: Depend on it.
35603         * modules/locale-c++-tests: New file, extracted from
35604         modules/locale-tests.
35605         * modules/locale-tests: Depend on it.
35606         * modules/math-c++-tests: New file, extracted from modules/math-tests.
35607         * modules/math-tests: Depend on it.
35608         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
35609         * modules/pty-tests: Depend on it.
35610         * modules/search-c++-tests: New file, extracted from
35611         modules/search-tests.
35612         * modules/search-tests: Depend on it.
35613         * modules/signal-c++-tests: New file, extracted from
35614         modules/signal-tests.
35615         * modules/signal-tests: Depend on it.
35616         * modules/spawn-c++-tests: New file, extracted from
35617         modules/spawn-tests.
35618         * modules/spawn-tests: Depend on it.
35619         * modules/stdio-c++-tests: New file, extracted from
35620         modules/stdio-tests.
35621         * modules/stdio-tests: Depend on it.
35622         * modules/stdlib-c++-tests: New file, extracted from
35623         modules/stdlib-tests.
35624         * modules/stdlib-tests: Depend on it.
35625         * modules/string-c++-tests: New file, extracted from
35626         modules/string-tests.
35627         * modules/string-tests: Depend on it.
35628         * modules/sys_ioctl-c++-tests: New file, extracted from
35629         modules/sys_ioctl-tests.
35630         * modules/sys_ioctl-tests: Depend on it.
35631         * modules/sys_select-c++-tests: New file, extracted from
35632         modules/sys_select-tests.
35633         * modules/sys_select-tests: Depend on it.
35634         * modules/sys_socket-c++-tests: New file, extracted from
35635         modules/sys_socket-tests.
35636         * modules/sys_socket-tests: Depend on it.
35637         * modules/sys_stat-c++-tests: New file, extracted from
35638         modules/sys_stat-tests.
35639         * modules/sys_stat-tests: Depend on it.
35640         * modules/sys_time-c++-tests: New file, extracted from
35641         modules/sys_time-tests.
35642         * modules/sys_time-tests: Depend on it.
35643         * modules/time-c++-tests: New file, extracted from modules/time-tests.
35644         * modules/time-tests: Depend on it.
35645         * modules/unistd-c++-tests: New file, extracted from
35646         modules/unistd-tests.
35647         * modules/unistd-tests: Depend on it.
35648         * modules/wchar-c++-tests: New file, extracted from
35649         modules/wchar-tests.
35650         * modules/wchar-tests: Depend on it.
35651         * modules/wctype-c++-tests: New file, extracted from
35652         modules/wctype-tests.
35653         * modules/wctype-tests: Depend on it.
35654         Reported by Simon Josefsson.
35655
35656 2010-03-28  Bruno Haible  <bruno@clisp.org>
35657
35658         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
35659         * gnulib-tool (func_exists_module): New function, extracted from
35660         func_verify_module.
35661         (func_verify_module): Use it.
35662         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
35663         'foo' only if 'foo' exists.
35664         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
35665         module.
35666
35667 2010-03-28  Bruno Haible  <bruno@clisp.org>
35668
35669         gnulib-tool: Add support for special categories of tests.
35670         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
35671         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
35672         (func_usage): Document them.
35673         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
35674         inc_unportable_tests, inc_all_tests): New variables.
35675         (func_acceptable): Consider these variables.
35676         (func_modules_transitive_closure): Make it work when the 'Status' field
35677         consists of multiple words.
35678         (func_import): Store and restore the values of inc_cxx_tests,
35679         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
35680         inc_all_tests in gnulib-comp.m4.
35681         (func_create_testdir): Set inc_all_tests to true.
35682         * doc/gnulib.texi (Extra tests modules): New section.
35683         Suggested by Jim Meyering.
35684
35685 2010-03-28  Bruno Haible  <bruno@clisp.org>
35686
35687         ansi-c++-opt: Allow turning off the C++ build by default.
35688         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
35689         gl_CXX_CHOICE_DEFAULT_NO is defined.
35690         Requested by Eric Blake.
35691
35692 2010-03-28  Bruno Haible  <bruno@clisp.org>
35693
35694         unistd: Avoid #define replacements in C++ mode.
35695         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35696         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35697         setsockopt, shutdown, select): In C++, attach a warning to the function
35698         if possible, rather than #defining the symbol to a dysfunctional alias.
35699         Reported by John W. Eaton <jwe@gnu.org>.
35700
35701 2010-03-28  Bruno Haible  <bruno@clisp.org>
35702
35703         Fix link errors on mingw.
35704         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
35705         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
35706         $(LIBSOCKET).
35707         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
35708         $(LIBSOCKET).
35709
35710 2010-03-28  Bruno Haible  <bruno@clisp.org>
35711             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35712
35713         lib-ignore: Determine different options for different compilers.
35714         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
35715         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
35716         Add comments.
35717         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
35718         * NEWS: Mention the change.
35719
35720 2010-03-27  Bruno Haible  <bruno@clisp.org>
35721
35722         Remove unused GNULIB_XYZ macro definitions.
35723         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
35724         * modules/fseek (configure.ac): Likewise.
35725         * modules/ioctl (configure.ac): Likewise.
35726         * modules/open (configure.ac): Likewise.
35727         * modules/stdlib-safer (configure.ac): Likewise.
35728
35729 2010-03-27  Bruno Haible  <bruno@clisp.org>
35730
35731         Add a remark about certain modules.
35732         * modules/malloc (Comment): New section.
35733         * modules/realloc (Comment): Likewise.
35734         * modules/sigpipe (Comment): Likewise.
35735
35736 2010-03-27  Bruno Haible  <bruno@clisp.org>
35737
35738         Resolve conflict between the two kinds of module indicators.
35739         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
35740         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
35741         * modules/canonicalize (configure.ac): Invoke
35742         gl_MODULE_INDICATOR_FOR_TESTS.
35743         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
35744         GNULIB_XYZ.
35745         * tests/test-dirent-c++.cc: Likewise.
35746         * tests/test-dirent-safer.c: Likewise.
35747         * tests/test-dup2.c: Likewise.
35748         * tests/test-fchdir.c: Likewise.
35749         * tests/test-fcntl-h-c++.cc: Likewise.
35750         * tests/test-getopt.c: Likewise.
35751         * tests/test-getopt.h: Likewise.
35752         * tests/test-langinfo-c++.cc: Likewise.
35753         * tests/test-locale-c++.cc: Likewise.
35754         * tests/test-math-c++.cc: Likewise.
35755         * tests/test-pty-c++.cc: Likewise.
35756         * tests/test-search-c++.cc: Likewise.
35757         * tests/test-signal-c++.cc: Likewise.
35758         * tests/test-spawn-c++.cc: Likewise.
35759         * tests/test-stdio-c++.cc: Likewise.
35760         * tests/test-stdlib-c++.cc: Likewise.
35761         * tests/test-string-c++.cc: Likewise.
35762         * tests/test-sys_ioctl-c++.cc: Likewise.
35763         * tests/test-sys_select-c++.cc: Likewise.
35764         * tests/test-sys_socket-c++.cc: Likewise.
35765         * tests/test-sys_stat-c++.cc: Likewise.
35766         * tests/test-sys_time-c++.cc: Likewise.
35767         * tests/test-time-c++.cc: Likewise.
35768         * tests/test-unistd-c++.cc: Likewise.
35769         * tests/test-wchar-c++.cc: Likewise.
35770         * tests/uninorm/test-u8-nfc.c: Likewise.
35771         * tests/uninorm/test-u8-nfd.c: Likewise.
35772         * tests/uninorm/test-u8-nfkc.c: Likewise.
35773         * tests/uninorm/test-u8-nfkd.c: Likewise.
35774         * tests/uninorm/test-u16-nfc.c: Likewise.
35775         * tests/uninorm/test-u16-nfd.c: Likewise.
35776         * tests/uninorm/test-u16-nfkc.c: Likewise.
35777         * tests/uninorm/test-u16-nfkd.c: Likewise.
35778         * tests/uninorm/test-u32-nfc.c: Likewise.
35779         * tests/uninorm/test-u32-nfc-big.c: Likewise.
35780         * tests/uninorm/test-u32-nfd.c: Likewise.
35781         * tests/uninorm/test-u32-nfd-big.c: Likewise.
35782         * tests/uninorm/test-u32-nfkc.c: Likewise.
35783         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
35784         * tests/uninorm/test-u32-nfkd.c: Likewise.
35785         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
35786         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35787
35788 2010-03-27  Bruno Haible  <bruno@clisp.org>
35789
35790         Distinguish two kinds of module indicators.
35791         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
35792         gl_MODULE_INDICATOR.
35793         (gl_MODULE_INDICATOR): New macro.
35794         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35795         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
35796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35797         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35798         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35799         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35800         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35801         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35802         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35803         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35804         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35805         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35807         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35808         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35809         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35810         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35811         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35812         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35813         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35814         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35815         * modules/cloexec (configure.ac): Likewise.
35816         * modules/getopt-gnu (configure.ac): Likewise.
35817         * modules/uninorm/u8-normalize (configure.ac): Likewise.
35818         * modules/uninorm/u16-normalize (configure.ac): Likewise.
35819         * modules/uninorm/u32-normalize (configure.ac): Likewise.
35820         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
35821
35822 2010-03-27  Bruno Haible  <bruno@clisp.org>
35823
35824         New module description field 'Comment'.
35825         * gnulib-tool: New option --extract-comment.
35826         (func_usage): Document it.
35827         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
35828         (func_get_comment): New function.
35829         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
35830
35831 2010-03-27  Bruno Haible  <bruno@clisp.org>
35832
35833         Addendum to 2010-02-07 commit.
35834         * gnulib-tool (func_usage): Document --extract-applicability option.
35835
35836 2010-03-27  Bruno Haible  <bruno@clisp.org>
35837
35838         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35839         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35840         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35841         rather than link errors.
35842
35843 2010-03-27  Bruno Haible  <bruno@clisp.org>
35844
35845         Avoid side effects from tests-related modules on the compilation of lib.
35846         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35847         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35848         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35849         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35850         macro.
35851         (func_import): Define a witness macro. Assign it a value that depends
35852         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35853         tests-related modules.
35854         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35855         Reported by Jim Meyering.
35856
35857 2010-03-27  Bruno Haible  <bruno@clisp.org>
35858
35859         Factorize common .m4 code.
35860         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35861         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35862         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35863         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35864         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35865         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35866         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35867         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35868         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35869         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35870         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35871         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35872         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35873         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35874         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35875         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35876         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35877         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35878         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35879         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35880         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35881         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35882         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35883         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35884         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35885         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35886         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35887         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35888         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35889         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35890         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35891         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35892
35893 2010-03-27  Bruno Haible  <bruno@clisp.org>
35894
35895         Fix a compilation error on Cygwin with g++ >= 4.3.
35896         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35897         if it is undefined or if we alias it to chmod.
35898         (lstat): Don't warn about the use of this function if it is undefined
35899         or if we alias it to stat.
35900         Reported by Simon Josefsson.
35901
35902 2010-03-27  Bruno Haible  <bruno@clisp.org>
35903
35904         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35905         * modules/getlogin (configure.ac): Update.
35906
35907         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35908         * modules/getlogin_r (configure.ac): Update.
35909
35910         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35912         * modules/inet_ntop (configure.ac): Update.
35913
35914         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35915         * modules/inet_pton (configure.ac): Update.
35916
35917         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35918         * modules/mbslen (configure.ac): Update.
35919
35920         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35921         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35922         * modules/forkpty (configure.ac): Update.
35923         * modules/openpty (configure.ac): Update.
35924
35925 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35926
35927         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35928         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35929
35930 2010-03-25  Eric Blake  <eblake@redhat.com>
35931
35932         maint: use pragma consistently across replacement headers
35933         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35934         * lib/dirent.in.h (system_header): Likewise.
35935         * lib/errno.in.h (system_header): Likewise.
35936         * lib/float.in.h (system_header): Likewise.
35937         * lib/getopt.in.h (system_header): Likewise.
35938         * lib/iconv.in.h (system_header): Likewise.
35939         * lib/inttypes.in.h (system_header): Likewise.
35940         * lib/langinfo.in.h (system_header): Likewise.
35941         * lib/locale.in.h (system_header): Likewise.
35942         * lib/math.in.h (system_header): Likewise.
35943         * lib/netdb.in.h (system_header): Likewise.
35944         * lib/netinet_in.in.h (system_header): Likewise.
35945         * lib/pty.in.h (system_header): Likewise.
35946         * lib/sched.in.h (system_header): Likewise.
35947         * lib/se-selinux.in.h (system_header): Likewise.
35948         * lib/search.in.h (system_header): Likewise.
35949         * lib/spawn.in.h (system_header): Likewise.
35950         * lib/stdarg.in.h (system_header): Likewise.
35951         * lib/stdint.in.h (system_header): Likewise.
35952         * lib/string.in.h (system_header): Likewise.
35953         * lib/strings.in.h (system_header): Likewise.
35954         * lib/sys_file.in.h (system_header): Likewise.
35955         * lib/sys_ioctl.in.h (system_header): Likewise.
35956         * lib/sys_socket.in.h (system_header): Likewise.
35957         * lib/sys_times.in.h (system_header): Likewise.
35958         * lib/sys_utsname.in.h (system_header): Likewise.
35959         * lib/sys_wait.in.h (system_header): Likewise.
35960         * lib/sysexits.in.h (system_header): Likewise.
35961         * lib/unistd.in.h (system_header): Likewise.
35962         * lib/wctype.in.h (system_header): Likewise.
35963
35964         arpa/inet: fix mingw compilation warning
35965         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35966         Reported by Matthew Bolte.
35967
35968 2010-03-25  Bruno Haible  <bruno@clisp.org>
35969
35970         Avoid collision between gnulib wrapper and libintl wrapper.
35971         * lib/printf.c (printf): Don't define if a printf wrapper is already
35972         defined in intl/printf.c.
35973         Reported by Michel Boaventura <michel@michelboaventura.com>.
35974
35975 2010-03-25  Bruno Haible  <bruno@clisp.org>
35976
35977         Use ANSI C.
35978         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35979
35980 2010-03-25  Bruno Haible  <bruno@clisp.org>
35981
35982         Minor formatting changes.
35983         * lib/acosl.c: Insert space before function argument list.
35984         * lib/argz.c: Likewise.
35985         * lib/asinl.c: Likewise.
35986         * lib/expl.c: Likewise.
35987         * lib/gen-uni-tables.c: Likewise.
35988         * lib/gettext.h: Likewise.
35989         * lib/glthread/lock.h: Likewise.
35990         * lib/tanl.c: Likewise.
35991         * lib/uniname/uniname.c: Likewise.
35992         * tests/test-idpriv-drop.c: Likewise.
35993         * tests/test-idpriv-droptemp.c: Likewise.
35994         * tests/test-lock.c: Likewise.
35995         * tests/test-tls.c: Likewise.
35996         * lib/argp-help.c: Insert space before function-like macro argument
35997         list.
35998         * lib/memcmp.c: Likewise.
35999         * tests/test-base64.c: Likewise.
36000         * lib/localename.c: Insert space before sizeof's argument list.
36001         * lib/safe-alloc.h: Likewise.
36002         * lib/file-set.h: Insert space before macro argument list.
36003         * tests/test-argp.c: Likewise.
36004         * lib/argp-namefrob.h: Insert space before function parameter list.
36005         * lib/getaddrinfo.c: Likewise.
36006         * lib/netdb.in.h: Likewise.
36007         * lib/parse-duration.h: Likewise.
36008         * lib/parse-duration.c: Likewise.
36009         * lib/poll.c: Likewise.
36010         * lib/select.c: Likewise.
36011         * lib/trim.h: Likewise.
36012         * tests/test-usleep.c: Likewise.
36013         * lib/ldexpl.c: Insert space before function parameter list and before
36014         function argument list.
36015         * lib/logl.c: Likewise.
36016         * lib/sqrtl.c: Likewise.
36017         * lib/trim.c: Likewise.
36018         * lib/cosl.c: Use GNU style indentation. Insert space before function
36019         argument list.
36020         * lib/sinl.c: Likewise.
36021         * lib/tsearch.c: Insert space after 'for'.
36022         Reported by Jim Meyering.
36023
36024 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36025
36026         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36027         config header before grepping, as it's not present before
36028         autoreconf/configure are run.  Reported by Simon Josefsson.
36029
36030 2010-03-23  Bruno Haible  <bruno@clisp.org>
36031
36032         pt_chown: Make it work with automake < 1.11.
36033         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36034         Reported by Simon Josefsson.
36035
36036 2010-03-23  Bruno Haible  <bruno@clisp.org>
36037
36038         pt_chown: Don't depend on GPLed modules.
36039         * lib/pt_chown.c: Don't include idpriv.h.
36040         (main): Don't drop privileges.
36041         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36042         Reported by Simon Josefsson.
36043
36044 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36045
36046         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36047         suggestions from karl@freefriends.org (Karl Berry).
36048
36049 2010-03-22  Eric Blake  <eblake@redhat.com>
36050
36051         gethostname: further tweaks
36052         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36053         are overriding gethostname.
36054         Suggested by Bruno Haible.
36055
36056 2010-03-21  Bruno Haible  <bruno@clisp.org>
36057
36058         Fix comments.
36059         * lib/forkpty.c (rpl_forkpty): Fix comment.
36060         * lib/openpty.c (rpl_openpty): Likewise.
36061         Reported by Eric Blake.
36062
36063 2010-03-22  Eric Blake  <eblake@redhat.com>
36064
36065         gethostname: fix build on mingw
36066         * lib/unistd.in.h (includes): Work around fact that mingw
36067         <winsock2.h> re-includes <unistd.h>, by avoiding any
36068         redeclarations if we are being included by <winsock2.h>.
36069         Reported by Matthias Bolte.
36070
36071 2010-03-21  Bruno Haible  <bruno@clisp.org>
36072
36073         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36074         * lib/forkpty.c (forkpty): New replacement function, from glibc with
36075         modifications.
36076         * lib/pty.in.h (forkpty): Update declaration. Add comments.
36077         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
36078         provide the replacement.
36079         * modules/forkpty (Depends-on): Add openpty, login_tty.
36080         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
36081         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
36082         * doc/glibc-functions/forkpty.texi: More supported platforms.
36083         * config/srclist.txt: Add forkpty.c (commented).
36084
36085 2010-03-21  Bruno Haible  <bruno@clisp.org>
36086
36087         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
36088         (Makefile.am): Verify that PTY_LIB is defined.
36089
36090         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
36091
36092 2010-03-21  Bruno Haible  <bruno@clisp.org>
36093
36094         Tests for module 'login_tty'.
36095         * modules/login_tty-tests: New file.
36096         * tests/test-login_tty.c: New file.
36097
36098         New module 'login_tty'.
36099         * lib/login_tty.c: New file.
36100         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
36101         * modules/login_tty: New file.
36102         * doc/glibc-functions/login_tty.texi: Mention the new module.
36103
36104 2010-03-21  Bruno Haible  <bruno@clisp.org>
36105
36106         login_tty: Documentation.
36107         * doc/glibc-functions/login_tty.texi: New file.
36108         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
36109
36110 2010-03-21  Bruno Haible  <bruno@clisp.org>
36111
36112         pty: Consistent macro naming.
36113         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
36114         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
36115         * modules/pty (configure.ac): Update.
36116
36117 2010-03-21  Bruno Haible  <bruno@clisp.org>
36118
36119         Tests for openpty: Make stricter.
36120         * tests/test-openpty.c (main): Add test of canonical processing and
36121         erase.
36122         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
36123
36124         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
36125         * lib/openpty.c (openpty): New replacement function.
36126         * lib/pty.in.h: Include <termios.h>.
36127         (openpty): Update declaration. Add comments.
36128         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
36129         is not declared, arrange to provide the replacement. Check for _getpty
36130         and posix_openpt.
36131         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
36132         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
36133         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
36134         * modules/pty-tests (test_pty_c___LDADD): New variable.
36135         * doc/glibc-functions/openpty.texi: More supported platforms.
36136
36137 2010-03-21  Bruno Haible  <bruno@clisp.org>
36138
36139         setenv: Tweaks.
36140         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
36141         the test program.
36142         * doc/posix-functions/setenv.texi: Update platforms list.
36143
36144 2010-03-21  Bruno Haible  <bruno@clisp.org>
36145
36146         New module 'unlockpt'.
36147         * lib/unlockpt.c: New file, from glibc with modifications.
36148         * m4/unlockpt.m4: New file.
36149         * modules/unlockpt: New file.
36150         * lib/stdlib.in.h (unlockpt): New declaration.
36151         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
36152         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
36153         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
36154         HAVE_UNLOCKPT.
36155         * doc/posix-functions/unlockpt.texi: Mention the new module.
36156         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
36157         * config/srclist.txt: Add unlockpt.c (commented).
36158
36159 2010-03-21  Jim Meyering  <meyering@redhat.com>
36160
36161         maint.mk: prohibit inclusion of "intprops.h" without use
36162         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
36163
36164 2010-03-21  Bruno Haible  <bruno@clisp.org>
36165
36166         New module 'grantpt'.
36167         * lib/grantpt.c: New file, from glibc with modifications.
36168         * m4/grantpt.m4: New file.
36169         * modules/grantpt: New file.
36170         * lib/stdlib.in.h (grantpt): New declaration.
36171         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
36172         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
36173         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
36174         HAVE_GRANTPT.
36175         * doc/posix-functions/grantpt.texi: Mention the new module.
36176         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
36177         * config/srclist.txt: Add grantpt.c (commented).
36178
36179 2010-03-21  Bruno Haible  <bruno@clisp.org>
36180
36181         New module 'pt_chown'.
36182         * lib/pt_chown.c: New file, from glibc with modifications.
36183         * lib/pty-private.h: New file, from glibc with modifications.
36184         * modules/pt_chown: New file.
36185         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
36186
36187 2010-03-21  Bruno Haible  <bruno@clisp.org>
36188
36189         Tests for module 'ptsname'.
36190         * modules/ptsname-tests: New file.
36191         * tests/test-ptsname.c: New file.
36192
36193         New module 'ptsname'.
36194         * lib/ptsname.c: New file, from glibc with modifications.
36195         * m4/ptsname.m4: New file.
36196         * modules/ptsname: New file.
36197         * lib/stdlib.in.h (ptsname): New declaration.
36198         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
36199         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
36200         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
36201         HAVE_PTSNAME.
36202         * doc/posix-functions/ptsname.texi: Mention the new module.
36203         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
36204         * config/srclist.txt: Add ptsname.c (commented).
36205
36206 2010-03-21  Bruno Haible  <bruno@clisp.org>
36207
36208         Tests for module 'ttyname_r'.
36209         * modules/ttyname_r-tests: New file.
36210         * tests/test-ttyname_r.c: New file.
36211
36212         New module 'ttyname_r'.
36213         * lib/ttyname_r.c: New file.
36214         * m4/ttyname_r.m4: New file.
36215         * modules/ttyname_r: New file.
36216         * lib/unistd.in.h (ttyname_r): New declaration.
36217         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
36218         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
36219         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
36220         HAVE_TTYNAME_R.
36221         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
36222         * doc/posix-functions/ttyname_r.texi: Mention the new module.
36223
36224 2010-03-20  Bruno Haible  <bruno@clisp.org>
36225
36226         signal: Undefine macro definitions in C++ mode.
36227         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
36228         sigfillset): Undefine macro definitions from the system header in C++
36229         mode.
36230         Reported by John W. Eaton <jwe@gnu.org>.
36231
36232 2010-03-20  Bruno Haible  <bruno@clisp.org>
36233
36234         Ensure no #include statements inside extern "C" { ... }.
36235         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
36236         contain #include statements.
36237         * lib/time.in.h: Likewise.
36238
36239 2010-03-20  Bruno Haible  <bruno@clisp.org>
36240
36241         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
36242         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
36243         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
36244         Reported by John W. Eaton <jwe@gnu.org>.
36245
36246 2010-03-20  Bruno Haible  <bruno@clisp.org>
36247
36248         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
36249         Reported by Jim Meyering.
36250
36251 2010-03-20  Bruno Haible  <bruno@clisp.org>
36252
36253         pipe: Set errno upon failure.
36254         * lib/pipe.h: Specify that when -1 is returned, errno is set.
36255         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
36256         errno value in error message.
36257
36258 2010-03-20  Bruno Haible  <bruno@clisp.org>
36259             Jim Meyering  <meyering@redhat.com>
36260
36261         lchown: Avoid "unused variable" warning.
36262         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
36263
36264 2010-03-20  Bruno Haible  <bruno@clisp.org>
36265
36266         Work around unlink() bug on MacOS X 10.5.6.
36267         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
36268         attempting to unlink a parent directory.
36269         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
36270         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
36271         activate for the replacement function.
36272         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
36273
36274 2010-03-20  Bruno Haible  <bruno@clisp.org>
36275
36276         Fix link errors on Solaris 8.
36277         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
36278         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
36279
36280 2010-03-19  Jim Meyering  <meyering@redhat.com>
36281
36282         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
36283         The _LIBC implementation of build_range_exp correctly honors the
36284         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
36285         However, the non-_LIBC implementation would ignore that syntax-bit
36286         flag and return REG_ERANGE unconditionally.
36287         This change makes it honor that flag.
36288         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
36289         Make two pointer parameters "const".
36290         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
36291         (parse_bracket_exp): Update caller.
36292
36293         regex.m4: correct the reversed range endpoint ([b-a]) test
36294         * m4/regex.m4: When requiring that [b-a] evoke failure,
36295         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
36296         test pass once again for x86-based systems.
36297
36298 2010-03-19  Bruno Haible  <bruno@clisp.org>
36299
36300         scandir: Fix link error on Solaris 8.
36301         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
36302         macros.
36303
36304 2010-03-19  Bruno Haible  <bruno@clisp.org>
36305
36306         getusershell: Fix documentation.
36307         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
36308         module.
36309         * doc/glibc-functions/setusershell.texi: Likewise.
36310
36311         getusershell: Provide declaration, missing on Solaris 9.
36312         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
36313         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
36314         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
36315         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
36316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36317         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
36318         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
36319         HAVE_GETUSERSHELL.
36320         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
36321
36322 2010-03-19  Bruno Haible  <bruno@clisp.org>
36323
36324         wctype: Provide iswblank function.
36325         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
36326         exists and is fine.
36327         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
36328         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
36329         * tests/test-wctype.c (main): Re-enable the iswblank tests.
36330         * doc/posix-functions/iswblank.texi: Update.
36331
36332 2010-03-19  Bruno Haible  <bruno@clisp.org>
36333
36334         Tests of module 'pty' in C++ mode.
36335         * modules/pty-tests: New file.
36336         * tests/test-pty-c++.cc: New file.
36337         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36338
36339 2010-03-19  Eric Blake  <eblake@redhat.com>
36340
36341         logb: fix documentation
36342         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
36343         1.5 declaration bug.
36344
36345         forkpty, openpty: prefer glibc's const-safe prototype
36346         * lib/forkpty.c (rpl_forkpty): New file.
36347         * lib/openpty.c (rpl_openpty): Likewise.
36348         * modules/forkpty (Files): Distribute it.
36349         * modules/openpty (Files): Likewise.
36350         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
36351         check...
36352         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
36353         replacement for for non-const BSD signature.
36354         * modules/pty (Makefile.am): Substitute witnesses.
36355         * lib/pty.in.h (forkpty, openpty): Declare replacements.
36356         * tests/test-forkpty.c: Update signature check.
36357         * tests/test-openpty.c: Likewise.
36358         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
36359         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36360
36361         forkpty, openpty: split functions into new modules
36362         * modules/pty (Makefile.am): Substitute new witnesses.
36363         (Libraries): Move library detection...
36364         * modules/forkpty: ...into new module.
36365         * modules/openpty: Another new module.
36366         * modules/pty-tests: Rename and split...
36367         * modules/forkpty-tests: ...to this...
36368         * modules/openpty-tests: ...and this.
36369         * tests/test-pty.c: Rename and split...
36370         * tests/test-forkpty.c: ...to this...
36371         * tests/test-openpty.c: ...and this.
36372         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
36373         (gl_PTY): Split library searching...
36374         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
36375         (gl_FORKPTY, gl_OPENPTY): New macros.
36376         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
36377         * NEWS: Mention the split.
36378         * MODULES.html.sh (Misc): Document the modules.
36379         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
36380         * doc/glibc-functions/openpty.texi (openpty): Likewise.
36381
36382         pty: improve replacement header
36383         * lib/pty.in.h: New file.
36384         * modules/pty (Files): Ship it.
36385         (Makefile.am): Always build replacement.
36386         * m4/pty.m4: Rename...
36387         * m4/pty_h.m4: ...to this.
36388         (gl_PTY): Modernize setting of witness macros; update check of
36389         forkpty to take proper advantage of cache.
36390         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
36391
36392         getopt: avoid compiler warning
36393         * lib/getopt.c (attribute_hidden): Remove unused macro.
36394
36395 2010-03-18  Bruno Haible  <bruno@clisp.org>
36396
36397         Fix link errors on Solaris 8.
36398         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
36399         * modules/search-tests (test_search_c___LDADD): Likewise.
36400         * modules/signal-tests (test_signal_c___LDADD): Likewise.
36401         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
36402         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
36403         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
36404         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
36405         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
36406         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
36407
36408 2010-03-18  Bruno Haible  <bruno@clisp.org>
36409
36410         Fix bug introduced on 2010-03-14.
36411         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
36412         (gl_SPAWN_H): Require it.
36413         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
36414         Reported by Simon Josefsson.
36415
36416 2010-03-18  Bruno Haible  <bruno@clisp.org>
36417
36418         Fix typo introduced on 2009-12-31.
36419         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
36420         posix_spawn_file_actions_adddup2.
36421
36422 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
36423         and Eric Blake  <eblake@redhat.com>
36424
36425         test-vc-list-files-git: make more robust
36426         * tests/test-vc-list-files-git.sh: Unset problematic environment
36427         variables.  Chain commands together.
36428
36429 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
36430
36431         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
36432         `AC_CHECK_DECL' invocation.
36433
36434 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
36435
36436         * lib/inttostr.c (inttostr): Make sure the invocation of verify
36437         appears before executable statements. Suggested by Petr Sumbera
36438         <Petr.Sumbera@Sun.COM>.
36439
36440 2010-03-14  Bruno Haible  <bruno@clisp.org>
36441
36442         * tests/test-flock.c (test_exclusive): Comment out a test that causes
36443         portability problems. Instead use a simpler test.
36444         (main): Check that invalid arguments are rejected only on Linux.
36445
36446 2010-03-14  Bruno Haible  <bruno@clisp.org>
36447
36448         Fix bug introduced on 2009-12-31.
36449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36450         gl_PREREQ_SYS_H_WINSOCK2 always.
36451         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
36452         SYS_SOCKET_H variable.
36453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
36454         Update comments.
36455         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
36456         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36457         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36458         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36459         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
36460
36461 2010-03-14  Bruno Haible  <bruno@clisp.org>
36462
36463         Fix values returned by sinl, cosl.
36464         * lib/trigl.h: Add specification comments.
36465         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
36466         that combines the values from the precomputed table with the values of
36467         the Chebyshev polynomials.
36468
36469 2010-03-14  Bruno Haible  <bruno@clisp.org>
36470
36471         Fix compilation error when modules 'posix_spawn[p]' are not used.
36472         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
36473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
36474
36475 2010-03-14  Bruno Haible  <bruno@clisp.org>
36476
36477         Fix compilation error on mingw when module 'time_r' is not used.
36478         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
36479         is 1.
36480         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
36481         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36482         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
36483         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
36484
36485 2010-03-14  Bruno Haible  <bruno@clisp.org>
36486
36487         Fix compilation error with Sun C.
36488         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
36489         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
36490         instead of GCC specific ULONG_LONG_MAX.
36491         * lib/xstrtoll.c: Likewise.
36492         * lib/xstrtoull.c: Likewise.
36493
36494 2010-03-13  Bruno Haible  <bruno@clisp.org>
36495
36496         Allow the user to disable C++ code and tests.
36497         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
36498         (gl_PROG_ANSI_CXX): Require it.
36499
36500 2010-03-13  Bruno Haible  <bruno@clisp.org>
36501
36502         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
36503         cases.
36504
36505 2010-03-13  Bruno Haible  <bruno@clisp.org>
36506
36507         Test that gnulib does not break the standard C++ headers.
36508         * tests/test-locale-c++2.cc: New file.
36509         * modules/locale-tests (Files): Add it.
36510         (Makefile.am): Compile it for test-locale-c++.
36511         * tests/test-math-c++2.cc: New file.
36512         * modules/math-tests (Files): Add it.
36513         (Makefile.am): Compile it for test-math-c++.
36514         * tests/test-signal-c++2.cc: New file.
36515         * modules/signal-tests (Files): Add it.
36516         (Makefile.am): Compile it for test-signal-c++.
36517         * tests/test-stdio-c++2.cc: New file.
36518         * modules/stdio-tests (Files): Add it.
36519         (Makefile.am): Compile it for test-stdio-c++.
36520         * tests/test-stdlib-c++2.cc: New file.
36521         * modules/stdlib-tests (Files): Add it.
36522         (Makefile.am): Compile it for test-stdlib-c++.
36523         * tests/test-string-c++2.cc: New file.
36524         * modules/string-tests (Files): Add it.
36525         (Makefile.am): Compile it for test-string-c++.
36526         * tests/test-time-c++2.cc: New file.
36527         * modules/time-tests (Files): Add it.
36528         (Makefile.am): Compile it for test-time-c++.
36529         Reported by John W. Eaton <jwe@gnu.org>.
36530
36531 2010-03-13  Bruno Haible  <bruno@clisp.org>
36532
36533         * gnulib-tool (func_usage): Clarify which options are available for
36534         --create-testdir and --create-megatestdir.
36535
36536 2010-03-13  Bruno Haible  <bruno@clisp.org>
36537
36538         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
36539         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
36540         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
36541         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
36542         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
36543         when appropriate.
36544         Reported by Jim Meyering.
36545
36546 2010-03-12  Simon Josefsson  <simon@josefsson.org>
36547
36548         * gnulib-tool (func_import): Explain origin of code.
36549
36550 2010-03-12  Bruno Haible  <bruno@clisp.org>
36551
36552         Fix problem with automake's definition of CXXLINK.
36553         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
36554         Reported by Simon Josefsson and Ludovic Courtès.
36555
36556 2010-03-12  Bruno Haible  <bruno@clisp.org>
36557
36558         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
36559         stable releases.
36560
36561 2010-03-11  Bruno Haible  <bruno@clisp.org>
36562
36563         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
36564         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
36565         whether the system provides one variant or multiple variants of the
36566         function.
36567         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
36568         C++ compilers.
36569         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
36570         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
36571         Reported by Jim Meyering.
36572
36573 2010-03-09  Simon Josefsson  <simon@josefsson.org>
36574
36575         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
36576
36577 2010-03-08  Bruno Haible  <bruno@clisp.org>
36578
36579         gnulib-tool: Add support for --libtool in --create-testdir.
36580         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
36581         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
36582
36583 2010-03-08  Eric Blake  <eblake@redhat.com>
36584
36585         gnulib-tool.texi: mention possibility of git submodule
36586         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
36587         submodules.
36588         * doc/.gitignore: Ignore another generated file.
36589
36590 2010-03-08  Karl Berry  <karl@gnu.org>
36591
36592         * doc/gnulib-tool.texi (VCS Issues): Mention third option
36593         of committing gnulib files while skipping others.
36594
36595 2010-03-07  Bruno Haible  <bruno@clisp.org>
36596
36597         Tests of module 'wctype' in C++ mode.
36598         * tests/test-wctype-c++.cc: New file.
36599         * modules/wctype-tests (Files): Add it and tests/signature.h.
36600         (Depends-on): Add ansi-c++-opt.
36601         (Makefile.am): Arrange to compile and run test-wctype-c++.
36602
36603         Tests of module 'wchar' in C++ mode.
36604         * tests/test-wchar-c++.cc: New file.
36605         * modules/wchar-tests (Files): Add it and tests/signature.h.
36606         (Depends-on): Add ansi-c++-opt.
36607         (Makefile.am): Arrange to compile and run test-wchar-c++.
36608         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
36609         gl_MODULE_INDICATOR.
36610
36611         Tests of module 'unistd' in C++ mode.
36612         * tests/test-unistd-c++.cc: New file.
36613         * modules/unistd-tests (Files): Add it and tests/signature.h.
36614         (Depends-on): Add ansi-c++-opt.
36615         (Makefile.am): Arrange to compile and run test-unistd-c++.
36616         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
36617         gl_MODULE_INDICATOR.
36618
36619         Tests of module 'time' in C++ mode.
36620         * tests/test-time-c++.cc: New file.
36621         * modules/time-tests (Files): Add it and tests/signature.h.
36622         (Depends-on): Add ansi-c++-opt.
36623         (Makefile.am): Arrange to compile and run test-time-c++.
36624         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36625
36626         Tests of module 'sys_time' in C++ mode.
36627         * tests/test-sys_time-c++.cc: New file.
36628         * modules/sys_time-tests (Files): Add it and tests/signature.h.
36629         (Depends-on): Add ansi-c++-opt.
36630         (Makefile.am): Arrange to compile and run test-sys_time-c++.
36631         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
36632         gl_MODULE_INDICATOR.
36633
36634         Tests of module 'sys_stat' in C++ mode.
36635         * tests/test-sys_stat-c++.cc: New file.
36636         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
36637         (Depends-on): Add ansi-c++-opt.
36638         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
36639         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
36640         gl_MODULE_INDICATOR.
36641
36642         Tests of module 'sys_socket' in C++ mode.
36643         * tests/test-sys_socket-c++.cc: New file.
36644         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
36645         (Depends-on): Add ansi-c++-opt.
36646         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
36647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
36648         gl_MODULE_INDICATOR.
36649
36650         Tests of module 'sys_select' in C++ mode.
36651         * tests/test-sys_select-c++.cc: New file.
36652         * modules/sys_select-tests (Files): Add it and tests/signature.h.
36653         (Depends-on): Add ansi-c++-opt.
36654         (Makefile.am): Arrange to compile and run test-sys_select-c++.
36655         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
36656         gl_MODULE_INDICATOR.
36657
36658         Tests of module 'sys_ioctl' in C++ mode.
36659         * tests/test-sys_ioctl-c++.cc: New file.
36660         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
36661         (Depends-on): Add ansi-c++-opt.
36662         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
36663         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
36664         gl_MODULE_INDICATOR.
36665
36666         Tests of module 'string' in C++ mode.
36667         * tests/test-string-c++.cc: New file.
36668         * modules/string-tests (Files): Add it and tests/signature.h.
36669         (Depends-on): Add ansi-c++-opt.
36670         (Makefile.am): Arrange to compile and run test-string-c++.
36671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
36672         gl_MODULE_INDICATOR.
36673
36674         Tests of module 'stdlib' in C++ mode.
36675         * tests/test-stdlib-c++.cc: New file.
36676         * modules/stdlib-tests (Files): Add it and tests/signature.h.
36677         (Depends-on): Add ansi-c++-opt.
36678         (Makefile.am): Arrange to compile and run test-stdlib-c++.
36679         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
36680         gl_MODULE_INDICATOR.
36681
36682         Tests of module 'stdio' in C++ mode.
36683         * tests/test-stdio-c++.cc: New file.
36684         * modules/stdio-tests (Files): Add it and tests/signature.h.
36685         (Depends-on): Add ansi-c++-opt.
36686         (Makefile.am): Arrange to compile and run test-stdio-c++.
36687         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
36688         gl_MODULE_INDICATOR.
36689
36690         Tests of module 'spawn' in C++ mode.
36691         * tests/test-spawn-c++.cc: New file.
36692         * modules/spawn-tests (Files): Add it and tests/signature.h.
36693         (Depends-on): Add ansi-c++-opt.
36694         (Makefile.am): Arrange to compile and run test-spawn-c++.
36695         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
36696         gl_MODULE_INDICATOR.
36697
36698         Tests of module 'signal' in C++ mode.
36699         * tests/test-signal-c++.cc: New file.
36700         * modules/signal-tests (Files): Add it and tests/signature.h.
36701         (Depends-on): Add ansi-c++-opt.
36702         (Makefile.am): Arrange to compile and run test-signal-c++.
36703         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
36704         gl_MODULE_INDICATOR.
36705
36706         Tests of module 'search' in C++ mode.
36707         * tests/test-search-c++.cc: New file.
36708         * modules/search-tests (Files): Add it and tests/signature.h.
36709         (Depends-on): Add ansi-c++-opt.
36710         (Makefile.am): Arrange to compile and run test-search-c++.
36711         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
36712         gl_MODULE_INDICATOR.
36713
36714         Tests of module 'math' in C++ mode.
36715         * tests/test-math-c++.cc: New file.
36716         * modules/math-tests (Files): Add it and tests/signature.h.
36717         (Depends-on): Add ansi-c++-opt.
36718         (Makefile.am): Arrange to compile and run test-math-c++.
36719         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
36720
36721         Tests of module 'locale' in C++ mode.
36722         * tests/test-locale-c++.cc: New file.
36723         * modules/locale-tests (Files): Add it and tests/signature.h.
36724         (Depends-on): Add ansi-c++-opt.
36725         (Makefile.am): Arrange to compile and run test-locale-c++.
36726         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
36727         gl_MODULE_INDICATOR.
36728
36729         Tests of module 'langinfo' in C++ mode.
36730         * tests/test-langinfo-c++.cc: New file.
36731         * modules/langinfo-tests (Files): Add it and tests/signature.h.
36732         (Depends-on): Add ansi-c++-opt.
36733         (Makefile.am): Arrange to compile and run test-langinfo-c++.
36734         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
36735         gl_MODULE_INDICATOR.
36736
36737         Tests of module 'iconv-h' in C++ mode.
36738         * tests/test-iconv-h-c++.cc: New file.
36739         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
36740         (Depends-on): Add ansi-c++-opt.
36741         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
36742
36743         Tests of module 'glob' in C++ mode.
36744         * tests/test-glob-c++.cc: New file.
36745         * modules/glob-tests (Files): Add it.
36746         (Depends-on): Add ansi-c++-opt.
36747         (Makefile.am): Arrange to compile and run test-glob-c++.
36748
36749         Tests of module 'fcntl-h' in C++ mode.
36750         * tests/test-fcntl-h-c++.cc: New file.
36751         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
36752         (Depends-on): Add ansi-c++-opt.
36753         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
36754         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
36755         gl_MODULE_INDICATOR.
36756
36757         Tests of module 'dirent' in C++ mode.
36758         * tests/test-dirent-c++.cc: New file.
36759         * modules/dirent-tests (Files): Add it and tests/signature.h.
36760         (Depends-on): Add ansi-c++-opt.
36761         (Makefile.am): Arrange to compile and run test-dirent-c++.
36762         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36763         gl_MODULE_INDICATOR.
36764
36765         New module 'ansi-c++-opt'.
36766         * modules/ansi-c++-opt: New file.
36767         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
36768
36769         Document C++ namespace mode.
36770         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
36771
36772         wctype: Avoid #define replacements in C++ mode.
36773         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
36774         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
36775         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
36776         In C++, define a namespaced alias symbol.
36777         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
36778         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
36779         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
36780         rule.
36781
36782         wchar: Avoid #define replacements in C++ mode.
36783         * lib/wchar.in.h: Include c++defs.h.
36784         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
36785         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
36786         symbol.
36787         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
36788         * modules/wchar (Depends-on): Add c++defs.
36789         (Makefile.am): Update wchar.h rule.
36790
36791         unistd: Avoid #define replacements in C++ mode.
36792         * lib/unistd.in.h: Include c++defs.h.
36793         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
36794         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
36795         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
36796         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
36797         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
36798         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
36799         symbol.
36800         (environ): Update.
36801         * modules/unistd (Depends-on): Add c++defs.
36802         (Makefile.am): Update unistd.h rule.
36803
36804         time: Avoid #define replacements in C++ mode.
36805         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
36806         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
36807         define a namespaced alias symbol.
36808         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
36809         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
36810         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
36811         * modules/time (Depends-on): Add c++defs, warn-on-use.
36812         (Makefile.am): Update time.h rule.
36813         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
36814         * modules/nanosleep (configure.ac): Likewise.
36815         * modules/strptime (configure.ac): Likewise.
36816         * modules/timegm (configure.ac): Likewise.
36817
36818         sys_time: Avoid #define replacements in C++ mode.
36819         * lib/sys_time.in.h: Include c++defs.h.
36820         (gettimeofday): In C++, define a namespaced alias symbol.
36821         * modules/sys_time (Depends-on): Add c++defs.
36822         (Makefile.am): Update sys/time.h rule.
36823
36824         sys_stat: Avoid #define replacements in C++ mode.
36825         * lib/sys_stat.in.h: Include c++defs.h.
36826         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
36827         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
36828         namespaced alias symbol.
36829         In C++, define a namespaced alias symbol.
36830         * modules/sys_stat (Depends-on): Add c++defs.
36831         (Makefile.am): Update sys/stat.h rule.
36832
36833         sys_socket: Avoid #define replacements in C++ mode.
36834         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36835         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36836         definitions also when the system has a <sys/socket.h>.
36837         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36838         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36839         In C++, define a namespaced alias symbol.
36840         * modules/sys_socket (Depends-on): Add c++defs.
36841         (Makefile.am): Update sys/socket.h rule.
36842
36843         sys_select: Avoid #define replacements in C++ mode.
36844         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36845         definitions also when the system has a <sys/select.h>.
36846         (select): In C++, define a namespaced alias symbol.
36847         * modules/sys_select (Depends-on): Add c++defs.
36848         (Makefile.am): Update sys/select.h rule.
36849
36850         sys_ioctl: Avoid #define replacements in C++ mode.
36851         * lib/sys_ioctl.in.h: Include c++defs.h.
36852         (ioctl): In C++, define a namespaced alias symbol.
36853         * modules/sys_ioctl (Depends-on): Add c++defs.
36854         (Makefile.am): Update sys/ioctl.h rule.
36855
36856         string: Avoid #define replacements in C++ mode.
36857         * lib/string.in.h: Include c++defs.h.
36858         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36859         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36860         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36861         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36862         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36863         * modules/string (Depends-on): Add c++defs.
36864         (Makefile.am): Update string.h rule.
36865
36866         stdlib: Avoid #define replacements in C++ mode.
36867         * lib/stdlib.in.h: Include c++defs.h.
36868         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36869         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36870         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36871         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36872         symbol.
36873         * modules/stdlib (Depends-on): Add c++defs.
36874         (Makefile.am): Update stdlib.h rule.
36875
36876         stdio: Avoid #define replacements in C++ mode.
36877         * lib/stdio.in.h: Include c++defs.h.
36878         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36879         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36880         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36881         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36882         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36883         namespaced alias symbol.
36884         * modules/stdio (Depends-on): Add c++defs.
36885         (Makefile.am): Update stdio.h rule.
36886
36887         spawn: Avoid #define replacements in C++ mode.
36888         * lib/spawn.in.h: Include c++defs.h.
36889         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36890         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36891         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36892         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36893         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36894         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36895         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36896         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36897         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36898         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36899         In C++, define a namespaced alias symbol.
36900         * modules/spawn (Depends-on): Add c++defs.
36901         (Makefile.am): Update spawn.h rule.
36902
36903         signal: Avoid #define replacements in C++ mode.
36904         * lib/signal.in.h: Include c++defs.h.
36905         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36906         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36907         namespaced alias symbol.
36908         * modules/signal (Depends-on): Add c++defs.
36909         (Makefile.am): Update signal.h rule.
36910
36911         search: Avoid #define replacements in C++ mode.
36912         * lib/search.in.h: Include c++defs.h.
36913         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36914         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36915         symbol.
36916         * modules/search (Depends-on): Add c++defs.
36917         (Makefile.am): Update search.h rule.
36918
36919         math: Avoid #define replacements in C++ mode.
36920         * lib/math.in.h: Include c++defs.h.
36921         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36922         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36923         trunc, truncl): In C++, define a namespaced alias symbol.
36924         * modules/math (Depends-on): Add c++defs.
36925         (Makefile.am): Update math.h rule.
36926
36927         locale: Avoid #define replacements in C++ mode.
36928         * lib/locale.in.h: Include c++defs.h.
36929         (duplocale): In C++, define a namespaced alias symbol.
36930         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36931         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36932         * modules/locale (Depends-on): Add c++defs.
36933         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36934
36935         langinfo: Avoid #define replacements in C++ mode.
36936         * lib/langinfo.in.h: Include c++defs.h.
36937         (nl_langinfo): In C++, define a namespaced alias symbol.
36938         * modules/langinfo (Depends-on): Add c++defs.
36939         (Makefile.am): Update langinfo.h rule.
36940
36941         iconv-h: Avoid #define replacements in C++ mode.
36942         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36943         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36944         symbol.
36945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36946         whenever iconv is present.
36947         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36948         (Makefile.am): Update iconv.h rule.
36949
36950         glob: Avoid #define replacements in C++ mode.
36951         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36952         (_gl_glob_errfunc_fn): New type.
36953         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36954         symbol.
36955         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36956         (Makefile.am): Update glob.h rule.
36957
36958         fcntl-h: Avoid #define replacements in C++ mode.
36959         * lib/fcntl.in.h: Include c++defs.h.
36960         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36961         * modules/fcntl-h (Depends-on): Add c++defs.
36962         (Makefile.am): Update fcntl.h rule.
36963
36964         dirent: Avoid #define replacements in C++ mode.
36965         * lib/dirent.in.h: Include c++defs.h.
36966         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36967         namespaced alias symbol.
36968         (dirfd): Update declaration.
36969         * modules/dirent (Depends-on): Add c++defs.
36970         (Makefile.am): Update dirent.h rule.
36971
36972         ctype: Make it usable in C++ code.
36973         * lib/ctype.in.h: Include c++defs.h.
36974         (isblank): Declare as extern "C".
36975         * modules/ctype (Depends-on): Add c++defs.
36976         (Makefile.am): Update ctype.h rule.
36977
36978         New module 'c++defs'.
36979         * modules/c++defs: New file.
36980         * build-aux/c++defs.h: New file.
36981         Reported by John W. Eaton <jwe@gnu.org>.
36982
36983 2010-03-07  Bruno Haible  <bruno@clisp.org>
36984
36985         logb: Provide missing declaration for Cygwin.
36986         * lib/math.in.h (logb): New declaration.
36987         * m4/logb.m4: New file.
36988         * modules/logb (Files): Add m4/logb.m4.
36989         (Depends-on): Add math.
36990         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36991         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36993         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36994         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36995
36996 2010-03-07  Bruno Haible  <bruno@clisp.org>
36997
36998         Fix test-cond link error.
36999         * tests/test-cond.c: Include <stdio.h>.
37000
37001 2010-03-07  Bruno Haible  <bruno@clisp.org>
37002
37003         Fix test-dirent-safer link error.
37004         * modules/dirent-safer-tests (Makefile.am): Define
37005         test_dirent_safer_LDADD.
37006
37007 2010-03-07  Bruno Haible  <bruno@clisp.org>
37008
37009         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37010         among default module list.
37011
37012 2010-03-07  Bruno Haible  <bruno@clisp.org>
37013
37014         Fix link error on platforms with GNU libiconv.
37015         * modules/unistr/u8-strcoll-tests (Makefile): Define
37016         test_u8_strcoll_LDADD.
37017         * modules/unistr/u16-strcoll-tests (Makefile): Define
37018         test_u16_strcoll_LDADD.
37019         * modules/unistr/u32-strcoll-tests (Makefile): Define
37020         test_u32_strcoll_LDADD.
37021
37022 2010-03-07  Bruno Haible  <bruno@clisp.org>
37023
37024         Use POSIX declarations for socket functions.
37025         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37026         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37027         rpl_sendto): Change declaration to match POSIX.
37028         * lib/connect.c (rpl_connect): Likewise.
37029         * lib/accept.c (rpl_accept): Likewise.
37030         * lib/bind.c (rpl_bind): Likewise.
37031         * lib/getpeername.c (rpl_getpeername): Likewise.
37032         * lib/getsockname.c (rpl_getsockname): Likewise.
37033         * lib/recv.c (rpl_recv): Likewise.
37034         * lib/send.c (rpl_send): Likewise.
37035         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37036         * lib/sendto.c (rpl_sendto): Likewise.
37037
37038 2010-03-06  Bruno Haible  <bruno@clisp.org>
37039
37040         Clarify access, euidaccess, faccessat.
37041         * doc/posix-functions/faccessat.texi: Mention security problem under
37042         "Other problems", not "Portability problems".
37043         * doc/posix-functions/access.texi: Likewise. Mention a related security
37044         problem.
37045         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37046         * lib/euidaccess.c: Add comments about platforms.
37047         * lib/unistd.in.h (access, euidaccess): Add warnings.
37048
37049 2010-03-07  Bruno Haible  <bruno@clisp.org>
37050
37051         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37052         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37053         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37054         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37055         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37056         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37057         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37058         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37059         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37060         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37061         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37062         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
37063         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
37064         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
37065         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
37066         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
37067         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
37068         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
37069         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
37070         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
37071         Likewise.
37072         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
37073         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
37074         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
37075         Likewise.
37076         * tests/test-spawn.c (main): Make it work when
37077         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37078
37079 2010-03-07  Bruno Haible  <bruno@clisp.org>
37080
37081         Fix incorrect Makefile.am generation in German locale.
37082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37083         Execute sed command with character range in C locale.
37084
37085 2010-03-06  Bruno Haible  <bruno@clisp.org>
37086
37087         Tests for module 'iconv-h'.
37088         * modules/iconv-h-tests: New file.
37089         * tests/test-iconv-h.c: New file.
37090
37091         New module 'iconv-h'.
37092         * modules/iconv-h: New file.
37093         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
37094         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
37095         (configure.ac): Remove gl_ICONV_H.
37096         (Makefile.am): Remove rule for iconv.h.
37097
37098 2010-03-06  Bruno Haible  <bruno@clisp.org>
37099
37100         More consistent naming of *.m4 files.
37101         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
37102         * modules/wctype (Files): Update.
37103
37104         More consistent naming of *.m4 files.
37105         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
37106         * modules/wchar (Files): Update.
37107
37108 2010-03-06  Jim Meyering  <meyering@redhat.com>
37109
37110         euidaccess: relax license to LGPLv2+
37111         * modules/euidaccess (License): Relax to LGPLv2+.
37112
37113 2010-03-06  Bruno Haible  <bruno@clisp.org>
37114
37115         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
37116         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
37117         (Makefile.am): Augment lib_SOURCES instead.
37118
37119 2010-03-04  Jim Meyering  <meyering@redhat.com>
37120
37121         utime: remove obsolete module
37122         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
37123         unnecessary for years, and has been marked as obsolete for 10 months.
37124         * modules/utime: Remove file.
37125         * lib/utime.c: Remove file.
37126         * m4/utime.m4: Remove file.
37127         * m4/utimes-null.m4: Remove file.
37128         * doc/posix-functions/utime.texi (utime): Remove reference to
37129         the module.  Move the sole "fixed by gnulib" item into the
37130         "problems not fixed by Gnulib" list.
37131         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
37132
37133 2010-03-05  Simon Josefsson  <simon@josefsson.org>
37134
37135         * modules/exit (License): Relax license to LGPLv2+.
37136         (Status): Mark as obsolete.
37137         * NEWS: Mention deprecated 'exit' module.
37138         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
37139         of now obsolete 'exit'.
37140
37141 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37142
37143         fts-lgpl: remove unused module
37144         * modules/fts-lgpl: Remove.
37145         * MODULES.html.sh (func_all_modules): Adjust.
37146         * check-module (find_included_lib_files): Adjust.
37147         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
37148
37149 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
37150
37151         copy-acl: enhance Solaris ACL error handling
37152         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
37153         * lib/set-mode-acl.c (qset_acl): Likewise.
37154
37155 2010-03-02  Bruno Haible  <bruno@clisp.org>
37156
37157         spawn: Don't override the system defined values on FreeBSD 8.
37158         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
37159         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
37160         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
37161         if HAVE_POSIX_SPAWN is 1.
37162         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
37163
37164 2010-03-01  Bruno Haible  <bruno@clisp.org>
37165
37166         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
37167         regarding Automake.
37168
37169 2010-02-25  Bruno Haible  <bruno@clisp.org>
37170
37171         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
37172         * gnulib-tool: Define 'echo' as a function only before the ksh alias
37173         setting, not afterwards.
37174         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
37175
37176 2010-02-24  Eric Blake  <eblake@redhat.com>
37177
37178         bootstrap, git-version-gen: use timestamp
37179         * build-aux/git-version-gen (scriptversion): Force UTC.
37180         * build-aux/bootstrap (scriptversion): New variable.
37181
37182         bootstrap: allow older git
37183         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
37184         older than 1.6.4.  Requested by the libvirt project.
37185
37186 2010-02-23  Eric Blake  <eblake@redhat.com>
37187
37188         warn-on-use: work with old autoconf
37189         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
37190         AS_VAR semantics of autoconf 2.60.
37191         Reported by Bruno Haible.
37192
37193         bootstrap: improve some comments
37194         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
37195         clarification comments.
37196
37197         gettimeofday: provide correct function
37198         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
37199         when replacement is declared, otherwise provide gettimeofday.
37200         Reported by Michael Goffioul.
37201
37202 2010-02-23  Jim Meyering  <meyering@redhat.com>
37203
37204         lib-ignore: relax license to "unlimited", not LGPLv2+
37205         * modules/lib-ignore (License): Relax to "unlimited".
37206
37207 2010-02-23  Jim Meyering  <meyering@redhat.com>
37208
37209         lib-ignore: relax license to LGPLv2+
37210         * modules/lib-ignore (License): Relax to LGPLv2+.
37211
37212 2010-02-22  Eric Blake  <eblake@redhat.com>
37213
37214         lseek: avoid bash 3.2 broken pipe bug
37215         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
37216         warning from bash 3.2.
37217         Reported by Ben Pfaff, with analysis from Bruno Haible.
37218
37219         bootstrap: support non-FSF copyright holder
37220         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
37221         bootstrap.conf override of COPYRIGHT_HOLDER.
37222         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
37223
37224         bootstrap: interoperate with gettext 0.14.1
37225         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
37226
37227         bootstrap: allow for alternate submodule location
37228         * build-aux/bootstrap (gnulib_path): New variable; use instead of
37229         hardcoding submodule location.
37230         (gnulib_mk): Allow direct use of Makefile.am.
37231
37232         bootstrap: use GNULIB_SRCDIR to reduce disk usage
37233         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
37234         rather than reconfiguring where the submodule points.
37235
37236         gettimeofday: restore support for platforms that lack function
37237         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
37238         replacement if function is missing.
37239         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
37240         * modules/sys_time (Makefile.am): Substitute it.
37241         * lib/sys_time.in.h (gettimeofday): Check it.
37242         Reported by Michael Goffioul.
37243
37244 2010-02-21  Bruno Haible  <bruno@clisp.org>
37245
37246         * lib/stdio.in.h (obstack_printf): Fix typo.
37247
37248 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
37249
37250         vc-list-files: use bzr ls's -R option
37251         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
37252         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
37253
37254 2010-02-21  Jim Meyering  <meyering@redhat.com>
37255
37256         init.sh: fix EXEEXT shims to work also for names like test-prog
37257         * tests/init.sh: Re-exec a better shell, when needed.
37258         If the current shell lacks support for posix $(...), an init.sh-using
37259         test will now try to find a shell that supports that.  If EXEEXT is
37260         nonempty, we also require support for hyphen-in-alias-name and shell
37261         substitutions like ${var#glob}.  Failure to find such a shell results
37262         in a skipped test.
37263
37264 2010-02-21  Bruno Haible  <bruno@clisp.org>
37265
37266         Really work around around "broken pipe" error message from bash 3.2.
37267         * gnulib-tool (func_reset_sigpipe): Remove function.
37268         (echo): In bash 3.2, define to a function that uses printf.
37269         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
37270
37271 2010-02-20  Bruno Haible  <bruno@clisp.org>
37272
37273         Restore support for automake 1.9.6 with autoconf 2.61.
37274         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
37275         Reported by James Youngman <jay@gnu.org>.
37276
37277 2010-02-20  Bruno Haible  <bruno@clisp.org>
37278
37279         Improve *printf warning condition.
37280         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
37281         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
37282         and the function is overridden due to SIGPIPE emulation.
37283
37284 2010-02-20  Bruno Haible  <bruno@clisp.org>
37285
37286         * lib/stdio.in.h: Tweak comments.
37287
37288 2010-02-19  Bruno Haible  <bruno@clisp.org>
37289
37290         Make it easier to find modules. New gnulib-tool option '--find'.
37291         * gnulib-tool: New option --find.
37292         (func_usage): Document it.
37293         (func_sanitize_modulelist): New function, extracted from
37294         func_all_modules.
37295         (func_all_modules): Invoke it.
37296         * doc/gnulib-tool.texi (Which modules?): New node.
37297
37298 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
37299
37300         * lib/sys_select.in.h: Provide select replacement even if
37301         sys/select.h exists on a system, for Interix.
37302
37303 2010-02-18  Jim Meyering  <meyering@redhat.com>
37304
37305         init.sh: don't use $(...) just yet
37306         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
37307         to accommodate e.g., Solaris' /bin/sh.
37308
37309 2010-02-17  Bruno Haible  <bruno@clisp.org>
37310
37311         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
37312         Reported by Ludovic Courtès <ludo@gnu.org>.
37313
37314 2010-02-16  Simon Josefsson  <simon@josefsson.org>
37315
37316         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
37317         linking with -lintl.
37318
37319 2010-02-17  Simon Josefsson  <simon@josefsson.org>
37320
37321         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
37322         if not provided by the system's netdb.h.  Reported by
37323         ludo@gnu.org (Ludovic Courtès).
37324
37325 2010-02-15  Jim Meyering  <meyering@redhat.com>
37326
37327         init.sh: improve portability and efficiency
37328         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
37329         "dummy" in a for loop.
37330         Use '!', not '^' to select the complement of a character set used
37331         in a "case" statement.
37332         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
37333         Suggestions from Eric Blake.
37334
37335         init.sh: automatically accommodate programs with the .exe suffix
37336         Automatically arrange for an invocation of "prog" to execute the
37337         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
37338         may use the simpler "prog", yet still work when built on a system
37339         that requires specifying the added suffix.
37340         Do this by constructing a function named "prog" that invokes
37341         "prog.exe" for each .exe file in selected directories.
37342         * tests/init.sh (find_exe_basenames_): New function.
37343         (create_exe_shim_functions_): New function.
37344         (path_prepend_): Use it.
37345
37346         maint.mk: mark syntax-check sc_*.m rules as .PHONY
37347         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
37348         "make -t syntax-check" doesn't create a ton of sc_*.m files.
37349
37350 2010-02-14  Jim Meyering  <meyering@redhat.com>
37351
37352         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
37353         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
37354         (sc_prohibit_hash_pjw_without_use): New rule.
37355
37356         maint.mk: allow the default upload destination dir to be overridden
37357         * top/maint.mk (upload_dest_dir_): Define with a default that
37358         preserves the status quo.
37359         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
37360         Reported by Peter Simons.
37361
37362         maint.mk: prohibit inclusion of "hash.h" without_use
37363         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
37364
37365 2010-02-10  Jim Meyering  <meyering@redhat.com>
37366
37367         maint.mk: prohibit inclusion of "ignore-value.h" without_use
37368         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
37369
37370 2010-02-09  Eric Blake  <ebb9@byu.net>
37371         and Bruno Haible  <bruno@clisp.org>
37372
37373         obstack-printf-posix: ensure declaration
37374         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
37375         extracted from gl_FUNC_OBSTACK_PRINTF.
37376         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
37377         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37378         Likewise.
37379         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
37380         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
37381         0.
37382
37383 2010-02-08  Bruno Haible  <bruno@clisp.org>
37384
37385         gnulib-tool: Fix typo in 2010-02-07 commit.
37386         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
37387         Reported by Eric Blake.
37388
37389 2010-02-07  Bruno Haible  <bruno@clisp.org>
37390
37391         gnulib-tool: Fix up caching patches.
37392         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
37393         option --no-cache. Use associative arrays when supported by the shell.
37394         (sed_comments): New variable.
37395         (modcache): Renamed from do_cache.
37396         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
37397         abbreviate unnecessarily.
37398         (have_associative): New variable.
37399         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
37400         way also for ksh and zsh.
37401         (func_init_sed_convert_to_cache_statements): New function, extracted
37402         from func_cache_lookup_module. Add support for associative arrays.
37403         Don't set the c_MODULE_cached variable here. Ignore all lines before
37404         the first field header. Remove only the final newline, not all trailing
37405         newlines. Support empty fields correctly. Limit the use of 'eval' to
37406         assignments.
37407         (func_get_description, func_get_status, func_get_notice,
37408         func_get_applicability, func_get_filelist, func_get_dependencies,
37409         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
37410         func_get_automake_snippet, func_get_include_directive,
37411         func_get_link_directive, func_get_license, func_get_maintainer):
37412         Update documentation. List the unoptimized code first. Add support for
37413         associative arrays. Limit the use of 'eval' to assignments.
37414         (func_get_applicability): Undo stylistic pessimisations.
37415         (func_get_automake_snippet, func_get_include_directive): Reduce code
37416         duplication.
37417         (func_modules_transitive_closure, func_modules_add_dummy,
37418         func_modules_notice, func_modules_to_filelist, func_add_file,
37419         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
37420         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
37421         func_create_testdir, func_create_megatestdir): Update documentation.
37422
37423 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37424
37425         * gnulib-tool (func_cache_lookup_module): Store the module name
37426         belonging to the cache variable; error out if two different
37427         module names map to the same cache variable name.
37428
37429 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37430
37431         gnulib-tool: Make caching optional.
37432         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
37433         Update matching short versions of --no-changelog.
37434         (func_usage): Update.
37435         (sed_extract_cache_prog): Renamed from ...
37436         (sed_extract_prog): ... this; revert to old extraction script.
37437         (func_get_description, func_get_status)
37438         (func_get_notice, func_get_applicability, func_get_filelist)
37439         (func_get_dependencies, func_get_autoconf_early_snippet)
37440         (func_get_autoconf_snippet, func_get_automake_snippet)
37441         (func_get_include_directive, func_get_link_directive)
37442         (func_get_license, func_get_maintainer): If $do_cache is false,
37443         use old, non-caching extraction scripts.
37444         Suggestion by Bruno Haible.
37445
37446 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37447
37448         gnulib-tool: cache module metainformation.
37449         * gnulib-tool (sed_extract_prog): Match newline before each
37450         header, and rewrite header to a shell variable suffix.
37451         (func_cache_var, func_cache_lookup_module): New functions,
37452         to turn a module name into a cache variable prefix, and to
37453         look up and cache module metainformation.
37454         (func_get_description, func_get_status)
37455         (func_get_notice, func_get_applicability, func_get_filelist)
37456         (func_get_dependencies, func_get_autoconf_early_snippet)
37457         (func_get_autoconf_snippet, func_get_automake_snippet)
37458         (func_get_include_directive, func_get_link_directive)
37459         (func_get_license, func_get_maintainer): Use
37460         func_cache_lookup_module.
37461
37462 2010-02-07  Bruno Haible  <bruno@clisp.org>
37463
37464         fnctl: Fix missing dependency.
37465         * modules/fcntl (Depends-on): Add getdtablesize.
37466         Reported by John W. Eaton <jwe@gnu.org>.
37467
37468 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37469
37470         Argp: fix recognition of short alias options.
37471
37472         * lib/argp-parse.c (convert_options): Fix improper use of
37473         `|' between character values.
37474         * tests/test-argp.c (group1_option): New alias option
37475         --read (-r).
37476         (group1_parser): Special handling for 'r'.
37477         (test15): New test case.
37478         (test_fun): Add test15.
37479         * tests/test-argp-2.sh: Update expected --help and --usage
37480         outputs.
37481
37482 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
37483
37484         * tests/test-argp.c: Fix indentation.
37485
37486 2010-02-04  Eric Blake  <ebb9@byu.net>
37487
37488         gettimeofday: expose type of second argument
37489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
37490         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
37491         * tests/test-gettimeofday.c: Use it to silence warning.
37492         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
37493         the issue.
37494
37495 2010-02-03  Jim Meyering  <meyering@redhat.com>
37496
37497         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
37498         * lib/regcomp.c (TYPE_SIGNED): Define.
37499         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
37500
37501         regcomp.c: avoid a new -Wshadow warning
37502         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
37503
37504 2010-02-01  Jim Meyering  <meyering@redhat.com>
37505
37506         removing useless parentheses in cpp #define directives
37507         For motivation, see commit c0221df4, "define STREQ(a,b)
37508         consistently, removing useless parentheses"
37509         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
37510         * lib/mountlist.c (MNT_IGNORE): Likewise.
37511         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
37512
37513 2010-02-01  Eric Blake  <ebb9@byu.net>
37514
37515         sys_time: use link-warning
37516         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
37517         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
37518         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
37519         * modules/sys_time (Depends-on): Add warn-on-use.
37520         (Makefile.am): Always build replacement.
37521         (configure.ac): Update substitutions.
37522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
37523         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
37524         bother with SYS_TIME_H.
37525         * modules/gettimeofday (configure.ac): Declare indicator.
37526         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
37527         in use.
37528
37529         closein-tests: silence compiler warning
37530         * tests/test-closein.c (main): Ignore fread result.
37531         * modules/closein-tests (Depends-on): Add ignore-value.
37532
37533         tests: silence warning about system return
37534         * tests/test-areadlink-with-size.c (main): Ignore system result.
37535         * tests/test-areadlink.c (main): Likewise.
37536         * tests/test-areadlinkat-with-size.c (main): Likewise.
37537         * tests/test-areadlinkat.c (main): Likewise.
37538         * tests/test-canonicalize-lgpl.c (main): Likewise.
37539         * tests/test-canonicalize.c (main): Likewise.
37540         * tests/test-chown.c (main): Likewise.
37541         * tests/test-fchownat.c (main): Likewise.
37542         * tests/test-fdutimensat.c (main): Likewise.
37543         * tests/test-fstatat.c (main): Likewise.
37544         * tests/test-futimens.c (main): Likewise.
37545         * tests/test-lchown.c (main): Likewise.
37546         * tests/test-link.c (main): Likewise.
37547         * tests/test-linkat.c (main): Likewise.
37548         * tests/test-lstat.c (main): Likewise.
37549         * tests/test-mkdir.c (main): Likewise.
37550         * tests/test-mkdirat.c (main): Likewise.
37551         * tests/test-mkfifo.c (main): Likewise.
37552         * tests/test-mkfifoat.c (main): Likewise.
37553         * tests/test-mknod.c (main): Likewise.
37554         * tests/test-readlink.c (main): Likewise.
37555         * tests/test-remove.c (main): Likewise.
37556         * tests/test-rename.c (main): Likewise.
37557         * tests/test-renameat.c (main): Likewise.
37558         * tests/test-rmdir.c (main): Likewise.
37559         * tests/test-symlink.c (main): Likewise.
37560         * tests/test-symlinkat.c (main): Likewise.
37561         * tests/test-unlink.c (main): Likewise.
37562         * tests/test-unlinkat.c (main): Likewise.
37563         * tests/test-utimens.c (main): Likewise.
37564         * tests/test-utimensat.c (main): Likewise.
37565         * modules/areadlink-tests (Depends-on): Add ignore-value.
37566         * modules/areadlink-with-size-tests (Depends-on): Likewise.
37567         * modules/areadlinkat-tests (Depends-on): Likewise.
37568         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
37569         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37570         * modules/canonicalize-tests (Depends-on): Likewise.
37571         * modules/chown-tests (Depends-on): Likewise.
37572         * modules/fdutimensat-tests (Depends-on): Likewise.
37573         * modules/futimens-tests (Depends-on): Likewise.
37574         * modules/lchown-tests (Depends-on): Likewise.
37575         * modules/link-tests (Depends-on): Likewise.
37576         * modules/linkat-tests (Depends-on): Likewise.
37577         * modules/lstat-tests (Depends-on): Likewise.
37578         * modules/mkdir-tests (Depends-on): Likewise.
37579         * modules/mkfifo-tests (Depends-on): Likewise.
37580         * modules/mkfifoat-tests (Depends-on): Likewise.
37581         * modules/mknod-tests (Depends-on): Likewise.
37582         * modules/openat-tests (Depends-on): Likewise.
37583         * modules/readlink-tests (Depends-on): Likewise.
37584         * modules/remove-tests (Depends-on): Likewise.
37585         * modules/rename-tests (Depends-on): Likewise.
37586         * modules/renameat-tests (Depends-on): Likewise.
37587         * modules/rmdir-tests (Depends-on): Likewise.
37588         * modules/symlink-tests (Depends-on): Likewise.
37589         * modules/symlinkat-tests (Depends-on): Likewise.
37590         * modules/unlink-tests (Depends-on): Likewise.
37591         * modules/utimens-tests (Depends-on): Likewise.
37592         * modules/utimensat-tests (Depends-on): Likewise.
37593
37594 2010-01-31  Bruno Haible  <bruno@clisp.org>
37595
37596         Perform the same test for many <math.h> functions.
37597         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
37598         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
37599         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
37600         of gl_MATHFUNC.
37601         * modules/acos (configure.ac): Likewise.
37602         * modules/asin (configure.ac): Likewise.
37603         * modules/atan (configure.ac): Likewise.
37604         * modules/atan2 (configure.ac): Likewise.
37605         * modules/cbrt (configure.ac): Likewise.
37606         * modules/copysign (configure.ac): Likewise.
37607         * modules/cos (configure.ac): Likewise.
37608         * modules/cosh (configure.ac): Likewise.
37609         * modules/erf (configure.ac): Likewise.
37610         * modules/erfc (configure.ac): Likewise.
37611         * modules/exp (configure.ac): Likewise.
37612         * modules/fmod (configure.ac): Likewise.
37613         * modules/hypot (configure.ac): Likewise.
37614         * modules/j0 (configure.ac): Likewise.
37615         * modules/j1 (configure.ac): Likewise.
37616         * modules/jn (configure.ac): Likewise.
37617         * modules/lgamma (configure.ac): Likewise.
37618         * modules/log (configure.ac): Likewise.
37619         * modules/log10 (configure.ac): Likewise.
37620         * modules/log1p (configure.ac): Likewise.
37621         * modules/pow (configure.ac): Likewise.
37622         * modules/remainder (configure.ac): Likewise.
37623         * modules/sin (configure.ac): Likewise.
37624         * modules/sinh (configure.ac): Likewise.
37625         * modules/tan (configure.ac): Likewise.
37626         * modules/tanh (configure.ac): Likewise.
37627         * modules/y0 (configure.ac): Likewise.
37628         * modules/y1 (configure.ac): Likewise.
37629         * modules/yn (configure.ac): Likewise.
37630         Suggested by Paolo Bonzini.
37631
37632 2010-01-31  Bruno Haible  <bruno@clisp.org>
37633
37634         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
37635
37636 2010-01-31  Bruno Haible  <bruno@clisp.org>
37637
37638         Work around getdelim() bug on FreeBSD 8.0.
37639         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
37640         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
37641         not work.
37642         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
37643         is 1.
37644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
37645         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
37646         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
37647         a non-zero size.
37648         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
37649
37650 2010-01-31  Bruno Haible  <bruno@clisp.org>
37651
37652         Work around getline() bug on FreeBSD 8.0.
37653         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
37654         and a non-zero size.
37655         * tests/test-getline.c (main): Likewise.
37656         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
37657         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
37658
37659 2010-01-28  Eric Blake  <ebb9@byu.net>
37660
37661         regex: fix build failure
37662         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
37663         platforms.
37664
37665 2010-01-28  Jim Meyering  <meyering@redhat.com>
37666
37667         regex: do not ignore memory allocation failure
37668         * lib/regex_internal.c (create_cd_newstate): Detect
37669         re_node_set_init_copy failure.   Extracted from glibc commit
37670         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37671
37672         regex: sync more white-space changes from libc
37673         * lib/regex_internal.c: White-space only changes.
37674         * lib/regexec.c: Likewise.
37675
37676         regex: add many uses of __attribute_warn_unused_result__
37677         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
37678         * lib/regexec.c: Likewise.
37679         Extracted from a messy glibc commit.
37680
37681         regcomp.c: spelling and merge-artifact from glibc
37682         * lib/regcomp.c: Merge remainder of glibc's
37683         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37684
37685         regcomp.c: sync white-space changes from glibc
37686         * lib/regcomp.c: Merge to accommodate white space
37687         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
37688
37689         regcomp.c: do not ignore internal return values
37690         * lib/regcomp.c: Do not ignore internal return values.
37691         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
37692         but without its white-space changes and spelling fixes.
37693
37694         regex_internal.h: define __attribute_warn_unused_result__
37695         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
37696
37697         maint: add a syntax-check rule to check for vulnerable Makefile.in
37698         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
37699
37700 2010-01-27  Jim Meyering  <meyering@redhat.com>
37701
37702         ncftpput-ftp: clean up spaces
37703         * build-aux/ncftpput-ftp: Make Copyright line consistent.
37704         Remove trailing blanks.
37705
37706 2010-01-27  Simon Josefsson  <simon@josefsson.org>
37707
37708         * build-aux/git-version-gen: Fix copyright statement.
37709         * build-aux/gnupload: Likewise.
37710         * tests/test-arcfour.c: Likewise.
37711         * tests/test-arctwo.c: Likewise.
37712         * tests/test-count-one-bits.c: Likewise.
37713         * tests/test-crc.c: Likewise.
37714         * tests/test-des.c: Likewise.
37715         * tests/test-gc-arcfour.c: Likewise.
37716         * tests/test-gc-arctwo.c: Likewise.
37717         * tests/test-gc-des.c: Likewise.
37718         * tests/test-gc-hmac-md5.c: Likewise.
37719         * tests/test-gc-hmac-sha1.c: Likewise.
37720         * tests/test-gc-md2.c: Likewise.
37721         * tests/test-gc-md4.c: Likewise.
37722         * tests/test-gc-md5.c: Likewise.
37723         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37724         * tests/test-gc-rijndael.c: Likewise.
37725         * tests/test-gc-sha1.c: Likewise.
37726         * tests/test-gc.c: Likewise.
37727         * tests/test-gethostname.c: Likewise.
37728         * tests/test-gettimeofday.c: Likewise.
37729         * tests/test-hash.c: Likewise.
37730         * tests/test-hmac-md5.c: Likewise.
37731         * tests/test-hmac-sha1.c: Likewise.
37732         * tests/test-md2.c: Likewise.
37733         * tests/test-md4.c: Likewise.
37734         * tests/test-md5.c: Likewise.
37735         * tests/test-memchr.c: Likewise.
37736         * tests/test-memchr2.c: Likewise.
37737         * tests/test-memcmp.c: Likewise.
37738         * tests/test-memmem.c: Likewise.
37739         * tests/test-memrchr.c: Likewise.
37740         * tests/test-rawmemchr.c: Likewise.
37741         * tests/test-read-file.c: Likewise.
37742         * tests/test-rijndael.c: Likewise.
37743         * tests/test-sockets.c: Likewise.
37744         * tests/test-strchrnul.c: Likewise.
37745         * tests/test-strstr.c: Likewise.
37746         * tests/test-strtod.c: Likewise.
37747         * build-aux/ncftpput-ftp: Likewise.
37748
37749 2010-01-26  Eric Blake  <ebb9@byu.net>
37750
37751         ignore-value: update recommended header name
37752         * modules/ignore-value (Include): Only use <> for headers that
37753         exist in glibc.
37754
37755 2010-01-26  Jim Meyering  <meyering@redhat.com>
37756
37757         test-userspec.c: avoid compiler warnings
37758         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
37759         and "initialization discards qualifiers..." warnings.
37760         Put the first "uid" in its own scope, and make char* members "const".
37761
37762 2010-01-25  Bruno Haible  <bruno@clisp.org>
37763
37764         gnulib-tool: Make warning diagnostics consistent.
37765         * gnulib-tool (func_warning): New function.
37766         Use it everywhere where gnulib-tool produces output to stderr and it is
37767         not a fatal error.
37768
37769 2010-01-25  Bruno Haible  <bruno@clisp.org>
37770
37771         Fix test dependencies.
37772         * modules/xstrtol-tests (Depends-on): Add inttypes.
37773         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
37774
37775 2010-01-25 Pádraig Brady <P@draigBrady.com>
37776
37777         syntax-check: detect incorrect boolean macro values in config.h
37778         * modules/maintainer-makefile (configure.ac): Parameterize the location
37779         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
37780         The logic is from Eric Blake and the location indicated by Jim Meyering.
37781         Note the more natural CONFIG_HEADER name is prohibited by automake
37782         for backwards compatibility reasons.
37783         * top/maint.mk (sc_Wundef_boolean): New rule.
37784
37785 2010-01-25  Jim Meyering  <meyering@redhat.com>
37786
37787         bootstrap: detect MacOS 10.6's shasum, too
37788         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
37789         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
37790
37791 2010-01-23  Jim Meyering  <meyering@redhat.com>
37792
37793         xstrtoll: new module
37794         * modules/xstrtoll: New file.
37795         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
37796         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
37797         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
37798         ./configure fails if you use this module and lack "long long".
37799         * modules/xstrtoll-tests: New module.
37800         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
37801         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
37802         new init.sh-based test framework.
37803
37804 2010-01-24  Bruno Haible  <bruno@clisp.org>
37805
37806         Tests for module 'yn'.
37807         * modules/yn-tests: New file.
37808         * tests/test-yn.c: New file.
37809
37810         Tests for module 'y1'.
37811         * modules/y1-tests: New file.
37812         * tests/test-y1.c: New file.
37813
37814         Tests for module 'y0'.
37815         * modules/y0-tests: New file.
37816         * tests/test-y0.c: New file.
37817
37818         Tests for module 'tanh'.
37819         * modules/tanh-tests: New file.
37820         * tests/test-tanh.c: New file.
37821
37822         Tests for module 'tan'.
37823         * modules/tan-tests: New file.
37824         * tests/test-tan.c: New file.
37825
37826         Tests for module 'sqrt'.
37827         * modules/sqrt-tests: New file.
37828         * tests/test-sqrt.c: New file.
37829
37830         Tests for module 'sinh'.
37831         * modules/sinh-tests: New file.
37832         * tests/test-sinh.c: New file.
37833
37834         Tests for module 'sin'.
37835         * modules/sin-tests: New file.
37836         * tests/test-sin.c: New file.
37837
37838         Tests for module 'rint'.
37839         * modules/rint-tests: New file.
37840         * tests/test-rint.c: New file.
37841
37842         Tests for module 'remainder'.
37843         * modules/remainder-tests: New file.
37844         * tests/test-remainder.c: New file.
37845
37846         Tests for module 'pow'.
37847         * modules/pow-tests: New file.
37848         * tests/test-pow.c: New file.
37849
37850         Tests for module 'nextafter'.
37851         * modules/nextafter-tests: New file.
37852         * tests/test-nextafter.c: New file.
37853
37854         Tests for module 'modf'.
37855         * modules/modf-tests: New file.
37856         * tests/test-modf.c: New file.
37857
37858         Tests for module 'logb'.
37859         * modules/logb-tests: New file.
37860         * tests/test-logb.c: New file.
37861
37862         Tests for module 'log1p'.
37863         * modules/log1p-tests: New file.
37864         * tests/test-log1p.c: New file.
37865
37866         Tests for module 'log10'.
37867         * modules/log10-tests: New file.
37868         * tests/test-log10.c: New file.
37869
37870         Tests for module 'log'.
37871         * modules/log-tests: New file.
37872         * tests/test-log.c: New file.
37873
37874         Tests for module 'lgamma'.
37875         * modules/lgamma-tests: New file.
37876         * tests/test-lgamma.c: New file.
37877
37878         Tests for module 'ldexp'.
37879         * modules/ldexp-tests: New file.
37880         * tests/test-ldexp.c: New file.
37881
37882         Tests for module 'jn'.
37883         * modules/jn-tests: New file.
37884         * tests/test-jn.c: New file.
37885
37886         Tests for module 'j1'.
37887         * modules/j1-tests: New file.
37888         * tests/test-j1.c: New file.
37889
37890         Tests for module 'j0'.
37891         * modules/j0-tests: New file.
37892         * tests/test-j0.c: New file.
37893
37894         Tests for module 'hypot'.
37895         * modules/hypot-tests: New file.
37896         * tests/test-hypot.c: New file.
37897
37898         Tests for module 'fmod'.
37899         * modules/fmod-tests: New file.
37900         * tests/test-fmod.c: New file.
37901
37902         Tests for module 'fabs'.
37903         * modules/fabs-tests: New file.
37904         * tests/test-fabs.c: New file.
37905
37906         Tests for module 'exp'.
37907         * modules/exp-tests: New file.
37908         * tests/test-exp.c: New file.
37909
37910         Tests for module 'erfc'.
37911         * modules/erfc-tests: New file.
37912         * tests/test-erfc.c: New file.
37913
37914         Tests for module 'erf'.
37915         * modules/erf-tests: New file.
37916         * tests/test-erf.c: New file.
37917
37918         Tests for module 'cosh'.
37919         * modules/cosh-tests: New file.
37920         * tests/test-cosh.c: New file.
37921
37922         Tests for module 'cos'.
37923         * modules/cos-tests: New file.
37924         * tests/test-cos.c: New file.
37925
37926         Tests for module 'copysign'.
37927         * modules/copysign-tests: New file.
37928         * tests/test-copysign.c: New file.
37929
37930         Tests for module 'cbrt'.
37931         * modules/cbrt-tests: New file.
37932         * tests/test-cbrt.c: New file.
37933
37934         Tests for module 'atan2'.
37935         * modules/atan2-tests: New file.
37936         * tests/test-atan2.c: New file.
37937
37938         Tests for module 'atan'.
37939         * modules/atan-tests: New file.
37940         * tests/test-atan.c: New file.
37941
37942         Tests for module 'asin'.
37943         * modules/asin-tests: New file.
37944         * tests/test-asin.c: New file.
37945
37946         Tests for module 'acos'.
37947         * modules/acos-tests: New file.
37948         * tests/test-acos.c: New file.
37949
37950 2010-01-24  Bruno Haible  <bruno@clisp.org>
37951
37952         Fix tests for common <math.h> functions.
37953         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37954         code snippet that references the function pointer, rather than merely
37955         calling the function. Substitute the FUNC_LIBM variable.
37956         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37957         * modules/acos (configure.ac): Likewise.
37958         * modules/asin (configure.ac): Likewise.
37959         * modules/atan (configure.ac): Likewise.
37960         * modules/atan2 (configure.ac): Likewise.
37961         * modules/cbrt (configure.ac): Likewise.
37962         * modules/copysign (configure.ac): Likewise.
37963         * modules/cos (configure.ac): Likewise.
37964         * modules/cosh (configure.ac): Likewise.
37965         * modules/erf (configure.ac): Likewise.
37966         * modules/erfc (configure.ac): Likewise.
37967         * modules/exp (configure.ac): Likewise.
37968         * modules/fabs (configure.ac): Likewise.
37969         * modules/fmod (configure.ac): Likewise.
37970         * modules/hypot (configure.ac): Likewise.
37971         * modules/j0 (configure.ac): Likewise.
37972         * modules/j1 (configure.ac): Likewise.
37973         * modules/jn (configure.ac): Likewise.
37974         * modules/ldexp (configure.ac): Likewise.
37975         * modules/lgamma (configure.ac): Likewise.
37976         * modules/log (configure.ac): Likewise.
37977         * modules/log10 (configure.ac): Likewise.
37978         * modules/log1p (configure.ac): Likewise.
37979         * modules/logb (configure.ac): Likewise.
37980         * modules/modf (configure.ac): Likewise.
37981         * modules/nextafter (configure.ac): Likewise.
37982         * modules/pow (configure.ac): Likewise.
37983         * modules/remainder (configure.ac): Likewise.
37984         * modules/rint (configure.ac): Likewise.
37985         * modules/sin (configure.ac): Likewise.
37986         * modules/sinh (configure.ac): Likewise.
37987         * modules/tan (configure.ac): Likewise.
37988         * modules/tanh (configure.ac): Likewise.
37989         * modules/y0 (configure.ac): Likewise.
37990         * modules/y1 (configure.ac): Likewise.
37991         * modules/yn (configure.ac): Likewise.
37992
37993 2010-01-24  Bruno Haible  <bruno@clisp.org>
37994
37995         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37996         * tests/test-acosl.c (x): New variable.
37997         (main): Store argument in x and fetch it from x.
37998         * tests/test-asinl.c (x): New variable.
37999         (main): Store argument in x and fetch it from x.
38000         * tests/test-atanl.c (x): New variable.
38001         (main): Store argument in x and fetch it from x.
38002         * tests/test-cosl.c (x): New variable.
38003         (main): Store argument in x and fetch it from x.
38004         * tests/test-expl.c (x): New variable.
38005         (main): Store argument in x and fetch it from x.
38006         * tests/test-logl.c (x): New variable.
38007         (main): Store argument in x and fetch it from x.
38008         * tests/test-sinl.c (x): New variable.
38009         (main): Store argument in x and fetch it from x.
38010         * tests/test-sqrtl.c (x): New variable.
38011         (main): Store argument in x and fetch it from x.
38012         * tests/test-tanl.c (x): New variable.
38013         (main): Store argument in x and fetch it from x.
38014
38015 2010-01-24  Bruno Haible  <bruno@clisp.org>
38016
38017         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38018         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38019         assignments to the initial TESTS_ENVIRONMENT.
38020         * doc/gnulib.texi (Unit test modules): Document it.
38021         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38022         TESTS_ENVIRONMENT.
38023         * modules/btowc-tests (Makefile.am): Likewise.
38024         * modules/c-stack-tests (Makefile.am): Likewise.
38025         * modules/c-strcase-tests (Makefile.am): Likewise.
38026         * modules/copy-file-tests (Makefile.am): Likewise.
38027         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38028         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38029         * modules/mbrtowc-tests (Makefile.am): Likewise.
38030         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38031         * modules/mbscasestr-tests (Makefile.am): Likewise.
38032         * modules/mbschr-tests (Makefile.am): Likewise.
38033         * modules/mbscspn-tests (Makefile.am): Likewise.
38034         * modules/mbsinit-tests (Makefile.am): Likewise.
38035         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38036         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38037         * modules/mbspbrk-tests (Makefile.am): Likewise.
38038         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38039         * modules/mbsrchr-tests (Makefile.am): Likewise.
38040         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38041         * modules/mbsspn-tests (Makefile.am): Likewise.
38042         * modules/mbsstr-tests (Makefile.am): Likewise.
38043         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38044         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38045         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38046         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38047         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38048         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38049         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38050         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38051         * modules/wcrtomb-tests (Makefile.am): Likewise.
38052         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38053         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38054         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38055         assignments from TESTS_ENVIRONMENT.
38056         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38057         augmentation.
38058         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38059         * modules/atexit-tests (Makefile.am): Likewise.
38060         * modules/binary-io-tests (Makefile.am): Likewise.
38061         * modules/closein-tests (Makefile.am): Likewise.
38062         * modules/dprintf-posix-tests (Makefile.am): Likewise.
38063         * modules/exclude-tests (Makefile.am): Likewise.
38064         * modules/fflush-tests (Makefile.am): Likewise.
38065         * modules/fpending-tests (Makefile.am): Likewise.
38066         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38067         * modules/freadahead-tests (Makefile.am): Likewise.
38068         * modules/freadptr-tests (Makefile.am): Likewise.
38069         * modules/freadseek-tests (Makefile.am): Likewise.
38070         * modules/fseek-tests (Makefile.am): Likewise.
38071         * modules/fseeko-tests (Makefile.am): Likewise.
38072         * modules/ftell-tests (Makefile.am): Likewise.
38073         * modules/ftello-tests (Makefile.am): Likewise.
38074         * modules/idpriv-drop-tests (Makefile.am): Likewise.
38075         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
38076         * modules/lseek-tests (Makefile.am): Likewise.
38077         * modules/parse-duration-tests (Makefile.am): Likewise.
38078         * modules/perror-tests (Makefile.am): Likewise.
38079         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
38080         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
38081         * modules/pipe-tests (Makefile.am): Likewise.
38082         * modules/pread-tests (Makefile.am): Likewise.
38083         * modules/printf-posix-tests (Makefile.am): Likewise.
38084         * modules/select-tests (Makefile.am): Likewise.
38085         * modules/sigpipe-tests (Makefile.am): Likewise.
38086         * modules/tsearch-tests (Makefile.am): Likewise.
38087         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
38088         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
38089         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38090         * modules/uniwidth/width-tests (Makefile.am): Likewise.
38091         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
38092         * modules/version-etc-tests (Makefile.am): Likewise.
38093         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38094         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38095         * modules/xalloc-die-tests (Makefile.am): Likewise.
38096         * modules/xprintf-posix-tests (Makefile.am): Likewise.
38097         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38098         * modules/xstrtol-tests (Makefile.am): Likewise.
38099         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38100         * modules/yesno-tests (Makefile.am): Likewise.
38101         Suggested by Jim Meyering.
38102
38103 2010-01-24  Bruno Haible  <bruno@clisp.org>
38104
38105         More documentation.
38106         * doc/gnulib.texi (Writing modules): New chapter.
38107         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
38108         the new chapter.
38109
38110 2010-01-24  Jim Meyering  <meyering@redhat.com>
38111
38112         maint.mk: do not prepend "./" after filtering
38113         * top/maint.mk (_prepend_srcdir_prefix): New variable
38114         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
38115         "./" when $(srcdir) is ".".
38116
38117         define STREQ(a,b) consistently, removing useless parentheses
38118         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
38119         since the only risk is that "a" or "b" contains an unparenthesized
38120         comma, but if either did that, STREQ would have 3 or more arguments.
38121         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
38122         * lib/fts.c (STREQ): Remove unnecessary parentheses.
38123         * lib/hash-triple.c (STREQ): Likewise.
38124         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
38125         * lib/getugroups.c (STREQ): Likewise.
38126
38127 2010-01-23  Jim Meyering  <meyering@redhat.com>
38128
38129         maint.mk: fix syntax-check in a non-srcdir build directory
38130         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
38131         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
38132
38133 2010-01-22  Jim Meyering  <meyering@redhat.com>
38134
38135         userspec: add unit tests
38136         * tests/test-userspec.c: New file.
38137         * modules/userspec-tests: Likewise.
38138
38139 2010-01-21  Jim Meyering  <meyering@redhat.com>
38140
38141         maint.mk: handle source file names containing "." robustly
38142         * top/maint.mk (_dot_escaped_srcdir): Define.
38143         (VC_LIST): Use it in LHS of sed substitution.
38144
38145 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
38146
38147         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
38148         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
38149         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
38150         from a non-srcdir build.
38151
38152 2010-01-20  Eric Blake  <ebb9@byu.net>
38153
38154         warn-on-use: use instead of link-warning
38155         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
38156         * modules/unistd (Depends-on, Makefile.am): Likewise.
38157         * modules/arpa_inet (Depends-on): Replace link-warning with
38158         warn-on-use.
38159         (Makefile.am): Update rules accordingly.
38160         * modules/ctype (Depends-on, Makefile.am): Likewise.
38161         * modules/dirent (Depends-on, Makefile.am): Likewise.
38162         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
38163         * modules/inttypes (Depends-on, Makefile.am): Likewise.
38164         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38165         * modules/locale (Depends-on, Makefile.am): Likewise.
38166         * modules/math (Depends-on, Makefile.am): Likewise.
38167         * modules/search (Depends-on, Makefile.am): Likewise.
38168         * modules/signal (Depends-on, Makefile.am): Likewise.
38169         * modules/spawn (Depends-on, Makefile.am): Likewise.
38170         * modules/stdlib (Depends-on, Makefile.am): Likewise.
38171         * modules/string (Depends-on, Makefile.am): Likewise.
38172         * modules/strings (Depends-on, Makefile.am): Likewise.
38173         * modules/sys_file (Depends-on, Makefile.am): Likewise.
38174         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
38175         * modules/sys_select (Depends-on, Makefile.am): Likewise.
38176         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
38177         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
38178         * modules/sys_times (Depends-on, Makefile.am): Likewise.
38179         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38180         * modules/wchar (Depends-on, Makefile.am): Likewise.
38181         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
38182         should be poisoned.
38183         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
38184         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
38185         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
38186         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38187         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38188         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38189         * m4/math_h.m4 (gl_MATH_H): Likewise.
38190         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38191         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38192         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38193         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38194         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38195         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38196         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
38197         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
38198         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
38199         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38200         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38202         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38203         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
38204         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38205         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38206         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
38207         GL_LINK_WARNING.
38208         * lib/ctype.in.h: Likewise.
38209         * lib/dirent.in.h: Likewise.
38210         * lib/fcntl.in.h: Likewise.
38211         * lib/inttypes.in.h: Likewise.
38212         * lib/langinfo.in.h: Likewise.
38213         * lib/locale.in.h: Likewise.
38214         * lib/math.in.h: Likewise.
38215         * lib/search.in.h: Likewise.
38216         * lib/signal.in.h: Likewise.
38217         * lib/spawn.in.h: Likewise.
38218         * lib/stdio.in.h: Likewise.
38219         * lib/stdlib.in.h: Likewise.
38220         * lib/string.in.h: Likewise.
38221         * lib/strings.in.h: Likewise.
38222         * lib/sys_file.in.h: Likewise.
38223         * lib/sys_ioctl.in.h: Likewise.
38224         * lib/sys_select.in.h: Likewise.
38225         * lib/sys_socket.in.h: Likewise.
38226         * lib/sys_stat.in.h: Likewise.
38227         * lib/sys_times.in.h: Likewise.
38228         * lib/sys_utsname.in.h: Likewise.
38229         * lib/unistd.in.h: Likewise.
38230         * lib/wchar.in.h: Likewise.
38231
38232 2010-01-20  Bruno Haible  <bruno@clisp.org>
38233
38234         Avoid duplicate -lm.
38235         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
38236         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
38237         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
38238         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
38239         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
38240         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
38241         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
38242         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
38243         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
38244         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
38245         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
38246         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38247         Reported by Paolo Bonzini.
38248
38249 2010-01-19  Bruno Haible  <bruno@clisp.org>
38250
38251         langinfo, nl_langinfo: Relicense under LGPLv2+.
38252         * modules/langinfo (License): Change to LGPLv2+.
38253         * modules/nl_langinfo (License): Likewise.
38254         Patch by David Lutterkort <lutter@redhat.com>.
38255
38256 2010-01-19  Bruno Haible  <bruno@clisp.org>
38257
38258         Avoid compilation error with cc on OSF/1 5.1.
38259         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
38260         statement, not before.
38261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38262
38263 2010-01-18  Bruno Haible  <bruno@clisp.org>
38264
38265         Avoid a link error due to the __printf__ symbol.
38266         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
38267         and 2.6.x.
38268         (__format__, __printf__): Remove definitions.
38269         * lib/argp-fmtstream.h: Likewise.
38270         * lib/argp.h: Likewise.
38271         * lib/error.h: Likewise.
38272         * lib/vasnprintf.h: Likewise.
38273         * lib/xprintf.h: Likewise.
38274         * lib/xvasprintf.h: Likewise.
38275         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38276
38277 2010-01-18  Bruno Haible  <bruno@clisp.org>
38278
38279         Tests for module 'tanl'.
38280         * modules/tanl-tests: New file.
38281         * tests/test-tanl.c: New file.
38282
38283         Tests for module 'sqrtl'.
38284         * modules/sqrtl-tests: New file.
38285         * tests/test-sqrtl.c: New file.
38286
38287         Tests for module 'sinl'.
38288         * modules/sinl-tests: New file.
38289         * tests/test-sinl.c: New file.
38290
38291         Tests for module 'logl'.
38292         * modules/logl-tests: New file.
38293         * tests/test-logl.c: New file.
38294
38295         Tests for module 'expl'.
38296         * modules/expl-tests: New file.
38297         * tests/test-expl.c: New file.
38298
38299         Tests for module 'cosl'.
38300         * modules/cosl-tests: New file.
38301         * tests/test-cosl.c: New file.
38302
38303         Tests for module 'atanl'.
38304         * modules/atanl-tests: New file.
38305         * tests/test-atanl.c: New file.
38306
38307         Tests for module 'asinl'.
38308         * modules/asinl-tests: New file.
38309         * tests/test-asinl.c: New file.
38310
38311         Tests for module 'acosl'.
38312         * modules/acosl-tests: New file.
38313         * tests/test-acosl.c: New file.
38314
38315         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38316         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38317         tanl): Use the standard gnulib idiom.
38318         * lib/cosl.c: Don't include trigl.c and sincosl.c.
38319         * lib/sinl.c: Likewise.
38320         * lib/tanl.c: Don't include trigl.c.
38321         (kernel_tanl): Make static.
38322         * lib/sincosl.c: Include trigl.h first.
38323         * lib/trigl.c: Likewise.
38324         * m4/acosl.m4: New file.
38325         * m4/asinl.m4: New file.
38326         * m4/atanl.m4: New file.
38327         * m4/cosl.m4: New file.
38328         * m4/expl.m4: New file.
38329         * m4/logl.m4: New file.
38330         * m4/sinl.m4: New file.
38331         * m4/sqrtl.m4: New file.
38332         * m4/tanl.m4: New file.
38333         * m4/mathl.m4: Remove file.
38334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
38335         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
38336         Don't initialize GNULIB_MATHL.
38337         * modules/acosl: New file.
38338         * modules/asinl: New file.
38339         * modules/atanl: New file.
38340         * modules/cosl: New file.
38341         * modules/expl: New file.
38342         * modules/logl: New file.
38343         * modules/sinl: New file.
38344         * modules/sqrtl: New file.
38345         * modules/tanl: New file.
38346         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
38347         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
38348         substitute GNULIB_MATHL.
38349         * modules/mathl: Rewritten.
38350         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
38351         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
38352         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
38353         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
38354         * doc/posix-functions/expl.texi: Mention the 'expl' module.
38355         * doc/posix-functions/logl.texi: Mention the 'logl' module.
38356         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
38357         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
38358         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
38359
38360 2010-01-18  Bruno Haible  <bruno@clisp.org>
38361
38362         sqrt: Make gl_FUNC_SQRT requirable.
38363         * m4/sqrt.m4: New file.
38364         * modules/sqrt (Files): Add it.
38365         (configure.ac): Invoke gl_FUNC_SQRT.
38366
38367 2010-01-18  Bruno Haible  <bruno@clisp.org>
38368
38369         New modules for common <math.h> functions.
38370         * m4/mathfunc.m4: New file.
38371         * modules/acos: New file.
38372         * modules/asin: New file.
38373         * modules/atan: New file.
38374         * modules/atan2: New file.
38375         * modules/cbrt: New file.
38376         * modules/copysign: New file.
38377         * modules/cos: New file.
38378         * modules/cosh: New file.
38379         * modules/erf: New file.
38380         * modules/erfc: New file.
38381         * modules/exp: New file.
38382         * modules/fabs: New file.
38383         * modules/fmod: New file.
38384         * modules/hypot: New file.
38385         * modules/j0: New file.
38386         * modules/j1: New file.
38387         * modules/jn: New file.
38388         * modules/ldexp: New file.
38389         * modules/lgamma: New file.
38390         * modules/log: New file.
38391         * modules/log10: New file.
38392         * modules/log1p: New file.
38393         * modules/logb: New file.
38394         * modules/modf: New file.
38395         * modules/nextafter: New file.
38396         * modules/pow: New file.
38397         * modules/remainder: New file.
38398         * modules/rint: New file.
38399         * modules/sin: New file.
38400         * modules/sinh: New file.
38401         * modules/sqrt: New file.
38402         * modules/tan: New file.
38403         * modules/tanh: New file.
38404         * modules/y0: New file.
38405         * modules/y1: New file.
38406         * modules/yn: New file.
38407         * doc/posix-functions/acos.texi: Mention the 'acos' module.
38408         * doc/posix-functions/asin.texi: Mention the 'asin' module.
38409         * doc/posix-functions/atan.texi: Mention the 'atan' module.
38410         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
38411         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
38412         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
38413         * doc/posix-functions/cos.texi: Mention the 'cos' module.
38414         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
38415         * doc/posix-functions/erf.texi: Mention the 'erf' module.
38416         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
38417         * doc/posix-functions/exp.texi: Mention the 'exp' module.
38418         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
38419         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
38420         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
38421         * doc/posix-functions/j0.texi: Mention the 'j0' module.
38422         * doc/posix-functions/j1.texi: Mention the 'j1' module.
38423         * doc/posix-functions/jn.texi: Mention the 'jn' module.
38424         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
38425         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
38426         * doc/posix-functions/log.texi: Mention the 'log' module.
38427         * doc/posix-functions/log10.texi: Mention the 'log10' module.
38428         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
38429         * doc/posix-functions/logb.texi: Mention the 'logb' module.
38430         * doc/posix-functions/modf.texi: Mention the 'modf' module.
38431         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
38432         * doc/posix-functions/pow.texi: Mention the 'pow' module.
38433         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
38434         * doc/posix-functions/rint.texi: Mention the 'rint' module.
38435         * doc/posix-functions/sin.texi: Mention the 'sin' module.
38436         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
38437         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
38438         * doc/posix-functions/tan.texi: Mention the 'tan' module.
38439         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
38440         * doc/posix-functions/y0.texi: Mention the 'y0' module.
38441         * doc/posix-functions/y1.texi: Mention the 'y1' module.
38442         * doc/posix-functions/yn.texi: Mention the 'yn' module.
38443
38444 2010-01-18  Jim Meyering  <meyering@redhat.com>
38445
38446         ignore-value: relax license to LGPLv2+
38447         * modules/ignore-value (License): Relax to LGPLv2+.
38448
38449         getdate: don't leak when TZ contains two or more '"'s
38450         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
38451         double quote in TZ after the first one.
38452
38453         readtokens: do not leak internal token_lengths buffer
38454         * lib/readtokens.c (readtokens): Free the local, lengths,
38455         when the supplied "token_lengths" parameter is NULL.
38456
38457 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38458
38459         Fix a couple of missing LIBTHREAD link failures on AIX.
38460         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
38461         $(LIBTHREAD).
38462         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
38463
38464         Link test-poll against INET_PTON_LIB.
38465         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
38466         for inet_pton on Solaris 10.
38467
38468 2010-01-17  Bruno Haible  <bruno@clisp.org>
38469
38470         unistdio/*-sprintf: Fix typo in module description.
38471         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
38472         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
38473         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
38474         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
38475         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
38476         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
38477         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
38478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38479
38480 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38481
38482         gnulib-tool: fix filelist for AIX, HP-UX ksh.
38483         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
38484         variables in shell case patterns, for AIX and HP-UX ksh.
38485
38486         Split large sed scripts, for HP-UX sed.
38487         * modules/stdio: Split sed scripts around 50 sed commands,
38488         to avoid HP-UX limit of 99 commands, in the near future.
38489         * modules/string: Likewise.
38490         * modules/unistd: Likewise.
38491
38492         gnulib-tool: avoid writing in the current directory.
38493         * gnulib-tool (func_emit_lib_Makefile_am)
38494         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
38495         not in the current directory, so concurrent gnulib-tool
38496         instances do not interfere.
38497
38498 2010-01-16  Jim Meyering  <meyering@redhat.com>
38499
38500         doc: update users.txt
38501         * users.txt: Add grep.
38502         (diffutils, gzip): Update URLs.
38503
38504 2010-01-12  Bruno Haible  <bruno@clisp.org>
38505
38506         posix_spawn: Avoid test failure on Cygwin.
38507         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
38508         characters.
38509         Reported by Simon Josefsson.
38510
38511 2010-01-12  Bruno Haible  <bruno@clisp.org>
38512
38513         * tests/test-cond.c (main): When skipping the test, show the reason.
38514
38515 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38516
38517         * lib/striconv.c (str_cd_iconv): Avoid if before free.
38518
38519 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38520
38521         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
38522         VC_LIST_ALWAYS_EXCLUDE_REGEX.
38523
38524 2010-01-12  Eric Blake  <ebb9@byu.net>
38525
38526         build: guarantee AS_VAR_IF
38527         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
38528         (gl_AS_VAR_IF): Move...
38529         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
38530         Reported by Simon Josefsson.
38531
38532 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38533
38534         * lib/stdio.in.h: Fix typo.
38535
38536 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38537
38538         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
38539         libgpg-error.
38540
38541 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38542
38543         * tests/test-xalloc-die.sh: Use $EXEEXT.
38544
38545 2010-01-12  Simon Josefsson  <simon@josefsson.org>
38546             Bruno Haible  <bruno@clisp.org>
38547
38548         getlogin, getlogin_r: Avoid test failure.
38549         * tests/test-getlogin.c: Include <stdio.h>.
38550         (main): Skip the test when the function fails because stdin is not a
38551         tty.
38552         * tests/test-getlogin_r.c: Include <stdio.h>.
38553         (main): Skip the test when the function fails because stdin is not a
38554         tty.
38555
38556 2010-01-11  Eric Blake  <ebb9@byu.net>
38557
38558         tests: avoid more large file warnings
38559         * tests/test-fflush.c: Avoid warning about ftell use.
38560         * tests/test-fseek.c: Avoid warning about fseek use.
38561
38562 2010-01-10  Bruno Haible  <bruno@clisp.org>
38563
38564         nproc: Work better on Linux when /proc and /sys are not mounted.
38565         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
38566         as lower bound when, on glibc/Linux systems,
38567         sysconf (_SC_NPROCESSORS_CONF) returns 1.
38568         Suggested by Pádraig Brady <P@draigbrady.com>.
38569         Reported by Dmitry V. Levin <ldv@altlinux.org>.
38570
38571         nproc: Refactor.
38572         * lib/nproc.c (num_processors_via_affinity_mask): New function,
38573         extracted from num_processors.
38574         (num_processors): Call it.
38575
38576 2010-01-11  Jim Meyering  <meyering@redhat.com>
38577
38578         utimecmp: avoid new warning from upcoming gcc-4.5.0
38579         * lib/utimecmp.c (BILLION): Define using #define rather than an
38580         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
38581
38582 2010-01-11  Eric Blake  <ebb9@byu.net>
38583
38584         math: add portability warnings for classification macros
38585         * modules/math (Depends-on): Add warn-on-use.
38586         (Makefile.am): Provide new substitutions.
38587         * m4/math_h.m4 (gl_MATH_H): Require inline.
38588         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
38589         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
38590         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
38591         implement warnings.
38592
38593         unistd: warn on use of environ without module
38594         * modules/unistd (Depends-on): Add warn-on-use.
38595         (Makefile.am): Provide new substitutions.
38596         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
38597         * lib/unistd.in.h (environ): Wrap with a warning helper function.
38598
38599         stdio: warn on suspicious uses
38600         * modules/stdio (Depends-on): Add warn-on-use.
38601         (Makefile.am): Provide new substitutions.
38602         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
38603         fseeko.
38604         * lib/stdio.in.h (gets): Always warn on use.
38605         (fseek, ftell): Adjust when warnings are issued, and honor
38606         _GL_NO_LARGE_FILES as a way to silence the warning.
38607         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
38608         any warning about large file offsets.
38609         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
38610         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
38611         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
38612         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
38613         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
38614         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
38615         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
38616         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
38617
38618         warn-on-use: new module
38619         * modules/warn-on-use: New file.
38620         * build-aux/warn-on-use.h: Likewise.
38621         * m4/warn-on-use.m4: Likewise.
38622         * MODULES.html.sh (Support for building): Mention it.
38623
38624 2010-01-10  Bruno Haible  <bruno@clisp.org>
38625
38626         Tests for module 'unistr/u32-strdup'.
38627         * modules/unistr/u32-strdup-tests: New file.
38628         * tests/unistr/test-u32-strdup.c: New file.
38629
38630         Tests for module 'unistr/u16-strdup'.
38631         * modules/unistr/u16-strdup-tests: New file.
38632         * tests/unistr/test-u16-strdup.c: New file.
38633
38634         Tests for module 'unistr/u8-strdup'.
38635         * modules/unistr/u8-strdup-tests: New file.
38636         * tests/unistr/test-u8-strdup.c: New file.
38637         * tests/unistr/test-strdup.h: New file.
38638
38639         Tests for module 'unistr/u32-strncmp'.
38640         * modules/unistr/u32-strncmp-tests: New file.
38641         * tests/unistr/test-u32-strncmp.c: New file.
38642
38643         Tests for module 'unistr/u16-strncmp'.
38644         * modules/unistr/u16-strncmp-tests: New file.
38645         * tests/unistr/test-u16-strncmp.c: New file.
38646
38647         Tests for module 'unistr/u8-strncmp'.
38648         * modules/unistr/u8-strncmp-tests: New file.
38649         * tests/unistr/test-u8-strncmp.c: New file.
38650         * tests/unistr/test-strncmp.h: New file.
38651
38652         Tests for module 'unistr/u32-strcoll'.
38653         * modules/unistr/u32-strcoll-tests: New file.
38654         * tests/unistr/test-u32-strcoll.c: New file.
38655
38656         Tests for module 'unistr/u16-strcoll'.
38657         * modules/unistr/u16-strcoll-tests: New file.
38658         * tests/unistr/test-u16-strcoll.c: New file.
38659
38660         Tests for module 'unistr/u8-strcoll'.
38661         * modules/unistr/u8-strcoll-tests: New file.
38662         * tests/unistr/test-u8-strcoll.c: New file.
38663
38664         Tests for module 'unistr/u32-strcmp'.
38665         * modules/unistr/u32-strcmp-tests: New file.
38666         * tests/unistr/test-u32-strcmp.c: New file.
38667         * tests/unistr/test-u32-strcmp.h: New file.
38668
38669         Tests for module 'unistr/u16-strcmp'.
38670         * modules/unistr/u16-strcmp-tests: New file.
38671         * tests/unistr/test-u16-strcmp.c: New file.
38672         * tests/unistr/test-u16-strcmp.h: New file.
38673
38674         Tests for module 'unistr/u8-strcmp'.
38675         * modules/unistr/u8-strcmp-tests: New file.
38676         * tests/unistr/test-u8-strcmp.c: New file.
38677         * tests/unistr/test-u8-strcmp.h: New file.
38678         * tests/unistr/test-strcmp.h: New file.
38679
38680         Tests for module 'unistr/u32-strncat'.
38681         * modules/unistr/u32-strncat-tests: New file.
38682         * tests/unistr/test-u32-strncat.c: New file.
38683
38684         Tests for module 'unistr/u16-strncat'.
38685         * modules/unistr/u16-strncat-tests: New file.
38686         * tests/unistr/test-u16-strncat.c: New file.
38687
38688         Tests for module 'unistr/u8-strncat'.
38689         * modules/unistr/u8-strncat-tests: New file.
38690         * tests/unistr/test-u8-strncat.c: New file.
38691         * tests/unistr/test-strncat.h: New file.
38692
38693         Tests for module 'unistr/u32-strcat'.
38694         * modules/unistr/u32-strcat-tests: New file.
38695         * tests/unistr/test-u32-strcat.c: New file.
38696
38697         Tests for module 'unistr/u16-strcat'.
38698         * modules/unistr/u16-strcat-tests: New file.
38699         * tests/unistr/test-u16-strcat.c: New file.
38700
38701         Tests for module 'unistr/u8-strcat'.
38702         * modules/unistr/u8-strcat-tests: New file.
38703         * tests/unistr/test-u8-strcat.c: New file.
38704         * tests/unistr/test-strcat.h: New file.
38705
38706         Tests for module 'unistr/u32-stpncpy'.
38707         * modules/unistr/u32-stpncpy-tests: New file.
38708         * tests/unistr/test-u32-stpncpy.c: New file.
38709
38710         Tests for module 'unistr/u16-stpncpy'.
38711         * modules/unistr/u16-stpncpy-tests: New file.
38712         * tests/unistr/test-u16-stpncpy.c: New file.
38713
38714         Tests for module 'unistr/u8-stpncpy'.
38715         * modules/unistr/u8-stpncpy-tests: New file.
38716         * tests/unistr/test-u8-stpncpy.c: New file.
38717         * tests/unistr/test-stpncpy.h: New file.
38718
38719         Tests for module 'unistr/u32-strncpy'.
38720         * modules/unistr/u32-strncpy-tests: New file.
38721         * tests/unistr/test-u32-strncpy.c: New file.
38722
38723         Tests for module 'unistr/u16-strncpy'.
38724         * modules/unistr/u16-strncpy-tests: New file.
38725         * tests/unistr/test-u16-strncpy.c: New file.
38726
38727         Tests for module 'unistr/u8-strncpy'.
38728         * modules/unistr/u8-strncpy-tests: New file.
38729         * tests/unistr/test-u8-strncpy.c: New file.
38730         * tests/unistr/test-strncpy.h: New file.
38731
38732         Tests for module 'unistr/u32-stpcpy'.
38733         * modules/unistr/u32-stpcpy-tests: New file.
38734         * tests/unistr/test-u32-stpcpy.c: New file.
38735
38736         Tests for module 'unistr/u16-stpcpy'.
38737         * modules/unistr/u16-stpcpy-tests: New file.
38738         * tests/unistr/test-u16-stpcpy.c: New file.
38739
38740         Tests for module 'unistr/u8-stpcpy'.
38741         * modules/unistr/u8-stpcpy-tests: New file.
38742         * tests/unistr/test-u8-stpcpy.c: New file.
38743         * tests/unistr/test-stpcpy.h: New file.
38744
38745         Tests for module 'unistr/u32-strcpy'.
38746         * modules/unistr/u32-strcpy-tests: New file.
38747         * tests/unistr/test-u32-strcpy.c: New file.
38748
38749         Tests for module 'unistr/u16-strcpy'.
38750         * modules/unistr/u16-strcpy-tests: New file.
38751         * tests/unistr/test-u16-strcpy.c: New file.
38752
38753         Tests for module 'unistr/u8-strcpy'.
38754         * modules/unistr/u8-strcpy-tests: New file.
38755         * tests/unistr/test-u8-strcpy.c: New file.
38756         * tests/unistr/test-strcpy.h: New file.
38757
38758         Tests for module 'unistr/u32-strnlen'.
38759         * modules/unistr/u32-strnlen-tests: New file.
38760         * tests/unistr/test-u32-strnlen.c: New file.
38761
38762         Tests for module 'unistr/u16-strnlen'.
38763         * modules/unistr/u16-strnlen-tests: New file.
38764         * tests/unistr/test-u16-strnlen.c: New file.
38765
38766         Tests for module 'unistr/u8-strnlen'.
38767         * modules/unistr/u8-strnlen-tests: New file.
38768         * tests/unistr/test-u8-strnlen.c: New file.
38769         * tests/unistr/test-strnlen.h: New file.
38770
38771         Tests for module 'unistr/u32-strlen'.
38772         * modules/unistr/u32-strlen-tests: New file.
38773         * tests/unistr/test-u32-strlen.c: New file.
38774
38775         Tests for module 'unistr/u16-strlen'.
38776         * modules/unistr/u16-strlen-tests: New file.
38777         * tests/unistr/test-u16-strlen.c: New file.
38778
38779         Tests for module 'unistr/u8-strlen'.
38780         * modules/unistr/u8-strlen-tests: New file.
38781         * tests/unistr/test-u8-strlen.c: New file.
38782
38783         Tests for module 'unistr/u32-prev'.
38784         * modules/unistr/u32-prev-tests: New file.
38785         * tests/unistr/test-u32-prev.c: New file.
38786
38787         Tests for module 'unistr/u16-prev'.
38788         * modules/unistr/u16-prev-tests: New file.
38789         * tests/unistr/test-u16-prev.c: New file.
38790
38791         Tests for module 'unistr/u8-prev'.
38792         * modules/unistr/u8-prev-tests: New file.
38793         * tests/unistr/test-u8-prev.c: New file.
38794
38795         Tests for module 'unistr/u32-next'.
38796         * modules/unistr/u32-next-tests: New file.
38797         * tests/unistr/test-u32-next.c: New file.
38798
38799         Tests for module 'unistr/u16-next'.
38800         * modules/unistr/u16-next-tests: New file.
38801         * tests/unistr/test-u16-next.c: New file.
38802
38803         Tests for module 'unistr/u8-next'.
38804         * modules/unistr/u8-next-tests: New file.
38805         * tests/unistr/test-u8-next.c: New file.
38806
38807         Tests for module 'unistr/u32-strmbtouc'.
38808         * modules/unistr/u32-strmbtouc-tests: New file.
38809         * tests/unistr/test-u32-strmbtouc.c: New file.
38810
38811         Tests for module 'unistr/u16-strmbtouc'.
38812         * modules/unistr/u16-strmbtouc-tests: New file.
38813         * tests/unistr/test-u16-strmbtouc.c: New file.
38814
38815         Tests for module 'unistr/u8-strmbtouc'.
38816         * modules/unistr/u8-strmbtouc-tests: New file.
38817         * tests/unistr/test-u8-strmbtouc.c: New file.
38818
38819         Tests for module 'unistr/u32-strmblen'.
38820         * modules/unistr/u32-strmblen-tests: New file.
38821         * tests/unistr/test-u32-strmblen.c: New file.
38822
38823         Tests for module 'unistr/u16-strmblen'.
38824         * modules/unistr/u16-strmblen-tests: New file.
38825         * tests/unistr/test-u16-strmblen.c: New file.
38826
38827         Tests for module 'unistr/u8-strmblen'.
38828         * modules/unistr/u8-strmblen-tests: New file.
38829         * tests/unistr/test-u8-strmblen.c: New file.
38830
38831         Tests for module 'unistr/u32-cpy-alloc'.
38832         * modules/unistr/u32-cpy-alloc-tests: New file.
38833         * tests/unistr/test-u32-cpy-alloc.c: New file.
38834
38835         Tests for module 'unistr/u16-cpy-alloc'.
38836         * modules/unistr/u16-cpy-alloc-tests: New file.
38837         * tests/unistr/test-u16-cpy-alloc.c: New file.
38838
38839         Tests for module 'unistr/u8-cpy-alloc'.
38840         * modules/unistr/u8-cpy-alloc-tests: New file.
38841         * tests/unistr/test-u8-cpy-alloc.c: New file.
38842         * tests/unistr/test-cpy-alloc.h: New file.
38843
38844         Tests for module 'unistr/u32-mbsnlen'.
38845         * modules/unistr/u32-mbsnlen-tests: New file.
38846         * tests/unistr/test-u32-mbsnlen.c: New file.
38847
38848         Tests for module 'unistr/u16-mbsnlen'.
38849         * modules/unistr/u16-mbsnlen-tests: New file.
38850         * tests/unistr/test-u16-mbsnlen.c: New file.
38851
38852         Tests for module 'unistr/u8-mbsnlen'.
38853         * modules/unistr/u8-mbsnlen-tests: New file.
38854         * tests/unistr/test-u8-mbsnlen.c: New file.
38855
38856         Tests for module 'unistr/u32-chr'.
38857         * modules/unistr/u32-chr-tests: New file.
38858         * tests/unistr/test-u32-chr.c: New file.
38859
38860         Tests for module 'unistr/u16-chr'.
38861         * modules/unistr/u16-chr-tests: New file.
38862         * tests/unistr/test-u16-chr.c: New file.
38863
38864         Tests for module 'unistr/u8-chr'.
38865         * modules/unistr/u8-chr-tests: New file.
38866         * tests/unistr/test-u8-chr.c: New file.
38867         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38868
38869         Tests for module 'unistr/u32-cmp2'.
38870         * modules/unistr/u32-cmp2-tests: New file.
38871         * tests/unistr/test-u32-cmp2.c: New file.
38872
38873         Tests for module 'unistr/u16-cmp2'.
38874         * modules/unistr/u16-cmp2-tests: New file.
38875         * tests/unistr/test-u16-cmp2.c: New file.
38876
38877         Tests for module 'unistr/u8-cmp2'.
38878         * modules/unistr/u8-cmp2-tests: New file.
38879         * tests/unistr/test-u8-cmp2.c: New file.
38880         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38881
38882         Tests for module 'unistr/u32-cmp'.
38883         * modules/unistr/u32-cmp-tests: New file.
38884         * tests/unistr/test-u32-cmp.c: New file.
38885
38886         Tests for module 'unistr/u16-cmp'.
38887         * modules/unistr/u16-cmp-tests: New file.
38888         * tests/unistr/test-u16-cmp.c: New file.
38889
38890         Tests for module 'unistr/u8-cmp'.
38891         * modules/unistr/u8-cmp-tests: New file.
38892         * tests/unistr/test-u8-cmp.c: New file.
38893         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38894
38895         Tests for module 'unistr/u32-set'.
38896         * modules/unistr/u32-set-tests: New file.
38897         * tests/unistr/test-u32-set.c: New file.
38898
38899         Tests for module 'unistr/u16-set'.
38900         * modules/unistr/u16-set-tests: New file.
38901         * tests/unistr/test-u16-set.c: New file.
38902
38903         Tests for module 'unistr/u8-set'.
38904         * modules/unistr/u8-set-tests: New file.
38905         * tests/unistr/test-u8-set.c: New file.
38906         * tests/unistr/test-set.h: New file.
38907
38908         Tests for module 'unistr/u32-move'.
38909         * modules/unistr/u32-move-tests: New file.
38910         * tests/unistr/test-u32-move.c: New file.
38911
38912         Tests for module 'unistr/u16-move'.
38913         * modules/unistr/u16-move-tests: New file.
38914         * tests/unistr/test-u16-move.c: New file.
38915
38916         Tests for module 'unistr/u8-move'.
38917         * modules/unistr/u8-move-tests: New file.
38918         * tests/unistr/test-u8-move.c: New file.
38919         * tests/unistr/test-move.h: New file.
38920
38921         Tests for module 'unistr/u32-cpy'.
38922         * modules/unistr/u32-cpy-tests: New file.
38923         * tests/unistr/test-u32-cpy.c: New file.
38924
38925         Tests for module 'unistr/u16-cpy'.
38926         * modules/unistr/u16-cpy-tests: New file.
38927         * tests/unistr/test-u16-cpy.c: New file.
38928
38929         Tests for module 'unistr/u8-cpy'.
38930         * modules/unistr/u8-cpy-tests: New file.
38931         * tests/unistr/test-u8-cpy.c: New file.
38932         * tests/unistr/test-cpy.h: New file.
38933
38934 2010-01-09  Bruno Haible  <bruno@clisp.org>
38935
38936         Tests for module 'unistr/u32-uctomb'.
38937         * modules/unistr/u32-uctomb-tests: New file.
38938         * tests/unistr/test-u32-uctomb.c: New file.
38939
38940         Tests for module 'unistr/u16-uctomb'.
38941         * modules/unistr/u16-uctomb-tests: New file.
38942         * tests/unistr/test-u16-uctomb.c: New file.
38943
38944         Tests for module 'unistr/u8-uctomb'.
38945         * modules/unistr/u8-uctomb-tests: New file.
38946         * tests/unistr/test-u8-uctomb.c: New file.
38947
38948         Tests for module 'unistr/u32-mbtoucr'.
38949         * modules/unistr/u32-mbtoucr-tests: New file.
38950         * tests/unistr/test-u32-mbtoucr.c: New file.
38951
38952         Tests for module 'unistr/u16-mbtoucr'.
38953         * modules/unistr/u16-mbtoucr-tests: New file.
38954         * tests/unistr/test-u16-mbtoucr.c: New file.
38955
38956         Tests for module 'unistr/u8-mbtoucr'.
38957         * modules/unistr/u8-mbtoucr-tests: New file.
38958         * tests/unistr/test-u8-mbtoucr.c: New file.
38959
38960         Tests for module 'unistr/u32-mbtouc'.
38961         * modules/unistr/u32-mbtouc-tests: New file.
38962         * tests/unistr/test-u32-mbtouc.c: New file.
38963
38964         Tests for module 'unistr/u16-mbtouc'.
38965         * modules/unistr/u16-mbtouc-tests: New file.
38966         * tests/unistr/test-u16-mbtouc.c: New file.
38967
38968         Tests for module 'unistr/u8-mbtouc'.
38969         * modules/unistr/u8-mbtouc-tests: New file.
38970         * tests/unistr/test-u8-mbtouc.c: New file.
38971
38972         Tests for module 'unistr/u32-mbtouc-unsafe'.
38973         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38974         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38975         * tests/unistr/test-u32-mbtouc.h: New file.
38976
38977         Tests for module 'unistr/u16-mbtouc-unsafe'.
38978         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38979         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38980         * tests/unistr/test-u16-mbtouc.h: New file.
38981
38982         Tests for module 'unistr/u8-mbtouc-unsafe'.
38983         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38984         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38985         * tests/unistr/test-u8-mbtouc.h: New file.
38986
38987         Tests for module 'unistr/u32-mblen'.
38988         * modules/unistr/u32-mblen-tests: New file.
38989         * tests/unistr/test-u32-mblen.c: New file.
38990
38991         Tests for module 'unistr/u16-mblen'.
38992         * modules/unistr/u16-mblen-tests: New file.
38993         * tests/unistr/test-u16-mblen.c: New file.
38994
38995         Tests for module 'unistr/u8-mblen'.
38996         * modules/unistr/u8-mblen-tests: New file.
38997         * tests/unistr/test-u8-mblen.c: New file.
38998
38999         Tests for module 'unistr/u32-to-u16'.
39000         * modules/unistr/u32-to-u16-tests: New file.
39001         * tests/unistr/test-u32-to-u16.c: New file.
39002
39003         Tests for module 'unistr/u32-to-u8'.
39004         * modules/unistr/u32-to-u8-tests: New file.
39005         * tests/unistr/test-u32-to-u8.c: New file.
39006
39007         Tests for module 'unistr/u16-to-u32'.
39008         * modules/unistr/u16-to-u32-tests: New file.
39009         * tests/unistr/test-u16-to-u32.c: New file.
39010
39011         Tests for module 'unistr/u16-to-u8'.
39012         * modules/unistr/u16-to-u8-tests: New file.
39013         * tests/unistr/test-u16-to-u8.c: New file.
39014
39015         Tests for module 'unistr/u8-to-u32'.
39016         * modules/unistr/u8-to-u32-tests: New file.
39017         * tests/unistr/test-u8-to-u32.c: New file.
39018
39019         Tests for module 'unistr/u8-to-u16'.
39020         * modules/unistr/u8-to-u16-tests: New file.
39021         * tests/unistr/test-u8-to-u16.c: New file.
39022
39023         Tests for module 'unistr/u32-check'.
39024         * modules/unistr/u32-check-tests: New file.
39025         * tests/unistr/test-u32-check.c: New file.
39026
39027         Tests for module 'unistr/u16-check'.
39028         * modules/unistr/u16-check-tests: New file.
39029         * tests/unistr/test-u16-check.c: New file.
39030
39031         Tests for module 'unistr/u8-check'.
39032         * modules/unistr/u8-check-tests: New file.
39033         * tests/unistr/test-u8-check.c: New file.
39034
39035         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39036         (category_equals): New function.
39037         (main): Add more tests.
39038         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39039
39040         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39041
39042 2010-01-10  Bruno Haible  <bruno@clisp.org>
39043
39044         unistr/u*-strcoll: Try harder to distinguish different strings.
39045         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39046         compare s1 and s2 to see if they are different.
39047
39048 2010-01-10  Bruno Haible  <bruno@clisp.org>
39049
39050         unistr/u*-stpncpy: Fix the return value.
39051         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39052         description of the return value consistent with stpncpy in glibc.
39053         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39054         written non-NUL unit.
39055
39056 2010-01-10  Bruno Haible  <bruno@clisp.org>
39057
39058         unistr/u*-next: Add missing dependencies.
39059         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39060         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39061         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39062
39063 2010-01-10  Bruno Haible  <bruno@clisp.org>
39064
39065         unistr/u8-mbsnlen: Fix return value for incomplete character.
39066         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
39067         u8_mblen.
39068         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
39069         Remove unistr/u8-mblen.
39070         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
39071         u16_mblen.
39072         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
39073         Remove unistr/u16-mblen.
39074
39075 2010-01-10  Bruno Haible  <bruno@clisp.org>
39076
39077         wchar: Fix compilation error when <wchar.h> is used from coreutils.
39078         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
39079         Reported by Brian Gough <bjg@gnu.org> and
39080         Chris Clayton <chris2553@googlemail.com> via
39081         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
39082
39083 2010-01-09  Bruno Haible  <bruno@clisp.org>
39084
39085         unistr/u16-to-u32: Reject invalid input.
39086         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
39087         u16_mbtouc.
39088         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
39089         Remove unistr/u16-mbtouc.
39090
39091         unistr/u16-to-u8: Reject invalid input.
39092         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
39093         u16_mbtouc.
39094         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
39095         Remove unistr/u16-mbtouc.
39096
39097         unistr/u8-to-u32: Reject invalid input.
39098         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
39099         u8_mbtouc.
39100         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
39101         Remove unistr/u8-mbtouc.
39102
39103         unistr/u8-to-u16: Reject invalid input.
39104         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
39105         u8_mbtouc.
39106         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
39107         Remove unistr/u8-mbtouc.
39108
39109 2010-01-09  Bruno Haible  <bruno@clisp.org>
39110
39111         Tests for module 'getlogin'.
39112         * modules/getlogin-tests: New file.
39113         * tests/test-getlogin.c: New file.
39114
39115         New module 'getlogin'.
39116         * lib/unistd.in.h (getlogin): New declaration.
39117         * lib/getlogin.c: New file.
39118         * m4/getlogin.m4: New file.
39119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
39120         HAVE_GETLOGIN.
39121         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
39122         HAVE_GETLOGIN.
39123         * modules/getlogin: New file.
39124         * doc/posix-functions/getlogin.texi: Mention the new module.
39125         Reported by John W. Eaton <jwe@gnu.org>.
39126
39127 2010-01-09  Bruno Haible  <bruno@clisp.org>
39128
39129         getlogin_r: Support for native Windows.
39130         * lib/getlogin_r.c: Include <windows.h>
39131         (getlogin_r): Implement for native Windows.
39132         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
39133         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
39134         via John W. Eaton <jwe@gnu.org>.
39135
39136 2010-01-09  Bruno Haible  <bruno@clisp.org>
39137
39138         getlogin_r: Small fixes.
39139         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
39140         succeeds.
39141         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
39142         before testing whether getlogin_r is declared. No need to set
39143         HAVE_DECL_GETLOGIN_R to 1.
39144         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
39145
39146 2010-01-09  Bruno Haible  <bruno@clisp.org>
39147
39148         * lib/unistd.in.h (getlogin_r): Add comment.
39149
39150 2010-01-09  Bruno Haible  <bruno@clisp.org>
39151
39152         Tests for module 'getlogin_r'.
39153         * modules/getlogin_r-tests: New file.
39154         * tests/test-getlogin_r.c: New file.
39155
39156 2010-01-09  Jim Meyering  <meyering@redhat.com>
39157
39158         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
39159         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
39160         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
39161
39162 2010-01-08  Simon Josefsson  <simon@josefsson.org>
39163
39164         * lib/dup2.c (rpl_dup2): Improve comment.
39165
39166 2010-01-08  Eric Blake  <ebb9@byu.net>
39167
39168         maint.mk: allow packages to add makefile @@ exceptions
39169         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
39170         (sc_makefile_check): Rename...
39171         (sc_makefile_at_at_check): ...to this, and use hook.
39172
39173         dup2: work around mingw bug
39174         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
39175         Reported by Simon Josefsson.
39176
39177 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
39178
39179         glob: Fix C++ compilation.
39180         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
39181         C++.
39182
39183 2010-01-07  Bruno Haible  <bruno@clisp.org>
39184
39185         Fix indentation of wctype.in.h, broken since 2007-01-06.
39186         * lib/wctype.in.h: Fix indentation of preprocessor directives.
39187
39188 2010-01-07  Bruno Haible  <bruno@clisp.org>
39189
39190         mbslen: Avoid collision with system function.
39191         * lib/string.in.h [MirBSD]: Include <wchar.h>.
39192         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
39193         * m4/mbslen.m4: New file.
39194         * modules/mbslen (Files): Add it.
39195         (configure.ac): Invoke gl_MBSLEN.
39196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
39197         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
39198         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
39199         via Ian Beckwith <ianb@erislabs.net>.
39200
39201 2010-01-07  Bruno Haible  <bruno@clisp.org>
39202
39203         dirent: Document the last fix.
39204         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
39205
39206 2010-01-07  Bruno Haible  <bruno@clisp.org>
39207
39208         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
39209         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
39210         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
39211         va_list are defined.
39212         * doc/posix-headers/stdio.texi: Document the bug of missing types.
39213         Reported by Eric Blake.
39214
39215 2010-01-07  Bruno Haible  <bruno@clisp.org>
39216
39217         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
39218         * modules/xlist (Depends-on): Add 'list',
39219         * modules/xoset (Depends-on): Add 'oset'.
39220         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39221
39222 2010-01-07  Bruno Haible  <bruno@clisp.org>
39223
39224         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
39225         * doc/posix-functions/strncasecmp.texi: Likewise.
39226
39227 2010-01-07  Bruno Haible  <bruno@clisp.org>
39228
39229         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
39230
39231 2010-01-07  John W. Eaton  <jwe@octave.org>
39232
39233         wctype: allow C++ use
39234         * lib/wctype.in.h: Add extern "C" block for C++.
39235
39236 2010-01-06  Eric Blake  <ebb9@byu.net>
39237
39238         maint.mk: detect incorrect GFDL usage
39239         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
39240
39241 2010-01-06  Jim Meyering  <meyering@redhat.com>
39242         and Eric Blake  <ebb9@byu.net>
39243
39244         maint.mk: ignore multi-line copyright in NEWS
39245         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
39246
39247 2010-01-06  Eric Blake  <ebb9@byu.net>
39248
39249         select: add missing dependency
39250         * modules/select-tests (Depends-on): Move sockets dependency...
39251         * modules/select (Depends-on): ...here.
39252         Reported by Ian Beckwith.
39253
39254         doc: regenerate INSTALL
39255         * doc/INSTALL: Reflect recent autoconf update.
39256         * doc/INSTALL.ISO: Likewise.
39257         * doc/INSTALL.UTF-8: Likewise.
39258
39259         pread: fix compilation on glibc
39260         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
39261         Reported by Ralf Wildenhues.
39262
39263         dirent: fix test failure
39264         * lib/dirent.in.h (includes): Guarantee ino_t.
39265         Reported by Ralf Wildenhues.
39266
39267 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
39268
39269         linkat, renameat: avoid bad free
39270         * lib/at-func2.c (at_func2): Fix typo.
39271         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
39272
39273 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39274
39275         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
39276         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
39277         to avoid failure of symlink test later.
39278
39279 2010-01-06  Eric Blake  <ebb9@byu.net>
39280
39281         stdio, unistd: guarantee ssize_t
39282         * lib/unistd.in.h (includes): Ensure that types required by POSIX
39283         2008 are exposed when needed.
39284         * lib/stdio.in.h (includes): Likewise.
39285         Reported by Ralf Wildenhues.
39286
39287 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
39288
39289         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
39290         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
39291         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
39292
39293 2010-01-06  Jim Meyering  <meyering@redhat.com>
39294
39295         readtokens: this module *does* require xalloc.h
39296         It uses only functions that were omitted by the old syntax-check rule.
39297         * lib/readtokens.c: Include "xalloc.h" once again.
39298         * modules/readtokens (Depends-on): Add xalloc.
39299         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
39300
39301 2010-01-05  Eric Blake  <ebb9@byu.net>
39302
39303         maint: support 'make announcement' from a VPATH build
39304         * top/maint.mk (announcement): Look for correct NEWS file.
39305
39306 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
39307
39308         utimens (fdutimens): ignore a negative FD, per contract
39309         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
39310         when we have a valid file descriptor.  Otherwise, using a brand
39311         new glibc (with just-patched futimens that now fails with EBADF)
39312         would cause this function to fail with ENOSYS.
39313         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
39314         See also http://bugzilla.redhat.com/552320.
39315
39316 2010-01-05  Eric Blake  <ebb9@byu.net>
39317
39318         strcase: document what it provides
39319         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
39320         gnulib module.
39321         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
39322         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
39323
39324 2010-01-05  Jim Meyering  <meyering@redhat.com>
39325
39326         maint: remove useless inclusions of "xalloc.h"
39327         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
39328         * lib/readtokens.c: Likewise.
39329         * lib/same.c: Likewise.
39330         * modules/getloadavg (Depends-on): Remove xalloc.
39331         * modules/readtokens: Likewise.
39332         * modules/same: Likewise.
39333
39334         maint.mk: include 4 more function names in alloca.h-checking regexp
39335         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
39336         regexp.  Before, we would give a false-positive (saying alloca.h
39337         is included unnecessarily) when the only uses involved omitted symbols.
39338
39339         xalloc.h: use consistent formatting
39340         * lib/xalloc.h: Move declarations to start in the first column.
39341
39342 2010-01-05  Eric Blake  <ebb9@byu.net>
39343
39344         mkdir: avoid xalloc
39345         * lib/mkdir.c (includes): Drop unused header.
39346         Reported by John W. Eaton.
39347
39348 2010-01-04  Jim Meyering  <meyering@redhat.com>
39349
39350         nl_langinfo: avoid configure-time syntax error
39351         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
39352         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
39353         the empty string.  Don't let that provoke a shell syntax error.
39354
39355         regcomp, regexec, fnmatch: avoid array bounds read error
39356         * lib/regcomp.c (build_equiv_class): From glibc:
39357         Use only the low 24 bits of a findidx return value as an index
39358         into the weights array.  Patch by Ulrich Drepper:
39359         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
39360         * lib/regexec.c (check_node_accept_bytes): Likewise.
39361         * lib/fnmatch_loop.c (FCT): Likewise.
39362
39363         regcomp: skip collseq lookup when there are no rules
39364         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
39365         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
39366
39367         regcomp: recognize ill-formed { } expressions
39368         * lib/regcomp.c (parse_dup_op): From glibc:
39369         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
39370
39371         regcomp: fix typo in comment
39372         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
39373         s/satisfy/satisfies/.
39374
39375         regcomp: sync from glibc: remove dead store
39376         * lib/regcomp.c (duplicate_node_closure): Remove useless
39377         search_duplicated_node call and dead store.
39378
39379         regcomp: sync from glibc; always use nl_langinfo
39380         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
39381         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
39382         * modules/regex (Depends-on): Add nl_langinfo.
39383
39384 2010-01-04  Eric Blake  <ebb9@byu.net>
39385
39386         fdopendir: fix configure test
39387         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
39388
39389 2010-01-01  Bruno Haible  <bruno@clisp.org>
39390
39391         wchar: Remove unused configure check.
39392         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
39393
39394 2010-01-01  Eric Blake  <ebb9@byu.net>
39395
39396         headers: make check of system header explicit
39397         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
39398         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
39399         ourselves.
39400         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39402         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39403         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
39404         internals.
39405         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
39406         missing.
39407         Suggested by Bruno Haible.
39408
39409 2010-01-01  Jim Meyering  <meyering@redhat.com>
39410
39411         ChangeLog: tweak to eliminate unnecessary copyright line
39412         * ChangeLog: Remove a copyright line that was mistakenly updated
39413         by today's update-copyright run.  Reported by Eric Blake.
39414
39415         test-update-copyright: don't let envvar setting cause test failure
39416         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39417
39418 2010-01-01  Bruno Haible  <bruno@clisp.org>
39419
39420         localename: Avoid gcc warning.
39421         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
39422         function if it is not used.
39423
39424 2010-01-01  Jim Meyering  <meyering@redhat.com>
39425
39426         update nearly all FSF copyright year lists to include 2010
39427         Use the same procedure as for 2009, outlined in
39428         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
39429
39430         version-etc: set COPYRIGHT_YEAR to 2010
39431         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
39432
39433 2009-12-31  Eric Blake  <ebb9@byu.net>
39434
39435         doc: correct availability of cygwin 1.5.x getopt
39436         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
39437         variables.
39438         * doc/posix-functions/opterr.texi (opterr): Likewise.
39439         * doc/posix-functions/optind.texi (optind): Likewise.
39440         * doc/posix-functions/optopt.texi (optopt): Likewise.
39441         * doc/posix-functions/tzname.texi (tzname): Likewise.
39442
39443         openat: update maintainer
39444         * modules/openat (Maintainer): Add myself.
39445
39446         utimens: avoid shadowing warning
39447         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
39448         buffers into one, to avoid shadowing, as well as avoiding a
39449         redundant stat.
39450         Reported by Jim Meyering.
39451
39452         test-dup2: avoid compiler warning
39453         * tests/test-dup2.c (is_inheritable): Only define if used.
39454
39455 2010-01-01  Bruno Haible  <bruno@clisp.org>
39456
39457         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
39458         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
39459         defined, use wctomb instead of wcrtomb.
39460
39461 2010-01-01  Bruno Haible  <bruno@clisp.org>
39462
39463         iconv: Reject native Solaris iconv.
39464         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
39465         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
39466
39467 2009-12-31  Bruno Haible  <bruno@clisp.org>
39468
39469         * tests/test-signal.c (main): Remove test of 'SIG'.
39470
39471 2009-12-31  Bruno Haible  <bruno@clisp.org>
39472
39473         spawn: Fix incomplete fix.
39474         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39475         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39476         warnings for GNULIB_POSIXCHECK again.
39477         Reported by Eric Blake.
39478
39479 2009-12-31  Bruno Haible  <bruno@clisp.org>
39480
39481         Avoid namespace pollution on glibc systems.
39482         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
39483         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
39484         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
39485         glibc systems.
39486
39487 2009-12-31  Bruno Haible  <bruno@clisp.org>
39488
39489         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
39490         (gl_REPLACE_WCHAR_H): Turn into a no-op.
39491         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
39492         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
39493         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
39494         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
39495         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
39496
39497 2009-12-31  Bruno Haible  <bruno@clisp.org>
39498
39499         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
39500         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
39501         afterwards.
39502
39503 2009-12-31  Bruno Haible  <bruno@clisp.org>
39504
39505         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
39506         SYS_UTSNAME_H.
39507
39508 2009-12-31  Bruno Haible  <bruno@clisp.org>
39509
39510         spawn: Fix misapplied patch.
39511         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
39512         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
39513         warnings for GNULIB_POSIXCHECK.
39514
39515 2009-12-31  Bruno Haible  <bruno@clisp.org>
39516
39517         times: Update after sys_times changed.
39518         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
39519         * modules/times (Files): Add it.
39520         (configure.ac): Invoke gl_FUNC_TIMES.
39521
39522 2009-12-31  Bruno Haible  <bruno@clisp.org>
39523
39524         Use AC_C_INLINE where necessary.
39525         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
39526         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39527         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39528         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39529         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39530         * m4/mbiter.m4 (gl_MBITER): Likewise.
39531         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39532         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39533         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
39534         * modules/u64 (configure.ac): Likewise.
39535
39536 2009-12-31  Bruno Haible  <bruno@clisp.org>
39537
39538         Use AC_C_INLINE instead of module 'inline' where possible.
39539         * modules/inline (Description): Clarify purpose.
39540         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
39541         * modules/count-one-bits (Depends-on): Remove inline.
39542         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
39543         * modules/openat (Depends-on): Remove inline.
39544         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
39545         instead of depending on module 'inline'.
39546         * modules/filevercmp (Depends-on, configure.ac): Likewise.
39547         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
39548         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
39549         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
39550         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
39551         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
39552         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
39553         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
39554         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
39555         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
39556         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
39557         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
39558         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
39559         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
39560         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
39561         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
39562         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
39563         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
39564         Likewise.
39565         * modules/unictype/property-ascii-hex-digit (Depends-on,
39566         configure.ac): Likewise.
39567         * modules/unictype/property-bidi-arabic-digit (Depends-on,
39568         configure.ac): Likewise.
39569         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
39570         configure.ac): Likewise.
39571         * modules/unictype/property-bidi-block-separator (Depends-on,
39572         configure.ac): Likewise.
39573         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
39574         configure.ac): Likewise.
39575         * modules/unictype/property-bidi-common-separator (Depends-on,
39576         configure.ac): Likewise.
39577         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
39578         Likewise.
39579         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
39580         configure.ac): Likewise.
39581         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
39582         configure.ac): Likewise.
39583         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
39584         configure.ac): Likewise.
39585         * modules/unictype/property-bidi-european-digit (Depends-on,
39586         configure.ac): Likewise.
39587         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
39588         configure.ac): Likewise.
39589         * modules/unictype/property-bidi-left-to-right (Depends-on,
39590         configure.ac): Likewise.
39591         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
39592         configure.ac): Likewise.
39593         * modules/unictype/property-bidi-other-neutral (Depends-on,
39594         configure.ac): Likewise.
39595         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
39596         Likewise.
39597         * modules/unictype/property-bidi-segment-separator (Depends-on,
39598         configure.ac): Likewise.
39599         * modules/unictype/property-bidi-whitespace (Depends-on,
39600         configure.ac): Likewise.
39601         * modules/unictype/property-combining (Depends-on, configure.ac):
39602         Likewise.
39603         * modules/unictype/property-composite (Depends-on, configure.ac):
39604         Likewise.
39605         * modules/unictype/property-currency-symbol (Depends-on,
39606         configure.ac): Likewise.
39607         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
39608         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
39609         Likewise.
39610         * modules/unictype/property-default-ignorable-code-point (Depends-on,
39611         configure.ac): Likewise.
39612         * modules/unictype/property-deprecated (Depends-on, configure.ac):
39613         Likewise.
39614         * modules/unictype/property-diacritic (Depends-on, configure.ac):
39615         Likewise.
39616         * modules/unictype/property-extender (Depends-on, configure.ac):
39617         Likewise.
39618         * modules/unictype/property-format-control (Depends-on, configure.ac):
39619         Likewise.
39620         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
39621         Likewise.
39622         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
39623         Likewise.
39624         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
39625         Likewise.
39626         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
39627         Likewise.
39628         * modules/unictype/property-hyphen (Depends-on, configure.ac):
39629         Likewise.
39630         * modules/unictype/property-id-continue (Depends-on, configure.ac):
39631         Likewise.
39632         * modules/unictype/property-id-start (Depends-on, configure.ac):
39633         Likewise.
39634         * modules/unictype/property-ideographic (Depends-on, configure.ac):
39635         Likewise.
39636         * modules/unictype/property-ids-binary-operator (Depends-on,
39637         configure.ac): Likewise.
39638         * modules/unictype/property-ids-trinary-operator (Depends-on,
39639         configure.ac): Likewise.
39640         * modules/unictype/property-ignorable-control (Depends-on,
39641         configure.ac): Likewise.
39642         * modules/unictype/property-iso-control (Depends-on, configure.ac):
39643         Likewise.
39644         * modules/unictype/property-join-control (Depends-on, configure.ac):
39645         Likewise.
39646         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
39647         Likewise.
39648         * modules/unictype/property-line-separator (Depends-on, configure.ac):
39649         Likewise.
39650         * modules/unictype/property-logical-order-exception (Depends-on,
39651         configure.ac): Likewise.
39652         * modules/unictype/property-lowercase (Depends-on, configure.ac):
39653         Likewise.
39654         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
39655         * modules/unictype/property-non-break (Depends-on, configure.ac):
39656         Likewise.
39657         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
39658         Likewise.
39659         * modules/unictype/property-numeric (Depends-on, configure.ac):
39660         Likewise.
39661         * modules/unictype/property-other-alphabetic (Depends-on,
39662         configure.ac): Likewise.
39663         * modules/unictype/property-other-default-ignorable-code-point
39664         (Depends-on, configure.ac): Likewise.
39665         * modules/unictype/property-other-grapheme-extend (Depends-on,
39666         configure.ac): Likewise.
39667         * modules/unictype/property-other-id-continue (Depends-on,
39668         configure.ac): Likewise.
39669         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
39670         Likewise.
39671         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
39672         Likewise.
39673         * modules/unictype/property-other-math (Depends-on, configure.ac):
39674         Likewise.
39675         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
39676         Likewise.
39677         * modules/unictype/property-paired-punctuation (Depends-on,
39678         configure.ac): Likewise.
39679         * modules/unictype/property-paragraph-separator (Depends-on,
39680         configure.ac): Likewise.
39681         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
39682         Likewise.
39683         * modules/unictype/property-pattern-white-space (Depends-on,
39684         configure.ac): Likewise.
39685         * modules/unictype/property-private-use (Depends-on, configure.ac):
39686         Likewise.
39687         * modules/unictype/property-punctuation (Depends-on, configure.ac):
39688         Likewise.
39689         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
39690         Likewise.
39691         * modules/unictype/property-radical (Depends-on, configure.ac):
39692         Likewise.
39693         * modules/unictype/property-sentence-terminal (Depends-on,
39694         configure.ac): Likewise.
39695         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
39696         Likewise.
39697         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
39698         * modules/unictype/property-terminal-punctuation (Depends-on,
39699         configure.ac): Likewise.
39700         * modules/unictype/property-titlecase (Depends-on, configure.ac):
39701         Likewise.
39702         * modules/unictype/property-unassigned-code-value (Depends-on,
39703         configure.ac): Likewise.
39704         * modules/unictype/property-unified-ideograph (Depends-on,
39705         configure.ac): Likewise.
39706         * modules/unictype/property-uppercase (Depends-on, configure.ac):
39707         Likewise.
39708         * modules/unictype/property-variation-selector (Depends-on,
39709         configure.ac): Likewise.
39710         * modules/unictype/property-white-space (Depends-on, configure.ac):
39711         Likewise.
39712         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
39713         Likewise.
39714         * modules/unictype/property-xid-start (Depends-on, configure.ac):
39715         Likewise.
39716         * modules/unictype/property-zero-width (Depends-on, configure.ac):
39717         Likewise.
39718         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
39719         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
39720         Likewise.
39721
39722 2009-12-31  Bruno Haible  <bruno@clisp.org>
39723
39724         Remove unnecessary AC_C_INLINE invocation.
39725         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
39726         since 2009-08-21.
39727
39728 2009-12-31  Jim Meyering  <meyering@redhat.com>
39729
39730         maint.mk: don't require explicit gpg_key_ID in cfg.mk
39731         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
39732         With this change, we can all remove the gpg_key_ID = ... definition
39733         from our respective cfg.mk files.
39734
39735         maint.mk: create announcement template in ~/, not in /tmp
39736         * top/maint.mk (emit_upload_commands): Adjust.
39737         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
39738         Remove temporary file, .ci-msg.
39739
39740 2009-12-31  Eric Blake  <ebb9@byu.net>
39741
39742         link-warning: always build headers with link warnings
39743         * modules/arpa_inet (Makefile.am): Always build replacement
39744         header.
39745         * modules/ctype (Makefile.am): Likewise.
39746         * modules/dirent (Makefile.am): Likewise.
39747         * modules/inttypes (Makefile.am): Likewise.
39748         * modules/langinfo (Makefile.am): Likewise.
39749         * modules/locale (Makefile.am): Likewise.
39750         * modules/spawn (Makefile.am): Likewise.
39751         * modules/sys_file (Makefile.am): Likewise.
39752         * modules/sys_ioctl (Makefile.am): Likewise.
39753         * modules/sys_select (Makefile.am): Likewise.
39754         * modules/sys_socket (Makefile.am): Likewise.
39755         * modules/sys_times (Makefile.am): Likewise.
39756         * modules/sys_utsname (Makefile.am): Likewise.
39757         * modules/sys_wait (Makefile.am): Likewise.
39758         * modules/wchar (Makefile.am): Likewise.
39759         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
39760         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
39761         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
39762         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
39763         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
39764         Likewise.
39765         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39766         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39767         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
39768         Likewise.
39769         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
39770         Likewise.
39771         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39772         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
39773         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
39774         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39777         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39778         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
39779         (gl_WCHAR_H_DEFAULTS): Likewise.
39780
39781 2009-12-31  Eric Blake  <ebb9@byu.net>
39782
39783         signal, spawn: use link warnings
39784         * lib/signal.in.h (sigset_t): Make unconditional.
39785         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
39786         (sigpending, sigprocmask, sigaction): Add link warnings.
39787         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
39788         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
39789         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
39790         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
39791         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
39792         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
39793         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
39794         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
39795         (posix_spawn_file_actions_destroy)
39796         (posix_spawn_file_actions_addopen)
39797         (posix_spawn_file_actions_addclose)
39798         (posix_spawn_file_actions_adddup2): Likewise.
39799         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
39800         * tests/test-signal.c (main): Enhance test.
39801
39802         spawn: improve wrapper support
39803         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
39804         (gl_SPAWN_H_DEFAULTS): New defaults.
39805         * modules/spawn (Makefile.am): Substitute them.
39806         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
39807         Only declare if missing or broken.
39808
39809         sys_times, sys_utsname: use include_next
39810         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
39811         header.
39812         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
39813         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
39814         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
39815         * modules/sys_times (Depends-on): Add include_next.
39816         (Makefile.am): Substitute additional values.
39817         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39818         * lib/sys_times.in.h (includes): Include native header, if
39819         available.
39820         * lib/sys_utsname.in.h (includes): Likewise.
39821         * tests/test-sys_times.c (main): Enhance test.
39822
39823         fdutimensat: revert prior patch
39824         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
39825         utimens.h.
39826         Reported by Bruno Haible.
39827
39828 2009-12-30  Eric Blake  <ebb9@byu.net>
39829
39830         sys_wait: drop link-warning dependency
39831         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39832         link-warning efforts.
39833         * lib/sys_wait.in.h: Likewise.
39834
39835         fdutimensat: remove bogus dependency
39836         * modules/fdutimensat (Depends-on): Drop inline.
39837
39838         unistd: fix typo
39839         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39840
39841 2009-12-30  Bruno Haible  <bruno@clisp.org>
39842
39843         Fix compilation error with Solaris cc.
39844         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39845         * lib/unicase/u16-is-invariant.c: Likewise.
39846         * lib/unicase/u32-is-invariant.c: Likewise.
39847         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39848
39849 2009-12-30  Bruno Haible  <bruno@clisp.org>
39850
39851         Fix test crash.
39852         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39853         locales.
39854         Reported by Simon Josefsson <simon@josefsson.org>.
39855
39856 2009-12-30  Bruno Haible  <bruno@clisp.org>
39857
39858         Fix compilation error on most platforms.
39859         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39860         Reported by Simon Josefsson <simon@josefsson.org>
39861         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39862
39863 2009-12-30  Eric Blake  <ebb9@byu.net>
39864
39865         futimens, utimensat: work around ntfs-3g bug
39866         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39867         a ctime bug is present, and expand workaround to cover ntfs-3g.
39868         * lib/utimens.c (fdutimens, lutimens): Likewise.
39869         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39870         (validate_timespec): Adjust return value.
39871         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39872         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39873         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39874
39875 2009-12-29  Eric Blake  <ebb9@byu.net>
39876
39877         link-warning: make usage consistent
39878         * modules/ctype (Depends-on): Add link-warning.
39879         (Makefile.am): Update rules accordingly.
39880         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39881         * modules/locale (Depends-on, Makefile.am): Likewise.
39882         * modules/sys_file (Makefile.am): Likewise.
39883         * modules/getopt-posix (Makefile.am): Delete unused link warning
39884         efforts.
39885         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39886         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39887         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39888         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39889
39890         stdio: remove unused variables
39891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39892         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39893         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39894
39895         tests: test more substitute headers
39896         * modules/ctype-tests: New file.
39897         * modules/dirent-tests: Likewise.
39898         * modules/spawn-tests: Likewise.
39899         * modules/sys_file-tests: Likewise.
39900         * modules/sys_ioctl-tests: Likewise.
39901         * modules/sys_wait-tests: Likewise.
39902         * tests/test-ctype.c: Likewise.
39903         * tests/test-dirent.c: Likewise.
39904         * tests/test-spawn.c: Likewise.
39905         * tests/test-sys_file.c: Likewise.
39906         * tests/test-sys_ioctl.c: Likewise.
39907         * tests/test-sys_wait.c: Likewise.
39908         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39909         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39910         whether or not flock is in use.
39911
39912         tests: remove License section from module
39913         * modules/arpa_inet-tests: Remove unneeded section.
39914         * modules/byteswap-tests: Likewise.
39915         * modules/ceilf-tests: Likewise.
39916         * modules/ceill-tests: Likewise.
39917         * modules/crypto/des-tests: Likewise.
39918         * modules/crypto/gc-arcfour-tests: Likewise.
39919         * modules/crypto/gc-arctwo-tests: Likewise.
39920         * modules/crypto/gc-des-tests: Likewise.
39921         * modules/crypto/gc-hmac-md5-tests: Likewise.
39922         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39923         * modules/crypto/gc-md2-tests: Likewise.
39924         * modules/crypto/gc-md4-tests: Likewise.
39925         * modules/crypto/gc-md5-tests: Likewise.
39926         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39927         * modules/crypto/gc-rijndael-tests: Likewise.
39928         * modules/crypto/gc-sha1-tests: Likewise.
39929         * modules/crypto/gc-tests: Likewise.
39930         * modules/crypto/md2-tests: Likewise.
39931         * modules/crypto/md4-tests: Likewise.
39932         * modules/fcntl-h-tests: Likewise.
39933         * modules/floorf-tests: Likewise.
39934         * modules/floorl-tests: Likewise.
39935         * modules/frexp-nolibm-tests: Likewise.
39936         * modules/frexp-tests: Likewise.
39937         * modules/frexpl-nolibm-tests: Likewise.
39938         * modules/frexpl-tests: Likewise.
39939         * modules/getaddrinfo-tests: Likewise.
39940         * modules/inttypes-tests: Likewise.
39941         * modules/isfinite-tests: Likewise.
39942         * modules/isinf-tests: Likewise.
39943         * modules/ldexpl-tests: Likewise.
39944         * modules/locale-tests: Likewise.
39945         * modules/math-tests: Likewise.
39946         * modules/netdb-tests: Likewise.
39947         * modules/netinet_in-tests: Likewise.
39948         * modules/printf-frexp-tests: Likewise.
39949         * modules/printf-frexpl-tests: Likewise.
39950         * modules/priv-set-tests: Likewise.
39951         * modules/random_r-tests: Likewise.
39952         * modules/round-tests: Likewise.
39953         * modules/roundf-tests: Likewise.
39954         * modules/roundl-tests: Likewise.
39955         * modules/search-tests: Likewise.
39956         * modules/select-tests: Likewise.
39957         * modules/signal-tests: Likewise.
39958         * modules/stdbool-tests: Likewise.
39959         * modules/stddef-tests: Likewise.
39960         * modules/stdint-tests: Likewise.
39961         * modules/stdio-tests: Likewise.
39962         * modules/stdlib-tests: Likewise.
39963         * modules/string-tests: Likewise.
39964         * modules/strings-tests: Likewise.
39965         * modules/sys_select-tests: Likewise.
39966         * modules/sys_socket-tests: Likewise.
39967         * modules/sys_stat-tests: Likewise.
39968         * modules/sys_time-tests: Likewise.
39969         * modules/sys_utsname-tests: Likewise.
39970         * modules/sysexits-tests: Likewise.
39971         * modules/time-tests: Likewise.
39972         * modules/trunc-tests: Likewise.
39973         * modules/truncf-tests: Likewise.
39974         * modules/truncl-tests: Likewise.
39975         * modules/tsearch-tests: Likewise.
39976         * modules/unistd-tests: Likewise.
39977         * modules/wchar-tests: Likewise.
39978         * modules/wctype-tests: Likewise.
39979
39980         tests: fix license on several tests
39981         * tests/test-des.c: Update to GPLv3+.
39982         * tests/test-flock.c: Likewise.
39983         * tests/test-fsync.c: Likewise.
39984         * tests/test-futimens.h: Likewise.
39985         * tests/test-gc-arcfour.c: Likewise.
39986         * tests/test-gc-arctwo.c: Likewise.
39987         * tests/test-gc-des.c: Likewise.
39988         * tests/test-gc-hmac-md5.c: Likewise.
39989         * tests/test-gc-hmac-sha1.c: Likewise.
39990         * tests/test-gc-md2.c: Likewise.
39991         * tests/test-gc-md4.c: Likewise.
39992         * tests/test-gc-md5.c: Likewise.
39993         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39994         * tests/test-gc-rijndael.c: Likewise.
39995         * tests/test-gc-sha1.c: Likewise.
39996         * tests/test-gc.c: Likewise.
39997         * tests/test-getcwd.c: Likewise.
39998         * tests/test-link.c: Likewise.
39999         * tests/test-link.h: Likewise.
40000         * tests/test-lutimens.h: Likewise.
40001         * tests/test-md2.c: Likewise.
40002         * tests/test-md4.c: Likewise.
40003         * tests/test-mkdir.h: Likewise.
40004         * tests/test-rename.c: Likewise.
40005         * tests/test-rename.h: Likewise.
40006         * tests/test-safe-alloc.c: Likewise.
40007         * tests/test-utimens-common.h: Likewise.
40008         * tests/test-utimens.h: Likewise.
40009
40010         maint: sync license texts
40011         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40012         * doc/gpl-3.0.texi: Revert copyright year update.
40013         * doc/lgpl-3.0.texi: Likewise.
40014
40015 2009-12-29  Jim Meyering  <meyering@redhat.com>
40016
40017         update nearly all FSF copyright year lists to include 2009
40018         The files named by the following are exempted:
40019             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40020               test -f "$dst" && { echo "$dst"; continue; }
40021               test -d "$dst" || continue
40022               echo "$dst"/$(basename "$src")
40023             done > exempt
40024             git ls-files tests/unictype >> exempt
40025         In the remaining files, convert to all-interval notation if
40026         - there is already at least one year interval like 2000-2003
40027         - the file is maintained by me
40028         - the file is in lib/uni*/, where that style already prevails
40029         Otherwise, use update-copyright's default.
40030
40031 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40032         and Eric Blake  <ebb9@byu.net>
40033
40034         tests: don't require debug system() to pass
40035         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40037         * tests/test-unlink.h (test_unlink_func): Likewise.
40038         * tests/test-fstatat.c (main): ...into callers.
40039         * tests/test-lstat.c (main): Likewise.
40040         * tests/test-rmdir.c (main): Likewise.
40041         * tests/test-unlink.c (main): Likewise.
40042         * tests/test-unlinkat.c (main): Likewise.
40043         * tests/test-areadlink-with-size.c (main): Don't require a
40044         debug-only system call to pass, aiding cross-testing to mingw.
40045         * tests/test-areadlink.c (main): Likewise.
40046         * tests/test-areadlinkat-with-size.c (main): Likewise.
40047         * tests/test-areadlinkat.c (main): Likewise.
40048         * tests/test-canonicalize-lgpl.c (main): Likewise.
40049         * tests/test-canonicalize.c (main): Likewise.
40050         * tests/test-chown.c (main): Likewise.
40051         * tests/test-fchownat.c (main): Likewise.
40052         * tests/test-lchown.c (main): Likewise.
40053         * tests/test-fdutimensat.c (main): Likewise.
40054         * tests/test-futimens.c (main): Likewise.
40055         * tests/test-link.c (main): Likewise.
40056         * tests/test-linkat.c (main): Likewise.
40057         * tests/test-mkdir.c (main): Likewise.
40058         * tests/test-mkdirat.c (main): Likewise.
40059         * tests/test-mkfifo.c (main): Likewise.
40060         * tests/test-mkfifoat.c (main): Likewise.
40061         * tests/test-mknod.c (main): Likewise.
40062         * tests/test-readlink.c (main): Likewise.
40063         * tests/test-remove.c (main): Likewise.
40064         * tests/test-rename.c (main): Likewise.
40065         * tests/test-renameat.c (main): Likewise.
40066         * tests/test-symlink.c (main): Likewise.
40067         * tests/test-symlinkat.c (main): Likewise.
40068         * tests/test-utimens.c (main): Likewise.
40069         * tests/test-utimensat.c (main): Likewise.
40070
40071 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40072
40073         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
40074         on $(UNUSED_PARAMETER_H) to avoid build failure.
40075
40076 2009-12-28  Jim Meyering  <meyering@redhat.com>
40077
40078         update-copyright: you may specify a max. line length other than 72
40079         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40080
40081         maint: use consistent FSF copyright line syntax
40082         * lib/posixtm.c: Add missing comma in FSF copyright line.
40083         * lib/posixtm.h: Likewise.
40084         * lib/getugroups.c: Add missing ", Inc.".
40085
40086         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
40087         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
40088         FSF copyright line.  Remove trailing blanks.
40089
40090 2009-12-28  Eric Blake  <ebb9@byu.net>
40091
40092         test-dup2: reduce dependencies
40093         * modules/cloexec (Configure.ac): Set witness.
40094         * modules/dup2-tests (Depends-on): Drop cloexec.
40095         * tests/test-dup2.c (main): Skip portion of test if cloexec module
40096         not present.
40097         Suggested by Bruno Haible.
40098
40099 2009-12-26  Bruno Haible  <bruno@clisp.org>
40100
40101         Remove an unneeded dependency.
40102         * modules/fseterr (Depends-on): Remove dup2.
40103
40104 2009-12-26  Eric Blake  <ebb9@byu.net>
40105
40106         tests: use macros.h in more places
40107         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
40108         (ASSERT_STREAM): Provide default of stderr.
40109         * tests/test-dirent-safer.c: Include macros.h, using alternate
40110         stream for assertions.
40111         * tests/test-dup-safer.c: Likewise.
40112         * tests/test-freopen-safer.c: Likewise.
40113         * tests/test-getopt.c: Likewise.
40114         * tests/test-openat-safer.c: Likewise.
40115         * tests/test-pipe.c: Likewise.
40116         * tests/test-popen-safer.c: Likewise.
40117         * modules/dirent-safer-tests (Files): Include macros.h.
40118         * modules/unistd-safer-tests (Files): Likewise.
40119         * modules/freopen-safer-tests (Files): Likewise.
40120         * modules/getopt-posix-tests (Files): Likewise.
40121         * modules/openat-safer-tests (Files): Likewise.
40122         * modules/pipe-tests (Files): Likewise.
40123
40124 2009-12-26  Bruno Haible  <bruno@clisp.org>
40125
40126         javacomp: Portability fix.
40127         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
40128         that it also works on Solaris.
40129
40130 2009-12-26  Bruno Haible  <bruno@clisp.org>
40131
40132         localename: Fix storage allocation of gl_locale_name_thread's result.
40133         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
40134         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
40135         all platforms that have 'uselocale'.
40136         (gl_locale_name_thread_unsafe): New function, extracted from
40137         gl_locale_name_thread.
40138         (gl_locale_name_thread): Call struniq on all platforms that have
40139         'uselocale'.
40140         * tests/test-localename.c (test_locale_name_thread): Check that the
40141         resulting strings are permanently allocated.
40142         * modules/localename-tests (Depends-on): Add strdup.
40143
40144 2009-12-26  Bruno Haible  <bruno@clisp.org>
40145
40146         * tests/test-localename.c (categories): Fill in the strings.
40147
40148 2009-12-26  Jim Meyering  <meyering@redhat.com>
40149
40150         isdir: complete the removal of m4/isdir.m4
40151         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
40152
40153         isdir: clean up, since at least grep still uses it
40154         * lib/isdir.c: Include "isdir.h".
40155         (S_ISDIR): Remove now-unneeded definition.
40156         * modules/isdir (Files): Add lib/isdir.h.
40157         * lib/isdir.h: New file, with declaration.
40158         * m4/isdir.m4: Remove file -- unneeded.
40159
40160 2009-12-25  Bruno Haible  <bruno@clisp.org>
40161
40162         selinux-h: Make generated .h files standalone.
40163         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
40164         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
40165         * lib/se-selinux.in.h: Likewise.
40166         * modules/selinux-h (Depends-on): Add unused-parameter.
40167         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
40168         selinux/selinux.h and selinux/context.h.
40169         Suggested by Eric Blake.
40170
40171 2009-12-25  Bruno Haible  <bruno@clisp.org>
40172
40173         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
40174         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
40175         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
40176         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
40177         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
40178
40179 2009-12-24  Bruno Haible  <bruno@clisp.org>
40180
40181         openat: Fix warning.
40182         * lib/openat-proc.c: Include <unistd.h>.
40183
40184 2009-12-24  Bruno Haible  <bruno@clisp.org>
40185
40186         New module 'unused-parameter'.
40187         * build-aux/unused-parameter.h: New file, extracted from earlier
40188         gnulib-common.m4.
40189         * modules/unused-parameter: New file.
40190         * lib/unistr.h: Include unused-parameter.h.
40191         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
40192         _GL_UNUSED.
40193         * modules/unistr/base (Depends-on): Add unused-parameter.
40194
40195 2009-12-24  Bruno Haible  <bruno@clisp.org>
40196
40197         Add missing dependencies to 'extensions' module.
40198         * m4/extensions.m4: Add comment.
40199         * modules/accept4 (Depends-on): Add extensions.
40200         * modules/dup3 (Depends-on): Likewise.
40201         * modules/fcntl (Depends-on): Likewise.
40202         * modules/futimens (Depends-on): Likewise.
40203         * modules/mknod (Depends-on): Likewise.
40204         * modules/pipe2 (Depends-on): Likewise.
40205         * modules/stat-time (Depends-on): Likewise.
40206         * modules/strcasestr-simple (Depends-on): Likewise.
40207         * modules/strsignal (Depends-on): Likewise.
40208         * modules/utimensat (Depends-on): Likewise.
40209         * modules/localcharset (Depends-on): Likewise. Needed because of
40210         gl_FCNTL_O_FLAGS.
40211         * modules/wcrtomb (Depends-on): Likewise. Needed because of
40212         AC_TYPE_MBSTATE_T.
40213         * modules/wcsnrtombs (Depends-on): Likewise.
40214         * modules/wcsrtombs (Depends-on): Likewise.
40215
40216 2009-12-24  Bruno Haible  <bruno@clisp.org>
40217
40218         binary-io: Avoid gcc warning due to SET_BINARY.
40219         * lib/binary-io.h (SET_BINARY): Cast the result to void.
40220         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
40221
40222 2009-12-24  Bruno Haible  <bruno@clisp.org>
40223
40224         Avoid future namespace pollution on glibc systems.
40225         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
40226         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
40227         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
40228         glibc systems.
40229
40230 2009-12-24  Bruno Haible  <bruno@clisp.org>
40231
40232         Refactor common macros used in tests.
40233         * tests/macros.h: New file.
40234         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
40235         and/or <stdlib.h>, if appropriate.
40236         (ASSERT, SIZEOF): Remove macros.
40237         * tests/test-areadlink-with-size.c: Likewise.
40238         * tests/test-areadlinkat.c: Likewise.
40239         * tests/test-areadlinkat-with-size.c: Likewise.
40240         * tests/test-argmatch.c: Likewise.
40241         * tests/test-argv-iter.c: Likewise.
40242         * tests/test-array-mergesort.c: Likewise.
40243         * tests/test-array_list.c: Likewise.
40244         * tests/test-array_oset.c: Likewise.
40245         * tests/test-avltree_list.c: Likewise.
40246         * tests/test-avltree_oset.c: Likewise.
40247         * tests/test-avltreehash_list.c: Likewise.
40248         * tests/test-base64.c: Likewise.
40249         * tests/test-binary-io.c: Likewise.
40250         * tests/test-bitrotate.c: Likewise.
40251         * tests/test-btowc.c: Likewise.
40252         * tests/test-byteswap.c: Likewise.
40253         * tests/test-c-ctype.c: Likewise.
40254         * tests/test-c-stack.c: Likewise.
40255         * tests/test-c-strcasecmp.c: Likewise.
40256         * tests/test-c-strcasestr.c: Likewise.
40257         * tests/test-c-strncasecmp.c: Likewise.
40258         * tests/test-c-strstr.c: Likewise.
40259         * tests/test-canonicalize-lgpl.c: Likewise.
40260         * tests/test-canonicalize.c: Likewise.
40261         * tests/test-carray_list.c: Likewise.
40262         * tests/test-ceilf1.c: Likewise.
40263         * tests/test-ceilf2.c: Likewise.
40264         * tests/test-ceill.c: Likewise.
40265         * tests/test-chown.c: Likewise.
40266         * tests/test-cloexec.c: Likewise.
40267         * tests/test-copy-acl.c: Likewise.
40268         * tests/test-copy-file.c: Likewise.
40269         * tests/test-count-one-bits.c: Likewise.
40270         * tests/test-dprintf-posix.c: Likewise.
40271         * tests/test-dup2.c: Likewise.
40272         * tests/test-dup3.c: Likewise.
40273         * tests/test-duplocale.c: Likewise.
40274         * tests/test-fbufmode.c: Likewise.
40275         * tests/test-fchdir.c: Likewise.
40276         * tests/test-fchownat.c: Likewise.
40277         * tests/test-fcntl-safer.c: Likewise.
40278         * tests/test-fcntl.c: Likewise.
40279         * tests/test-fdopendir.c: Likewise.
40280         * tests/test-fdutimensat.c: Likewise.
40281         * tests/test-fflush2.c: Likewise.
40282         * tests/test-file-has-acl.c: Likewise.
40283         * tests/test-filevercmp.c: Likewise.
40284         * tests/test-flock.c: Likewise.
40285         * tests/test-floorf1.c: Likewise.
40286         * tests/test-floorf2.c: Likewise.
40287         * tests/test-floorl.c: Likewise.
40288         * tests/test-fnmatch.c: Likewise.
40289         * tests/test-fopen.h: Likewise.
40290         * tests/test-fpending.c: Likewise.
40291         * tests/test-fprintf-posix.c: Likewise.
40292         * tests/test-fpurge.c: Likewise.
40293         * tests/test-freadable.c: Likewise.
40294         * tests/test-freadahead.c: Likewise.
40295         * tests/test-freading.c: Likewise.
40296         * tests/test-freadptr.c: Likewise.
40297         * tests/test-freadptr2.c: Likewise.
40298         * tests/test-freadseek.c: Likewise.
40299         * tests/test-freopen.c: Likewise.
40300         * tests/test-frexp.c: Likewise.
40301         * tests/test-frexpl.c: Likewise.
40302         * tests/test-fseek.c: Likewise.
40303         * tests/test-fseeko.c: Likewise.
40304         * tests/test-fstatat.c: Likewise.
40305         * tests/test-fstrcmp.c: Likewise.
40306         * tests/test-fsync.c: Likewise.
40307         * tests/test-ftell.c: Likewise.
40308         * tests/test-ftello.c: Likewise.
40309         * tests/test-func.c: Likewise.
40310         * tests/test-futimens.c: Likewise.
40311         * tests/test-fwritable.c: Likewise.
40312         * tests/test-fwriting.c: Likewise.
40313         * tests/test-getcwd.c: Likewise.
40314         * tests/test-getdate.c: Likewise.
40315         * tests/test-getdelim.c: Likewise.
40316         * tests/test-getdtablesize.c: Likewise.
40317         * tests/test-getgroups.c: Likewise.
40318         * tests/test-getline.c: Likewise.
40319         * tests/test-getndelim2.c: Likewise.
40320         * tests/test-glob.c: Likewise.
40321         * tests/test-hash.c: Likewise.
40322         * tests/test-i-ring.c: Likewise.
40323         * tests/test-iconv-utf.c: Likewise.
40324         * tests/test-iconv.c: Likewise.
40325         * tests/test-idpriv-drop.c: Likewise.
40326         * tests/test-idpriv-droptemp.c: Likewise.
40327         * tests/test-inet_ntop.c: Likewise.
40328         * tests/test-inet_pton.c: Likewise.
40329         * tests/test-isblank.c: Likewise.
40330         * tests/test-isfinite.c: Likewise.
40331         * tests/test-isinf.c: Likewise.
40332         * tests/test-isnan.c: Likewise.
40333         * tests/test-isnand.h: Likewise.
40334         * tests/test-isnanf.h: Likewise.
40335         * tests/test-isnanl.h: Likewise.
40336         * tests/test-lchown.c: Likewise.
40337         * tests/test-ldexpl.c: Likewise.
40338         * tests/test-link.c: Likewise.
40339         * tests/test-linkat.c: Likewise.
40340         * tests/test-linked_list.c: Likewise.
40341         * tests/test-linkedhash_list.c: Likewise.
40342         * tests/test-localename.c: Likewise.
40343         * tests/test-lseek.c: Likewise.
40344         * tests/test-lstat.c: Likewise.
40345         * tests/test-mbmemcasecmp.c: Likewise.
40346         * tests/test-mbmemcasecoll.c: Likewise.
40347         * tests/test-mbrtowc.c: Likewise.
40348         * tests/test-mbscasecmp.c: Likewise.
40349         * tests/test-mbscasestr1.c: Likewise.
40350         * tests/test-mbscasestr2.c: Likewise.
40351         * tests/test-mbscasestr3.c: Likewise.
40352         * tests/test-mbscasestr4.c: Likewise.
40353         * tests/test-mbschr.c: Likewise.
40354         * tests/test-mbscspn.c: Likewise.
40355         * tests/test-mbsinit.c: Likewise.
40356         * tests/test-mbsncasecmp.c: Likewise.
40357         * tests/test-mbsnrtowcs.c: Likewise.
40358         * tests/test-mbspbrk.c: Likewise.
40359         * tests/test-mbspcasecmp.c: Likewise.
40360         * tests/test-mbsrchr.c: Likewise.
40361         * tests/test-mbsrtowcs.c: Likewise.
40362         * tests/test-mbsspn.c: Likewise.
40363         * tests/test-mbsstr1.c: Likewise.
40364         * tests/test-mbsstr2.c: Likewise.
40365         * tests/test-mbsstr3.c: Likewise.
40366         * tests/test-memchr.c: Likewise.
40367         * tests/test-memchr2.c: Likewise.
40368         * tests/test-memcmp.c: Likewise.
40369         * tests/test-memmem.c: Likewise.
40370         * tests/test-memrchr.c: Likewise.
40371         * tests/test-mkdir.c: Likewise.
40372         * tests/test-mkdirat.c: Likewise.
40373         * tests/test-mkfifo.c: Likewise.
40374         * tests/test-mkfifoat.c: Likewise.
40375         * tests/test-mknod.c: Likewise.
40376         * tests/test-nanosleep.c: Likewise.
40377         * tests/test-nl_langinfo.c: Likewise.
40378         * tests/test-obstack-printf.c: Likewise.
40379         * tests/test-open.c: Likewise.
40380         * tests/test-openat.c: Likewise.
40381         * tests/test-pipe-filter-gi1.c: Likewise.
40382         * tests/test-pipe-filter-gi2-main.c: Likewise.
40383         * tests/test-pipe-filter-ii1.c: Likewise.
40384         * tests/test-pipe-filter-ii2-main.c: Likewise.
40385         * tests/test-pipe2.c: Likewise.
40386         * tests/test-popen.h: Likewise.
40387         * tests/test-posixtm.c: Likewise.
40388         * tests/test-pread.c: Likewise.
40389         * tests/test-printf-frexp.c: Likewise.
40390         * tests/test-printf-frexpl.c: Likewise.
40391         * tests/test-printf-posix.c: Likewise.
40392         * tests/test-priv-set.c: Likewise.
40393         * tests/test-quotearg.c: Likewise.
40394         * tests/test-random_r.c: Likewise.
40395         * tests/test-rawmemchr.c: Likewise.
40396         * tests/test-rbtree_list.c: Likewise.
40397         * tests/test-rbtree_oset.c: Likewise.
40398         * tests/test-rbtreehash_list.c: Likewise.
40399         * tests/test-readlink.c: Likewise.
40400         * tests/test-remove.c: Likewise.
40401         * tests/test-rename.c: Likewise.
40402         * tests/test-renameat.c: Likewise.
40403         * tests/test-rmdir.c: Likewise.
40404         * tests/test-round1.c: Likewise.
40405         * tests/test-roundf1.c: Likewise.
40406         * tests/test-roundl.c: Likewise.
40407         * tests/test-safe-alloc.c: Likewise.
40408         * tests/test-sameacls.c: Likewise.
40409         * tests/test-set-mode-acl.c: Likewise.
40410         * tests/test-setenv.c: Likewise.
40411         * tests/test-sigaction.c: Likewise.
40412         * tests/test-signbit.c: Likewise.
40413         * tests/test-sleep.c: Likewise.
40414         * tests/test-snprintf-posix.c: Likewise.
40415         * tests/test-snprintf.c: Likewise.
40416         * tests/test-sprintf-posix.c: Likewise.
40417         * tests/test-stat-time.c: Likewise.
40418         * tests/test-stat.c: Likewise.
40419         * tests/test-strcasestr.c: Likewise.
40420         * tests/test-strchrnul.c: Likewise.
40421         * tests/test-strerror.c: Likewise.
40422         * tests/test-striconv.c: Likewise.
40423         * tests/test-striconveh.c: Likewise.
40424         * tests/test-striconveha.c: Likewise.
40425         * tests/test-strsignal.c: Likewise.
40426         * tests/test-strstr.c: Likewise.
40427         * tests/test-strtod.c: Likewise.
40428         * tests/test-strverscmp.c: Likewise.
40429         * tests/test-symlink.c: Likewise.
40430         * tests/test-symlinkat.c: Likewise.
40431         * tests/test-trunc1.c: Likewise.
40432         * tests/test-trunc2.c: Likewise.
40433         * tests/test-truncf1.c: Likewise.
40434         * tests/test-truncf2.c: Likewise.
40435         * tests/test-truncl.c: Likewise.
40436         * tests/test-uname.c: Likewise.
40437         * tests/test-unlink.c: Likewise.
40438         * tests/test-unlinkat.c: Likewise.
40439         * tests/test-unsetenv.c: Likewise.
40440         * tests/test-usleep.c: Likewise.
40441         * tests/test-utimens.c: Likewise.
40442         * tests/test-utimensat.c: Likewise.
40443         * tests/test-vasnprintf-posix.c: Likewise.
40444         * tests/test-vasnprintf-posix2.c: Likewise.
40445         * tests/test-vasnprintf.c: Likewise.
40446         * tests/test-vasprintf-posix.c: Likewise.
40447         * tests/test-vasprintf.c: Likewise.
40448         * tests/test-vdprintf-posix.c: Likewise.
40449         * tests/test-vfprintf-posix.c: Likewise.
40450         * tests/test-vprintf-posix.c: Likewise.
40451         * tests/test-vsnprintf-posix.c: Likewise.
40452         * tests/test-vsnprintf.c: Likewise.
40453         * tests/test-vsprintf-posix.c: Likewise.
40454         * tests/test-wcrtomb.c: Likewise.
40455         * tests/test-wcsnrtombs.c: Likewise.
40456         * tests/test-wcsrtombs.c: Likewise.
40457         * tests/test-wctype.c: Likewise.
40458         * tests/test-wcwidth.c: Likewise.
40459         * tests/test-xfprintf-posix.c: Likewise.
40460         * tests/test-xmemdup0.c: Likewise.
40461         * tests/test-xprintf-posix.c: Likewise.
40462         * tests/test-xvasprintf.c: Likewise.
40463         * tests/unicase/test-locale-language.c: Likewise.
40464         * tests/unicase/test-mapping-part1.h: Likewise.
40465         * tests/unicase/test-predicate-part1.h: Likewise.
40466         * tests/unicase/test-u8-casecmp.c: Likewise.
40467         * tests/unicase/test-u8-casecoll.c: Likewise.
40468         * tests/unicase/test-u8-casefold.c: Likewise.
40469         * tests/unicase/test-u8-is-cased.c: Likewise.
40470         * tests/unicase/test-u8-is-casefolded.c: Likewise.
40471         * tests/unicase/test-u8-is-lowercase.c: Likewise.
40472         * tests/unicase/test-u8-is-titlecase.c: Likewise.
40473         * tests/unicase/test-u8-is-uppercase.c: Likewise.
40474         * tests/unicase/test-u8-tolower.c: Likewise.
40475         * tests/unicase/test-u8-totitle.c: Likewise.
40476         * tests/unicase/test-u8-toupper.c: Likewise.
40477         * tests/unicase/test-u16-casecmp.c: Likewise.
40478         * tests/unicase/test-u16-casecoll.c: Likewise.
40479         * tests/unicase/test-u16-casefold.c: Likewise.
40480         * tests/unicase/test-u16-is-cased.c: Likewise.
40481         * tests/unicase/test-u16-is-casefolded.c: Likewise.
40482         * tests/unicase/test-u16-is-lowercase.c: Likewise.
40483         * tests/unicase/test-u16-is-titlecase.c: Likewise.
40484         * tests/unicase/test-u16-is-uppercase.c: Likewise.
40485         * tests/unicase/test-u16-tolower.c: Likewise.
40486         * tests/unicase/test-u16-totitle.c: Likewise.
40487         * tests/unicase/test-u16-toupper.c: Likewise.
40488         * tests/unicase/test-u32-casecmp.c: Likewise.
40489         * tests/unicase/test-u32-casecoll.c: Likewise.
40490         * tests/unicase/test-u32-casefold.c: Likewise.
40491         * tests/unicase/test-u32-is-cased.c: Likewise.
40492         * tests/unicase/test-u32-is-casefolded.c: Likewise.
40493         * tests/unicase/test-u32-is-lowercase.c: Likewise.
40494         * tests/unicase/test-u32-is-titlecase.c: Likewise.
40495         * tests/unicase/test-u32-is-uppercase.c: Likewise.
40496         * tests/unicase/test-u32-tolower.c: Likewise.
40497         * tests/unicase/test-u32-totitle.c: Likewise.
40498         * tests/unicase/test-u32-toupper.c: Likewise.
40499         * tests/unicase/test-ulc-casecmp.c: Likewise.
40500         * tests/unicase/test-ulc-casecoll.c: Likewise.
40501         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40502         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
40503         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40504         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40505         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
40506         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
40507         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40508         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40509         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40510         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
40511         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40512         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40513         * tests/unictype/test-bidi_byname.c: Likewise.
40514         * tests/unictype/test-bidi_name.c: Likewise.
40515         * tests/unictype/test-bidi_of.c: Likewise.
40516         * tests/unictype/test-bidi_test.c: Likewise.
40517         * tests/unictype/test-block_list.c: Likewise.
40518         * tests/unictype/test-block_of.c: Likewise.
40519         * tests/unictype/test-block_test.c: Likewise.
40520         * tests/unictype/test-categ_and.c: Likewise.
40521         * tests/unictype/test-categ_and_not.c: Likewise.
40522         * tests/unictype/test-categ_byname.c: Likewise.
40523         * tests/unictype/test-categ_name.c: Likewise.
40524         * tests/unictype/test-categ_none.c: Likewise.
40525         * tests/unictype/test-categ_of.c: Likewise.
40526         * tests/unictype/test-categ_or.c: Likewise.
40527         * tests/unictype/test-categ_test_withtable.c: Likewise.
40528         * tests/unictype/test-combining.c: Likewise.
40529         * tests/unictype/test-decdigit.c: Likewise.
40530         * tests/unictype/test-digit.c: Likewise.
40531         * tests/unictype/test-mirror.c: Likewise.
40532         * tests/unictype/test-numeric.c: Likewise.
40533         * tests/unictype/test-pr_byname.c: Likewise.
40534         * tests/unictype/test-pr_test.c: Likewise.
40535         * tests/unictype/test-predicate-part1.h: Likewise.
40536         * tests/unictype/test-scripts.c: Likewise.
40537         * tests/unictype/test-sy_c_ident.c: Likewise.
40538         * tests/unictype/test-sy_java_ident.c: Likewise.
40539         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
40540         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
40541         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
40542         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
40543         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
40544         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
40545         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
40546         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
40547         * tests/uninorm/test-canonical-decomposition.c: Likewise.
40548         * tests/uninorm/test-compat-decomposition.c: Likewise.
40549         * tests/uninorm/test-composition.c: Likewise.
40550         * tests/uninorm/test-decomposing-form.c: Likewise.
40551         * tests/uninorm/test-decomposition.c: Likewise.
40552         * tests/uninorm/test-u8-nfc.c: Likewise.
40553         * tests/uninorm/test-u8-nfd.c: Likewise.
40554         * tests/uninorm/test-u8-nfkc.c: Likewise.
40555         * tests/uninorm/test-u8-nfkd.c: Likewise.
40556         * tests/uninorm/test-u8-normcmp.c: Likewise.
40557         * tests/uninorm/test-u8-normcoll.c: Likewise.
40558         * tests/uninorm/test-u16-nfc.c: Likewise.
40559         * tests/uninorm/test-u16-nfd.c: Likewise.
40560         * tests/uninorm/test-u16-nfkc.c: Likewise.
40561         * tests/uninorm/test-u16-nfkd.c: Likewise.
40562         * tests/uninorm/test-u16-normcmp.c: Likewise.
40563         * tests/uninorm/test-u16-normcoll.c: Likewise.
40564         * tests/uninorm/test-u32-nfc.c: Likewise.
40565         * tests/uninorm/test-u32-nfd.c: Likewise.
40566         * tests/uninorm/test-u32-nfkc.c: Likewise.
40567         * tests/uninorm/test-u32-nfkd.c: Likewise.
40568         * tests/uninorm/test-u32-normalize-big.c: Likewise.
40569         * tests/uninorm/test-u32-normcmp.c: Likewise.
40570         * tests/uninorm/test-u32-normcoll.c: Likewise.
40571         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
40572         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
40573         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
40574         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
40575         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
40576         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
40577         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
40578         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
40579         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
40580         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
40581         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
40582         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
40583         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
40584         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
40585         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
40586         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
40587         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
40588         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
40589         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
40590         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
40591         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
40592         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
40593         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
40594         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
40595         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
40596         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
40597         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
40598         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
40599         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
40600         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
40601         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
40602         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
40603         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
40604         * tests/uniwidth/test-u8-strwidth.c: Likewise.
40605         * tests/uniwidth/test-u8-width.c: Likewise.
40606         * tests/uniwidth/test-u16-strwidth.c: Likewise.
40607         * tests/uniwidth/test-u16-width.c: Likewise.
40608         * tests/uniwidth/test-u32-strwidth.c: Likewise.
40609         * tests/uniwidth/test-u32-width.c: Likewise.
40610         * tests/uniwidth/test-uc_width.c: Likewise.
40611         * tests/uniwidth/test-uc_width2.c: Likewise.
40612         * modules/acl-tests (Files): Add tests/macros.h.
40613         * modules/areadlink-tests (Files): Likewise.
40614         * modules/areadlink-with-size-tests (Files): Likewise.
40615         * modules/areadlinkat-tests (Files): Likewise.
40616         * modules/areadlinkat-with-size-tests (Files): Likewise.
40617         * modules/argmatch-tests (Files): Likewise.
40618         * modules/argv-iter-tests (Files): Likewise.
40619         * modules/array-list-tests (Files): Likewise.
40620         * modules/array-mergesort-tests (Files): Likewise.
40621         * modules/array-oset-tests (Files): Likewise.
40622         * modules/avltree-list-tests (Files): Likewise.
40623         * modules/avltree-oset-tests (Files): Likewise.
40624         * modules/avltreehash-list-tests (Files): Likewise.
40625         * modules/base64-tests (Files): Likewise.
40626         * modules/binary-io-tests (Files): Likewise.
40627         * modules/bitrotate-tests (Files): Likewise.
40628         * modules/btowc-tests (Files): Likewise.
40629         * modules/byteswap-tests (Files): Likewise.
40630         * modules/c-ctype-tests (Files): Likewise.
40631         * modules/c-stack-tests (Files): Likewise.
40632         * modules/c-strcase-tests (Files): Likewise.
40633         * modules/c-strcasestr-tests (Files): Likewise.
40634         * modules/c-strstr-tests (Files): Likewise.
40635         * modules/canonicalize-lgpl-tests (Files): Likewise.
40636         * modules/canonicalize-tests (Files): Likewise.
40637         * modules/carray-list-tests (Files): Likewise.
40638         * modules/ceilf-tests (Files): Likewise.
40639         * modules/ceill-tests (Files): Likewise.
40640         * modules/chown-tests (Files): Likewise.
40641         * modules/cloexec-tests (Files): Likewise.
40642         * modules/copy-file-tests (Files): Likewise.
40643         * modules/count-one-bits-tests (Files): Likewise.
40644         * modules/dprintf-posix-tests (Files): Likewise.
40645         * modules/dup2-tests (Files): Likewise.
40646         * modules/dup3-tests (Files): Likewise.
40647         * modules/duplocale-tests (Files): Likewise.
40648         * modules/fbufmode-tests (Files): Likewise.
40649         * modules/fchdir-tests (Files): Likewise.
40650         * modules/fcntl-safer-tests (Files): Likewise.
40651         * modules/fcntl-tests (Files): Likewise.
40652         * modules/fdopendir-tests (Files): Likewise.
40653         * modules/fdutimensat-tests (Files): Likewise.
40654         * modules/fflush-tests (Files): Likewise.
40655         * modules/filevercmp-tests (Files): Likewise.
40656         * modules/flock-tests (Files): Likewise.
40657         * modules/floorf-tests (Files): Likewise.
40658         * modules/floorl-tests (Files): Likewise.
40659         * modules/fnmatch-tests (Files): Likewise.
40660         * modules/fopen-safer-tests (Files): Likewise.
40661         * modules/fopen-tests (Files): Likewise.
40662         * modules/fpending-tests (Files): Likewise.
40663         * modules/fprintf-posix-tests (Files): Likewise.
40664         * modules/fpurge-tests (Files): Likewise.
40665         * modules/freadable-tests (Files): Likewise.
40666         * modules/freadahead-tests (Files): Likewise.
40667         * modules/freading-tests (Files): Likewise.
40668         * modules/freadptr-tests (Files): Likewise.
40669         * modules/freadseek-tests (Files): Likewise.
40670         * modules/freopen-tests (Files): Likewise.
40671         * modules/frexp-nolibm-tests (Files): Likewise.
40672         * modules/frexp-tests (Files): Likewise.
40673         * modules/frexpl-nolibm-tests (Files): Likewise.
40674         * modules/frexpl-tests (Files): Likewise.
40675         * modules/fseek-tests (Files): Likewise.
40676         * modules/fseeko-tests (Files): Likewise.
40677         * modules/fstrcmp-tests (Files): Likewise.
40678         * modules/fsync-tests (Files): Likewise.
40679         * modules/ftell-tests (Files): Likewise.
40680         * modules/ftello-tests (Files): Likewise.
40681         * modules/func-tests (Files): Likewise.
40682         * modules/futimens-tests (Files): Likewise.
40683         * modules/fwritable-tests (Files): Likewise.
40684         * modules/fwriting-tests (Files): Likewise.
40685         * modules/getcwd-tests (Files): Likewise.
40686         * modules/getdate-tests (Files): Likewise.
40687         * modules/getdelim-tests (Files): Likewise.
40688         * modules/getdtablesize-tests (Files): Likewise.
40689         * modules/getgroups-tests (Files): Likewise.
40690         * modules/getline-tests (Files): Likewise.
40691         * modules/getndelim2-tests (Files): Likewise.
40692         * modules/glob-tests (Files): Likewise.
40693         * modules/hash-tests (Files): Likewise.
40694         * modules/i-ring-tests (Files): Likewise.
40695         * modules/iconv-tests (Files): Likewise.
40696         * modules/iconv_open-utf-tests (Files): Likewise.
40697         * modules/idpriv-drop-tests (Files): Likewise.
40698         * modules/idpriv-droptemp-tests (Files): Likewise.
40699         * modules/inet_ntop-tests (Files): Likewise.
40700         * modules/inet_pton-tests (Files): Likewise.
40701         * modules/isblank-tests (Files): Likewise.
40702         * modules/isfinite-tests (Files): Likewise.
40703         * modules/isinf-tests (Files): Likewise.
40704         * modules/isnan-tests (Files): Likewise.
40705         * modules/isnand-nolibm-tests (Files): Likewise.
40706         * modules/isnand-tests (Files): Likewise.
40707         * modules/isnanf-nolibm-tests (Files): Likewise.
40708         * modules/isnanf-tests (Files): Likewise.
40709         * modules/isnanl-nolibm-tests (Files): Likewise.
40710         * modules/isnanl-tests (Files): Likewise.
40711         * modules/lchown-tests (Files): Likewise.
40712         * modules/ldexpl-tests (Files): Likewise.
40713         * modules/link-tests (Files): Likewise.
40714         * modules/linkat-tests (Files): Likewise.
40715         * modules/linked-list-tests (Files): Likewise.
40716         * modules/linkedhash-list-tests (Files): Likewise.
40717         * modules/localename-tests (Files): Likewise.
40718         * modules/lseek-tests (Files): Likewise.
40719         * modules/lstat-tests (Files): Likewise.
40720         * modules/mbmemcasecmp-tests (Files): Likewise.
40721         * modules/mbmemcasecoll-tests (Files): Likewise.
40722         * modules/mbrtowc-tests (Files): Likewise.
40723         * modules/mbscasecmp-tests (Files): Likewise.
40724         * modules/mbscasestr-tests (Files): Likewise.
40725         * modules/mbschr-tests (Files): Likewise.
40726         * modules/mbscspn-tests (Files): Likewise.
40727         * modules/mbsinit-tests (Files): Likewise.
40728         * modules/mbsncasecmp-tests (Files): Likewise.
40729         * modules/mbsnrtowcs-tests (Files): Likewise.
40730         * modules/mbspbrk-tests (Files): Likewise.
40731         * modules/mbspcasecmp-tests (Files): Likewise.
40732         * modules/mbsrchr-tests (Files): Likewise.
40733         * modules/mbsrtowcs-tests (Files): Likewise.
40734         * modules/mbsspn-tests (Files): Likewise.
40735         * modules/mbsstr-tests (Files): Likewise.
40736         * modules/memchr-tests (Files): Likewise.
40737         * modules/memchr2-tests (Files): Likewise.
40738         * modules/memcmp-tests (Files): Likewise.
40739         * modules/memmem-tests (Files): Likewise.
40740         * modules/memrchr-tests (Files): Likewise.
40741         * modules/mkdir-tests (Files): Likewise.
40742         * modules/mkfifo-tests (Files): Likewise.
40743         * modules/mkfifoat-tests (Files): Likewise.
40744         * modules/mknod-tests (Files): Likewise.
40745         * modules/nanosleep-tests (Files): Likewise.
40746         * modules/nl_langinfo-tests (Files): Likewise.
40747         * modules/obstack-printf-tests (Files): Likewise.
40748         * modules/open-tests (Files): Likewise.
40749         * modules/openat-tests (Files): Likewise.
40750         * modules/pipe-filter-gi-tests (Files): Likewise.
40751         * modules/pipe-filter-ii-tests (Files): Likewise.
40752         * modules/pipe2-tests (Files): Likewise.
40753         * modules/popen-safer-tests (Files): Likewise.
40754         * modules/popen-tests (Files): Likewise.
40755         * modules/posixtm-tests (Files): Likewise.
40756         * modules/pread-tests (Files): Likewise.
40757         * modules/printf-frexp-tests (Files): Likewise.
40758         * modules/printf-frexpl-tests (Files): Likewise.
40759         * modules/printf-posix-tests (Files): Likewise.
40760         * modules/priv-set-tests (Files): Likewise.
40761         * modules/quotearg-tests (Files): Likewise.
40762         * modules/random_r-tests (Files): Likewise.
40763         * modules/rawmemchr-tests (Files): Likewise.
40764         * modules/rbtree-list-tests (Files): Likewise.
40765         * modules/rbtree-oset-tests (Files): Likewise.
40766         * modules/rbtreehash-list-tests (Files): Likewise.
40767         * modules/readlink-tests (Files): Likewise.
40768         * modules/remove-tests (Files): Likewise.
40769         * modules/rename-tests (Files): Likewise.
40770         * modules/renameat-tests (Files): Likewise.
40771         * modules/rmdir-tests (Files): Likewise.
40772         * modules/round-tests (Files): Likewise.
40773         * modules/roundf-tests (Files): Likewise.
40774         * modules/roundl-tests (Files): Likewise.
40775         * modules/safe-alloc-tests (Files): Likewise.
40776         * modules/setenv-tests (Files): Likewise.
40777         * modules/sigaction-tests (Files): Likewise.
40778         * modules/signbit-tests (Files): Likewise.
40779         * modules/sleep-tests (Files): Likewise.
40780         * modules/snprintf-posix-tests (Files): Likewise.
40781         * modules/snprintf-tests (Files): Likewise.
40782         * modules/sprintf-posix-tests (Files): Likewise.
40783         * modules/stat-tests (Files): Likewise.
40784         * modules/stat-time-tests (Files): Likewise.
40785         * modules/strcasestr-tests (Files): Likewise.
40786         * modules/strchrnul-tests (Files): Likewise.
40787         * modules/strerror-tests (Files): Likewise.
40788         * modules/striconv-tests (Files): Likewise.
40789         * modules/striconveh-tests (Files): Likewise.
40790         * modules/striconveha-tests (Files): Likewise.
40791         * modules/strsignal-tests (Files): Likewise.
40792         * modules/strstr-tests (Files): Likewise.
40793         * modules/strtod-tests (Files): Likewise.
40794         * modules/strverscmp-tests (Files): Likewise.
40795         * modules/symlink-tests (Files): Likewise.
40796         * modules/symlinkat-tests (Files): Likewise.
40797         * modules/trunc-tests (Files): Likewise.
40798         * modules/truncf-tests (Files): Likewise.
40799         * modules/truncl-tests (Files): Likewise.
40800         * modules/uname-tests (Files): Likewise.
40801         * modules/unicase/cased-tests (Files): Likewise.
40802         * modules/unicase/ignorable-tests (Files): Likewise.
40803         * modules/unicase/locale-language-tests (Files): Likewise.
40804         * modules/unicase/tolower-tests (Files): Likewise.
40805         * modules/unicase/totitle-tests (Files): Likewise.
40806         * modules/unicase/toupper-tests (Files): Likewise.
40807         * modules/unicase/u8-casecmp-tests (Files): Likewise.
40808         * modules/unicase/u8-casecoll-tests (Files): Likewise.
40809         * modules/unicase/u8-casefold-tests (Files): Likewise.
40810         * modules/unicase/u8-is-cased-tests (Files): Likewise.
40811         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
40812         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
40813         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
40814         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
40815         * modules/unicase/u8-tolower-tests (Files): Likewise.
40816         * modules/unicase/u8-totitle-tests (Files): Likewise.
40817         * modules/unicase/u8-toupper-tests (Files): Likewise.
40818         * modules/unicase/u16-casecmp-tests (Files): Likewise.
40819         * modules/unicase/u16-casecoll-tests (Files): Likewise.
40820         * modules/unicase/u16-casefold-tests (Files): Likewise.
40821         * modules/unicase/u16-is-cased-tests (Files): Likewise.
40822         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
40823         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
40824         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
40825         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
40826         * modules/unicase/u16-tolower-tests (Files): Likewise.
40827         * modules/unicase/u16-totitle-tests (Files): Likewise.
40828         * modules/unicase/u16-toupper-tests (Files): Likewise.
40829         * modules/unicase/u32-casecmp-tests (Files): Likewise.
40830         * modules/unicase/u32-casecoll-tests (Files): Likewise.
40831         * modules/unicase/u32-casefold-tests (Files): Likewise.
40832         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40833         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40834         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40835         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40836         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40837         * modules/unicase/u32-tolower-tests (Files): Likewise.
40838         * modules/unicase/u32-totitle-tests (Files): Likewise.
40839         * modules/unicase/u32-toupper-tests (Files): Likewise.
40840         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40841         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40842         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40843         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40844         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40845         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40846         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40847         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40848         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40849         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40850         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40851         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40852         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40853         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40854         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40855         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40856         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40857         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40858         * modules/unictype/block-list-tests (Files): Likewise.
40859         * modules/unictype/block-of-tests (Files): Likewise.
40860         * modules/unictype/block-test-tests (Files): Likewise.
40861         * modules/unictype/category-C-tests (Files): Likewise.
40862         * modules/unictype/category-Cc-tests (Files): Likewise.
40863         * modules/unictype/category-Cf-tests (Files): Likewise.
40864         * modules/unictype/category-Cn-tests (Files): Likewise.
40865         * modules/unictype/category-Co-tests (Files): Likewise.
40866         * modules/unictype/category-Cs-tests (Files): Likewise.
40867         * modules/unictype/category-L-tests (Files): Likewise.
40868         * modules/unictype/category-Ll-tests (Files): Likewise.
40869         * modules/unictype/category-Lm-tests (Files): Likewise.
40870         * modules/unictype/category-Lo-tests (Files): Likewise.
40871         * modules/unictype/category-Lt-tests (Files): Likewise.
40872         * modules/unictype/category-Lu-tests (Files): Likewise.
40873         * modules/unictype/category-M-tests (Files): Likewise.
40874         * modules/unictype/category-Mc-tests (Files): Likewise.
40875         * modules/unictype/category-Me-tests (Files): Likewise.
40876         * modules/unictype/category-Mn-tests (Files): Likewise.
40877         * modules/unictype/category-N-tests (Files): Likewise.
40878         * modules/unictype/category-Nd-tests (Files): Likewise.
40879         * modules/unictype/category-Nl-tests (Files): Likewise.
40880         * modules/unictype/category-No-tests (Files): Likewise.
40881         * modules/unictype/category-P-tests (Files): Likewise.
40882         * modules/unictype/category-Pc-tests (Files): Likewise.
40883         * modules/unictype/category-Pd-tests (Files): Likewise.
40884         * modules/unictype/category-Pe-tests (Files): Likewise.
40885         * modules/unictype/category-Pf-tests (Files): Likewise.
40886         * modules/unictype/category-Pi-tests (Files): Likewise.
40887         * modules/unictype/category-Po-tests (Files): Likewise.
40888         * modules/unictype/category-Ps-tests (Files): Likewise.
40889         * modules/unictype/category-S-tests (Files): Likewise.
40890         * modules/unictype/category-Sc-tests (Files): Likewise.
40891         * modules/unictype/category-Sk-tests (Files): Likewise.
40892         * modules/unictype/category-Sm-tests (Files): Likewise.
40893         * modules/unictype/category-So-tests (Files): Likewise.
40894         * modules/unictype/category-Z-tests (Files): Likewise.
40895         * modules/unictype/category-Zl-tests (Files): Likewise.
40896         * modules/unictype/category-Zp-tests (Files): Likewise.
40897         * modules/unictype/category-Zs-tests (Files): Likewise.
40898         * modules/unictype/category-and-not-tests (Files): Likewise.
40899         * modules/unictype/category-and-tests (Files): Likewise.
40900         * modules/unictype/category-byname-tests (Files): Likewise.
40901         * modules/unictype/category-name-tests (Files): Likewise.
40902         * modules/unictype/category-none-tests (Files): Likewise.
40903         * modules/unictype/category-of-tests (Files): Likewise.
40904         * modules/unictype/category-or-tests (Files): Likewise.
40905         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40906         * modules/unictype/combining-class-tests (Files): Likewise.
40907         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40908         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40909         * modules/unictype/ctype-blank-tests (Files): Likewise.
40910         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40911         * modules/unictype/ctype-digit-tests (Files): Likewise.
40912         * modules/unictype/ctype-graph-tests (Files): Likewise.
40913         * modules/unictype/ctype-lower-tests (Files): Likewise.
40914         * modules/unictype/ctype-print-tests (Files): Likewise.
40915         * modules/unictype/ctype-punct-tests (Files): Likewise.
40916         * modules/unictype/ctype-space-tests (Files): Likewise.
40917         * modules/unictype/ctype-upper-tests (Files): Likewise.
40918         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40919         * modules/unictype/decimal-digit-tests (Files): Likewise.
40920         * modules/unictype/digit-tests (Files): Likewise.
40921         * modules/unictype/mirror-tests (Files): Likewise.
40922         * modules/unictype/numeric-tests (Files): Likewise.
40923         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40924         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40925         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40926         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40927         Likewise.
40928         * modules/unictype/property-bidi-block-separator-tests (Files):
40929         Likewise.
40930         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40931         Likewise.
40932         * modules/unictype/property-bidi-common-separator-tests (Files):
40933         Likewise.
40934         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40935         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40936         Likewise.
40937         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40938         Likewise.
40939         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40940         Likewise.
40941         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40942         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40943         Likewise.
40944         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40945         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40946         Likewise.
40947         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40948         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40949         * modules/unictype/property-bidi-segment-separator-tests (Files):
40950         Likewise.
40951         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40952         * modules/unictype/property-byname-tests (Files): Likewise.
40953         * modules/unictype/property-combining-tests (Files): Likewise.
40954         * modules/unictype/property-composite-tests (Files): Likewise.
40955         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40956         * modules/unictype/property-dash-tests (Files): Likewise.
40957         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40958         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40959         Likewise.
40960         * modules/unictype/property-deprecated-tests (Files): Likewise.
40961         * modules/unictype/property-diacritic-tests (Files): Likewise.
40962         * modules/unictype/property-extender-tests (Files): Likewise.
40963         * modules/unictype/property-format-control-tests (Files): Likewise.
40964         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40965         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40966         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40967         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40968         * modules/unictype/property-hyphen-tests (Files): Likewise.
40969         * modules/unictype/property-id-continue-tests (Files): Likewise.
40970         * modules/unictype/property-id-start-tests (Files): Likewise.
40971         * modules/unictype/property-ideographic-tests (Files): Likewise.
40972         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40973         * modules/unictype/property-ids-trinary-operator-tests (Files):
40974         Likewise.
40975         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40976         * modules/unictype/property-iso-control-tests (Files): Likewise.
40977         * modules/unictype/property-join-control-tests (Files): Likewise.
40978         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40979         * modules/unictype/property-line-separator-tests (Files): Likewise.
40980         * modules/unictype/property-logical-order-exception-tests (Files):
40981         Likewise.
40982         * modules/unictype/property-lowercase-tests (Files): Likewise.
40983         * modules/unictype/property-math-tests (Files): Likewise.
40984         * modules/unictype/property-non-break-tests (Files): Likewise.
40985         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40986         * modules/unictype/property-numeric-tests (Files): Likewise.
40987         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40988         * modules/unictype/property-other-default-ignorable-code-point-tests
40989         (Files): Likewise.
40990         * modules/unictype/property-other-grapheme-extend-tests (Files):
40991         Likewise.
40992         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40993         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40994         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40995         * modules/unictype/property-other-math-tests (Files): Likewise.
40996         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40997         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40998         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40999         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41000         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41001         * modules/unictype/property-private-use-tests (Files): Likewise.
41002         * modules/unictype/property-punctuation-tests (Files): Likewise.
41003         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41004         * modules/unictype/property-radical-tests (Files): Likewise.
41005         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41006         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41007         * modules/unictype/property-space-tests (Files): Likewise.
41008         * modules/unictype/property-terminal-punctuation-tests (Files):
41009         Likewise.
41010         * modules/unictype/property-test-tests (Files): Likewise.
41011         * modules/unictype/property-titlecase-tests (Files): Likewise.
41012         * modules/unictype/property-unassigned-code-value-tests (Files):
41013         Likewise.
41014         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41015         * modules/unictype/property-uppercase-tests (Files): Likewise.
41016         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41017         * modules/unictype/property-white-space-tests (Files): Likewise.
41018         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41019         * modules/unictype/property-xid-start-tests (Files): Likewise.
41020         * modules/unictype/property-zero-width-tests (Files): Likewise.
41021         * modules/unictype/scripts-tests (Files): Likewise.
41022         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41023         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41024         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41025         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41026         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41027         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41028         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41029         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41030         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41031         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41032         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41033         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41034         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41035         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41036         * modules/uninorm/composition-tests (Files): Likewise.
41037         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41038         * modules/uninorm/decomposition-tests (Files): Likewise.
41039         * modules/uninorm/filter-tests (Files): Likewise.
41040         * modules/uninorm/nfc-tests (Files): Likewise.
41041         * modules/uninorm/nfd-tests (Files): Likewise.
41042         * modules/uninorm/nfkc-tests (Files): Likewise.
41043         * modules/uninorm/nfkd-tests (Files): Likewise.
41044         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41045         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41046         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41047         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41048         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41049         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41050         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41051         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41052         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41053         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41054         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41055         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41056         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41057         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41058         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41059         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41060         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41061         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41062         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
41063         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
41064         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
41065         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
41066         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41067         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
41068         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
41069         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
41070         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
41071         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
41072         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
41073         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
41074         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
41075         * modules/uniwidth/u8-width-tests (Files): Likewise.
41076         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
41077         * modules/uniwidth/u16-width-tests (Files): Likewise.
41078         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
41079         * modules/uniwidth/u32-width-tests (Files): Likewise.
41080         * modules/uniwidth/width-tests (Files): Likewise.
41081         * modules/unlink-tests (Files): Likewise.
41082         * modules/unsetenv-tests (Files): Likewise.
41083         * modules/usleep-tests (Files): Likewise.
41084         * modules/utimens-tests (Files): Likewise.
41085         * modules/utimensat-tests (Files): Likewise.
41086         * modules/vasnprintf-posix-tests (Files): Likewise.
41087         * modules/vasnprintf-tests (Files): Likewise.
41088         * modules/vasprintf-posix-tests (Files): Likewise.
41089         * modules/vasprintf-tests (Files): Likewise.
41090         * modules/vdprintf-posix-tests (Files): Likewise.
41091         * modules/vfprintf-posix-tests (Files): Likewise.
41092         * modules/vprintf-posix-tests (Files): Likewise.
41093         * modules/vsnprintf-posix-tests (Files): Likewise.
41094         * modules/vsnprintf-tests (Files): Likewise.
41095         * modules/vsprintf-posix-tests (Files): Likewise.
41096         * modules/wcrtomb-tests (Files): Likewise.
41097         * modules/wcsnrtombs-tests (Files): Likewise.
41098         * modules/wcsrtombs-tests (Files): Likewise.
41099         * modules/wctype-tests (Files): Likewise.
41100         * modules/wcwidth-tests (Files): Likewise.
41101         * modules/xmemdup0-tests (Files): Likewise.
41102         * modules/xprintf-posix-tests (Files): Likewise.
41103         * modules/xvasprintf-tests (Files): Likewise.
41104
41105 2009-12-24  Eric Blake  <ebb9@byu.net>
41106
41107         test-nanosleep: fix typo
41108         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
41109         patch.
41110         Reported by Bruno Haible.
41111
41112 2009-12-24  Bruno Haible  <bruno@clisp.org>
41113
41114         Reduce namespace pollution on glibc systems.
41115         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
41116         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
41117         systems.
41118         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
41119         <getopt.h> on glibc systems.
41120         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
41121         systems.
41122         * lib/fcntl.c: Include <unistd.h> here instead.
41123
41124 2009-12-24  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/stdlib.in.h (includes): Fix typo in today's commit.
41127
41128 2009-12-24  Eric Blake  <ebb9@byu.net>
41129
41130         tests: add signature checks
41131         * tests/signature.h (SIGNATURE_CHECK): New file.
41132         * modules/atexit-tests (Files): Use it.
41133         * modules/btowc-tests (Files): Likewise.
41134         * modules/canonicalize-lgpl-tests (Files): Likewise.
41135         * modules/ceilf-tests (Files): Likewise.
41136         * modules/ceill-tests (Files): Likewise.
41137         * modules/chown-tests (Files): Likewise.
41138         * modules/dprintf-posix-tests (Files): Likewise.
41139         * modules/dup2-tests (Files): Likewise.
41140         * modules/dup3-tests (Files): Likewise.
41141         * modules/duplocale-tests (Files): Likewise.
41142         * modules/fchdir-tests (Files): Likewise.
41143         * modules/fcntl-tests (Files): Likewise.
41144         * modules/fdopendir-tests (Files): Likewise.
41145         * modules/fflush-tests (Files): Likewise.
41146         * modules/flock-tests (Files): Likewise.
41147         * modules/floorf-tests (Files): Likewise.
41148         * modules/floorl-tests (Files): Likewise.
41149         * modules/fnmatch-tests (Files): Likewise.
41150         * modules/fopen-tests (Files): Likewise.
41151         * modules/fprintf-posix-tests (Files): Likewise.
41152         * modules/freopen-tests (Files): Likewise.
41153         * modules/frexp-nolibm-tests (Files): Likewise.
41154         * modules/frexp-tests (Files): Likewise.
41155         * modules/frexpl-nolibm-tests (Files): Likewise.
41156         * modules/frexpl-tests (Files): Likewise.
41157         * modules/fseek-tests (Files): Likewise.
41158         * modules/fseeko-tests (Files): Likewise.
41159         * modules/fsync-tests (Files): Likewise.
41160         * modules/ftell-tests (Files): Likewise.
41161         * modules/ftello-tests (Files): Likewise.
41162         * modules/futimens-tests (Files): Likewise.
41163         * modules/getaddrinfo-tests (Files): Likewise.
41164         * modules/getcwd-tests (Files): Likewise.
41165         * modules/getdelim-tests (Files): Likewise.
41166         * modules/getdtablesize-tests (Files): Likewise.
41167         * modules/getgroups-tests (Files): Likewise.
41168         * modules/gethostname-tests (Files): Likewise.
41169         * modules/getline-tests (Files): Likewise.
41170         * modules/getopt-posix-tests (Files): Likewise.
41171         * modules/gettimeofday-tests (Files): Likewise.
41172         * modules/glob-tests (Files): Likewise.
41173         * modules/iconv-tests (Files): Likewise.
41174         * modules/inet_ntop-tests (Files): Likewise.
41175         * modules/inet_pton-tests (Files): Likewise.
41176         * modules/isblank-tests (Files): Likewise.
41177         * modules/lchown-tests (Files): Likewise.
41178         * modules/ldexpl-tests (Files): Likewise.
41179         * modules/link-tests (Files): Likewise.
41180         * modules/linkat-tests (Files): Likewise.
41181         * modules/lseek-tests (Files): Likewise.
41182         * modules/lstat-tests (Files): Likewise.
41183         * modules/mbrtowc-tests (Files): Likewise.
41184         * modules/mbsinit-tests (Files): Likewise.
41185         * modules/mbsnrtowcs-tests (Files): Likewise.
41186         * modules/mbsrtowcs-tests (Files): Likewise.
41187         * modules/memchr-tests (Files): Likewise.
41188         * modules/memcmp-tests (Files): Likewise.
41189         * modules/memmem-tests (Files): Likewise.
41190         * modules/memrchr-tests (Files): Likewise.
41191         * modules/mkdir-tests (Files): Likewise.
41192         * modules/mkfifo-tests (Files): Likewise.
41193         * modules/mkfifoat-tests (Files): Likewise.
41194         * modules/mknod-tests (Files): Likewise.
41195         * modules/nanosleep-tests (Files): Likewise.
41196         * modules/nl_langinfo-tests (Files): Likewise.
41197         * modules/obstack-printf-tests (Files): Likewise.
41198         * modules/open-tests (Files): Likewise.
41199         * modules/openat-tests (Files): Likewise.
41200         * modules/perror-tests (Files): Likewise.
41201         * modules/pipe2-tests (Files): Likewise.
41202         * modules/poll-tests (Files): Likewise.
41203         * modules/popen-tests (Files): Likewise.
41204         * modules/posix_spawn-tests (Files): Likewise.
41205         * modules/posix_spawnp-tests (Files): Likewise.
41206         * modules/pread-tests (Files): Likewise.
41207         * modules/printf-posix-tests (Files): Likewise.
41208         * modules/pty-tests (Files): Likewise.
41209         * modules/random_r-tests (Files): Likewise.
41210         * modules/rawmemchr-tests (Files): Likewise.
41211         * modules/readlink-tests (Files): Likewise.
41212         * modules/remove-tests (Files): Likewise.
41213         * modules/rename-tests (Files): Likewise.
41214         * modules/renameat-tests (Files): Likewise.
41215         * modules/rmdir-tests (Files): Likewise.
41216         * modules/round-tests (Files): Likewise.
41217         * modules/roundf-tests (Files): Likewise.
41218         * modules/roundl-tests (Files): Likewise.
41219         * modules/select-tests (Files): Likewise.
41220         * modules/setenv-tests (Files): Likewise.
41221         * modules/sigaction-tests (Files): Likewise.
41222         * modules/sleep-tests (Files): Likewise.
41223         * modules/snprintf-posix-tests (Files): Likewise.
41224         * modules/snprintf-tests (Files): Likewise.
41225         * modules/sprintf-posix-tests (Files): Likewise.
41226         * modules/stat-tests (Files): Likewise.
41227         * modules/strcasestr-tests (Files): Likewise.
41228         * modules/strchrnul-tests (Files): Likewise.
41229         * modules/strerror-tests (Files): Likewise.
41230         * modules/strsignal-tests (Files): Likewise.
41231         * modules/strstr-tests (Files): Likewise.
41232         * modules/strtod-tests (Files): Likewise.
41233         * modules/strverscmp-tests (Files): Likewise.
41234         * modules/symlink-tests (Files): Likewise.
41235         * modules/symlinkat-tests (Files): Likewise.
41236         * modules/times-tests (Files): Likewise.
41237         * modules/trunc-tests (Files): Likewise.
41238         * modules/truncf-tests (Files): Likewise.
41239         * modules/truncl-tests (Files): Likewise.
41240         * modules/tsearch-tests (Files): Likewise.
41241         * modules/uname-tests (Files): Likewise.
41242         * modules/unlink-tests (Files): Likewise.
41243         * modules/unsetenv-tests (Files): Likewise.
41244         * modules/usleep-tests (Files): Likewise.
41245         * modules/utimensat-tests (Files): Likewise.
41246         * modules/vasprintf-tests (Files): Likewise.
41247         * modules/vdprintf-posix-tests (Files): Likewise.
41248         * modules/vfprintf-posix-tests (Files): Likewise.
41249         * modules/vprintf-posix-tests (Files): Likewise.
41250         * modules/vsnprintf-posix-tests (Files): Likewise.
41251         * modules/vsnprintf-tests (Files): Likewise.
41252         * modules/vsprintf-posix-tests (Files): Likewise.
41253         * modules/wcrtomb-tests (Files): Likewise.
41254         * modules/wcsnrtombs-tests (Files): Likewise.
41255         * modules/wcsrtombs-tests (Files): Likewise.
41256         * modules/wcwidth-tests (Files): Likewise.
41257         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
41258         * tests/test-isinf.c (isinf): Likewise.
41259         * tests/test-isnan.c (isnan): Likewise.
41260         * tests/test-signbit.c (signbit): Likewise.
41261         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
41262         declaration, either as macro or with correct signature.
41263         (select): Ensure function under test is declared with correct
41264         signature in correct header.
41265         * tests/test-atexit.c (atexit): Likewise.
41266         * tests/test-btowc.c (btowc): Likewise.
41267         * tests/test-canonicalize-lgpl.c (realpath)
41268         (canonicalize_file_name): Likewise.
41269         * tests/test-ceilf1.c (ceilf): Likewise.
41270         * tests/test-ceill.c (ceill): Likewise.
41271         * tests/test-chown.c (chown): Likewise.
41272         * tests/test-dprintf-posix.c (dprintf): Likewise.
41273         * tests/test-dup2.c (dup2): Likewise.
41274         * tests/test-dup3.c (dup3): Likewise.
41275         * tests/test-duplocale.c (duplocale): Likewise.
41276         * tests/test-fchdir.c (fchdir): Likewise.
41277         * tests/test-fchownat.c (fchownat): Likewise.
41278         * tests/test-fcntl.c (fcntl): Likewise.
41279         * tests/test-fdopendir.c (fdopendir): Likewise.
41280         * tests/test-fflush.c (fflush): Likewise.
41281         * tests/test-flock.c (flock): Likewise.
41282         * tests/test-floorf1.c (floorf): Likewise.
41283         * tests/test-floorl.c (floorl): Likewise.
41284         * tests/test-fnmatch.c (fnmatch): Likewise.
41285         * tests/test-fopen.c (fopen): Likewise.
41286         * tests/test-fprintf-posix.c (fprintf): Likewise.
41287         * tests/test-freopen.c (freopen): Likewise.
41288         * tests/test-frexp.c (frexp): Likewise.
41289         * tests/test-frexpl.c (frexpl): Likewise.
41290         * tests/test-fseek.c (fseek): Likewise.
41291         * tests/test-fseeko.c (fseeko): Likewise.
41292         * tests/test-fstatat.c (fstatat): Likewise.
41293         * tests/test-fsync.c (fsync): Likewise.
41294         * tests/test-ftell.c (ftell): Likewise.
41295         * tests/test-ftello.c (ftello): Likewise.
41296         * tests/test-futimens.c (futimens): Likewise.
41297         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
41298         (gai_strerror): Likewise.
41299         * tests/test-getcwd.c (getcwd): Likewise.
41300         * tests/test-getdelim.c (getdelim): Likewise.
41301         * tests/test-getdtablesize.c (getdtablesize): Likewise.
41302         * tests/test-getgroups.c (getgroups): Likewise.
41303         * tests/test-gethostname.c (gethostname): Likewise.
41304         * tests/test-getline.c (getline): Likewise.
41305         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
41306         Likewise.
41307         * tests/test-gettimeofday.c (gettimeofday): Likewise.
41308         * tests/test-glob.c (glob, globfree): Likewise.
41309         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
41310         * tests/test-inet_ntop.c (inet_ntop): Likewise.
41311         * tests/test-inet_pton.c (inet_pton): Likewise.
41312         * tests/test-isblank.c (isblank): Likewise.
41313         * tests/test-lchown.c (lchown): Likewise.
41314         * tests/test-ldexpl.c (ldexpl): Likewise.
41315         * tests/test-link.c (link): Likewise.
41316         * tests/test-linkat.c (linkat): Likewise.
41317         * tests/test-lseek.c (lseek): Likewise.
41318         * tests/test-lstat.c (lstat): Likewise.
41319         * tests/test-mbrtowc.c (mbrtowc): Likewise.
41320         * tests/test-mbsinit.c (mbsinit): Likewise.
41321         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
41322         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
41323         * tests/test-memchr.c (memchr): Likewise.
41324         * tests/test-memcmp.c (memcmp): Likewise.
41325         * tests/test-memmem.c (memmem): Likewise.
41326         * tests/test-memrchr.c (memrchr): Likewise.
41327         * tests/test-mkdir.c (mkdir): Likewise.
41328         * tests/test-mkdirat.c (mkdirat): Likewise.
41329         * tests/test-mkfifo.c (mkfifo): Likewise.
41330         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
41331         * tests/test-mknod.c (mknod): Likewise.
41332         * tests/test-nanosleep.c (nanosleep): Likewise.
41333         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
41334         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
41335         Likewise.
41336         * tests/test-open.c (open): Likewise.
41337         * tests/test-openat.c (openat): Likewise.
41338         * tests/test-perror.c (perror): Likewise.
41339         * tests/test-pipe2.c (pipe2): Likewise.
41340         * tests/test-poll.c (poll): Likewise.
41341         * tests/test-popen.c (popen, pclose): Likewise.
41342         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
41343         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
41344         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
41345         (posix_spawn_file_actions_destroy)
41346         (posix_spawn_file_actions_addclose)
41347         (posix_spawn_file_actions_addopen)
41348         (posix_spawn_file_actions_adddup2): Likewise.
41349         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
41350         * tests/test-pread.c (pread): Likewise.
41351         * tests/test-printf-posix.c (printf): Likewise.
41352         * tests/test-pty.c (openpty, forkpty): Likewise.
41353         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
41354         (random_r): Likewise.
41355         * tests/test-rawmemchr.c (rawmemchr): Likewise.
41356         * tests/test-readlink.c (readlink): Likewise.
41357         * tests/test-remove.c (remove): Likewise.
41358         * tests/test-rename.c (rename): Likewise.
41359         * tests/test-renameat.c (renameat): Likewise.
41360         * tests/test-rmdir.c (rmdir): Likewise.
41361         * tests/test-round1.c (round): Likewise.
41362         * tests/test-roundf1.c (roundf): Likewise.
41363         * tests/test-roundl.c (roundl): Likewise.
41364         * tests/test-setenv.c (setenv): Likewise.
41365         * tests/test-sigaction.c (sigaction): Likewise.
41366         * tests/test-sleep.c (sleep): Likewise.
41367         * tests/test-snprintf.c (snprintf): Likewise.
41368         * tests/test-sprintf-posix.c (sprintf): Likewise.
41369         * tests/test-stat.c (stat): Likewise.
41370         * tests/test-stpncpy.c (stpncpy): Likewise.
41371         * tests/test-strcasestr.c (strcasestr): Likewise.
41372         * tests/test-strchrnul.c (strchrnul): Likewise.
41373         * tests/test-strerror.c (strerror): Likewise.
41374         * tests/test-strsignal.c (strsignal): Likewise.
41375         * tests/test-strstr.c (strstr): Likewise.
41376         * tests/test-strtod.c (strtod): Likewise.
41377         * tests/test-strverscmp.c (strverscmp): Likewise.
41378         * tests/test-symlink.c (symlink): Likewise.
41379         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
41380         * tests/test-times.c (times): Likewise.
41381         * tests/test-trunc1.c (trunc): Likewise.
41382         * tests/test-truncf1.c (truncf): Likewise.
41383         * tests/test-truncl.c (truncl): Likewise.
41384         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
41385         Likewise.
41386         * tests/test-uname.c (uname): Likewise.
41387         * tests/test-unlink.c (unlink): Likewise.
41388         * tests/test-unlinkat.c (unlinkat): Likewise.
41389         * tests/test-unsetenv.c (unsetenv): Likewise.
41390         * tests/test-usleep.c (usleep): Likewise.
41391         * tests/test-utimensat.c (utimensat): Likewise.
41392         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
41393         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
41394         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
41395         * tests/test-vprintf-posix.c (vprintf): Likewise.
41396         * tests/test-vsnprintf.c (vsnprintf): Likewise.
41397         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
41398         * tests/test-wcrtomb.c (wcrtomb): Likewise.
41399         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
41400         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
41401         * tests/test-wcwidth.c (wcwidth): Likewise.
41402
41403         build: pull in conditional headers during GNULIB_POSIXCHECK
41404         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
41405         definitions from any conditionally-included headers.
41406         * lib/stdlib.in.h (includes): Likewise.
41407         * lib/unistd.in.h (includes): Likewise.
41408
41409 2009-12-24  Bruno Haible  <bruno@clisp.org>
41410
41411         * tests/test-argv-iter.c: Include header file being tested immediately
41412         after config.h.
41413         * tests/test-base64.c: Likewise.
41414         * tests/test-flock.c: Likewise.
41415         * tests/test-fsync.c: Likewise.
41416         * tests/test-getdate.c: Likewise.
41417         * tests/test-getndelim2.c: Likewise.
41418         * tests/test-isfinite.c: Likewise.
41419         * tests/test-isinf.c: Likewise.
41420         * tests/test-strerror.c: Likewise.
41421         * tests/test-strsignal.c: Likewise.
41422
41423 2009-12-23  Eric Blake  <ebb9@byu.net>
41424
41425         unistd: work around cygwin bug
41426         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
41427         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
41428         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41429
41430 2009-12-23  Bruno Haible  <bruno@clisp.org>
41431
41432         localename: More tests.
41433         * tests/test-localename.c (SIZEOF): New macro.
41434         (categories): New variable.
41435         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
41436         test_locale_name_default): Add test w.r.t. thread locale.
41437         (test_locale_name_thread): New function.
41438         (main): Invoke it.
41439
41440         localename: Make aware of thread locale.
41441         * lib/localename.h (gl_locale_name_thread): New declaration.
41442         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
41443         behaviour with respect to thread locale.
41444         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
41445         <langinfo.h>, glthread/lock.h.
41446         (SIZE_BITS): New macro.
41447         (string_hash): New function.
41448         (struct hash_node): New type.
41449         (HASH_TABLE_SIZE): New macro.
41450         (struniq_hash_table, struniq_lock): New variables.
41451         (struniq): New function.
41452         (gl_locale_name_thread): New function.
41453         (gl_locale_name): Invoke it.
41454         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
41455         * modules/localename (Depends-on): Add lock.
41456         Reported by Mike Gran <spk121@yahoo.com>.
41457
41458 2009-12-23  Eric Blake  <ebb9@byu.net>
41459
41460         va-args: new module
41461         * modules/va-args: New file.
41462         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
41463         * MODULES.html.sh (Core language properties): Mention it.
41464
41465         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
41466         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
41467         named alias for __attribute__((__unused__)).
41468         * lib/chown.c: Update client.
41469         * lib/fchmodat.c: Likewise.
41470         * lib/fts.c: Likewise.
41471         * lib/getdate.y: Likewise.
41472         * lib/getgroups.c: Likewise.
41473         * lib/getopt.c: Likewise.
41474         * lib/getugroups.c: Likewise.
41475         * lib/mkdir.c: Likewise.
41476         * lib/mkfifo.c: Likewise.
41477         * lib/mkfifoat.c: Likewise.
41478         * lib/mknod.c: Likewise.
41479         * lib/mknodat.c: Likewise.
41480         * lib/readlink.c: Likewise.
41481         * lib/se-context.in.h: Likewise.
41482         * lib/se-selinux.in.h: Likewise.
41483         * lib/sockets.c: Likewise.
41484         * lib/symlink.c: Likewise.
41485         * lib/symlinkat.c: Likewise.
41486         * lib/unicodeio.c: Likewise.
41487         * lib/unistr.h: Likewise.
41488         * tests/test-areadlink.c: Likewise.
41489         * tests/test-areadlinkat.c: Likewise.
41490         * tests/test-filenamecat.c: Likewise.
41491         * tests/test-fseeko.c: Likewise.
41492         * tests/test-ftello.c: Likewise.
41493         * tests/test-getdate.c: Likewise.
41494         * tests/test-getgroups.c: Likewise.
41495         * tests/test-gethostname.c: Likewise.
41496         * tests/test-quotearg.c: Likewise.
41497         * tests/test-version-etc.c: Likewise.
41498         * tests/test-xalloc-die.c: Likewise.
41499         * tests/test-xfprintf-posix.c: Likewise.
41500         * tests/test-xprintf-posix.c: Likewise.
41501         * tests/test-xvasprintf.c: Likewise.
41502
41503         tests: avoid compiler warnings
41504         * tests/test-fcntl.c (main): Delete unused parameters.
41505         * tests/test-freopen-safer.c (main): Likewise.
41506         * tests/test-xalloc-die.c (main): Mark unused parameters.
41507         * tests/test-fseeko.c (main): Likewise.
41508         * tests/test-ftello.c (main): Likewise.
41509         * tests/test-nanosleep.c (main): Avoid declaration warning.
41510         * tests/test-sleep.c (main): Likewise.
41511         * tests/test-unsetenv.c (main): Silence warning about string
41512         literal.
41513         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
41514
41515 2009-12-23  Bruno Haible  <bruno@clisp.org>
41516
41517         * tests/test-localename.c (test_locale_name): New function, extracted
41518         from main. Also test mixed situations.
41519         (test_locale_name_posix, test_locale_name_environ,
41520         test_locale_name_default): New functions.
41521         (main): Invoke them all.
41522         * modules/localename-tests (configure.ac): Test for newlocale.
41523
41524 2009-12-23  Bruno Haible  <bruno@clisp.org>
41525
41526         unistd: Ensure getcwd gets declared before being overridden.
41527         * lib/unistd.in.h: Conditionally include <io.h>.
41528
41529 2009-12-22  Bruno Haible  <bruno@clisp.org>
41530
41531         wchar: Diagnose broken combination of glibc and gcc versions and flags.
41532         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
41533         (gl_WCHAR_H): Invoke it.
41534         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
41535         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
41536         Reported by Karl Berry <karl@freefriends.org>.
41537
41538 2009-12-22  Eric Blake  <ebb9@byu.net>
41539
41540         math, unistd: avoid redundant includes
41541         * lib/math.in.h (isnan): No need to re-include <math.h>.
41542         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
41543
41544         getsubopt: work around cygwin bug
41545         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
41546         avoid conflicting with system getsubopt.
41547         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
41548         bug.
41549
41550         getopt: synchronize from glibc
41551         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
41552         parameter order.  Adjust all callers.
41553         (_getopt_internal_r, main): Adjust quoting in error messages.
41554         Drop considerations for outdated POSIX 1003.2 error message.
41555         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
41556         callers.
41557         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
41558
41559         test-getopt: test stderr behavior
41560         * modules/getopt-posix-tests (Depends-on): Add dup2.
41561         * tests/test-getopt.c (ASSERT): Avoid stderr.
41562         (main): Move stderr to a temporary file.
41563         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
41564         Instead, add parameter to inform caller if output occurred.
41565         (test_getopt): Adjust all existing tests to expect silence, and
41566         add new tests of leading ":".
41567         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41568         glibc shortcomings with leading "-:" or "+:" in optstring.
41569         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41570         Likewise.
41571         * doc/posix-functions/getopt.texi (getopt): Likewise.
41572
41573         test-getopt: enhance test
41574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
41575         supports optind=0.
41576         * tests/test-getopt.c (OPTIND_MIN): Move...
41577         * tests/test-getopt.h (OPTIND_MIN): ...here.
41578         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
41579         Require that optind=0 works, since modern BSD supports it in
41580         addition to optreset, and since coreutils expects it.
41581         (test_getopt_long_only): New test.
41582         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
41583         glibc shortcomings with 'W;', and enforcement of optind=0.
41584         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41585         Likewise.
41586
41587 2009-12-21  Bruno Haible  <bruno@clisp.org>
41588
41589         localename: Improvements for MacOS X and Cygwin.
41590         * lib/localename.h (gl_locale_name_environ): New declaration.
41591         * lib/localename.c (gl_locale_name_environ): New function, extracted from
41592         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
41593         (gl_locale_name_posix): Invoke it.
41594         (gl_locale_name_default): Add comments. Use Windows native API also on
41595         Cygwin.
41596
41597 2009-12-21  Bruno Haible  <bruno@clisp.org>
41598
41599         Update list of Win32 locale ids.
41600         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
41601         (LANG_SAMI): Renamed from LANG_SAAMI.
41602         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
41603         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
41604         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
41605         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
41606         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
41607         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
41608         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
41609         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
41610         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
41611         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
41612         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
41613         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
41614         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
41615         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
41616         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
41617         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
41618         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
41619         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
41620         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
41621         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
41622         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
41623         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
41624         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
41625         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
41626         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
41627         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
41628         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
41629         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
41630         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
41631         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
41632         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
41633         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
41634         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
41635         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
41636         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
41637         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
41638         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
41639         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
41640         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
41641         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
41642         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
41643         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
41644         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
41645         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
41646         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
41647         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
41648         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
41649         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
41650         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
41651         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
41652         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
41653         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
41654         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
41655         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
41656         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
41657         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
41658         Add more languages and countries for Sami, Sorbian. Add more countries
41659         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
41660         for Pashto. Change country for Syriac, Tswana.
41661
41662 2009-12-21  Eric Blake  <ebb9@byu.net>
41663
41664         test-utimens: avoid spurious failure
41665         * tests/test-chown.h (nap): Factor...
41666         * tests/nap.h: ...into new file.
41667         * tests/test-lchown.h (nap): Avoid duplication.
41668         * tests/test-utimens-common.h (nap): Use shared implementation,
41669         necessary on file systems with 1-second resolution.
41670         * modules/chown-tests (Files): Include new file.
41671         * modules/fdutimensat-tests (Files): Likewise.
41672         * modules/futimens-tests (Files): Likewise.
41673         * modules/lchown-tests (Files): Likewise.
41674         * modules/openat-tests (Files): Likewise.
41675         * modules/utimens-tests (Files): Likewise.
41676         * modules/utimensat-tests (Files): Likewise.
41677
41678 2009-12-19  Eric Blake  <ebb9@byu.net>
41679
41680         futimens, utimensat: work around Linux bug
41681         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
41682         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41683         * lib/utimensat.c (rpl_utimensat): Work around it.
41684         * lib/futimens.c (rpl_futimens): Adjust comment.
41685
41686         utimens: work around Linux ctime bug
41687         * lib/utimens.c (detect_ctime_bug): New helper function.
41688         (update_timespec): Differentiate between workaround needed for
41689         this bug vs. what is needed for systems that lack utimensat.
41690         (fdutimens, lutimens): Work around bug.
41691
41692         utimens: check for ctime update
41693         * tests/test-utimens-common.h (check_ctime): Define.
41694         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
41695         * tests/test-futimens.h (test_futimens): Likewise.
41696         * tests/test-lutimens.h (test_lutimens): Likewise.
41697         * doc/posix-functions/futimens.texi (futimens): Document the bug.
41698         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41699
41700 2009-12-19  Bruno Haible  <bruno@clisp.org>
41701
41702         dprintf-posix: Check against memory leak fixed on 2009-12-15.
41703         * tests/test-dprintf-posix2.sh: New file.
41704         * tests/test-dprintf-posix2.c: New file.
41705         * modules/dprintf-posix-tests (Files): Add them.
41706         (configure.ac): Check for getrlimit and setrlimit.
41707         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41708
41709 2009-12-19  Bruno Haible  <bruno@clisp.org>
41710
41711         fprintf-posix: Check against memory leak fixed on 2009-12-15.
41712         * tests/test-fprintf-posix3.sh: New file.
41713         * tests/test-fprintf-posix3.c: New file.
41714         * modules/fprintf-posix-tests (Files): Add them.
41715         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
41716
41717 2009-12-19  Eric Blake  <ebb9@byu.net>
41718
41719         dirfd: fix prototype
41720         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
41721         * lib/dirfd.c (dirfd): Likewise.
41722
41723         canonicalize: reduce memory usage
41724         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
41725         allocation to size.
41726         Reported by Solar Designer <solar@openwall.com>.
41727
41728 2009-12-19  Bruno Haible  <bruno@clisp.org>
41729
41730         New module attribute 'Applicability'.
41731         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
41732         * gnulib-tool: New option --extract-applicability.
41733         (func_usage): Document it.
41734         (sed_extract_prog): Recognize it.
41735         (func_get_applicability): New function.
41736         (func_import): Generalize handling of 'link-warning' module.
41737         * modules/link-warning (Applicability): New section.
41738         * modules/arg-nonnull (Applicability): New section.
41739         Repoted by Simon Josefsson <simon@josefsson.org>.
41740
41741 2009-12-19  Bruno Haible  <bruno@clisp.org>
41742
41743         fflush: tweak
41744         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
41745         * lib/fseeko.c (rpl_fseeko): Likewise.
41746
41747 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
41748
41749         * lib/gl_list.h: Fix typo in comment.
41750
41751 2009-12-16  Eric Blake  <ebb9@byu.net>
41752
41753         fcntl: use to simplify other modules
41754         * modules/cloexec (Depends-on): Add fcntl.
41755         * modules/fchdir (Depends-on): Likewise.
41756         * modules/fd-safer-flag (Depends-on): Likewise.
41757         * modules/unistd-safer (Depends-on): Likewise.
41758         * modules/dup3 (configure.ac): Set module indicator.
41759         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
41760         missing.
41761         * lib/fchdir.c (_gl_register_dup): Fix comment.
41762         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
41763         * lib/dup-safer.c (dup_safer): Likewise.
41764         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
41765         * lib/dup3.c (dup3): Likewise.
41766         * tests/test-fchdir.c (main): Enhance test.
41767         Fixes a dup_cloexec bug reported by Ondřej Vašík.
41768
41769         fcntl: port portions of fcntl to mingw
41770         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
41771         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
41772         replacement for mingw.
41773         * modules/fcntl (Description): Update.
41774         (Depends-on): Add dup2.
41775         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
41776         * modules/fcntl-h (Makefile.am): Substitute it.
41777         * lib/fcntl.in.h (fcntl): Update declaration.
41778         (F_DUPFD, F_GETFD): New macros, when needed.
41779         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41780         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
41781         * tests/test-fcntl.c (check_flags, main): Enhance test for items
41782         we now guarantee.
41783
41784         fcntl: work around cygwin bug in F_DUPFD
41785         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
41786         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
41787         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
41788         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
41789         * doc/posix-functions/fcntl.texi (fcntl): Document it.
41790
41791         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
41792         * modules/fcntl (Files): List new files.
41793         (configure.ac): Run a test.
41794         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
41795         * lib/fcntl.c (rpl_fcntl): Likewise.
41796         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
41797         (gl_FCNTL_H): Always replace fcntl.h.
41798         * modules/fcntl-h (Makefile.am): Substitute witnesses.
41799         * lib/fcntl.in.h (fcntl): Declare replacement.
41800         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
41801         needed, plus a witness.
41802         * doc/posix-functions/fcntl.texi (fcntl): Document this.
41803         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41804         * tests/test-fcntl.c: New file.
41805         * modules/fcntl-tests: Likewise.
41806
41807         binary-io: avoid potential compilation warning
41808         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
41809         directives.
41810
41811         fflush: avoid compilation error on NetBSD
41812         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
41813         between off_t and fpos_t, since the latter is sometimes a struct.
41814         * lib/fseeko.c (rpl_fseeko): Likewise.
41815         Reported by Alexander Nasonov <alnsn@yandex.ru>.
41816
41817 2009-12-15  Eric Blake  <ebb9@byu.net>
41818
41819         fcntl-h, stdio, sys_ioctl: fix declarations
41820         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
41821         function must not take arguments.
41822         * lib/sys_ioctl.in.h (ioctl): Likewise.
41823         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
41824         (open): Add a link warning.
41825
41826 2009-12-15  Jim Meyering  <meyering@redhat.com>
41827
41828         areadlink, areadlink-with-size: relax license to LGPLv2+
41829         * modules/areadlink (License): Relax to LGPLv2+.
41830         * modules/areadlink-with-size (License): Likewise.
41831
41832 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41833             Bruno Haible  <bruno@clisp.org>
41834
41835         *printf: Fix memory leak.
41836         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41837         * lib/vfprintf.c (vfprintf): Likewise.
41838         * lib/dprintf.c (dprintf): Likewise.
41839         * lib/vdprintf.c (vdprintf): Likewise.
41840
41841 2009-12-14  Eric Blake  <ebb9@byu.net>
41842
41843         accept4: adjust module dependencies
41844         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41845
41846         utimens: one more try at avoiding compiler warning
41847         * lib/utimens.c (lutimens): Lower scope of result.
41848
41849 2009-12-13  Bruno Haible  <bruno@clisp.org>
41850
41851         Move the malloc checking from module 'list' to new module 'xlist'.
41852         * modules/xlist: New file.
41853         * lib/gl_xlist.h: New file.
41854         * lib/gl_xlist.c: New file.
41855         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41856         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41857         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41858         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41859         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41860         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41861         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41862         gl_sortedlist_nx_add): New declarations.
41863         (struct gl_list_implementation): Rename and change methods accordingly.
41864         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41865         (gl_list_nx_create): Renamed from gl_list_create.
41866         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41867         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41868         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41869         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41870         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41871         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41872         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41873         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41874         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41875         gl_list_create_empty.
41876         (gl_list_nx_create): Renamed from gl_list_create.
41877         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41878         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41879         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41880         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41881         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41882         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41883         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41884         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41885         * lib/gl_array_list.c: Don't include xalloc.h.
41886         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41887         NULL upon out-of-memory.
41888         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41889         out-of-memory.
41890         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41891         Change return type to 'int'.
41892         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41893         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41894         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41895         upon out-of-memory.
41896         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41897         upon out-of-memory.
41898         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41899         upon out-of-memory.
41900         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41901         upon out-of-memory.
41902         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41903         out-of-memory.
41904         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41905         Update.
41906         (gl_array_list_implementation): Update.
41907         * lib/gl_carray_list.c: Don't include xalloc.h.
41908         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41909         Return NULL upon out-of-memory.
41910         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41911         out-of-memory.
41912         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41913         Change return type to 'int'.
41914         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41915         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41916         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41917         upon out-of-memory.
41918         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41919         upon out-of-memory.
41920         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41921         out-of-memory.
41922         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41923         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41924         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41925         Update.
41926         (gl_carray_list_implementation): Update.
41927         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41928         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41929         gl_linked_create_empty. Return NULL upon out-of-memory.
41930         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41931         out-of-memory.
41932         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41933         Change return type to 'int'. Return -1 upon out-of-memory.
41934         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41935         out-of-memory.
41936         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41937         upon out-of-memory.
41938         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41939         upon out-of-memory.
41940         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41941         NULL upon out-of-memory.
41942         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41943         upon out-of-memory.
41944         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41945         out-of-memory.
41946         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41947         Update.
41948         * lib/gl_linked_list.c: Don't include xalloc.h.
41949         (gl_linked_list_implementation): Update.
41950         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41951         (add_to_bucket): Change return type to 'int'.
41952         (gl_linkedhash_list_implementation): Update.
41953         * lib/gl_anytree_list1.h (free_subtree): New function.
41954         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41955         gl_tree_create_empty. Return NULL upon out-of-memory.
41956         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41957         Change return type to 'int'. Return -1 upon out-of-memory.
41958         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41959         out-of-memory.
41960         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41961         (gl_tree_remove_node): New function, moved here from
41962         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41963         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41964         Update.
41965         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41966         malloc, not xmalloc. Return NULL upon out-of-memory.
41967         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41968         out-of-memory.
41969         (gl_tree_remove_node_from_tree): New function, extracted from
41970         gl_tree_remove_node.
41971         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41972         upon out-of-memory.
41973         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41974         out-of-memory.
41975         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41976         upon out-of-memory.
41977         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41978         upon out-of-memory.
41979         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41980         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41981         not xmalloc. Return NULL upon out-of-memory.
41982         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41983         out-of-memory.
41984         (gl_tree_remove_node_from_tree): New function, extracted from
41985         gl_tree_remove_node.
41986         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41987         upon out-of-memory.
41988         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41989         out-of-memory.
41990         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41991         upon out-of-memory.
41992         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41993         upon out-of-memory.
41994         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41995         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41996         gl_anytree_list1.h before gl_anyavltree_list2.h.
41997         (gl_avltree_list_implementation): Update.
41998         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41999         gl_anytree_list1.h before gl_anyavltree_list2.h.
42000         (gl_rbtree_list_implementation): Update.
42001         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42002         Change return type to 'int'. Return -1 upon out-of-memory. Use
42003         __builtin_expect.
42004         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42005         (gl_avltreehash_list_implementation): Update.
42006         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42007         (gl_rbtreehash_list_implementation): Update.
42008         * modules/array-list (Depends-on): Remove xalloc.
42009         * modules/carray-list (Depends-on): Likewise.
42010         * modules/linked-list (Depends-on): Likewise.
42011         * modules/linkedhash-list (Depends-on): Likewise.
42012         * modules/avltree-list (Depends-on): Likewise.
42013         * modules/rbtree-list (Depends-on): Likewise.
42014         * modules/avltreehash-list (Depends-on): Likewise.
42015         * modules/rbtreehash-list (Depends-on): Likewise.
42016
42017         * modules/xsublist: New file.
42018         * lib/gl_xsublist.h: New file.
42019         * lib/gl_xsublist.c: New file.
42020         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42021         (gl_sublist_nx_create): New declaration.
42022         * lib/gl_sublist.c: Don't include xalloc.h.
42023         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42024         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42025         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42026         Change return type to 'int'. Return -1 upon out-of-memory.
42027         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42028         upon out-of-memory.
42029         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42030         NULL upon out-of-memory.
42031         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42032         upon out-of-memory.
42033         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42034         NULL upon out-of-memory.
42035         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42036         NULL upon out-of-memory.
42037         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42038         upon out-of-memory.
42039         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42040         (gl_sublist_list_implementation): Update.
42041         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42042         upon out-of-memory.
42043         * modules/sublist (Depends-on): Remove xalloc.
42044
42045         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42046         * tests/test-carray_list.c: Likewise.
42047         * tests/test-linked_list.c: Likewise.
42048         * tests/test-linkedhash_list.c: Likewise.
42049         * tests/test-avltree_list.c: Likewise.
42050         * tests/test-rbtree_list.c: Likewise.
42051         * tests/test-avltreehash_list.c: Likewise.
42052         * tests/test-rbtreehash_list.c: Likewise.
42053         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42054         * modules/carray-list-tests (Makefile.am): Likewise.
42055         * modules/linked-list-tests (Makefile.am): Likewise.
42056         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42057         * modules/avltree-list-tests (Makefile.am): Likewise.
42058         * modules/rbtree-list-tests (Makefile.am): Likewise.
42059         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42060         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42061
42062         * NEWS: Mention the changes.
42063
42064         * lib/clean-temp.c: Include gl_xlist.h.
42065         * modules/clean-temp (Depends-on): Add xlist.
42066
42067         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
42068         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
42069
42070         * tests/test-array_oset.c: Include gl_xlist.h.
42071         * modules/array-oset-tests (Depends-on): Add xlist.
42072
42073         Reported by José E. Marchesi <jemarch@gnu.org>.
42074
42075 2009-12-13  Bruno Haible  <bruno@clisp.org>
42076
42077         Move the malloc checking from module 'oset' to new module 'xoset'.
42078         * modules/xoset: New file.
42079         * lib/gl_xoset.h: New file.
42080         * lib/gl_xoset.c: New file.
42081         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
42082         declarations.
42083         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
42084         (struct gl_oset_implementation): Rename and change methods accordingly.
42085         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
42086         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42087         'int'. Mark as __warn_unused_result__.
42088         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
42089         gl_oset_create_empty.
42090         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
42091         'int'.
42092         * lib/gl_array_oset.c: Don't include xalloc.h.
42093         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
42094         malloc, not xmalloc.
42095         (grow): Change return type to 'int'. Don't call xalloc_die.
42096         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
42097         to 'int'.
42098         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
42099         'int'.
42100         (gl_array_oset_implementation): Update.
42101         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
42102         gl_tree_create_empty.
42103         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
42104         'int'.
42105         * lib/gl_avltree_oset.c: Don't include xalloc.h.
42106         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42107         xmalloc.
42108         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42109         not xmalloc.
42110         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42111         xmalloc.
42112         (gl_avltree_oset_implementation): Update.
42113         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
42114         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
42115         xmalloc.
42116         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
42117         not xmalloc.
42118         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
42119         xmalloc.
42120         (gl_rbtree_oset_implementation): Update.
42121         * modules/array-oset (Depends-on): Remove xalloc.
42122         * modules/avltree-oset (Depends-on): Likewise.
42123         * modules/rbtree-oset (Depends-on): Likewise.
42124         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
42125         * tests/test-avltree_oset.c: Likewise.
42126         * tests/test-rbtree_oset.c: Likewise.
42127         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42128         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
42129         * modules/rbtree-oset-tests (Makefile.am): Likewise.
42130         * NEWS: Mention the change.
42131
42132 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
42133
42134         maint.mk: allow a project to override release-prep commands
42135         * top/maint.mk (alpha, beta, stable): Move release-preparatory
42136         commands into a new rule.
42137         (release-prep): New rule.
42138         (release-prep-hook): New overridable variable.
42139
42140 2009-12-13  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
42143
42144 2009-12-13  Jim Meyering  <meyering@redhat.com>
42145
42146         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
42147         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
42148
42149 2009-12-12  Bruno Haible  <bruno@clisp.org>
42150
42151         duplocale: Tweak.
42152         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
42153
42154 2009-12-12  Karl Berry  <karl@gnu.org>
42155
42156         * config/srclist.txt (strtoll.c): tab changes, no more sync.
42157
42158 2009-12-12  Bruno Haible  <bruno@clisp.org>
42159
42160         * m4/po.m4: Undo incorrect untabification.
42161
42162 2009-12-12  Bruno Haible  <bruno@clisp.org>
42163
42164         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
42165         * modules/c-strtod (Depends-on): Add locale.
42166         * modules/c-strtold (Depends-on): Likewise.
42167
42168 2009-12-12  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
42171
42172 2009-12-11  Eric Blake  <ebb9@byu.net>
42173
42174         setenv: relax requirement in light of POSIX ruling
42175         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
42176         not NULL.
42177         * tests/test-setenv.c (main): Relax test.
42178         * tests/test-unsetenv.c (main): Likewise.
42179         * doc/posix-functions/setenv.texi (setenv): Document this.
42180         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42181
42182 2009-12-11  Bruno Haible  <bruno@clisp.org>
42183
42184         New module 'fd-safer-flag'.
42185         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
42186         * lib/dup-safer.c (dup_safer_flag): Remove function.
42187         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
42188         * lib/fd-safer.c (fd_safer_flag): Remove function.
42189         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
42190         * modules/cloexec (configure.ac): Drop indicator macro.
42191         * modules/fd-safer-flag: New file.
42192         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
42193         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
42194         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
42195
42196 2009-12-11  Bruno Haible  <bruno@clisp.org>
42197
42198         Tests for module 'nl_langinfo'.
42199         * modules/nl_langinfo-tests: New file.
42200         * tests/test-nl_langinfo.sh: New file.
42201         * tests/test-nl_langinfo.c: New file.
42202
42203         New module 'nl_langinfo'.
42204         * lib/nl_langinfo.c: New file.
42205         * m4/nl_langinfo.m4: New file.
42206         * modules/nl_langinfo: New file.
42207         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
42208
42209 2009-12-11  Bruno Haible  <bruno@clisp.org>
42210
42211         Tests for module 'langinfo'.
42212         * modules/langinfo-tests: New file.
42213         * tests/test-langinfo.c: New file.
42214
42215         New module 'langinfo'.
42216         * lib/langinfo.in.h: New file.
42217         * m4/langinfo_h.m4: New file.
42218         * modules/langinfo: New file.
42219         * doc/posix-headers/langinfo.texi: Mention the new module.
42220
42221 2009-12-11  Bruno Haible  <bruno@clisp.org>
42222
42223         * lib/config.charset: Untabify.
42224
42225 2009-12-11  Bruno Haible  <bruno@clisp.org>
42226
42227         * modules/unistd-safer (configure.ac): Drop indicator macro.
42228
42229 2009-12-11  Bruno Haible  <bruno@clisp.org>
42230
42231         Move pipe2-safer code to its own file.
42232         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
42233         * lib/pipe-safer.c (pipe2_safer): Remove function.
42234         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
42235         (Makefile.am): Add it to lib_SOURCES.
42236
42237 2009-12-10  Bruno Haible  <bruno@clisp.org>
42238
42239         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
42240
42241 2009-12-10  Bruno Haible  <bruno@clisp.org>
42242
42243         Declare which arguments expect non-NULL values, for GCC and clang.
42244         * build-aux/arg-nonnull.h: New file.
42245         * modules/arg-nonnull: New file.
42246         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
42247         (inet_ntop, inet_pton): Use it.
42248         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
42249         (closedir, dirfd, opendir, scandir, alphasort): Use it.
42250         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
42251         (open, openat): Use it.
42252         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
42253         (fnmatch): Use it.
42254         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
42255         (getopt, getopt_long, getopt_long_only): Use it.
42256         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
42257         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
42258         Use it.
42259         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
42260         (iconv_open): Use it.
42261         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
42262         (strtoimax, strtoumax): Use it.
42263         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
42264         (duplocale): Use it.
42265         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
42266         (frexp, frexpl): Use it.
42267         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
42268         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
42269         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
42270         (tsearch, tfind, tdelete, twalk): Use it.
42271         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
42272         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
42273         sigpending): Use it.
42274         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
42275         (posix_spawn, posix_spawnp, posix_spawnattr_init,
42276         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
42277         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
42278         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
42279         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
42280         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
42281         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
42282         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
42283         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
42284         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
42285         Use it.
42286         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
42287         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
42288         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
42289         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
42290         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
42291         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
42292         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
42293         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
42294         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
42295         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
42296         strtoull, unsetenv): Use it.
42297         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
42298         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
42299         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
42300         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
42301         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
42302         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
42303         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
42304         (strcasecmp, strncasecmp): Use it.
42305         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
42306         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
42307         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
42308         rpl_setsockopt): Use it.
42309         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
42310         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
42311         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
42312         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
42313         (gettimeofday): Use it.
42314         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
42315         (times): Use it.
42316         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
42317         (uname): Use it.
42318         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
42319         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
42320         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
42321         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
42322         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
42323         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
42324         unlinkat, write): Use it.
42325         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
42326         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
42327         * lib/argv-iter.h: Include arg-nonnull.h.
42328         (_ATTRIBUTE_NONNULL_): Remove macro.
42329         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
42330         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
42331         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
42332         optimization.
42333         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
42334         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
42335         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
42336         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
42337         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
42338         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
42339         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
42340         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
42341         * modules/arpa_inet (Depends-on): Add arg-nonnull.
42342         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
42343         * modules/dirent (Depends-on): Add arg-nonnull.
42344         (Makefile.am): Insert arg-nonnull.h into dirent.h.
42345         * modules/fcntl-h (Depends-on): Add arg-nonnull.
42346         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
42347         * modules/fnmatch (Depends-on): Add arg-nonnull.
42348         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
42349         * modules/getopt-posix (Depends-on): Add arg-nonnull.
42350         (Makefile.am): Insert arg-nonnull.h into getopt.h.
42351         * modules/glob (Depends-on): Add arg-nonnull.
42352         (Makefile.am): Insert arg-nonnull.h into glob.h.
42353         * modules/iconv_open (Depends-on): Add arg-nonnull.
42354         (Makefile.am): Insert arg-nonnull.h into iconv.h.
42355         * modules/inttypes (Depends-on): Add arg-nonnull.
42356         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
42357         * modules/locale (Depends-on): Add arg-nonnull.
42358         (Makefile.am): Insert arg-nonnull.h into locale.h.
42359         * modules/math (Depends-on): Add arg-nonnull.
42360         (Makefile.am): Insert arg-nonnull.h into math.h.
42361         * modules/netdb (Depends-on): Add arg-nonnull.
42362         (Makefile.am): Insert arg-nonnull.h into netdb.h.
42363         * modules/search (Depends-on): Add arg-nonnull.
42364         (Makefile.am): Insert arg-nonnull.h into search.h.
42365         * modules/signal (Depends-on): Add arg-nonnull.
42366         (Makefile.am): Insert arg-nonnull.h into signal.h.
42367         * modules/spawn (Depends-on): Add arg-nonnull.
42368         (Makefile.am): Insert arg-nonnull.h into spawn.h.
42369         * modules/stdio (Depends-on): Add arg-nonnull.
42370         (Makefile.am): Insert arg-nonnull.h into stdio.h.
42371         * modules/stdlib (Depends-on): Add arg-nonnull.
42372         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
42373         * modules/string (Depends-on): Add arg-nonnull.
42374         (Makefile.am): Insert arg-nonnull.h into string.h.
42375         * modules/strings (Depends-on): Add arg-nonnull.
42376         (Makefile.am): Insert arg-nonnull.h into strings.h.
42377         * modules/sys_socket (Depends-on): Add arg-nonnull.
42378         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
42379         * modules/sys_stat (Depends-on): Add arg-nonnull.
42380         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
42381         * modules/sys_time (Depends-on): Add arg-nonnull.
42382         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
42383         * modules/sys_times (Depends-on): Add arg-nonnull.
42384         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
42385         * modules/sys_utsname (Depends-on): Add arg-nonnull.
42386         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
42387         * modules/time (Depends-on): Add arg-nonnull.
42388         (Makefile.am): Insert arg-nonnull.h into time.h.
42389         * modules/unistd (Depends-on): Add arg-nonnull.
42390         (Makefile.am): Insert arg-nonnull.h into unistd.h.
42391         * modules/wchar (Depends-on): Add arg-nonnull.
42392         (Makefile.am): Insert arg-nonnull.h into wchar.h.
42393         * modules/argv-iter (Depends-on): Add arg-nonnull.
42394         * tests/test-canonicalize.c (null_ptr): New function.
42395         (main): Use it.
42396         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
42397         (main): Use it.
42398         * tests/test-memmem.c (null_ptr): New function.
42399         (main): Use it.
42400         Reported by Jim Meyering.
42401
42402 2009-12-10  Bruno Haible  <bruno@clisp.org>
42403
42404         Use spaces for indentation, not tabs.
42405         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
42406         * m4/*.m4: Untabify.
42407         * build-aux/*.h: Untabify.
42408         * tests/**/*.[hc]: Untabify.
42409         * README: New section "Indent with spaces, not TABs", based on
42410         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
42411         * NEWS: Mention the change.
42412
42413 2009-12-10  Bruno Haible  <bruno@clisp.org>
42414
42415         pty test: Fix link error.
42416         * modules/pty-tests (Makefile.am): Add the default LDADD value to
42417         test_pty_LDADD.
42418
42419 2009-12-07  Simon Josefsson  <simon@josefsson.org>
42420
42421         * modules/pty: New file.
42422         * modules/pty-tests: New file.
42423         * m4/pty.m4: New file.
42424         * tests/test-pty.c: New file.
42425         * doc/glibc-headers/pty.texi: Modified.
42426         * doc/glibc-functions/forkpty.texi: Modified.
42427         * doc/glibc-functions/openpty.texi: Modified.
42428
42429 2009-12-10  Bruno Haible  <bruno@clisp.org>
42430
42431         Avoid syntax error in C++ mode.
42432         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
42433
42434 2009-12-10  Bruno Haible  <bruno@clisp.org>
42435
42436         Use sed with option -e.
42437         * gnulib-tool (func_version, func_emit_copyright_notice,
42438         func_emit_initmacro_end, func_import, func_create_testdir): Pass
42439         option -e to sed.
42440         * modules/link-warning (Makefile.am): Likewise.
42441
42442 2009-12-10  Jim Meyering  <meyering@redhat.com>
42443
42444         mgetgroups: do not write bytes beyond end of malloc'd buffer
42445         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
42446         username, we call getgroups with a one-element-shorter buffer,
42447         but still told it the length was original, max_n_groups.
42448
42449 2009-12-09  Eric Blake  <ebb9@byu.net>
42450
42451         cloexec: relax license
42452         * modules/cloexec (Maintainer): Add myself.
42453         (License): Use LGPL, not GPL.
42454
42455         link-warning: optimize generation
42456         * modules/link-warning (Makefile.am): Reduce process usage.
42457
42458 2009-12-09  Bruno Haible  <bruno@clisp.org>
42459
42460         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
42461         workaround was added on 2009-11-17.
42462
42463 2009-12-09  Jim Meyering  <meyering@redhat.com>
42464             Bruno Haible  <bruno@clisp.org>
42465
42466         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
42467         * modules/link-warning (Makefile.am): Make the comment-removing sed
42468         command more robust in the face of bootstrap-prepended comment lines.
42469
42470 2009-12-09  Bruno Haible  <bruno@clisp.org>
42471
42472         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
42473         most one group.
42474
42475 2009-12-09  Simon Josefsson <simon@josefsson.org>
42476             Bruno Haible  <bruno@clisp.org>
42477
42478         * build-aux/link-warning.h: Add copyright notice.
42479         * modules/link-warning (Makefile.am): Generate link-warning.h from
42480         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
42481         * NEWS: Mention change in link-warning module.
42482         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
42483         * modules/dirent (Makefile.am): Add dependency to dirent.h.
42484         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
42485         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
42486         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
42487         * modules/math (Makefile.am): Add dependency to math.h.
42488         * modules/search (Makefile.am): Add dependency to search.h.
42489         * modules/signal (Makefile.am): Add dependency to signal.h.
42490         * modules/spawn (Makefile.am): Add dependency to spawn.h.
42491         * modules/stdio (Makefile.am): Add dependency to stdio.h.
42492         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
42493         * modules/string (Makefile.am): Add dependency to string.h.
42494         * modules/strings (Makefile.am): Add dependency to strings.h.
42495         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
42496         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
42497         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
42498         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
42499         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
42500         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
42501         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
42502         * modules/unistd (Makefile.am): Add dependency to unistd.h.
42503         * modules/wchar (Makefile.am): Add dependency to wchar.h.
42504
42505 2009-12-09  Bruno Haible  <bruno@clisp.org>
42506
42507         fchdir: Optimize away rpl_fstat when possible.
42508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
42509         REPLACE_OPEN_DIRECTORY.
42510         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
42511
42512 2009-12-09  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/fchdir.c: Update comment.
42515
42516 2009-12-09  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
42519
42520 2009-12-08  Eric Blake  <ebb9@byu.net>
42521
42522         fchdir: avoid memory leak on re-registration.
42523         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
42524
42525 2009-12-08  Jim Meyering  <meyering@redhat.com>
42526
42527         init.sh: avoid Solaris 10 /bin/sh portability problem
42528         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
42529         sourced script:
42530           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
42531           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
42532           bar
42533         tests/init.sh relied on that, accepting a --set-path=DIR argument,
42534         and two tests used that idiom.
42535         * tests/init.sh: Update suggested usage comments.
42536         (path_prepend_): New function, to be used in place
42537         of the --src-path=DIR option.
42538         (setup_): Move PATH-prepending code into path_prepend_.
42539         * tests/test-pread.sh: Adapt to new usage.
42540         * tests/test-xalloc-die.sh: Likewise.
42541
42542 2009-12-08  Simon Josefsson  <simon@josefsson.org>
42543
42544         * doc/gnulib.texi (Glibc pty.h): Add.
42545         * doc/glibc-functions/forkpty.texi: Add.
42546         * doc/glibc-functions/openpty.texi: Add.
42547         Suggested by Bruno Haible.
42548
42549 2009-12-08  Eric Blake  <ebb9@byu.net>
42550
42551         fchdir: fix logic bugs
42552         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
42553         * tests/test-fchdir.c (main): Enhance test.
42554         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
42555         is in use.
42556
42557         dup2: fix logic bugs
42558         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
42559         REPLACE_DUP2 to decide when rpl_dup2 is needed.
42560         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
42561         exists.
42562         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
42563
42564 2009-12-07  Eric Blake  <ebb9@byu.net>
42565
42566         unlink: fix m4 detection
42567         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
42568
42569         unistd-safer: add unit test
42570         * modules/unistd-safer-tests: New file.
42571         * tests/test-dup-safer.c: Likewise.
42572         * tests/test-cloexec.c (setmode): Avoid compiler warning.
42573         * tests/test-dup2.c (setmode): Likewise.
42574         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
42575
42576         cloexec: preserve text vs. binary across dup_cloexec
42577         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
42578         mode.
42579         * modules/dup2-tests (Depends-on): Add binary-io.
42580         * modules/cloexec-tests (Depends-on): Likewise.
42581         * tests/test-dup2.c (setmode, is_mode): New helpers.
42582         (main): Add tests that translation mode is preserved.
42583         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
42584         Reported by Bruno Haible.
42585
42586         mgetgroups: reduce duplicate listings
42587         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
42588         resulting array.
42589         * tests/test-chown.h (test_chown): Simplify client.
42590         * tests/test-lchown.h (test_lchown): Likewise.
42591
42592 2009-12-06  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
42595         value.
42596
42597 2009-12-06  Bruno Haible  <bruno@clisp.org>
42598
42599         * lib/progname.c: Include stdio.h, stdlib.h.
42600         (set_program_name): Reject a NULL argument.
42601
42602 2009-12-05  Eric Blake  <ebb9@byu.net>
42603
42604         pipe2-safer: new module
42605         * modules/pipe2-safer: New file.
42606         * lib/unistd-safer.h (pipe2_safer): New prototype.
42607         * lib/unistd--.h (pipe2): New wrapper.
42608         * lib/pipe-safer.c (pipe2_safer): New function.
42609         * modules/pipe (Depends-on): Add pipe2-safer.
42610         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
42611
42612         stdlib-safer: preserve cloexec flag for mkostemp[s]
42613         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
42614         fd_safer_flag.
42615
42616         unistd-safer: allow preservation of cloexec status via flag
42617         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
42618         prototypes.
42619         * lib/dup-safer.c (dup_safer_flag): New function.
42620         * lib/fd-safer.c (fd_safer_flag): Likewise.
42621         * modules/cloexec (configure.ac): Set witness.
42622
42623         test-dup2: enhance test
42624         * modules/dup2-tests (Depends-on): Add cloexec.
42625         * tests/test-dup2.c (main): Enhance test.
42626
42627         cloexec: add dup_cloexec
42628         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
42629         header and comments.
42630         * lib/cloexec.c (set_cloexec_flag): Add comments.
42631         (dup_cloexec): New function, with mingw implementation borrowed
42632         from...
42633         * lib/w32spawn.h (dup_noinherit): ...here.
42634         * modules/execute (Depends-on): Add cloexec.
42635         * modules/pipe (Depends-on): Likewise.
42636         * modules/cloexec (Depends-on): Add dup2.
42637         * modules/cloexec-tests (Files): New file.
42638         * tests/test-cloexec.c: Likewise.
42639
42640         test-xalloc-die: fix test for mingw
42641         * modules/xalloc-die-tests (Files): Add tests/init.sh.
42642         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
42643         directory and .exe suffix off argv[0] output.
42644
42645         test-fseeko: fix test for mingw
42646         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
42647         than undefining fseek, so test will pass on mingw.
42648
42649 2009-12-05  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/progname.h (set_program_name): Clarify specification.
42652         * lib/progname.c (set_program_name): Likewise.
42653         Reported by Jim Meyering.
42654
42655 2009-12-05  Jim Meyering  <meyering@redhat.com>
42656
42657         maint.mk: backslash-escape parens in default regexp
42658         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
42659         backslash-escape the literal parentheses.
42660
42661         maint.mk: news-date-check: use grep -E
42662         * top/maint.mk (today): Define a Make variable, not a...
42663         (news-date-check): ...shell variable.
42664         (news-date-regexp): Use the Make variable.
42665         Use grep's -E option.  Change the failing diagnostic to mention
42666         the variable, $(news-date-regexp).
42667
42668 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
42669
42670         maintainer-makefile: allow customization of NEWS entry format
42671         * top/maint.mk (news-date-regexp): New overridable variable.
42672         (news-date-check): Use it.
42673
42674 2009-12-04  Eric Blake  <ebb9@byu.net>
42675
42676         mgetgroups: add xgetgroups, and avoid ENOSYS failures
42677         * lib/mgetgroups.h (xgetgroups): New prototype.
42678         * lib/mgetgroups.c (xgetgroups): New wrapper.
42679         (mgetgroups): Handle ENOSYS.
42680         * modules/mgetgroups (Depends-on): Add realloc.
42681         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
42682
42683         mgetgroups: avoid argument promotion issues with -1
42684         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
42685         for invalid gid_t.
42686         * tests/test-chown.h (getegid, test_chown): Likewise.
42687         * tests/test-lchown.h (getegid, test_lchown): Likewise.
42688
42689 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
42690
42691         exclude: Fix header file problems.
42692         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
42693
42694 2009-12-01  Jim Meyering  <meyering@redhat.com>
42695
42696         fts: fts_open: do not let an empty string cause immediate failure
42697         This is required in support of GNU rm, for which the command
42698         "rm A '' B" must process and remove both A and B, in spite of
42699         the empty string argument.
42700         * lib/fts.c (fts_open): Do not let the presence of an empty string
42701         cause fts_open to fail immediately.  Most fts-using tools must be
42702         able to process all arguments, in order, and can be expected to
42703         diagnose such arguments themselves.
42704
42705 2009-11-30  Eric Blake  <ebb9@byu.net>
42706
42707         utimens: fix compilation error
42708         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
42709         Declare variable at right scope.
42710
42711 2009-11-29  Jim Meyering  <meyering@redhat.com>
42712
42713         bootstrap: handle perl-5.11's changed --version output
42714         * build-aux/bootstrap (get_version): Handle perl separately,
42715         since perl-5.11's --version output is different.
42716
42717 2009-11-28  Jim Meyering  <meyering@redhat.com>
42718
42719         userspec: depend on the inttostr module, too
42720         * modules/userspec (Depends-on): Add inttostr.
42721
42722         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
42723         * lib/userspec.c (parse_with_separator): Do not accept a user ID
42724         number of MAXUID when it evaluates to (uid_t) -1.
42725         Likewise for group ID.  Reported by Matt McCutchen in
42726         <http://savannah.gnu.org/bugs/?28113>
42727
42728         userspec: reformat to use spaces, not TABs
42729         * lib/userspec.c: Expand TABs to spaces.
42730         Add Emacs' "indent-tabs-mode: nil" hint.
42731
42732 2009-11-27  Eric Blake  <ebb9@byu.net>
42733
42734         getopt-gnu: flush out another BSD bug
42735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
42736         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
42737         flush out BSD bug.
42738         * tests/test-getopt.h (test_getopt): End lists with NULL.
42739         * tests/test-getopt_long.h (test_getopt_long): Likewise.
42740         (test_getopt_long_posix): Enhance test.
42741         * modules/getopt-posix-tests (Depends-on): Add stdbool.
42742         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
42743         getopt-gnu.
42744         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42745         Likewise.
42746
42747 2009-11-27  Simon Josefsson  <simon@josefsson.org>
42748
42749         * modules/idpriv-droptemp-tests (Notice): Fix text.
42750
42751 2009-11-27  Jim Meyering  <meyering@redhat.com>
42752
42753         test-xalloc-die: avoid spurious failure due to libtool argv difference
42754         In a libtool-enabled project, this test would fail due to a difference
42755         in the emitted program name, e.g.,
42756         -test-xalloc-die: memory exhausted
42757         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
42758         Use program to avoid that.
42759         * modules/xalloc-die-tests (Depends-on): Add progname.
42760         * tests/test-xalloc-die.c: Include progname.h".
42761         (program_name): Remove decl.
42762         (main): Call set_program_name.
42763         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
42764
42765 2009-11-26  Richard Jones  <rjones@redhat.com>
42766
42767         w32sock: leave win32 error in place.
42768         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
42769
42770 2009-11-26  Eric Blake  <ebb9@byu.net>
42771
42772         init.sh: suggest to use skip_ and fail_ functions in comments
42773         * tests/init.sh: Add a sentence.
42774
42775 2009-11-25  Bruno Haible  <bruno@clisp.org>
42776
42777         init.sh: add documentation in comments
42778         * tests/init.sh: Add some developer and user documentation.
42779
42780 2009-11-26  Jim Meyering  <meyering@redhat.com>
42781
42782         init.sh: accommodate even those who specify bogus srcdir manually
42783         * tests/init.sh: Normally, srcdir is guaranteed by automake and
42784         configure-time tests to be sanitized, so that there is no need to
42785         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
42786         (with no double quotes) suffices.  However, since tests may be
42787         invoked manually, and since you may explicitly set srcdir to the
42788         name of a directory containing spaces, do quote its uses here.
42789         * tests/test-pread.sh: Likewise.
42790         Suggested by Bruno Haible.
42791
42792         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
42793         * tests/test-pread.sh: Write no data into the pipe, because
42794         test-pread actually reads none.  This avoids a diagnostic,
42795         "bash: echo: write error: Broken pipe", that arises in the unusual
42796         event something is ignoring SIGPIPE, and might be interpreted
42797         as some sort of failure.  Reported by Bruno Haible.
42798
42799 2009-11-25  Jim Meyering  <meyering@redhat.com>
42800
42801         test-pread: cover failure with ESPIPE and EINVAL
42802         * tests/test-pread.c (main): Test for failure, too.
42803         * tests/test-pread.sh: Invoke with stdin on a pipe.
42804         Suggested by Eric Blake.
42805
42806         pread: improvement and fix
42807         * modules/pread (Depends-on): Depend on lseek, for portability to
42808         e.g., mingw.  Suggested by Eric Blake.
42809         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
42810
42811         unistd.in.h: correct declaration of pread
42812         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
42813         Reported by Richard W.M. Jones.
42814
42815         test-pread.sh: distribute the test script
42816         * modules/pread-tests (Files): Include test-pread.sh.
42817
42818         test-pread.sh: clean up
42819         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
42820         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
42821         That is unnecessary, since it's always ".".
42822         Suggestion from Eric Blake.
42823
42824         test-pread.sh: make executable
42825         * tests/test-pread.sh: Set executable bit.
42826         Reported by Eric Blake.
42827
42828         correct typo in test-pread.sh
42829         * tests/test-pread.sh: Add #! line.
42830
42831         test pread
42832         * tests/test-pread.c: New file.
42833         * tests/test-pread.sh: Likewise.
42834         * modules/pread-tests: Likewise.
42835
42836         pread: new module
42837         * modules/pread: New file.
42838         * lib/unistd.in.h (pread): Define/declare.
42839         * lib/pread.c (pread): New file.
42840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42841         * modules/unistd (Makefile.am): Substitute witnesses.
42842         * doc/posix-functions/pread.texi (pread): Update.
42843         * MODULES.html.sh: Add pread.
42844
42845 2009-11-25  Jim Meyering  <meyering@redhat.com>
42846
42847         tests/init.sh: new file to be used via most *.sh tests
42848         * tests/init.sh: New file.
42849
42850 2009-11-25  Eric Blake  <ebb9@byu.net>
42851
42852         utimens: work around older Linux failure with symlinks
42853         * lib/utimens.c (lutimensat_works_really): New variable.
42854         (fdutimens, lutimens): Use it to manage kernels that support
42855         nanosecond times on files, but not on symlinks.
42856         Reported by Ondřej Vašík.
42857
42858         utimes: fix configure grammar
42859         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42860
42861 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42862
42863         regex: Fix fastmap for multibyte character ranges.
42864         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42865         characters when a multibyte character range is included.
42866
42867 2009-11-22  Andy Wingo  <wingo@pobox.com>
42868
42869         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42870         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42871
42872 2009-11-24  Bruno Haible  <bruno@clisp.org>
42873
42874         doc: Most *_l functions exist in MacOS X 10.5.
42875         * doc/posix-functions/duplocale.texi: Update platforms list.
42876         * doc/posix-functions/freelocale.texi: Likewise.
42877         * doc/posix-functions/newlocale.texi: Likewise.
42878         * doc/posix-functions/uselocale.texi: Likewise.
42879         * doc/posix-functions/isalnum_l.texi: Likewise.
42880         * doc/posix-functions/isalpha_l.texi: Likewise.
42881         * doc/posix-functions/isblank_l.texi: Likewise.
42882         * doc/posix-functions/iscntrl_l.texi: Likewise.
42883         * doc/posix-functions/isdigit_l.texi: Likewise.
42884         * doc/posix-functions/isgraph_l.texi: Likewise.
42885         * doc/posix-functions/islower_l.texi: Likewise.
42886         * doc/posix-functions/isprint_l.texi: Likewise.
42887         * doc/posix-functions/ispunct_l.texi: Likewise.
42888         * doc/posix-functions/isspace_l.texi: Likewise.
42889         * doc/posix-functions/isupper_l.texi: Likewise.
42890         * doc/posix-functions/iswalnum_l.texi: Likewise.
42891         * doc/posix-functions/iswalpha_l.texi: Likewise.
42892         * doc/posix-functions/iswblank_l.texi: Likewise.
42893         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42894         * doc/posix-functions/iswctype_l.texi: Likewise.
42895         * doc/posix-functions/iswdigit_l.texi: Likewise.
42896         * doc/posix-functions/iswgraph_l.texi: Likewise.
42897         * doc/posix-functions/iswlower_l.texi: Likewise.
42898         * doc/posix-functions/iswprint_l.texi: Likewise.
42899         * doc/posix-functions/iswpunct_l.texi: Likewise.
42900         * doc/posix-functions/iswspace_l.texi: Likewise.
42901         * doc/posix-functions/iswupper_l.texi: Likewise.
42902         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42903         * doc/posix-functions/isxdigit_l.texi: Likewise.
42904         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42905         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42906         * doc/posix-functions/strcoll_l.texi: Likewise.
42907         * doc/posix-functions/strfmon_l.texi: Likewise.
42908         * doc/posix-functions/strftime_l.texi: Likewise.
42909         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42910         * doc/posix-functions/strxfrm_l.texi: Likewise.
42911         * doc/posix-functions/tolower_l.texi: Likewise.
42912         * doc/posix-functions/toupper_l.texi: Likewise.
42913         * doc/posix-functions/towctrans_l.texi: Likewise.
42914         * doc/posix-functions/towlower_l.texi: Likewise.
42915         * doc/posix-functions/towupper_l.texi: Likewise.
42916         * doc/posix-functions/wcscoll_l.texi: Likewise.
42917         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42918         * doc/posix-functions/wctrans_l.texi: Likewise.
42919         * doc/posix-functions/wctype_l.texi: Likewise.
42920         * doc/glibc-functions/strptime_l.texi: Likewise.
42921         * doc/glibc-functions/strtod_l.texi: Likewise.
42922         * doc/glibc-functions/strtof_l.texi: Likewise.
42923         * doc/glibc-functions/strtol_l.texi: Likewise.
42924         * doc/glibc-functions/strtold_l.texi: Likewise.
42925         * doc/glibc-functions/strtoll_l.texi: Likewise.
42926         * doc/glibc-functions/strtoul_l.texi: Likewise.
42927         * doc/glibc-functions/strtoull_l.texi: Likewise.
42928         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42929         * doc/glibc-functions/wcstod_l.texi: Likewise.
42930         * doc/glibc-functions/wcstof_l.texi: Likewise.
42931         * doc/glibc-functions/wcstol_l.texi: Likewise.
42932         * doc/glibc-functions/wcstold_l.texi: Likewise.
42933         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42934         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42935         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42936
42937 2009-11-24  Bruno Haible  <bruno@clisp.org>
42938
42939         duplocale: Fix logic bug.
42940         * lib/duplocale.c: Don't include <langinfo.h>.
42941         (_NL_LOCALE_NAME): Remove macro.
42942         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42943         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42944
42945 2009-11-23  Jim Meyering  <meyering@redhat.com>
42946
42947         test-update-copyright: don't hard-code /usr/bin/perl
42948         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42949         perl to print the current year.  Gilles Espinasse reported that
42950         the replaced use of perl was hard-coded as /usr/bin/perl.
42951
42952 2009-11-23  Bruno Haible  <bruno@clisp.org>
42953
42954         duplocale: Add support for glibc 2.3.x.
42955         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42956
42957 2009-11-22  Bruno Haible  <bruno@clisp.org>
42958
42959         vasnprintf: Tiny optimization.
42960         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42961         MacOS X.
42962
42963 2009-11-22  Bruno Haible  <bruno@clisp.org>
42964
42965         Tests for module 'duplocale'.
42966         * modules/duplocale-tests: New file.
42967         * tests/test-duplocale.c: New file.
42968
42969         New module 'duplocale'.
42970         * m4/duplocale.m4: New file.
42971         * lib/locale.in.h (duplocale): New declaration.
42972         * lib/duplocale.c: New file.
42973         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42974         gl_LOCALE_H_DEFAULTS): New macros.
42975         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42976         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42977         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42978         REPLACE_DUPLOCALE.
42979         * modules/duplocale: New file.
42980         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42981
42982 2009-11-22  Bruno Haible  <bruno@clisp.org>
42983
42984         * modules/locale-tests (configure.ac): Test for newlocale function.
42985         * tests/test-locale.c: When the system has extended locale functions,
42986         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42987
42988         locale: Make locale_t available when possible.
42989         * lib/locale.in.h: Include <xlocale.h> when it exists.
42990         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42991         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42992         * modules/locale (Depends-on): Add extensions.
42993         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42994         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42995
42996 2009-11-22  Bruno Haible  <bruno@clisp.org>
42997
42998         Add comments.
42999         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43000         invocation.
43001         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43002         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43004
43005 2009-11-22  Bruno Haible  <bruno@clisp.org>
43006
43007         error: account for the possibility of freopen (stdout).
43008         * lib/error.c: Include <unistd.h>.
43009         (flush_stdout): New function, extracted from error and error_at_line.
43010         Determine stdout's fd dynamically.
43011         (error, error_at_line): Invoke flush_stdout.
43012         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43013         * modules/error (Depends-on): Add unistd.
43014
43015 2009-11-22  Bruno Haible  <bruno@clisp.org>
43016
43017         diffseq: Add comment.
43018         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43019
43020 2009-11-22  Jim Meyering  <meyering@redhat.com>
43021
43022         c-stack: avoid defining an unused static function
43023         * lib/c-stack.c (find_stack_direction): Do not define this function
43024         when it will not be used.
43025
43026         diffseq: avoid spurious gcc warnings
43027         * lib/diffseq.h (IF_LINT2): Define.
43028         (compareseq): Use it to initialize two members of "part".
43029         This avoids two used-uninitialized warnings.
43030
43031 2009-11-21  Jim Meyering  <meyering@redhat.com>
43032
43033         c-stack: avoid "ignoring return value of `write'" warning
43034         * lib/c-stack.c: Include "ignore-value.h".
43035         (die): Explicitly ignore each write return value.
43036         * modules/c-stack (Depends-on): Add ignore-value.
43037
43038 2009-11-21  Bruno Haible  <bruno@clisp.org>
43039
43040         diffseq: reduce scope of variable 'best'.
43041         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43042         variable, earlier used for two different purposes.
43043
43044 2009-11-21  Jim Meyering  <meyering@redhat.com>
43045
43046         diffseq: remove useless assignment to "best"
43047         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43048         assignment.  At that point "best" is already guaranteed to be zero.
43049
43050 2009-11-20  Eric Blake  <ebb9@byu.net>
43051
43052         build: mention ftp redirector in release announcements
43053         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43054         values that used to come from cfg.mk; mention FTP redirect URL.
43055         * build-aux/announce-gen: Mention the mirror list.
43056         Suggested by Karl Berry.
43057
43058         nanosleep: improve port to mingw
43059         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43061         LIB_NANOSLEEP, but only when needed.
43062         * modules/select (Link): Document LIBSOCKET.
43063         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
43064         enough.
43065
43066         nanosleep: work around cygwin bug
43067         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
43068         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
43069         bug.
43070         (getnow): Delete, not needed.
43071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
43072         LIB_CLOCK_GETTIME.
43073         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
43074         clock-time, gettime.
43075         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
43076         bug.
43077         * modules/nanosleep-tests: New test.
43078         * tests/test-nanosleep.c: New file.
43079
43080         sleep: work around cygwin bug
43081         * lib/sleep.c (rpl_sleep): Work around the bug.
43082         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
43083         (gl_PREREQ_SLEEP): Delete unused macro.
43084         * modules/sleep (Depends-on): Add verify.
43085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43086         * modules/unistd (Makefile.am): Substitute witness.
43087         * lib/unistd.in.h (sleep): Update prototype.
43088         * doc/posix-functions/sleep.texi (sleep): Document the bug.
43089         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
43090         * modules/sleep-tests (Depends-on): Check for alarm.
43091
43092 2009-11-20  Jim Meyering  <meyering@redhat.com>
43093
43094         maint.mk: improve sc_prohibit_magic_number_exit
43095         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
43096         so it does not match uses like System.exit(1).
43097         Add comments showing how to correct all offenders.
43098
43099 2009-11-19  Eric Blake  <ebb9@byu.net>
43100
43101         xalloc-die-tests: add missing library
43102         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
43103
43104         test-xvasprintf: silence compiler warnings
43105         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
43106         empty string from gcc.
43107
43108 2009-11-19  Jim Meyering  <meyering@redhat.com>
43109
43110         xfreopen: new module, from coreutils
43111         * modules/xfreopen: New module.
43112         * lib/xfreopen.c: New file.
43113         * lib/xfreopen.h: New file.
43114         * MODULES.html.sh (File stream based Input/Output"): Add it.
43115
43116 2009-11-19  Eric Blake  <ebb9@byu.net>
43117
43118         manywarnings: depend on warnings
43119         * modules/manywarnings (Depends-on): Add warnings.
43120
43121         build: avoid compiler warnings
43122         * lib/select.c (rpl_select): Delete unused variable.
43123         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
43124
43125 2009-11-18  Eric Blake  <ebb9@byu.net>
43126
43127         tests: avoid false negative with --with-packager
43128         * tests/test-version-etc.sh: Discard packager information.
43129         * tests/test-argp-version-etc-1.sh: Likewise.
43130         Reported by Mike Frysinger.
43131
43132         utimens: fix regression on Solaris
43133         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
43134         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
43135         can only change fd timestamps via futimesat.  Instead, use an
43136         additional witness macro to avoid BSD bug.
43137         Reported by Jim Meyering.
43138
43139 2009-11-17  Eric Blake  <ebb9@byu.net>
43140
43141         usleep: use it to simplify tests
43142         * modules/stat-time-tests (Depends-on): Add usleep.
43143         (configure.ac): Drop usleep check.
43144         * modules/chown-tests (Depends-on, configure.ac): Likewise.
43145         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
43146         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
43147         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
43148         * modules/openat-tests (Depends-on, configure.ac): Likewise.
43149         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
43150         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
43151         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
43152         Likewise.
43153         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
43154         * tests/test-lchown.h (nap): Likewise.
43155         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
43156         * tests/test-stat-time.c (nap): Likewise.
43157         * tests/test-utimens-common.h (nap): Update comments.
43158
43159         usleep: new module
43160         * modules/usleep: New file.
43161         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
43162         * lib/usleep.c (usleep): Likewise.
43163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43164         * modules/unistd (Makefile.am): Substitute witnesses.
43165         * lib/unistd.in.h (usleep): Add declaration.
43166         * doc/pastposix-functions/usleep.texi (usleep): Document this.
43167         * MODULES.html.sh (Date and time): Likewise.
43168         * modules/usleep-tests (Depends-on): New test.
43169         * tests/test-usleep.c: New file.
43170
43171         chown: work around OpenBSD bug
43172         * lib/chown.c (rpl_chown): Work around the bug.
43173         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
43174         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
43175         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
43176         * modules/chown (Depends-on): Add stdbool.
43177         * modules/lchown (Depends-on): Likewise.
43178         * doc/posix-functions/chown.texi (chown): Document the bug.
43179         * doc/posix-functions/lchown.texi (lchown): Likewise.
43180         * tests/test-lchown.h (test_chown): Relax test.
43181
43182         mkstemp: avoid conflict with C++ keyword template
43183         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
43184         * lib/mkostemp.c (mkostemp): Likewise.
43185         * lib/mkostemps.c (mkostemps): Likewise.
43186         * lib/mkstemp.c (mkstemp): Likewise.
43187         * lib/mkstemps.c (mkstemps): Likewise.
43188
43189         xalloc-die-tests: optimize
43190         * tests/test-xalloc-die.sh: Reduce number of processes.
43191
43192 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43193
43194         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
43195         patch from ludo@gnu.org (Ludovic Courtès).
43196
43197 2009-11-17  Jim Meyering  <meyering@redhat.com>
43198
43199         version-etc: use proper license string
43200         * modules/version-etc (License): Use LGPL, not LGPLv3+.
43201         * modules/version-etc-fsf: Likewise.
43202
43203 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43204
43205         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
43206         printed to stdout.  Deal with EOL differences.
43207
43208 2009-11-17  Eric Blake  <ebb9@byu.net>
43209
43210         unsetenv: work around Solaris bug
43211         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
43212         * lib/unsetenv.c (rpl_unsetenv): Work around it.
43213         Reported by Jim Meyering.
43214
43215         vasnprintf: avoid compiler warnings
43216         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
43217         variables.
43218         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
43219
43220 2009-11-17  Simon Josefsson  <simon@josefsson.org>
43221
43222         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
43223         settings since xalloc-die is no longer the self test,
43224         xalloc-die.sh is.
43225
43226 2009-11-17  Jim Meyering  <meyering@redhat.com>
43227
43228         test-xalloc-die.sh: make the code agree with the commit log
43229         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
43230         at the end, just in case you happen to have a test-xalloc-die
43231         program in some other PATH directory.
43232
43233         test-xalloc-die.sh: fix a portability bug
43234         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
43235         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
43236         Otherwise, argv[0] (as often seen in diagnostics) would be too
43237         system-dependent, sometimes with, and sometimes without the leading "./".
43238
43239         version-etc-fsf: relax license to LGPLv3+
43240         * modules/version-etc-fsf (License): Relax license.
43241
43242 2009-11-16  Eric Blake  <ebb9@byu.net>
43243
43244         xalloc-die-tests: avoid printing null pointer
43245         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
43246         shell script.
43247         * tests/test-xalloc-die.c (program_name): Declare.
43248         * tests/test-xalloc-die.sh (tmpfiles): New file.
43249
43250         setenv, unsetenv: work around various bugs
43251         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
43252         (setenv) [HAVE_SETENV]: Work around bugs.
43253         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
43254         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
43255         for bugs.
43256         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
43257         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
43258         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
43259         * modules/stdlib (Makefile.am): Update substitutions.
43260         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
43261         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
43262         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43263         * modules/setenv-tests: New test.
43264         * modules/unsetenv-tests: Likewise.
43265         * tests/test-setenv.c: New file.
43266         * tests/test-unsetenv.c: Likewise.
43267
43268 2009-11-16  Jim Meyering  <meyering@redhat.com>
43269
43270         version-etc: relax license to LGPLv3+
43271         * modules/version-etc (License): Relax license.
43272
43273         better AC_REQUIRE expanded-before-required-warning avoidance
43274         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
43275         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
43276         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
43277         which is no longer needed.
43278
43279 2009-11-16  Eric Blake  <ebb9@byu.net>
43280
43281         test-freading: clean up temporary file
43282         * tests/test-freading.c (main): Remove file on success, and use
43283         ASSERT more liberally.
43284         Reported by Jim Meyering.
43285
43286 2009-11-16  Jim Meyering  <meyering@redhat.com>
43287
43288         avoid new AC_REQUIRE expanded-before-required warnings
43289         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
43290         merely using it.
43291         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
43292         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
43293
43294 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43295
43296         * tests/test-xalloc-die.c: New file.
43297         * modules/xalloc-die-tests: New file.
43298         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
43299         XFAIL_TESTS so it can be appended by modules.
43300
43301 2009-11-15  Simon Josefsson  <simon@josefsson.org>
43302
43303         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
43304         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
43305
43306 2009-11-14  Eric Blake  <ebb9@byu.net>
43307
43308         fnmatch: avoid compiler warning
43309         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
43310         to silence compiler warning about mismatch signedness in ?:.
43311         Reported by Robert Millan.
43312
43313         intprops: add double-inclusion guard
43314         * lib/intprops.h: Allow idempotent includes.
43315         Suggested by Bruce Korb.
43316
43317         openat: detect Solaris fchownat bug
43318         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
43319         penalizing glibc chownat when only lchownat is broken.
43320         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
43321         trailing slash bugs.
43322         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
43323         * modules/openat-tests (Files): Include more files.
43324         (Depends-on): Add mgetgroups, sleep, stat-time.
43325         (configure.ac): Add additional checks.
43326         (Makefile.am): Build new test.
43327         * tests/test-fchownat.c: New file.
43328
43329         lchown: detect Solaris and FreeBSD bug
43330         * lib/lchown.c (rpl_lchown): Work around bug.
43331         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
43332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43333         * modules/unistd (Makefile.am): Populate it.
43334         * lib/unistd.in.h (lchown): Update declaration.
43335         * doc/posix-functions/lchown.texi (lchown): Document the bug.
43336         * modules/lchown-tests: New file.
43337         * tests/test-lchown.h (test_lchown): Likewise.
43338         * tests/test-lchown.c (main): Likewise.
43339
43340         chown: detect Solaris and FreeBSD bug
43341         * lib/chown.c (rpl_chown): Work around bug.
43342         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
43343         (gl_PREREQ_CHOWN): Delete.
43344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43345         * modules/unistd (Makefile.am): Populate it.
43346         * lib/unistd.in.h (chown): Update declaration.
43347         * lib/lchown.c (chown): Update client.
43348         * modules/lchown (Depends-on): Add lstat.
43349         * doc/posix-functions/chown.texi (chown): Document the bug.
43350         * doc/posix-functions/getgroups.texi (getgroups): Document
43351         getgroups pitfall.
43352         * modules/chown-tests: New file.
43353         * tests/test-chown.h (test_chown): Likewise.
43354         * tests/test-chown.c (main): Likewise.
43355
43356 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
43357
43358         gnulib-tool: correctly detect absence of m4 directories
43359         * gnulib-tool: Avoid extra newline on data passed to wc -l.
43360
43361 2009-11-14  Jim Meyering  <meyering@redhat.com>
43362
43363         maint.mk: Prohibit inclusion of "xalloc.h" without use.
43364         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43365
43366 2009-11-14  John W. Eaton  <jwe@gnu.org>
43367
43368         strftime.h: wrap function declaration in extern "C" block
43369         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
43370
43371 2009-11-13  Eric Blake  <ebb9@byu.net>
43372
43373         getgroups: avoid compiler warning
43374         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
43375
43376         getgroups: work around FreeBSD bug
43377         * lib/getgroups.c (rpl_getgroups): Work around the bug.
43378         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
43379         * doc/posix-functions/getgroups.texi (getgroups): Document it.
43380         * tests/test-getgroups.c (main): Fix buffer overrun.
43381
43382         getgroups: avoid compilation failure
43383         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
43384         * modules/getgroups (Depends-on): Add stdint.
43385
43386 2009-11-13  Jim Meyering  <meyering@redhat.com>
43387
43388         test-getgroups: avoid compilation failure
43389         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
43390
43391 2009-11-13  Eric Blake  <ebb9@byu.net>
43392
43393         mgetgroups: new module, taken from coreutils
43394         * modules/mgetgroups: New file.
43395         * lib/mgetgroups.h: Likewise.
43396         * lib/mgetgroups.c (mgetgroups): Likewise.
43397         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
43398         * MODULES.html.sh (Users and groups): Mention it.
43399
43400         getgroups: don't expose GETGROUPS_T to user
43401         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
43402         an element at a time if GETGROUPS_T is wrong size.
43403         * lib/getugroups.h (getugroups): Change signature.
43404         * lib/unistd.in.h (getgroups): Likewise.
43405         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
43406         signature needs fixing.
43407         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
43408         AC_TYPE_GETGROUPS.
43409         * modules/group-member (Depends-on): Add getgroups.
43410         * lib/group-member.c (group_info, get_group_info): Use gid_t.
43411         (group_member): Rely on getgroups replacement.
43412         * lib/getugroups.c (getugroups): Use gid_t.
43413         * tests/test-getgroups.c (main): Likewise.
43414         * NEWS: Mention the signature change.
43415         * doc/posix-functions/getgroups.texi (getgroups): Mention the
43416         problem with signature.
43417         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
43418         GETGROUPS_T is still useful for setgroups.
43419
43420         getgroups, getugroups: provide stubs for mingw
43421         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
43422         * lib/getugroups.c (getugroups): Likewise.
43423         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
43424         function.  Modernize replacement scheme.
43425         (gl_PREREQ_GETGROUPS): Delete.
43426         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
43427         * modules/getgroups (configure.ac): Declare witness.
43428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
43429         * modules/unistd (Depends-on): Substitute witness.
43430         * lib/unistd.in.h (getgroups): Declare replacement.
43431
43432         getgroups: avoid calling exit
43433         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
43434         drop xalloc.
43435         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
43436         dependencies.
43437         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
43438         exiting, in the rare case of malloc failure.
43439
43440         getgroups: fix logic error
43441         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
43442         has more than 20 groups.
43443         * modules/getgroups-tests: New test.
43444         * tests/test-getgroups.c: New file.
43445
43446 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43447
43448         * tests/test-base64.c: Improve.
43449
43450 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43451
43452         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
43453         Blake <ebb9@byu.net>.
43454
43455 2009-11-13  Simon Josefsson  <simon@josefsson.org>
43456
43457         * tests/test-xvasprintf.c: Add %s%s related checks.
43458
43459 2009-11-12  Eric Blake  <ebb9@byu.net>
43460
43461         version-etc: match standards.texi style
43462         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
43463         and use <> only for URLs.
43464
43465 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
43466
43467         fts: do not fail on a submount during traversal
43468         * lib/fts.c (fts_build): Read the stat info again after opening
43469         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
43470         Original report at http://bugzilla.redhat.com/501848.
43471
43472 2009-11-12  Jim Meyering  <meyering@redhat.com>
43473
43474         bootstrap: sync from coreutils
43475         * build-aux/bootstrap (bootstrap_epilogue): New function.
43476         Use git_modules_config in one more place.  This make bootstrap's
43477         --gnulib-srcdir option more useful for testing.
43478
43479         bootstrap: generalize autoheader check
43480         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
43481         AC_CONFIG_HEADERS.
43482
43483 2009-11-11  Eric Blake  <ebb9@byu.net>
43484
43485         mkfifoat: use new modules for Solaris and BSD bugs
43486         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
43487         * lib/mkfifoat.c (mknodat): Split...
43488         * lib/mknodat.c (mknodat): ...into new file.
43489         * modules/mkfifoat (Files): Ship new file.
43490         (Depends-on): Add mkfifo, mknod.
43491         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
43492         (Depends-on): Add symlink.
43493         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
43494         redundant with test_mkfifo.h.
43495         (do_mkfifoat, do_mknodat): New helpers.
43496
43497         mknod: new module
43498         * modules/mknod: New file.
43499         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
43500         * lib/mknod.c (mknod): Likewise.
43501         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43502         defaults.
43503         * modules/sys_stat (Makefile.am): Substitute them.
43504         * lib/sys_stat.in.h (mknod): Declare replacement.
43505         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43506         Document it.
43507         * doc/posix-functions/mknod.texi (mknod): Likewise.
43508         * modules/mknod-tests: New test.
43509         * tests/test-mknod.c: Likewise.
43510
43511         mkfifo: new module
43512         * modules/mkfifo: New file.
43513         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
43514         * lib/mkfifo.c (mkfifo): Likewise.
43515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
43516         defaults.
43517         * modules/sys_stat (Makefile.am): Substitute them.
43518         * lib/sys_stat.in.h (mkfifo): Declare replacement.
43519         * MODULES.html.sh (Support for systems lacking POSIX:2008):
43520         Document it.
43521         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
43522         * modules/mkfifo-tests: New test.
43523         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
43524         from test-mkfifoat.c.
43525         * tests/test-mkfifo.c: New file.
43526
43527         readlink: detect FreeBSD bug
43528         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
43529         slash on symlink.
43530         * doc/posix-functions/readlink.texi (readlink): Document the bug.
43531         * tests/test-readlink.h (test_readlink): Enhance test.
43532
43533         symlink: detect FreeBSD bug
43534         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
43535         slash on symlink.
43536         * doc/posix-functions/symlink.texi (symlink): Document the bug.
43537         * tests/test-symlink.h (test_symlink): Enhance test.
43538
43539 2009-11-10  Eric Blake  <ebb9@byu.net>
43540
43541         link: detect FreeBSD bug
43542         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
43543         symlink.
43544         * doc/posix-functions/link.texi (link): Document the bug.
43545         * tests/test-link.h (test_link): Enhance test.
43546         * tests/test-linkat.c (main): Update caller.
43547
43548         unlink, remove: detect FreeBSD bug
43549         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
43550         slash on symlink.
43551         * doc/posix-functions/unlink.texi (unlink): Document the bug.
43552         * doc/posix-functions/remove.texi (remove): Likewise.
43553         * tests/test-unlink.h (test_unlink): Enhance test.
43554         * tests/test-remove.c (main): Likewise.
43555
43556 2009-11-09  Eric Blake  <ebb9@byu.net>
43557
43558         rename: detect FreeBSD bug
43559         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
43560         slash on symlink.
43561         * modules/renameat-tests (Depends-on): Add filenamecat.
43562         * tests/test-rename.h (test_rename): Allow one more errno.
43563         * tests/test-renameat.c (main): Likewise.
43564         * doc/posix-functions/rename.texi (rename): Document the bug.
43565
43566         open: detect FreeBSD bug
43567         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
43568         symlink.
43569         * doc/posix-functions/open.texi (open): Document the bug.
43570         * doc/posix-functions/utimes.texi (utimes): Likewise.
43571         * tests/test-open.h (test_open): Add parameters, and test symlink
43572         handling.
43573         * tests/test-open.c (main): Adjust caller.
43574         * tests/test-fcntl-safer.c (main): Likewise.
43575         * modules/open-tests (Depends-on): Add stdbool, symlink.
43576         * modules/fcntl-safer-tests (Depends-on): Likewise.
43577         * tests/test-openat.c (main): Add test-open tests.
43578
43579         stat: detect FreeBSD bug
43580         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
43581         symlink.
43582         * doc/posix-functions/stat.texi (stat): Document the bug.
43583         * tests/test-stat.h (test_stat_func): Add argument.
43584         * tests/test-stat.c (main): Adjust caller.
43585         * tests/test-fstatat.c (main): Likewise.
43586         * modules/stat-tests (Depends-on): Add stdbool, symlink.
43587         Reported by Jim Meyering.
43588
43589 2009-11-09  James Youngman  <jay@gnu.org>
43590
43591         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
43592         * lib/strftime.c: Correct placement of #include "ignore-value.h".
43593
43594 2009-11-08  Jim Meyering  <meyering@redhat.com>
43595
43596         utimens: remove invalid futimesat call
43597         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
43598         It used the file descriptor of the target file as the DIR_FD
43599         parameter and NULL as the file name.  That caused failure with
43600         errno == EFAULT on FreeBSD-8.0-rc2
43601
43602 2009-11-07  Eric Blake  <ebb9@byu.net>
43603
43604         fflush, freadseek: use fseeko, not fseek
43605         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
43606         (clear_ungetc_buffer): Avoid potential problems on large files.
43607         * lib/freadseek.c (freadseek): Likewise.
43608         * modules/freadseek (Depends-on): Add fseeko.
43609         * modules/fseek (configure.ac): Set a witness.
43610         * tests/test-fflush.c (main): Use fseeko.
43611         * tests/test-fpurge.c (fseek): Disable link warning.
43612         * tests/test-freadable.c (fseek): Likewise.
43613         * tests/test-freading.c (fseek): Likewise.
43614         * tests/test-fseeko.c (fseek): Likewise.
43615         * tests/test-ftell.c (fseek): Likewise.
43616         * tests/test-ftello.c (fseek): Likewise.
43617         * tests/test-fwritable.c (fseek): Likewise.
43618         * tests/test-fwriting.c (fseek): Likewise.
43619
43620 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43621
43622         * modules/memchr (Depends-on): Drop getpagesize dependency.
43623
43624 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43625
43626         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
43627         Reported by Ludovic Courtès.
43628         * build-aux/pmccabe2html: Improve example usage.
43629         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
43630
43631 2009-11-06  Jim Meyering  <meyering@redhat.com>
43632
43633         do-release-commit-and-tag: New module.
43634         Automate the release-commit and tag process.
43635         * build-aux/do-release-commit-and-tag: New script, from coreutils.
43636         * modules/do-release-commit-and-tag: New file.
43637         * MODULES.html.sh (Support for maintaining and releasing): Add it.
43638
43639 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43640
43641         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
43642         because test-select.c uses inet_pton.
43643
43644 2009-11-06  Simon Josefsson  <simon@josefsson.org>
43645
43646         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
43647         GETADDRINFO_LIB.  Bump serial number.
43648         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
43649         Suggested by Eric Blake <ebb9@byu.net>.
43650
43651 2009-11-05  Eric Blake  <ebb9@byu.net>
43652
43653         strtod: detect darwin bug
43654         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
43655         Reported by Leo Davis.
43656
43657         freopen-safer: new module
43658         * modules/freopen-safer: New module.
43659         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
43660         * lib/freopen-safer.c (freopen_safer): New file.
43661         * lib/stdio-safer.h (freopen_safer): New declaration.
43662         * lib/stdio--.h (freopen): New override.
43663         * MODULES.html.sh (File stream based Input/Output): Mention it.
43664         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
43665         freopen-safer module.
43666         * doc/posix-functions/stderr.texi (stderr): Likewise.
43667         * doc/posix-functions/stdin.texi (stdin): Likewise.
43668         * doc/posix-functions/stdout.texi (stdout): Likewise.
43669         * modules/freopen-safer-tests: New test.
43670         * tests/test-reopen-safer.c: New file.
43671
43672 2009-11-05  Jim Meyering  <meyering@redhat.com>
43673
43674         maint.mk: Prohibit inclusion of "close-stream.h" without use.
43675         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
43676
43677 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43678
43679         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
43680
43681 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43682
43683         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
43684
43685 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43686
43687         Fix link error.
43688         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43689         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43690
43691 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43692
43693         * tests/test-func.c: Also test value of __func__.
43694
43695 2009-11-05  Simon Josefsson  <simon@josefsson.org>
43696
43697         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
43698         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
43699
43700 2009-11-05  Bruno Haible  <bruno@clisp.org>
43701
43702         Fix link error.
43703         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
43704         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
43705         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
43706
43707 2009-11-05  Bruno Haible  <bruno@clisp.org>
43708
43709         Tests for module 'inet_pton'.
43710         * modules/inet_pton-tests: New file.
43711         * tests/test-inet_pton.c: New file.
43712
43713 2009-11-05  Bruno Haible  <bruno@clisp.org>
43714
43715         Tests for module 'inet_ntop'.
43716         * modules/inet_ntop-tests: New file.
43717         * tests/test-inet_ntop.c: New file.
43718
43719 2009-11-04  Eric Blake  <ebb9@byu.net>
43720
43721         stdlib-safer: wrap all mkstemp variants
43722         * modules/mkostemp (configure.ac): Set witness.
43723         * modules/mkostemps (configure.ac): Likewise.
43724         * modules/mkstemps (configure.ac): Likewise.
43725         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
43726         (mkstemps_safer): Wrap more functions.
43727         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
43728         wrapping.
43729         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
43730         (mkstemps_safer): Implement the wrappers.
43731
43732         mkstemps, mkostemps: new modules
43733         * modules/mkostemps: New module.
43734         * modules/mkstemps: Likewise.
43735         * lib/mkostemps.c (mkostemps): New file.
43736         * lib/mkstemps.c (mkstemps): Likewise.
43737         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
43738         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
43739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
43740         * modules/stdlib (Makefile.am): Substitute them.
43741         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
43742         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
43743         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43744         * doc/gnulib.texi (Glibc stdlib.h): Include them.
43745         * MODULES.html.sh (File system functions): Mention them.
43746
43747         tempname: resync from glibc
43748         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
43749         same values for __GT_FILE as glibc.  Abort even when assertions
43750         are disabled.
43751         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
43752         match its value otherwise.  Allow idempotent inclusion.
43753         * lib/mkdtemp.c (mkdtemp): Adjust caller.
43754         * lib/mkostemp.c (mkostemp): Likewise.
43755         * lib/mkstemp.c (mkstemp): Likewise.
43756         * lib/tmpfile.c (tmpfile): Likewise.
43757         * NEWS: Document this.
43758
43759         utimens: fix use of futimens on older Linux
43760         * lib/utimens.c (fdutimens): Use updated, rather than original,
43761         timespec to avoid bug in older Linux kernel.
43762         Reported by Simon Josefsson.
43763
43764 2009-11-04  Bruno Haible  <bruno@clisp.org>
43765
43766         Make num_processors more flexible and consistent.
43767         * lib/nproc.h (enum nproc_query): New type.
43768         (num_processors): Add a 'query' argument.
43769         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
43770         (num_processors): Add a 'query' argument. Test the value of the
43771         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
43772         mingw, count the number of CPUs available for the current process.
43773         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
43774         Check for sched_getaffinity and sched_getaffinity_np.
43775         * modules/nproc (Depends-on): Add c-ctype, extensions.
43776         * NEWS: Mention the change.
43777
43778 2009-11-03  Bruno Haible  <bruno@clisp.org>
43779
43780         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
43781
43782 2009-11-03  Jim Meyering  <meyering@redhat.com>
43783
43784         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
43785         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
43786         if it is defined.
43787
43788 2009-11-02  Eric Blake  <ebb9@byu.net>
43789
43790         mktime, timegm: share common declaration
43791         * lib/mktime-internal.h: New file.
43792         * lib/mktime.c: Use it rather than open-coding a declaration.
43793         * lib/timegm.c: Likewise.
43794         * modules/mktime (Files): Ship it.
43795         * modules/timegm (Files): Likewise.
43796         Suggested by Bruno Haible.
43797
43798         test-update-copyright: update test to match script changes
43799         * tests/test-update-copyright.sh: Avoid hard-coding perl
43800         location.  Don't update *.bak created by earlier runs.
43801
43802 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43803             Simon Josefsson  <simon@josefsson.org>
43804             Bruno Haible  <bruno@clisp.org>
43805
43806         Fix link error on Solaris 8.
43807         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
43808         also in libnsl. Define also INET_PTON_LIB.
43809         * modules/inet_pton (Link): New section.
43810
43811 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43812             Bruno Haible  <bruno@clisp.org>
43813
43814         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
43815         * modules/inet_ntop (Link): New section.
43816         Reported by Boyan Kasarov <bkasarov@gmail.com>.
43817
43818 2009-11-02  Eric Blake  <ebb9@byu.net>
43819
43820         maint: avoid compiler warnings in m4 macros
43821         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
43822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
43823
43824 2009-11-02  Simon Josefsson  <simon@josefsson.org>
43825
43826         * m4/pmccabe2html.m4: Remove file.
43827         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
43828         function.  Change maintainer.
43829         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
43830         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
43831         Courtès).
43832
43833 2009-10-31  Eric Blake  <ebb9@byu.net>
43834
43835         fseeko: fix m4 regression
43836         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43837         regression from 2009-10-27.
43838         Reported by Ralf Wildenhues.
43839
43840 2009-10-31  Jim Meyering  <meyering@redhat.com>
43841
43842         inttostr: aesthetics and improved (compile-time) safety
43843         Define inttype_is_signed rather than inttype_is_unsigned,
43844         since the sole use is via "#if inttype_is_signed".
43845         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43846         inttype_is_unsigned.
43847         * lib/offtostr.c (inttype_is_signed): Likewise.
43848         * lib/uinttostr.c (inttype_is_signed): Likewise.
43849         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43850         * lib/inttostr.c (inttostr): Use verify to cross-check the
43851         inttype_is_signed value and the signedness of the actual type.
43852         * modules/inttostr (Depends-on): Add verify.
43853
43854 2009-10-30  Eric Blake  <ebb9@byu.net>
43855
43856         build: avoid compiler warnings
43857         * lib/fchmodat.c (lchmod): Mark unused variables.
43858         * lib/getopt.c (_getopt_initialize): Likewise.
43859         * lib/mktime.c (__mktime_internal): Provide prototype.
43860         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43861         older gcc that do not understand #pragma GCC diagnostic.
43862         * lib/uinttostr.c (inttype_is_unsigned): Define.
43863         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43864
43865 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43866
43867         stat: fix compilation on AIX
43868         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43869         only see struct stat64.
43870
43871 2009-10-30  Eric Blake  <ebb9@byu.net>
43872
43873         exclude: make more robust
43874         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43875         rather than masking a coding bug.
43876         Suggested by Bruno Haible.
43877
43878 2009-10-30  Jim Meyering  <meyering@redhat.com>
43879
43880         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43881         Rather than putting #!/usr/bin/perl on the first line,
43882         start with a variant of what's recommended by "man perlrun" that
43883         invokes the first "perl" program from your shell's search path.
43884         * build-aux/gitlog-to-changelog: Replace #!... as above.
43885         Add a "Local Variables" perl mode setting.
43886         Prompted by a patch from Ludovic Courtès.
43887         Improved by Eric Blake.
43888         * build-aux/useless-if-before-free: Likewise.
43889         * build-aux/announce-gen: Likewise.
43890         * build-aux/update-copyright: Likewise.
43891
43892 2009-10-29  Eric Blake  <ebb9@byu.net>
43893
43894         filenamecat-lgpl: adjust clients
43895         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43896         filenamecat.
43897         * modules/renameat (Depends-on): Likewise.
43898
43899         filenamecat: split into filenamecat-lgpl
43900         * modules/filenamecat-lgpl: New module.
43901         * modules/filenamecat (Files): Move library-safe files into
43902         filenamecat-lgpl.
43903         (Depends-on): Add filenamecat-lgpl.
43904         (configure.ac): Declare witness.
43905         * lib/filenamecat.h (file_name_concat): Only declare when using
43906         GPL module.
43907         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43908         Move...
43909         * lib/filenamecat-lgpl.c: ...into new file.
43910         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43911         (gl_FILE_NAME_CONCAT): Use it.
43912         * MODULES.html.sh (File system functions): Mention new module.
43913
43914         argp: avoid memory leak
43915         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43916         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43917         base_name, since the latter malloc()s and can call exit().
43918         Leak introduced 2006-07-03.
43919
43920         dirname-lgpl: adjust clients that don't need full dirname
43921         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43922         * modules/filenamecat (Depends-on): Likewise.
43923         * modules/linkat (Depends-on): Likewise.
43924         * modules/mkancesdirs (Depends-on): Likewise.
43925         * modules/mkdir (Depends-on): Likewise.
43926         * modules/openat (Depends-on): Likewise.
43927         * modules/savewd (Depends-on): Likewise.
43928         * modules/rename (Depends-on): Likewise.
43929         (License): Relax license.
43930         * modules/mkdir-tests (Depends-on): Drop progname.
43931         (Makefile.am): Delete unneeded LDADD.
43932         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43933
43934         dirname: split into dirname-lgpl
43935         * modules/dirname-lgpl: New module.
43936         * modules/dirname (Files): Move library-safe files into
43937         dirname-lgpl.
43938         (Depends-on): Add dirname-lgpl.
43939         (configure.ac): Declare witness.
43940         * modules/double-slash-root (License): Relax license.
43941         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43942         module.
43943         * lib/dirname.c (dir_len, mdir_name): Move...
43944         * lib/dirname-lgpl.c: ...into new file.
43945         * lib/basename.c (last_component, base_len): Move...
43946         * lib/basename-lgpl.c: ...into new file.
43947         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43948         (gl_DIRNAME): Use it.
43949         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43950         Mention new module.
43951         * modules/dirname-tests (Depends-on): Add progname.
43952         * tests/test-dirname.c (program_name): Delete.
43953
43954         mkdir: make safe for libraries
43955         * modules/mkdir (Depends-on): Drop xalloc.
43956         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43957         exit.
43958
43959         tests: avoid some compiler warnings
43960         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43961         literals.
43962         * tests/test-memchr.c (main): Avoid type mismatch.
43963         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43964         * tests/test-base64.c (main): Likewise.
43965         * tests/test-getdelim.c (main): Likewise.
43966         * tests/test-gethostname.c (main): Likewise.
43967         * tests/test-getline.c (main): Likewise.
43968         * tests/test-netinet_in.c (main): Likewise.
43969         * tests/test-select.c (open_server_socket, main): Likewise.
43970         * tests/test-select-stdin.c (main): Likewise.
43971         * tests/test-sockets.c (main): Likewise.
43972         * tests/test-strsignal.c (main): Likewise.
43973         * tests/test-sys_select.c (main): Likewise.
43974         * tests/test-sys_socket.c (main): Likewise.
43975         * tests/test-u64.c (main): Likewise.
43976         * tests/test-xfprintf-posix.c (main): Likewise.
43977         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43978
43979         sockets: avoid compiler warning
43980         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43981
43982         maint: detect usage(1) and other suspicious exits
43983         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43984
43985 2009-10-29  Jim Meyering  <meyering@redhat.com>
43986
43987         timespec: long-to-int truncation could make timespec_cmp malfunction
43988         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43989         a multiple of 2^32 nanoseconds as no difference.
43990
43991 2009-10-28  Jim Meyering  <meyering@redhat.com>
43992
43993         fprintftime: wrap macro code argument in "do {...} while(0)"
43994         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43995         cpy macro must be a statement that can be followed by a semicolon.
43996         Now that the else clause contains a comment and is hence longer
43997         than one line, I require curly braces.  That in turn requires
43998         that we wrap this code block in the standard do...while(0).
43999
44000         fprintftime: remove stray semicolon from previous change
44001         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44002
44003         fprintftime: avoid a warning about ignored fwrite return value
44004         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44005         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44006         that is unsafe.
44007         * modules/fprintftime (Depends-on): Add ignore-value.
44008
44009         exclude: avoid an unwarranted warning
44010         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44011
44012 2009-10-27  Eric Blake  <ebb9@byu.net>
44013
44014         fseek: avoid compilation failure when fflush is replaced
44015         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44016         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44017         module is in use.
44018         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44019         module is not in use; since REPLACE_FSEEK worked otherwise.
44020         (GNULIB_FTELLO): Likewise for ftell.
44021         Reported by Ian Beckwith and others.
44022
44023 2009-10-27  Bruno Haible  <bruno@clisp.org>
44024
44025         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44026         Reported by Jim Meyering.
44027
44028 2009-10-27  Jim Meyering  <jim@meyering.net>
44029             Bruno Haible  <bruno@clisp.org>
44030
44031         Avoid warning despite dropping the return value of fwrite.
44032         * lib/unicodeio.c: Include ignore-value.h.
44033         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44034         * modules/unicodeio (Depends-on): Add ignore-value.
44035
44036 2009-10-26  Eric Blake  <ebb9@byu.net>
44037
44038         areadlinkat: fix fallback path
44039         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44040         pointer and zero.
44041
44042 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44043
44044         Use a better IO block size for modern systems
44045         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44046         * lib/md2.c: Likewise.
44047         * lib/md4.c: Likewise.
44048         * lib/md5.c: Likewise.
44049         * lib/sha1.c: Likewise.
44050         * lib/sha256.c: Likewise.
44051         * lib/sha512.c: Likewise.
44052
44053 2009-10-22  Eric Blake  <ebb9@byu.net>
44054
44055         tests: avoid several compiler warnings
44056         * tests/test-getcwd.c (main): Avoid buffer underflow.
44057         * tests/test-getdate.c (main): String literals are not safe with
44058         putenv, so use setenv.  Declare unused argument.
44059         * modules/getdate-tests (Depends-on): Add setenv.
44060         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44061         problems with string literals in char *.
44062         * tests/test-hash.c (main): Avoid shadowing declaration.
44063         (insert_new): Treat string literals as char const *.
44064         * tests/test-getopt.h (test_getopt): Likewise.
44065         (getopt_loop): Alter types to minimize casting elsewhere.
44066         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
44067         (test_getopt_long_posix): Likewise.
44068         (do_getopt_long): Add wrapper to minimize casting.
44069         * tests/test-atexit.c (clear_temp_file): Use void.
44070         * tests/test-areadlink-with-size.c (main): Declare unused
44071         arguments.
44072         * tests/test-areadlink.c (main): Likewise.
44073         * tests/test-areadlinkat-with-size.c (main): Likewise.
44074         * tests/test-areadlinkat.c (main): Likewise.
44075         * tests/test-canonicalize-lgpl.c (main): Likewise.
44076         * tests/test-canonicalize.c (main): Likewise.
44077         * tests/test-dirent-safer.c (main): Likewise.
44078         * tests/test-dirname.c (main): Likewise.
44079         * tests/test-dup2.c (main): Likewise.
44080         * tests/test-fchdir.c (main): Likewise.
44081         * tests/test-fcntl-h.c (main): Likewise.
44082         * tests/test-fcntl-safer.c (main): Likewise.
44083         * tests/test-fdopendir.c (main): Likewise.
44084         * tests/test-fdutimensat.c (main): Likewise.
44085         * tests/test-fflush.c (main): Likewise.
44086         * tests/test-filenamecat.c (main): Likewise.
44087         * tests/test-filevercmp.c (main): Likewise.
44088         * tests/test-fopen-safer.c (main): Likewise.
44089         * tests/test-fopen.c (main): Likewise.
44090         * tests/test-fpending.c (main): Likewise.
44091         * tests/test-fpurge.c (main): Likewise.
44092         * tests/test-freading.c (main): Likewise.
44093         * tests/test-fstatat.c (main): Likewise.
44094         * tests/test-fsync.c (main): Likewise.
44095         * tests/test-futimens.c (main): Likewise.
44096         * tests/test-getndelim2.c (main): Likewise.
44097         * tests/test-gettimeofday.c (main): Likewise.
44098         * tests/test-getopt.c (main): Likewise.
44099         * tests/test-i-ring.c (main): Likewise.
44100         * tests/test-inttypes.c (main): Likewise.
44101         * tests/test-link.c (main): Likewise.
44102         * tests/test-lstat.c (main): Likewise.
44103         * tests/test-math.c (main): Likewise.
44104         * tests/test-md5.c (main): Likewise.
44105         * tests/test-memchr2.c (main): Likewise.
44106         * tests/test-memrchr.c (main): Likewise.
44107         * tests/test-mkdir.c (main): Likewise.
44108         * tests/test-mkdirat.c (main): Likewise.
44109         * tests/test-mkfifoat.c (main): Likewise.
44110         * tests/test-open.c (main): Likewise.
44111         * tests/test-openat-safer.c (main): Likewise.
44112         * tests/test-openat.c (main): Likewise.
44113         * tests/test-quotearg.c (main): Likewise.
44114         * tests/test-rawmemchr.c (main): Likewise.
44115         * tests/test-readlink.c (main): Likewise.
44116         * tests/test-remove.c (main): Likewise.
44117         * tests/test-rename.c (main): Likewise.
44118         * tests/test-renameat.c (main): Likewise.
44119         * tests/test-rmdir.c (main): Likewise.
44120         * tests/test-sha1.c (main): Likewise.
44121         * tests/test-signal.c (main): Likewise.
44122         * tests/test-sigaction.c (main): Likewise.
44123         * tests/test-stat.c (main): Likewise.
44124         * tests/test-stat-time.c (main): Likewise.
44125         * tests/test-stddef.c (main): Likewise.
44126         * tests/test-stdint.c (main): Likewise.
44127         * tests/test-stdio.c (main): Likewise.
44128         * tests/test-stdlib.c (main): Likewise.
44129         * tests/test-strchrnul.c (main): Likewise.
44130         * tests/test-strerror.c (main): Likewise.
44131         * tests/test-string.c (main): Likewise.
44132         * tests/test-strtod.c (main): Likewise.
44133         * tests/test-strverscmp.c (main): Likewise.
44134         * tests/test-symlink.c (main): Likewise.
44135         * tests/test-symlinkat.c (main): Likewise.
44136         * tests/test-sys_stat.c (main): Likewise.
44137         * tests/test-sys_time.c (main): Likewise.
44138         * tests/test-time.c (main): Likewise.
44139         * tests/test-unistd.c (main): Likewise.
44140         * tests/test-unlink.c (main): Likewise.
44141         * tests/test-unlinkat.c (main): Likewise.
44142         * tests/test-utimens.c (main): Likewise.
44143         * tests/test-utimensat.c (main): Likewise.
44144         * tests/test-version-etc.c (main): Likewise.
44145         * tests/test-wchar.c (main): Likewise.
44146         * tests/test-wctype.c (main): Likewise.
44147         * tests/test-xprintf-posix.c (main): Likewise.
44148         * tests/test-posixtm.c (main): Likewise.
44149         (STREQ): Delete unused macro.
44150         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
44151         shadowed variables.
44152         * tests/test-memchr.c (main): Likewise.
44153
44154 2009-10-21  Eric Blake  <ebb9@byu.net>
44155
44156         areadlinkat: avoid failure on older glibc
44157         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
44158         rather than mis-comparing 0 against FUNC_RESULT of char*.
44159
44160 2009-10-21  Bruno Haible  <bruno@clisp.org>
44161
44162         * modules/stpncpy (License): Relicense under LGPLv2+.
44163         Reported by David Lutterkort <lutter@redhat.com>.
44164
44165 2009-10-20  Eric Blake  <ebb9@byu.net>
44166
44167         utimensat: work around Solaris 9 bug
44168         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
44169         has trailing slash bugs.
44170         * tests/test-lutimens.h (test_lutimens): Enhance test.
44171         * tests/test-utimens.h (test_utimens): Likewise.
44172         * doc/posix-functions/utime.texi (utime): Enhance documentation.
44173         * doc/posix-functions/utimes.texi (utimes): Likewise.
44174         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44175         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
44176         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
44177         * doc/posix-functions/futimens.texi (futimens): Likewise.
44178
44179         fdutimensat: new module
44180         * modules/fdutimensat: New file.
44181         * lib/fdutimensat.c (fdutimensat): Likewise.
44182         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
44183         * MODULES.html.sh (File system functions): Mention module.
44184         * modules/fdutimensat-tests: New test.
44185         * tests/test-fdutimensat.c: Likewise.
44186
44187         doc: regenerate INSTALL
44188         * doc/INSTALL: Reflect recent autoconf update.
44189         * doc/INSTALL.ISO: Likewise.
44190         * doc/INSTALL.UTF-8: Likewise.
44191
44192 2009-10-20  Pádraig Brady  <P@draigBrady.com>
44193
44194         acl: warn if ACL support is not detected
44195         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
44196
44197 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
44198
44199         * lib/nproc.h: Add extern "C" block for C++.
44200
44201 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
44202             Bruno Haible  <bruno@clisp.org>
44203
44204         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
44205         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
44206         * doc/posix-functions/isalpha.texi: Likewise.
44207         * doc/posix-functions/isblank.texi: Likewise.
44208         * doc/posix-functions/iscntrl.texi: Likewise.
44209         * doc/posix-functions/isdigit.texi: Likewise.
44210         * doc/posix-functions/isgraph.texi: Likewise.
44211         * doc/posix-functions/islower.texi: Likewise.
44212         * doc/posix-functions/isprint.texi: Likewise.
44213         * doc/posix-functions/ispunct.texi: Likewise.
44214         * doc/posix-functions/isspace.texi: Likewise.
44215         * doc/posix-functions/isupper.texi: Likewise.
44216         * doc/posix-functions/isxdigit.texi: Likewise.
44217
44218 2009-10-18  Bruno Haible  <bruno@clisp.org>
44219
44220         Tests for module 'isblank'.
44221         * modules/isblank-tests: New file.
44222         * tests/test-isblank.c: New file.
44223
44224         New module 'isblank'.
44225         * lib/isblank.c: New file.
44226         * m4/isblank.m4: New file.
44227         * modules/isblank: New file.
44228         * doc/posix-functions/isblank.texi: Mention the new module.
44229
44230 2009-10-18  Bruno Haible  <bruno@clisp.org>
44231
44232         New module 'ctype'.
44233         * lib/ctype.in.h: New file.
44234         * m4/ctype.m4: New file.
44235         * modules/ctype: New file.
44236         * doc/posix-headers/ctype.texi: Mention the new module.
44237
44238 2009-10-18  Jim Meyering  <meyering@redhat.com>
44239
44240         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
44241         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
44242         right after its initialization, rather than farther down.
44243         Keeping these in close proximity makes it easier to ensure
44244         that each such variable is initialized.  E.g.,
44245
44246             LIB_CLOCK_GETTIME=
44247             AC_SUBST([LIB_CLOCK_GETTIME])
44248
44249         This change also increments these serial numbers.
44250         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
44251         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44253
44254 2009-10-18  Bruno Haible  <bruno@clisp.org>
44255
44256         Don't let environment variables perturb build.
44257         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
44258         (gl_PREREQ_GETHRXTIME): ... not here.
44259
44260 2009-10-18  Bruno Haible  <bruno@clisp.org>
44261
44262         Avoid symlink attack in localcharset module.
44263         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
44264         (O_NOFOLLOW): Define fallback.
44265         (get_charset_aliases): Don't open the file if it is a symbolic link.
44266         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
44267         gl_FCNTL_H.
44268         (gl_FCNTL_H): Require it.
44269         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
44270         * modules/localcharset (Files): Add m4/fcntl_h.m4.
44271         Reported by Fergal Glynn <fglynn@veracode.com>.
44272
44273 2009-10-18  Bruno Haible  <bruno@clisp.org>
44274
44275         Implement nproc for mingw.
44276         * lib/nproc.c: Include <windows.h>
44277         (num_processors): On native Windows platforms, try GetSystemInfo.
44278
44279 2009-10-18  Bruno Haible  <bruno@clisp.org>
44280
44281         Implement nproc for IRIX.
44282         * lib/nproc.c: Include <sys/sysmp.h>.
44283         (num_processors): On IRIX systems, try sysmp.
44284         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
44285
44286 2009-10-18  Bruno Haible  <bruno@clisp.org>
44287
44288         Implement nproc for HP-UX.
44289         * lib/nproc.c: Include <sys/pstat.h>
44290         (num_processors): On HP-UX systems, try pstat_getdynamic.
44291         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
44292         pstat_getdynamic.
44293
44294 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
44295             Bruno Haible  <bruno@clisp.org>
44296
44297         Implement nproc for NetBSD, OpenBSD.
44298         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
44299         (ARRAY_SIZE): New macro.
44300         (num_processors): On BSD systems, try sysctl of HW_NCPU.
44301         * m4/nproc.m4: New file.
44302         * modules/nproc (Files): Add m4/nproc.m4.
44303         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
44304         (Makefile.am): Instead, augment lib_SOURCES.
44305
44306 2009-10-18  Bruno Haible  <bruno@clisp.org>
44307
44308         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
44309         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
44310         sys/param.h.
44311
44312 2009-10-16  Eric Blake  <ebb9@byu.net>
44313
44314         utimensat: new module
44315         * modules/utimensat: New file.
44316         * lib/utimensat.c (utimensat): Likewise.
44317         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44318         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
44319         so we can work around Linux bugs.
44320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44321         * modules/sys_stat (Makefile.am): Substitute them.
44322         * lib/sys_stat.in.h (utimensat): Declare it.
44323         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44324         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44325         * modules/utimensat-tests: New test.
44326         * tests/test-utimensat.c: Likewise.
44327
44328         utimens: let lutimens work on non-symlinks
44329         * lib/utimens.c (lutimens): Fall back to utimens rather than
44330         failing with ENOSYS, when file is not a symlink.
44331         (utimens): Reduce redirection.
44332         * tests/test-lutimens.h (test_lutimens): Update test to cover
44333         non-symlinks.
44334         * tests/test-utimens.h (test_utimens): Update test to cover
44335         symlinks.
44336         * tests/test-utimens.c (main): Update caller.
44337
44338         utimens: cache whether utimensat syscall works
44339         * lib/utimens.c (utimensat_works_really): New cache variable.
44340         (fdutimens, lutimens): Use it to avoid failing syscall.
44341
44342         test-stat-time, test-utimens: improve portability
44343         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
44344         ext4 on alpha, and for cygwin.
44345         * tests/test-utimens-common.h: New file.
44346         (nap): Factor delays into single function.
44347         * tests/test-lutimens.h (test_lutimens): Use new header.
44348         * tests/test-futimens.h (test_futimens): Likewise.
44349         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
44350         timestamps to occur from same machine, as was done previously for
44351         test_utimens.
44352         * modules/utimens-tests (Files): Ship new file.
44353         * modules/futimens-tests (Files): Likewise.
44354         Reported in part by Jim Meyering.
44355
44356         sys_stat: sort replacement declarations
44357         * lib/sys_stat.in.h: Sort declarations.
44358         * lib/futimens.c (futimens): Fix typo.
44359
44360 2009-10-15  Jim Meyering  <meyering@redhat.com>
44361
44362         don't let environment settings perturb build
44363         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
44364         could cause a configure-time and/or build-time malfunction.
44365         Typically, a configure-time function-in-library test is performed
44366         via code like this:
44367
44368           LIB_VAR=
44369           AC_SUBST([LIB_VAR])
44370           prefix_saved_LIBS=$LIBS
44371             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
44372                        [test "$ac_cv_search_FUNC" = "none required" ||
44373                         LIB_VAR=$ac_cv_search_FUNC])
44374           LIBS=$prefix_saved_LIBS
44375
44376         However, in each of the files affected by this change, the LIB_VAR=
44377         initialization was omitted.  Thus, when set in the environment, its
44378         value would propagate into generated Makefiles when FUNC is not found
44379         in LIB_NAME.
44380         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
44381         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44383
44384 2009-10-14  Eric Blake  <ebb9@byu.net>
44385
44386         fchdir: avoid infinite recursion in mingw
44387         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
44388         recursing.
44389
44390         test-stat-time: port to mingw
44391         * tests/test-stat-time.c (force_unlink): Return a value.
44392         (test_ctime) [W32]: Fix compilation error.
44393         (nap): Don't call usleep with too large an argument.  Use
44394         force_unlink.
44395         * doc/pastposix-functions/usleep.texi (usleep): Document the
44396         portability issue.
44397
44398 2009-10-13  Jim Meyering  <meyering@redhat.com>
44399
44400         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
44401         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
44402         * modules/pipe-filter-ii: Likewise.
44403         * modules/sys_socket-tests: Likewise.
44404         * modules/tsearch-tests: Likewise.
44405         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
44406         (check): Depend on it.
44407
44408 2009-10-12  Eric Blake  <ebb9@byu.net>
44409
44410         utimens-tests: port to NFS file systems
44411         * tests/test-utimens.h (test_utimens): Refactor utimecmp
44412         comparisons to avoid spurious failures from timestamp drift
44413         between NFS machines.
44414
44415 2009-10-12  Eric Blake  <ebb9@byu.net>
44416
44417         stat-time-tests: minor cleanups
44418         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
44419         * tests/test-stat-time.c (nap): Separate assignment from call.
44420         Suggested by Paolo Bonzini and Bruno Haible.
44421
44422         sys_stat: guarantee struct timespec
44423         * lib/sys_stat.in.h (includes): Always include <time.h>
44424         * modules/sys_stat (Depends-on): Add time.
44425         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
44426         mode_t permission values.
44427         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
44428         get at subsecond timestamps.
44429
44430 2009-10-10  Eric Blake  <ebb9@byu.net>
44431
44432         futimens: new module
44433         * modules/futimens: New file.
44434         * lib/futimens.c (futimens): Likewise.
44435         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
44436         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
44437         we can work around Linux bugs.
44438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44439         * modules/sys_stat (Makefile.am): Substitute them.
44440         * lib/sys_stat.in.h (futimens): Declare it.
44441         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44442         * doc/posix-functions/futimens.texi (futimens): Likewise.
44443         * modules/futimens-tests: New test.
44444         * tests/test-futimens.c: Likewise.
44445
44446         utimens: introduce fdutimens
44447         * lib/utimens.h (fdutimens): New prototype.
44448         * lib/utimens.c (gl_futimens): Move guts...
44449         (fdutimens): ...to new interface.
44450         * tests/test-utimens.c (do_fdutimens): Use it.
44451
44452         utimens: add UTIME_NOW and UTIME_OMIT support
44453         * lib/utimens.c (validate_timespec, update_timespec): New helper
44454         functions.
44455         (gl_futimens, lutimens): Use them.
44456         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
44457         stdbool, sys_stat.
44458         (Link): Mention resulting library dependency.
44459         * modules/utimecmp (Link): Likewise.
44460         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
44461         (Makefile.am): Pick up library dependency.
44462         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
44463         definition.
44464         * tests/test-sys_stat.c: Test the definitions.
44465         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
44466         * NEWS: Document library dependency.
44467
44468         utimecmp: support symlink timestamps
44469         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
44470         hashing when possible.  Use pathconf when available.
44471         (SYSCALL_RESOLUTION): Recognize tighter resolution.
44472         * modules/utimecmp (Depends-on): Add lstat.
44473
44474         utimens: add lutimens interface
44475         * lib/utimens.c (lutimens): New function.
44476         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
44477         * lib/utimens.h (lutimens): Declare new interface.
44478         * tests/test-utimens.c (main): Enhance test.
44479         * tests/test-lutimens.h (test_lutimens): New file.
44480         * modules/utimens-tests (Files): Distribute it.
44481         (Depends-on): Add symlink.
44482         (configure.ac): Check for usleep.
44483
44484         utimens: validate futimens usage
44485         * lib/utimens.c (gl_futimens): Require valid fd up front, using
44486         fewer syscalls on failure later on.  Avoid compiler warning on
44487         mingw.
44488         * modules/utimens (Depends-on): Add dup2.
44489
44490         utimens: add test
44491         * modules/utimens-tests: New test.
44492         * tests/test-utimens.h: New file.
44493         * tests/test-futimens.h: Likewise.
44494         * tests/test-utimens.c: Likewise.
44495
44496         doc: mention timestamp portability issues
44497         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
44498         instead.
44499         * doc/posix-functions/utime.texi (utime): Likewise.
44500         * doc/posix-functions/utimes.texi (utimes): Likewise.
44501         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
44502         instead.
44503         * doc/posix-functions/futimens.texi (futimens): Mention utimens
44504         module.
44505         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
44506         Mention weakness with symlink timestamps.
44507         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
44508         to utimensat/futimens instead.
44509         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
44510
44511         test-dup2: enhance test
44512         * tests/test-dup2.c (main): Also check AT_FDCWD.
44513
44514         test-stat-time: avoid more spurious failures
44515         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
44516         xfs; and avoid race if the two timestamps cross quantization edge.
44517
44518         relocatable: prefer 'file system' over 'filesystem'
44519         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
44520         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
44521         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
44522         * doc/relocatable.texi (Enabling Relocatability): Likewise.
44523         * lib/relocatable.c (compute_curr_prefix): Likewise.
44524
44525 2009-10-10  Jim Meyering  <meyering@redhat.com>
44526
44527         stat-time-tests: check for the usleep function
44528         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
44529
44530 2009-10-10  Bruno Haible  <bruno@clisp.org>
44531
44532         * modules/xnanosleep: Put the Link section after the Include section.
44533
44534 2009-10-09  Eric Blake  <ebb9@byu.net>
44535
44536         dup2: work around FreeBSD 6.1 bug
44537         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
44538         * doc/posix-functions/dup2.texi (dup2): Document it.
44539         Reported by Nelson H. F. Beebe and Jim Meyering.
44540
44541         test-stat-time: port to buggy NFS clients
44542         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
44543         (test_ctime): Also skip test if mtime and ctime are skewed.
44544
44545         maint: prefer 'file system' over 'filesystem'
44546         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44547         * doc/posix-functions/lstat.texi (lstat): Likewise.
44548         * lib/file-has-acl.c (file_has_acl): Likewise.
44549         * lib/fwriteerror.c [TEST]: Likewise.
44550         * tests/test-areadlink.h (test_areadlink): Likewise.
44551         * tests/test-areadlinkat-with-size.c (main): Likewise.
44552         * tests/test-areadlinkat.c (main): Likewise.
44553         * tests/test-canonicalize-lgpl.c (main): Likewise.
44554         * tests/test-canonicalize.c (main): Likewise.
44555         * tests/test-fstatat.c (main): Likewise.
44556         * tests/test-linkat.c (main): Likewise.
44557         * tests/test-lstat.h (test_lstat_func): Likewise.
44558         * tests/test-mkdir.h (test_mkdir): Likewise.
44559         * tests/test-readlink.h (test_readlink): Likewise.
44560         * tests/test-remove.c (main): Likewise.
44561         * tests/test-rename.h (test_rename): Likewise.
44562         * tests/test-renameat.c (main): Likewise.
44563         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44564         * tests/test-symlink.h (test_symlink): Likewise.
44565         * tests/test-symlinkat.c (main): Likewise.
44566         * tests/test-unlink.h (test_unlink_func): Likewise.
44567         * tests/test-unlinkat.c (main): Likewise.
44568
44569         maint: make realtime library usage explicit
44570         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
44571         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
44572         * modules/settime (Link): Likewise.
44573         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
44574
44575         test-stat-time: speed up execution
44576         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
44577         warning on mingw.
44578         (nap): New helper function.
44579         (prepare_test): Use it to reduce sleep time.
44580         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
44581         execution.
44582         * modules/stat-time-tests (configure.ac): Check for usleep.
44583
44584 2009-10-09  Jim Meyering  <meyering@redhat.com>
44585
44586         selinux-h: always use getfilecon wrappers
44587         * lib/getfilecon.c: New file.
44588         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
44589         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
44590         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
44591         (fgetfilecon): Provide a stub.
44592         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
44593         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
44594         file unconditionally.
44595         When <selinux/selinux.h> is found, arrange to use wrappers.
44596         * modules/selinux-h (Files): Add getfilecon.c.
44597         (Makefile.am): Substitute include-next-related bits
44598         into the now-always-generated selinux/selinux.h file.
44599         * doc/glibc-functions/lgetfilecon.texi: New file.
44600         * doc/glibc-functions/fgetfilecon.texi: New file.
44601         * doc/glibc-functions/getfilecon.texi: New file.
44602         * doc/glibc-functions/getfilecon-desc.texi: New file.
44603         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
44604         which to pull in the new files.
44605         * MODULES.html.sh (Misc): Add selinux-h.
44606
44607 2009-10-08  Jim Meyering  <meyering@redhat.com>
44608
44609         unistd: fix comment typo
44610         * lib/unistd.in.h (euidaccess): Fix a comment typo.
44611
44612 2009-10-08  Eric Blake  <ebb9@byu.net>
44613
44614         areadlink: use SIZE_MAX consistently
44615         * modules/areadlink (Depends-on): Add stdint.
44616         * modules/areadlink-with-size (Depends-on): Likewise.
44617         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
44618         gives NULL; drop sys/types, since unistd gives size_t; and add
44619         stdint for SIZE_MAX.
44620         (SIZE_MAX): Rely on headers.
44621         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
44622         and add stdint.
44623         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
44624         (SIZE_MAX): Likewise.
44625         (INITIAL_BUF_SIZE): Turn into enum.
44626         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
44627
44628 2009-10-08  Jim Meyering  <meyering@redhat.com>
44629
44630         areadlinkat: avoid compilation failure
44631         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
44632         Fix typo in comment.
44633
44634 2009-10-07  Eric Blake  <ebb9@byu.net>
44635
44636         areadlinkat-with-size: new module
44637         * modules/areadlinkat-with-size: New module.
44638         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
44639         * lib/areadlink.h (areadlinkat): Declare it.
44640         * MODULES.html.sh (File system functions): Mention it.
44641         * modules/areadlinkat-with-size-tests: New test.
44642         * tests/test-areadlinkat-with-size.c: New file.
44643
44644         xreadlinkat: new module
44645         * modules/xreadlinkat: New module.
44646         * lib/xreadlinkat.c (xreadlinkat): New file.
44647         * lib/xreadlink.h (xreadlinkat): Declare it.
44648         * MODULES.html.sh (File system functions): Mention it.
44649
44650         areadlinkat: new module
44651         * lib/at-func.c (FUNC_FAIL): New define.
44652         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
44653         * modules/areadlinkat: New module.
44654         * lib/linkat.c (areadlinkat): Move...
44655         * lib/areadlinkat.c (areadlinkat): ...to new file.
44656         * lib/areadlink.h (areadlinkat): Declare it.
44657         * modules/linkat (Depends-on): Add areadlinkat.
44658         * MODULES.html.sh (File system functions): Mention it.
44659         * modules/areadlinkat-tests: New test.
44660         * tests/test-areadlinkat.c: New file.
44661
44662         areadlink, areadlink-with-size: add tests
44663         * modules/areadlink-tests: New test.
44664         * modules/areadlink-with-size-tests: Likewise.
44665         * tests/test-areadlink.h: New file.
44666         * tests/test-areadlink.c: Likewise.
44667         * tests/test-areadlink-with-size.c: Likewise.
44668
44669         maint: minor cleanups
44670         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
44671         _UNUSED_PARAMETER_ instead.
44672         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
44673         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
44674         * modules/linkat-tests (Files): Distribute test-link.h.
44675
44676         openat, utimens: whitespace cleanup
44677         * lib/openat.c: Prefer space throughout, rather than mix of 8
44678         spaces vs. tabs.
44679         * lib/at-func.c: Likewise.
44680         * lib/utimens.c: Likewise.
44681
44682         openat: avoid using wrong fd
44683         * lib/openat.c (openat_permissive): Reject user's fd if saving the
44684         working directory chooses same fd.
44685         * lib/at-func.c (AT_FUNC_NAME): Likewise.
44686
44687         mkdir, mkdirat: fix cygwin 1.5.x bug
44688         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
44689         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
44690         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
44691         bug.
44692         (gl_PREREQ_MKDIR): Delete unused macro.
44693         * modules/mkdir (Files): Track file rename.
44694         (configure.ac): Update macro name.
44695         * modules/openat (Depends-on): Add mkdir.
44696         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
44697
44698         mkdir, mkdirat: add tests
44699         * modules/mkdir-tests: New test.
44700         * tests/test-mkdir.h: New file.
44701         * tests/test-mkdir.c: Likewise.
44702         * tests/test-mkdirat.c: Likewise.
44703         * modules/openat-tests (Files): Add new files.
44704         (Makefile.am): Run new test.
44705
44706 2009-10-06  Eric Blake  <ebb9@byu.net>
44707
44708         doc: tweak *at function documentation
44709         * doc/posix-functions/faccessat.texi (faccessat): Mention
44710         known issue with replacement.
44711         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
44712         * doc/posix-functions/linkat.texi (linkat): Likewise.
44713         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44714         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44715         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44716         * doc/posix-functions/renameat.texi (renameat): Likewise.
44717         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44718
44719         openat: fix GNU/Hurd bug in unlinkat
44720         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
44721         broken.
44722         * doc/posix-functions/unlink.texi (unlink): Document this.
44723         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
44724
44725         fdopendir: fix GNU/Hurd bug
44726         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
44727         allowing non-directory fds.
44728         * lib/fdopendir.c (rpl_fdopendir): Work around it.
44729         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
44730         * modules/dirent (Makefile.am): Substitute it.
44731         * lib/dirent.in.h (fdopendir): Declare replacement.
44732         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
44733         * tests/test-fdopendir.c (main): Test something other than
44734         /dev/null, since on Hurd that behaves like a directory.
44735
44736         test-symlink: port to GNU/Hurd
44737         * tests/test-symlink.h (test_symlink): Relax expected errno.
44738
44739         doc: tweak more cygwin information
44740         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
44741         now compatible with glibc.
44742         * doc/posix-functions/getopt.texi (getopt): Likewise.
44743
44744         getopt-gnu: add another test
44745         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
44746         guarantee behavior relied on by m4.
44747         * tests/test-getopt.c (main): Use it.
44748         * modules/getopt-posix-tests (Depends-on): Add setenv.
44749         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
44750
44751         getopt: fix compilation on darwin
44752         * lib/getopt.in.h (includes): Leave breadcrumbs during system
44753         include.
44754         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
44755         Reported by Ludovic Courtès.
44756
44757 2009-10-06  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/size_max (Description): Discourage its use.
44760         Reported by Simon Josefsson.
44761
44762 2009-10-06  Jim Meyering  <meyering@redhat.com>
44763
44764         linkat: avoid compilation failure
44765         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
44766
44767 2009-10-05  Eric Blake  <ebb9@byu.net>
44768
44769         linkat: support Linux 2.6.17
44770         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
44771         linkat on Linux, but allow cache variable override.
44772         * lib/linkat.c (rpl_linkat): Define override.
44773         * modules/linkat (Depends-on): Add symlinkat.
44774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
44775         * modules/unistd (Makefile.am): Substitute it.
44776         * lib/unistd.in.h (linkat): Declare replacement.
44777         Reported by Pádraig Brady.
44778
44779         quotearg: port test to systems with C.UTF-8 locale
44780         * tests/test-quotearg.c (struct result_strings): Add another
44781         member, differentiating between C.ASCII and C.UTF-8 handling.
44782         (compare_strings): Add parameter.
44783         (main): Adjust all callers.
44784
44785         getopt: avoid clash with FreeBSD _getopt_internal
44786         * lib/getopt.in.h (_getopt_internal): Override the name.
44787         * lib/getopt_int.h (includes): Pick up any overrides.
44788         Reported by Reuben Thomas.
44789
44790         hash: allow C89 compilation
44791         * lib/hash.c (check_tuning): Move declaration before statement.
44792         Reported by Reuben Thomas.
44793
44794 2009-10-05  Karl Berry  <karl@gnu.org>
44795
44796         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
44797
44798 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
44799             Bruno Haible  <bruno@clisp.org>
44800
44801         * lib/uname.c (uname): Use a table-driven algorithm to compute
44802         Windows NT versions.
44803
44804 2009-10-04  Bruno Haible  <bruno@clisp.org>
44805
44806         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
44807         program_invocation_short_name.
44808         * modules/progname (configure.ac): Test for presence of
44809         program_invocation_short_name.
44810         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44811
44812 2009-10-04  Bruno Haible  <bruno@clisp.org>
44813
44814         * lib/progname.c (set_program_name): Fix comment.
44815         Reported by Jim Meyering.
44816
44817 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44818             Bruno Haible  <bruno@clisp.org>
44819
44820         * lib/uname.c: Include <string.h>.
44821         (uname): Do only one call to GetVersionEx in the common case.
44822
44823 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
44824             Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
44827         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
44828         (uname): Add support for Windows CE and various non-x86 CPU types.
44829
44830 2009-10-03  Bruno Haible  <bruno@clisp.org>
44831
44832         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44833         invocation to tests/configure.ac.
44834         Reported by Ian Beckwith <ianb@erislabs.net>.
44835
44836 2009-10-02  Eric Blake  <ebb9@byu.net>
44837
44838         fchdir: avoid compiler warning
44839         * lib/fchdir.c (canonicalize_file_name)
44840         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44841
44842         test-open: support mingw errno values
44843         * tests/test-open.h (test_open): Relax test.
44844         * tests/test-fopen.h (test_fopen): Likewise.
44845         * tests/test-openat-safer.c (main): Likewise.
44846
44847         open: fix opening directory on mingw
44848         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44849
44850         test-open: on GNU/Hurd, /dev/null is a directory
44851         * tests/test-fopen.h (main): Rename...
44852         (test_fopen): ...to this.  Use a guaranteed non-directory when
44853         confirming open behavior on trailing slash.
44854         * tests/test-openat-safer.c (main): Likewise.
44855         * tests/test-open.h (main): Likewise....
44856         (test_open): ...to this.
44857         * tests/test-fopen.c (main): Adjust caller.
44858         * tests/test-fopen-safer.c (main): Likewise.
44859         * tests/test-open.c (main): Likewise.
44860         * tests/test-fcntl-safer.c (main): Likewise.
44861         Reported by Samuel Thibault.
44862
44863         rename, fchdir: don't ignore chdir failure
44864         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44865         * lib/rename.c (rpl_rename) [W32]: Likewise.
44866         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44867         an empty destination directory if source cannot be renamed,
44868         although there is still possibility for failure.
44869         * doc/posix-functions/rename.texi (rename): Document the race.
44870         Reported by Jim Meyering.
44871
44872         maint: cleanup whitespace in recent commits
44873         * lib/rename.c (rpl_rename): Remove tabs.
44874         * tests/test-link.h (test_link): Likewise.
44875         * lib/fchdir.c (get_name): Likewise.
44876         Reported by Jim Meyering.
44877
44878 2009-10-02  Ben Pfaff  <blp@gnu.org>
44879
44880         relocatable-prog-wrapper: Add missing dependency on
44881         double-slash-root.
44882         * modules/relocatable-prog-wrapper: Add dependency.
44883         Reported by Ian Beckwith <ianb@erislabs.net>.
44884
44885 2009-10-02  Eric Blake  <ebb9@byu.net>
44886
44887         renameat: fix Solaris bugs
44888         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44889         needed fixing.
44890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44891         * modules/stdio (Makefile.am): Substitute it.
44892         * lib/stdio.in.h (renameat): Declare replacement.
44893         * lib/renameat.c (rpl_renameat): Implement fix.
44894
44895         renameat: new module
44896         * modules/renameat: New file.
44897         * lib/renameat.c (renameat): Likewise.
44898         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44899         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44900         * modules/stdio (Makefile.am): Substitute them.
44901         * lib/stdio.in.h (renameat): Declare it.
44902         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44903         * doc/posix-functions/renameat.texi (renameat): Likewise.
44904         * modules/renameat-tests: New test.
44905         * tests/test-renameat.c: Likewise.
44906
44907         rename: fix mingw bugs
44908         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44909         directory overwrite bugs.
44910
44911         rename: fix another cygwin 1.5 bug
44912         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44913         checks.
44914         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44915         unnecessary cygwin workarounds.  Also work around bug with moving
44916         full directory onto an empty one.
44917         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44918
44919         rename-dest-slash: merge into rename module
44920         * modules/rename-dest-slash (Status): Mark obsolete.
44921         (Depends-on): Add rename.
44922         (Files): Let rename do it all.
44923         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44924         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44925         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44926         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44927         * lib/rename.c (rpl_rename): Update comments.
44928
44929         rename: fix cygwin 1.5.x bugs
44930         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44931         * lib/rename.c (rpl_rename): Work around them.
44932         * modules/rename (Depends-on): Add same-inode.
44933
44934         rename: fix Solaris 10 bug
44935         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44936         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44937         was the only bug.
44938
44939         rename: fix Solaris 9 bug
44940         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44941         on non-directory.  Avoid calling exit.
44942         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44943         strdup.
44944         * modules/rename-tests (Depends-on): Drop lstat.
44945         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44946         (gl_PREREQ_RENAME): Delete unused macro.
44947
44948         rename-dest-slash: fix NetBSD bug
44949         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44950         links.
44951         * modules/rename-dest-slash (Depends-on): Add same-inode.
44952
44953         rename-tests: new test, exposes several platform bugs
44954         * modules/rename-tests: New file.
44955         * tests/test-rename.h: Likewise.
44956         * tests/test-rename.c: Likewise.
44957         * doc/posix-functions/rename.texi (rename): Improve documentation,
44958         including bugs that will eventually be fixed in gnulib.
44959
44960 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44961
44962         * lib/uname.c: Include <stdlib.h>
44963         (uname): Assume version info is available.
44964
44965 2009-10-02  Jim Meyering  <meyering@redhat.com>
44966
44967         gnu-web-doc-update: correct --help output
44968         * build-aux/gnu-web-doc-update: Make --help output relevant.
44969
44970         gnu-web-doc-update: add standard options
44971         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44972
44973         gnu-web-doc-update: New module.
44974         Use this script to automatically update the on-line web documentation
44975         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44976         * modules/gnu-web-doc-update: New file, from coreutils.
44977         * build-aux/gnu-web-doc-update: New script.
44978
44979 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44980
44981         link: LoadLibrary is not needed.
44982         * lib/link.c: Use GetModuleHandle.
44983
44984 2009-10-01  Eric Blake  <ebb9@byu.net>
44985
44986         getopt: bump serial number
44987         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44988         change.
44989
44990         tests: tighten link, rmdir, and remove tests
44991         * tests/test-link.h (includes): No need to use <config.h> here.
44992         Clean up if directory hard link was created, otherwise test for
44993         trailing '.'.
44994         * tests/test-linkat.c (main): Simplify.
44995         * tests/test-remove.c (main): Enhance test for trailing '.'.
44996         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44997
44998 2009-10-01  Jim Meyering  <meyering@redhat.com>
44999
45000         maint.mk: requiring "make major" was annoying, for a "minor" release.
45001         What is intended is "stable", to contrast with alpha and beta,
45002         so require "make stable", not "make major".
45003         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45004         (get_tool_versions): Likewise.
45005         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45006
45007 2009-09-30  Ben Pfaff  <blp@gnu.org>
45008
45009         Fix broken build of replacement for Windows tmpfile().
45010         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45011         flags argument added along with the 'mkostemp' module.
45012
45013 2009-09-28  Bruno Haible  <bruno@clisp.org>
45014
45015         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45016         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45017         to 'remove_elt'.
45018         (gl_list_remove): Update.
45019         * lib/gl_list.c (gl_list_remove): Update.
45020         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45021         to 'remove_elt'.
45022         (gl_oset_remove): Update.
45023         * lib/gl_list.c (gl_oset_remove): Update.
45024         Reported by Eric Blake.
45025
45026 2009-09-28  Eric Blake  <ebb9@byu.net>
45027
45028         doc: mention yet more cygwin 1.7 status
45029         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45030         cygwin.
45031         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45032         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45033
45034         argp: fix test failure
45035         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45036         that are not upper-case.  Pass correct range to tolower.
45037
45038 2009-09-27  Jim Meyering  <meyering@redhat.com>
45039
45040         test-yesno: work around sparc-dash here-document infelicity
45041         Without this change, the literal \177 byte in a here document
45042         would make dash 0.5.5.1-3 access uninitialized memory.
45043         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45044         Instead, use a marker, "@", and filter through tr to create the desired
45045         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45046
45047 2009-09-27  Bruno Haible  <bruno@clisp.org>
45048
45049         Disable untested support for new flavours of ACLs on AIX.
45050         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45051         progress.
45052         * lib/set-mode-acl.c (qset_acl): Likewise.
45053
45054 2008-12-07  Bruno Haible  <bruno@clisp.org>
45055
45056         Add support for new flavours of ACLs on AIX. (Untested.)
45057         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45058         (file_has_acl): Add support for newer AIX.
45059         * lib/set-mode-acl.c (qset_acl): Likewise.
45060         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45061         Rainer Tammer <tammer@tammer.net>.
45062
45063 2009-09-26  Eric Blake  <ebb9@byu.net>
45064
45065         argp: fix compilation of getopt
45066         * lib/getopt.in.h (includes): Use different guard than glibc.
45067         Reported by Sergey Poznyakoff.
45068
45069         doc: mention more cygwin 1.7 status
45070         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
45071         bug.
45072         * doc/posix-functions/execl.texi (execl): Likewise.
45073         * doc/posix-functions/execle.texi (execle): Likewise.
45074         * doc/posix-functions/execlp.texi (execlp): Likewise.
45075         * doc/posix-functions/execv.texi (execv): Likewise.
45076         * doc/posix-functions/execve.texi (execve): Likewise.
45077         * doc/posix-functions/execvp.texi (execvp): Likewise.
45078         * doc/glibc-functions/canonicalize_file_name.texi
45079         (canonicalize_file_name): Cygwin 1.7 now provides this.
45080         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
45081         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
45082         on AT_SYMLINK_NOFOLLOW.
45083
45084 2009-09-24  Eric Blake  <ebb9@byu.net>
45085
45086         test-linkat: make test more robust
45087         * tests/test-linkat.c (main): Avoid collision with EEXIST.
45088
45089         getopt: fix inclusion guards for cygwin
45090         * modules/getopt-posix (Depends-on): Add include-next.
45091         (Makefile.am): Substitute more items in replacement header.
45092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
45093         <getopt.h>.
45094         * lib/getopt.in.h (includes): Use split inclusion guard, and
45095         prefer <getopt.h> over include <unistd.h> when one is present.
45096         (option): Also override name of 'struct option'.
45097
45098         same-inode: revert prior change; it is not yet ready
45099         * NEWS: Undo mention of this change.
45100         * lib/same-inode.h (same-inode.h): Undo tri-state change.
45101         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45102         * lib/cycle-check.c (cycle_check): Likewise.
45103         * lib/same.c (same_name): Likewise.
45104         * lib/at-func2.c (at_func2): Likewise.
45105
45106 2009-09-23  Eric Blake  <ebb9@byu.net>
45107
45108         linkat: new module
45109         * modules/linkat: New file.
45110         * lib/at-func2.c (at_func2): Likewise.
45111         * lib/linkat.c (linkat): Likewise.
45112         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
45113         * lib/openat-priv.h (at_func2): Add declaration.
45114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45115         * modules/unistd (Makefile.am): Substitute them.
45116         * lib/unistd.in.h (linkat): Declare it.
45117         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45118         * doc/posix-functions/linkat.texi (linkat): Likewise.
45119         * doc/posix-functions/link.texi (link): Tweak wording.
45120         * tests/test-link.c (main): Move guts...
45121         * tests/test-link.h (test_link): ...into new file.
45122         * modules/linkat-tests: New test.
45123         * tests/test-linkat.c: Likewise.
45124         * modules/link-tests (Files): Ship new file.
45125         (Depends-on): Add stdbool.
45126
45127         dirname: add library-safe mdir_name
45128         * lib/dirname.h (mdir_name): New prototype.
45129         * lib/dirname.c (dir_name): Move guts...
45130         (mdir_name): ...to new function that avoids xalloc_die.
45131
45132         fchdir: another mingw fix
45133         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
45134         * lib/fchdir.c (get_name): New helper method; skips canonicalize
45135         on mingw (where it has not yet been ported), and make it optional
45136         elsewhere.
45137         (_gl_register_fd): Use it.
45138
45139         same-inode: make SAME_INODE tri-state, to port to mingw
45140         * NEWS: Mention this change.
45141         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
45142         st_ino always being 0.
45143         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
45144         * lib/cycle-check.c (cycle_check): Likewise.
45145         * lib/same.c (same_name): Likewise.
45146
45147         lstat: avoid mingw compilation error
45148         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
45149         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
45150         lstat ourselves.
45151         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
45152         was adequate.
45153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
45154         the checks for lstat.
45155         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
45156
45157         link: fix test failure on Solaris 9
45158         * lib/link.c (rpl_link): Don't assume link will catch bogus
45159         trailing slash on source.
45160
45161         test-symlinkat: enhance test
45162         * tests/test-readlink.c (main): Move guts...
45163         * tests/test-readlink.h (test_readlink): ...into new file.
45164         * tests/test-symlink.c (main): Move guts...
45165         * tests/test-symlink.h (test_symlink): ...into new file.
45166         * tests/test-symlinkat.c (main): Use new files for further
45167         coverage.
45168         (do_symlink, do_readlink): New helper functions.
45169         * modules/symlink-tests (Files): Ship new file.
45170         (Depends-on): Add stdbool.
45171         * modules/readlink-tests (Files): Ship new file.
45172         (Depends-on): Add stdbool.
45173         * modules/symlinkat-tests (Files): Use new files.
45174
45175 2009-09-23  Eric Blake  <ebb9@byu.net>
45176
45177         readlink: document portability issue with symlink length
45178         * doc/posix-functions/lstat.texi (lstat): Mention that some file
45179         systems have bogus st_size on symlinks, and mention the
45180         areadlink-with-size module.
45181         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45182         * doc/posix-functions/readlink.texi (readlink): Mention the
45183         areadlink module, and ERANGE failure.
45184         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45185         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
45186
45187         readlink: fix Solaris 9 bug with trailing slash
45188         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
45189         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
45190         * doc/posix-functions/readlink.texi (readlink): Document this.
45191         * modules/readlink-tests: New test.
45192         * tests/test-readlink.c: Likewise.
45193
45194         readlink: fix cygwin 1.5.x bug with return type
45195         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
45196         * lib/unistd.in.h (readlink): Use ssize_t.
45197         * lib/readlink.c (readlink): Likewise.
45198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45199         * modules/unistd (Makefile.am): Substitute it.
45200         * lib/unistd.in.h (readlink): Declare replacement.
45201         * doc/posix-functions/readlink.texi (readlink): Document this.
45202
45203         symlink: use throughout gnulib
45204         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
45205         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
45206         symlink is not used.
45207         * modules/symlinkat (Depends-on): Add symlink.
45208         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45209         * modules/canonicalize-tests (Depends-on): Likewise.
45210         * modules/lstat-tests (Depends-on): Likewise.
45211         * modules/openat-tests (Depends-on): Likewise.
45212         * modules/remove-tests (Depends-on): Likewise.
45213         * modules/rmdir-tests (Depends-on): Likewise.
45214         * modules/unlink-tests (Depends-on): Likewise.
45215         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
45216         * tests/test-canonicalize.c (symlink): Likewise.
45217         * tests/test-fstatat.c (symlink): Likewise.
45218         * tests/test-lstat.c (symlink): Likewise.
45219         * tests/test-remove.c (symlink): Likewise.
45220         * tests/test-rmdir.c (symlink): Likewise.
45221         * tests/test-unlink.c (symlink): Likewise.
45222         * tests/test-unlinkat.c (symlink): Likewise.
45223
45224         symlink: new module, for Solaris 9 bug
45225         * modules/symlink: New file.
45226         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
45227         * lib/symlink.c: Likewise.
45228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
45229         * modules/unistd (Makefile.am): Substitute them.
45230         * lib/unistd.in.h (symlink): Declare replacement.
45231         * MODULES.html.sh (File system functions): Mention it.
45232         * doc/posix-functions/symlink.texi (symlink): Likewise.
45233         * modules/symlink-tests: New test.
45234         * tests/test-symlink.c: Likewise.
45235
45236 2009-09-23  Bruno Haible  <bruno@clisp.org>
45237
45238         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
45239         when needed.
45240         Test case: gnulib-tool --import --with-tests atexit inttypes.
45241         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
45242
45243 2009-09-23  Bruno Haible  <bruno@clisp.org>
45244
45245         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
45246         subcommand, not in a subshell.
45247
45248 2009-09-22  Eric Blake  <ebb9@byu.net>
45249
45250         unistd: sort replacement declarations
45251         * lib/unistd.in.h: Sort declarations.
45252
45253         open, openat: minor optimization
45254         * lib/open.c (open): If open succeeded, len is non-zero.
45255         * lib/openat.c (rpl_openat): Likewise.
45256
45257         link-follow: ensure correct result
45258         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
45259         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
45260         distinguish between possible failures.
45261
45262 2009-09-21  Eric Blake  <ebb9@byu.net>
45263
45264         fts: avoid compiler warning
45265         * lib/fts.c (dirent_inode_sort_may_be_useful)
45266         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
45267
45268 2009-09-19  Bruno Haible  <bruno@clisp.org>
45269
45270         * lib/progreloc.c (canonicalize_file_name): New declaration.
45271
45272 2009-09-19  Eric Blake  <ebb9@byu.net>
45273
45274         link: fix quoting
45275         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
45276
45277         openat: fix openat bugs on Solaris 9
45278         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
45279         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
45280         * modules/openat (Depends-on): Add open.
45281         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
45282         * modules/fcntl-h (Makefile.am): Substitute it.
45283         * lib/fcntl.in.h (openat): Declare replacement.
45284         * doc/posix-functions/openat.texi (openat): Document this.
45285
45286         openat: move fstatat and unlinkat into correct files
45287         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
45288         compiled.
45289         * lib/openat.c (fstatat, unlinkat): Move...
45290         * lib/fstatat.c (fstatat): ...into correct files.
45291         * lib/unlinkat.c (unlinkat): Likewise.
45292
45293         openat: fix unlinkat bugs on Solaris 9
45294         * lib/unlinkat.c (unlinkat): New file.
45295         * modules/openat (Depends-on): Add unlink.
45296         (Files): Distribute it.
45297         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
45298         trailing slash behavior is broken.
45299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45300         * modules/unistd (Makefile.am): Substitute it.
45301         * lib/unistd.in.h (unlinkat): Declare replacement.
45302         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
45303
45304         openat: fix fstatat bugs on Solaris 9
45305         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
45306         stat.
45307         * doc/posix-functions/fstatat.texi (fstatat): Document this.
45308
45309         test-unlinkat: enhance test, to expose Solaris 9 bug
45310         * tests/test-unlink.c (main): Factor guts...
45311         * tests/test-unlink.h (test_rmdir_func): ...into new file.
45312         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
45313         * tests/test-rmdir.c (main): Adjust caller.
45314         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
45315         (unlinker): New helper function.
45316         (rmdirat): Enhance check.
45317         * modules/rmdir-tests (Depends-on): Add stdbool.
45318         * modules/unlink-tests (Depends-on): Likewise.
45319         (Files): Add test-unlink.h.
45320         * modules/openat-tests (Files): Likewise.
45321         (Depends-on): Add unlinkdir.
45322
45323         test-fstatat: new test, to expose Solaris 9 bugs
45324         * tests/test-stat.c (main): Factor guts...
45325         * tests/test-stat.h (test_stat_func): ...into new file.
45326         * tests/test-lstat.c (main): Factor guts...
45327         * tests/test-lstat.h (test_lstat_func): ...into new file.
45328         * tests/test-fstatat.c: New file.
45329         * modules/stat-tests (Files): Add test-stat.h.
45330         * modules/lstat-tests (Files): Add test-lstat.h.
45331         (Depends-on): Add stdbool.
45332         * modules/openat-tests (Depends-on): Add pathmax.
45333         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
45334         (Makefile.am): Run new test.
45335
45336         remove: new module, for mingw and Solaris 9 bugs
45337         * modules/remove: New file.
45338         * lib/remove.c: Likewise.
45339         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
45340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45341         * modules/stdio (Makefile.am): Use them.
45342         * lib/stdio.in.h (remove): Declare replacement.
45343         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45344         * doc/posix-functions/remove.texi (remove): Likewise.
45345         * modules/remove-tests: New test.
45346         * tests/test-remove.c: Likewise.
45347
45348         unlink: new module, for Solaris 9 bug
45349         * modules/unlink: New file.
45350         * lib/unlink.c: Likewise.
45351         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
45352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45353         * modules/unistd (Makefile.am): Use them.
45354         * lib/unistd.in.h (stat): Declare replacement.
45355         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45356         * doc/posix-functions/unlink.texi (unlink): Likewise.
45357         * modules/unlink-tests: New test.
45358         * tests/test-unlink.c: Likewise.
45359
45360         lstat: fix Solaris 9 bug
45361         * lib/lstat.c (lstat): Also check for trailing slash on
45362         non-symlink, non-directories.  Use stat module to simplify logic.
45363         * doc/posix-functions/lstat.texi (lstat): Document it.
45364         * modules/lstat-tests (Depends-on): Add errno, same-inode.
45365         (configure.ac): Check for symlink.
45366         * tests/test-lstat.c (main): Add more tests.
45367
45368         stat: add as dependency to other modules
45369         * modules/chown (Depends-on): Add stat.
45370         * modules/euidaccess (Depends-on): Likewise.
45371         * modules/fchdir (Depends-on): Likewise.
45372         * modules/isdir (Depends-on): Likewise.
45373         * modules/link (Depends-on): Likewise.
45374         * modules/lstat (Depends-on): Likewise.
45375         * modules/mkdir-p (Depends-on): Likewise.
45376         * modules/modechange (Depends-on): Likewise.
45377         * modules/open (Depends-on): Likewise.
45378         * modules/readlink (Depends-on): Likewise.
45379         * modules/same (Depends-on): Likewise.
45380
45381         stat: fix Solaris 9 bug
45382         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
45383         slash.
45384         * lib/stat.c (rpl_stat): Work around it.
45385         * doc/posix-functions/stat.texi (stat): Update documentation.
45386
45387         stat: new module, for mingw bug
45388         * modules/stat: New file.
45389         * lib/stat.c: Likewise.
45390         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
45391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45392         * modules/sys_stat (Makefile.am): Use them.
45393         * lib/sys_stat.in.h (stat): Declare replacement.
45394         * lib/openat.c (fstatat): Deal with lstat and stat being function
45395         macros.
45396         * modules/openat (Depends-on): Add inline.
45397         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45398         * doc/posix-functions/stat.texi (stat): Likewise.
45399         * modules/stat-tests: New test.
45400         * tests/test-stat.c: Likewise.
45401
45402 2009-09-19  Jim Meyering  <meyering@redhat.com>
45403
45404         syntax-check: detect unnecessary inclusion of canonicalize.h
45405         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
45406
45407 2009-09-19  Eric Blake  <ebb9@byu.net>
45408
45409         canonicalize-lgpl: adjust clients to use correct header
45410         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45411         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
45412         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
45413         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
45414         * lib/progreloc.c (includes): Likewise.
45415
45416 2009-09-19  Jim Meyering  <meyering@redhat.com>
45417
45418         test-posixtm.c: correct a comment
45419         * tests/test-posixtm.c: Correct first-line comment.
45420         Spotted by Eric Blake.
45421
45422 2009-09-16  Jim Meyering  <meyering@redhat.com>
45423
45424         posixtm-tests: make T const-correct; add a test case
45425         * tests/test-posixtm.c (T): Declare const.
45426         Add a test for -(2^31+1).
45427         Remove useless can-succeed-only-in-2002 test.
45428
45429         posixtm-tests: adjust the sole failing test
45430         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
45431         expected output matches what mktime now produces.  Cross-checked via
45432         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
45433
45434         posixtm: move #ifdef'd tests into a new module
45435         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
45436         * tests/test-posixtm.c: ... this new file.
45437         * modules/posixtm-tests: New module.
45438
45439 2009-09-19  Eric Blake  <ebb9@byu.net>
45440
45441         openat: simplify use of at-func.c
45442         * lib/at-func.c (includes): Include prerequisites here, to
45443         simplify requirements on client files.
45444         * lib/openat-priv.h: Add double-inclusion guard.
45445         * lib/faccessat.c (includes): Simplify.
45446         * lib/fchmodat.c (includes): Likewise.
45447         * lib/fchownat.c (includes): Likewise.
45448         * lib/mkdirat.c (includes): Likewise.
45449         * lib/mkfifoat.c (includes): Likewise.
45450         * lib/symlinkat.c (includes): Likewise.
45451
45452         openat: allow return of fd 0
45453         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
45454         * modules/save-cwd (Depends-on): Replace fcntl-safer with
45455         unistd-safer.
45456         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
45457         <fcntl.h>; this module does not leak fds.
45458         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
45459         must be allowed to return 0, leaving openat_safer to add the
45460         safety.
45461         (openat_permissive): Avoid writing to just-opened fd 2 if
45462         restoring the current directory fails.
45463         * lib/openat-die.c (openat_restore_fail): Add comment.
45464         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
45465         (save_cwd): Guarantee safe fd, but without use of open_safer.
45466         * tests/test-openat.c: New test.
45467         * modules/openat-tests (Files, Makefile.am): Distribute and build
45468         new file.
45469
45470         relocatable-prog-wrapper: fix build
45471         * modules/relocatable-prog-wrapper (Files): Update name of
45472         canonicalize m4 file, broken on 2009-09-17.
45473         Reported by emad hajjar <aleppos@hotmail.com>.
45474
45475 2009-09-19  Bruno Haible  <bruno@clisp.org>
45476
45477         * lib/safe-alloc.h: Use the standard header with GPL copyright.
45478         * lib/safe-alloc.c: Likewise.
45479         Reported by Ian Beckwith <ianb@erislabs.net>.
45480
45481 2009-09-18  Bruno Haible  <bruno@clisp.org>
45482
45483         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
45484         Reported by <erobles@sensacd.com.mx>.
45485
45486 2009-09-17  Eric Blake  <ebb9@byu.net>
45487
45488         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
45489         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
45490         slashes when checking if last component is missing.
45491         * tests/test-canonicalize.c (main): Test this.
45492
45493         canonicalize, canonicalize-lgpl: honor // if distinct from /
45494         * modules/canonicalize (Files): Add double-slash-root.m4.
45495         * modules/canonicalize-lgpl (Files): Likewise.
45496         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
45497         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
45498         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
45499         fallback definition.
45500         (canonicalize_filename_mode): Use it to protect //.
45501         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
45502         (__realpath): Likewise.
45503         * tests/test-canonicalize.c (main): Test this.
45504         * tests/test-canonicalize-lgpl.c (main): Likewise.
45505         * modules/canonicalize-tests (Depends-on): Add same-inode.
45506         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
45507
45508         canonicalize-lgpl: fix glibc bug with trailing slash
45509         * m4/canonicalize-lgpl.m4: Move contents...
45510         * m4/canonicalize.m4: ...here.
45511         (gl_CANONICALIZE_LGPL): Factor realpath check...
45512         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
45513         glibc 2.3.5 bug, fixed 2005-04-27.
45514         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
45515         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
45516         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
45517         * modules/canonicalize-lgpl (Files): Manage file rename.
45518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45519         * modules/stdlib (Makefile.am): Substitute witness.
45520         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
45521         is needed.
45522         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
45523         replacement is required.
45524         * lib/canonicalize.c (canonicalize_file_name): Likewise.
45525         * doc/glibc-functions/canonicalize_file_name.texi
45526         (canonicalize_file_name): Document this.
45527         * doc/posix-functions/realpath.texi (realpath): Likewise.
45528
45529         canonicalize-lgpl: reject non-directory with trailing slash
45530         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
45531         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
45532         catches failures in glibc 2.3.5.
45533         * tests/test-canonicalize.c (main): Likewise.
45534
45535         canonicalize-lgpl: use native realpath if it works
45536         * lib/canonicalize-lgpl.c (realpath): Guard with
45537         FUNC_REALPATH_WORKS.
45538         * lib/stdlib.in.h (realpath): Make declaration optional based on
45539         HAVE_REALPATH.
45540         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
45541         native realpath works.
45542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
45543         * modules/stdlib (Makefile.am): Substitute witness.
45544
45545         canonicalize, canonicalize-lgpl: use <stdlib.h>
45546         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
45547         (Include): Mention <stdlib.h>.
45548         (configure.ac): Mention functions we provide.
45549         * modules/canonicalize (configure.ac): Likewise.
45550         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
45551         realpath if canonicalize_file_name is missing.
45552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
45553         * modules/stdlib (Makefile.am): Substitute witnesses.
45554         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
45555         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
45556         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
45557         * NEWS: Document this.
45558         * doc/glibc-functions/canonicalize_file_name.texi
45559         (canonicalize_file_name): Likewise.
45560         * doc/posix-functions/realpath.texi (realpath): Likewise.
45561         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
45562
45563         test-canonicalize: consolidate into single C program
45564         * tests/test-canonicalize.sh: Delete; move setup into...
45565         * tests/test-canonicalize.c (main): ...the program, making it
45566         easier to run in debugger.  Add some tests.
45567         * modules/canonicalize-tests (Files): Remove unused file.
45568         (Depends-on): Add progname.
45569         (configure.ac, Makefile.am): Simplify.
45570
45571         test-canonicalize-lgpl: consolidate into single C program
45572         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
45573         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
45574         easier to run in debugger.  Add some tests.
45575         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
45576         (configure.ac, Makefile.am): Simplify.
45577
45578         canonicalize: avoid resolvepath
45579         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
45580         unnecessary checks.
45581         * lib/canonicalize.c (includes): Simplify.
45582         (canonicalize_file_name): Drop resolvepath implementation.
45583         * modules/canonicalize (Depends-on): Drop filenamecat.
45584
45585         canonicalize: don't lose errno
45586         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
45587         over calls to free.
45588
45589         canonicalize: simplify errno handling
45590         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
45591         assignment.
45592
45593         canonicalize, canonicalize-lgpl: update module dependencies
45594         * modules/canonicalize (Depends-on): Add extensions, lstat,
45595         pathmax, stdlib.
45596         (Files): Drop pathmax.h.
45597         (configure.ac): Adjust macro name.
45598         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
45599         lstat, stdlib, sys_stat.
45600         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
45601         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
45602         extensions.
45603         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
45604         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
45605         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
45606         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
45607         declaration, if available.
45608         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
45609         we can rely on the readlink module.
45610         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
45611         (includes): Use <unistd.h> unconditionally.
45612
45613 2009-09-17  Eric Blake  <ebb9@byu.net>
45614
45615         maint: make Include sections of modules consistent
45616         * modules/alloca: Use only header name; no need to list #include.
45617         * modules/alloca-opt: Likewise.
45618         * modules/arpa_inet: Likewise.
45619         * modules/canon-host: Likewise.
45620         * modules/configmake: Likewise.
45621         * modules/dirent: Likewise.
45622         * modules/eealloc: Likewise.
45623         * modules/environ: Likewise.
45624         * modules/fchdir: Likewise.
45625         * modules/fcntl: Likewise.
45626         * modules/fcntl-h: Likewise.
45627         * modules/gethrxtime: Likewise.
45628         * modules/gettime: Likewise.
45629         * modules/ignore-value: Likewise.
45630         * modules/inet_ntop: Likewise.
45631         * modules/inet_pton: Likewise.
45632         * modules/inttypes: Likewise.
45633         * modules/isnand-nolibm: Likewise.
45634         * modules/isnanf-nolibm: Likewise.
45635         * modules/mbchar: Likewise.
45636         * modules/mbfile: Likewise.
45637         * modules/mbiter: Likewise.
45638         * modules/mbuiter: Likewise.
45639         * modules/netdb: Likewise.
45640         * modules/netinet_in: Likewise.
45641         * modules/nproc: Likewise.
45642         * modules/pagealign_alloc: Likewise.
45643         * modules/poll: Likewise.
45644         * modules/printf-frexp: Likewise.
45645         * modules/pthread: Likewise.
45646         * modules/putenv: Likewise.
45647         * modules/random_r: Likewise.
45648         * modules/relocatable-prog: Likewise.
45649         * modules/search: Likewise.
45650         * modules/select: Likewise.
45651         * modules/selinux-h: Likewise.
45652         * modules/settime: Likewise.
45653         * modules/signal: Likewise.
45654         * modules/size_max: Likewise.
45655         * modules/socklen: Likewise.
45656         * modules/ssize_t: Likewise.
45657         * modules/stdarg: Likewise.
45658         * modules/stdbool: Likewise.
45659         * modules/stddef: Likewise.
45660         * modules/stdint: Likewise.
45661         * modules/stdio: Likewise.
45662         * modules/stdlib: Likewise.
45663         * modules/string: Likewise.
45664         * modules/strings: Likewise.
45665         * modules/sys_file: Likewise.
45666         * modules/sys_ioctl: Likewise.
45667         * modules/sys_select: Likewise.
45668         * modules/sys_socket: Likewise.
45669         * modules/sys_stat: Likewise.
45670         * modules/sys_time: Likewise.
45671         * modules/sys_times: Likewise.
45672         * modules/sys_utsname: Likewise.
45673         * modules/sys_wait: Likewise.
45674         * modules/sysexits: Likewise.
45675         * modules/time: Likewise.
45676         * modules/times: Likewise.
45677         * modules/tmpfile: Likewise.
45678         * modules/trim: Likewise.
45679         * modules/unistd: Likewise.
45680         * modules/wchar: Likewise.
45681         * modules/wctype: Likewise.
45682
45683 2009-09-17  Bruno Haible  <bruno@clisp.org>
45684
45685         Make getdate.y compile on QNX and NetBSD 5 / i386.
45686         * m4/getdate.m4 (gl_GETDATE): Conditionally define
45687         TIME_T_FITS_IN_LONG_INT.
45688         * lib/getdate.y (long_time_t): New type.
45689         (relative_time): Change type of 'seconds' field to long_time_t.
45690         (get_date): Update types of local variables. Check against overflow
45691         during conversion from long_time_t to time_t.
45692         Reported by Matt Kraai <kraai@ftbfs.org>
45693         and Hasso Tepper <hasso@netbsd.org>.
45694
45695 2009-09-17  Bruno Haible  <bruno@clisp.org>
45696
45697         * modules/COPYING: Update copyright years.
45698         * modules/README: Likeiwse.
45699         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
45700         Reported by Ian Beckwith <ianb@erislabs.net>.
45701
45702 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45703
45704         * users.txt: Update references for gnuit package.
45705
45706 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
45707
45708         * m4/getdelim.m4: Fix typo in copyright line.
45709
45710 2009-09-17  Bruno Haible  <bruno@clisp.org>
45711
45712         * lib/atoll.c: Use the standard header with GPL copyright.
45713         * lib/argz.in.h: Likewise.
45714         * lib/glob.c: Likewise.
45715         * lib/glob-libc.h: Likewise.
45716         * lib/random_r.c: Likewise.
45717         * lib/siglist.h: Likewise.
45718         * lib/strsignal.c: Likewise.
45719         Reported by Ian Beckwith <ianb@erislabs.net>.
45720
45721 2009-09-17  Eric Blake  <ebb9@byu.net>
45722
45723         rmdir: ensure correct dependency order
45724         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
45725
45726 2009-09-17  Bruno Haible  <bruno@clisp.org>
45727
45728         Disable assertion that fails on NetBSD 5 / i386.
45729         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
45730         Reported by Sam Steingold <sds@gnu.org>
45731         and Hasso Tepper <hasso@netbsd.org>.
45732
45733 2009-09-16  Eric Blake  <ebb9@byu.net>
45734
45735         unlinkdir: port to mingw
45736         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
45737         on which no one can unlink a directory.
45738
45739         stdlib: sort witness names
45740         * modules/stdlib (Makefile.am): Sort replacements.
45741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
45742         * lib/stdlib.in.h: Likewise.
45743
45744         parse-duration-tests: avoid link failure
45745         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
45746         LIBINTL.
45747         Reported by Tom G. Christensen.
45748
45749         openat-tests: ensure unlinkat behaves like rmdir
45750         * tests/test-rmdir.c (main): Factor guts...
45751         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
45752         * modules/rmdir-tests (Files): Ship new file.
45753         * modules/openat-tests: New test.
45754         * tests/test-unlinkat.c: Likewise.
45755
45756         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
45757         * modules/rmdir-errno (Status, Notice): Now obsolete.
45758
45759         rmdir: work around cygwin 1.5.x and mingw bugs
45760         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
45761         * lib/rmdir.c (rmdir): Work around it.
45762         * modules/rmdir (Status, Notice): No longer obsolete.
45763         (Files): Add dos.m4.
45764         (Depends-on): Add unistd.
45765         (configure.ac): Set witnesses.
45766         (License): Relax to LGPLv2+.
45767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
45768         * modules/unistd (Makefile.am): Substitute witnesses.
45769         * lib/unistd.in.h (rmdir): Declare replacement.
45770         * doc/posix-functions/rmdir.texi (rmdir): Document this.
45771         * modules/rmdir-tests: New tests.
45772         * tests/test-rmdir.c: Likewise.
45773
45774 2009-09-15  Eric Blake  <ebb9@byu.net>
45775
45776         fchdir: improve use of replacement functions
45777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
45778         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
45779         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
45780         REPLACE_CLOSEDIR.
45781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
45782         * modules/sys_stat (Makefile.am): Substitute correct witness.
45783         * modules/dirent (Makefile.am): Likewise.
45784         * modules/unistd (Makefile.am): Likewise.
45785         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
45786         * lib/unistd.in.h (dup): Likewise.
45787         * lib/sys_stat.in.h (fstat): Likewise.
45788
45789         maint: ignore gnulib-tool temp files
45790         * .gitignore: Ignore files created during gnulib-tool --test.
45791
45792 2009-09-13  Jim Meyering  <meyering@redhat.com>
45793
45794         posixtm: don't reject a time that specify "60" as the number of seconds
45795         * lib/posixtm.c (posixtime): The code to reject invalid dates
45796         would also reject a time specified with the .60 suffix.
45797         But POSIX allows that, in order to accommodate leap seconds.
45798         So don't reject it.
45799         (main): Adjust tests accordingly.
45800         * modules/posixtm (Depends-on): Add stpcpy.
45801
45802 2009-09-11  Jim Meyering  <meyering@redhat.com>
45803
45804         announce-gen: include [$release_type] in emitted Subject:
45805         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
45806         e.g., [stable] in the emitted Subject: line.
45807
45808 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45809
45810         Remove obsolete macros from several modules.
45811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
45812         obsolete Autoconf macros with their modern counterparts.
45813         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
45814         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
45815         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
45816         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
45817         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
45818         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45819         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
45820         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
45821         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
45822         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
45823         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45824         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45825         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
45826         * m4/sockets.m4 (gl_SOCKETS): Likewise.
45827         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
45828         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
45829         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
45830         * m4/time_r.m4 (gl_TIME_R): Likewise.
45831         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45832         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45833         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45834
45835         Fix copyright header in build-aux scripts.
45836         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45837         recommendation.
45838         * build-aux/ncftpput-ftp: Likewise.
45839         * build-aux/update-copyright: Likewise.
45840
45841 2009-09-09  Eric Blake  <ebb9@byu.net>
45842
45843         test-link: allow Linux choice of errno
45844         * tests/test-link.c (main): Relax test for alternate error.
45845
45846         strndup: fix improper m4 caching
45847         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45848         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45849         (gl_PREREQ_STRNDUP): Delete.
45850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45851         * modules/string (Makefile.am): Substitute it.
45852         * lib/string.in.h (strndup): Modernize prototype.
45853
45854         getcwd: port to mingw
45855         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45856         different from the POSIX assumptions made throughout the getcwd
45857         module; fortunately, the mingw getcwd does not need replacement.
45858         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45859         * modules/getcwd-tests: New test.
45860         * tests/test-getcwd.c: Likewise.
45861
45862         link: fix platform bugs
45863         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45864         * lib/link.c (link): Work around them.  Fix related mingw bug.
45865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45866         * modules/unistd (Makefile.am): Substitute it.
45867         * lib/unistd.in.h (link): Declare replacement.
45868         * doc/posix-functions/link.texi (link): Document this.
45869         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45870
45871         test-link: consolidate into single C program, test more cases
45872         * tests/test-link.sh: Delete.
45873         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45874         at least Cygwin and Solaris.
45875         * modules/link-tests (Files): Remove unused file.
45876         (Depends-on): Add errno, sys_stat.
45877         (Makefile.am): Simplify.
45878
45879 2009-09-08  Bruno Haible  <bruno@clisp.org>
45880
45881         Work around towlower, towupper bug on mingw.
45882         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45883         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45884         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45885         * doc/posix-functions/towupper.texi: Likewise.
45886         Reported by Eric Blake.
45887
45888 2009-09-08  Jim Meyering  <meyering@redhat.com>
45889
45890         build: don't try to run autoheader if we don't use it
45891         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45892         is not used in configure.ac.
45893
45894 2009-09-08  Eric Blake  <ebb9@byu.net>
45895
45896         euidaccess: fix compilation error
45897         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45898
45899         rawmemchr: relax license
45900         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45901         okay.
45902         Reported by Jim Meyering.
45903
45904         mkfifoat: new module
45905         * modules/mkfifoat: New file.
45906         * lib/mkfifoat.c: Likewise.
45907         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45908         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45909         * modules/sys_stat (Makefile.am): Use them.
45910         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45911         * MODULES.html.sh (File system functions): Mention module.
45912         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45913         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45914         * modules/mkfifoat-tests: New test.
45915         * tests/test-mkfifoat.c: Likewise.
45916
45917         strchrnul: relax license
45918         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45919         okay.
45920         Reported by Jim Meyering.
45921
45922 2009-09-08  Eric Blake  <ebb9@byu.net>
45923
45924         fstatat: fix compilation on Solaris
45925         * lib/fstatat.c (includes): Add fcntl.h.
45926         Reported by Pádraig Brady.
45927
45928 2009-09-07  Eric Blake  <ebb9@byu.net>
45929
45930         rename: modernize replacement
45931         * modules/rename (Depends-on): Add stdio.
45932         (configure.ac): Declare witness.
45933         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45934         stdio take care of replacement.
45935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45936         * modules/stdio (Makefile.am): Substitute them.
45937         * lib/stdio.in.h (rename): Declare replacement.
45938         * lib/rename.c (includes): Allow cross-compilation to non-windows
45939         machines.
45940         * doc/posix-functions/rename.texi (rename): Improve
45941         documentation.
45942
45943         stdio: sort witness names
45944         * modules/stdio (Makefile.am): Sort replacements.
45945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45946         * lib/stdio.in.h: Likewise.
45947
45948         getcwd: minor cleanups
45949         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45950         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45951
45952         openat: provide more convenience names
45953         * modules/faccessat (configure.ac): Add C witness.
45954         * lib/unistd.in.h (readlinkat): Fix typo.
45955         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45956         convenience wrappers.
45957         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45958         wrappers in syntax checks.
45959
45960 2009-09-06  Eric Blake  <ebb9@byu.net>
45961
45962         doc: fix comments in recent patches
45963         * lib/faccessat.c: Mention correct function.
45964         * lib/fchmodat.c: Likewise.
45965         * lib/fchownat.c: Likewise.
45966         * lib/symlinkat.c: Likewise.
45967         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45968         constants.
45969
45970         faccessat, symlinkat: continue cleanup of previous patch
45971         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45972         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45973         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45975         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45976         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45977         set.
45978
45979 2009-09-06  Bruno Haible  <bruno@clisp.org>
45980
45981         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45982         (fstatat): Declare if GNULIB_FSTATAT is set.
45983         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45984         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45985         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45986         * modules/fcntl-h (Files): Remove m4/openat.m4.
45987         * modules/sys_stat (Files): Remove m4/openat.m4.
45988         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45989         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45990         * modules/unistd (Files): Remove m4/openat.m4.
45991         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45992         GNULIB_OPENAT.
45993         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45994         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45995         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45996         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45997         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45998         gl_OPENAT_DEFAULTS.
45999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46000         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46001         Don't require gl_OPENAT_DEFAULTS.
46002         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46003         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46004         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46005         (gl_OPENAT_DEFAULTS): Remove macro.
46006
46007 2009-09-06  Bruno Haible  <bruno@clisp.org>
46008
46009         * modules/openat (configure.ac): Remove unneeded witness.
46010
46011 2009-09-06  Bruno Haible  <bruno@clisp.org>
46012
46013         Set errno to ENOSYS when a function is entirely unsupported.
46014         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46015         EOPNOTSUPP.
46016         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46017         * modules/chown (Depends-on): Remove errno.
46018
46019 2009-09-06  Bruno Haible  <bruno@clisp.org>
46020
46021         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46022
46023 2009-09-06  Bruno Haible  <bruno@clisp.org>
46024
46025         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46026
46027 2009-09-06  Ben Pfaff  <blp@gnu.org>
46028             Bruno Haible  <bruno@clisp.org>
46029
46030         Work around a glibc bug in strtok_r.
46031         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46032         Undefine if UNDEFINE_STRTOK_R is set.
46033         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46034         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46035         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46036         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46037         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46038         UNDEFINE_STRTOK_R.
46039         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46040
46041 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46042
46043         exclude: minor fix
46044         * lib/exclude.c: Include wctype.h
46045
46046 2009-09-06  Akim Demaille  <demaille@gostai.com>
46047
46048         bootstrap: improve error message
46049         * build-aux/bootstrap (find_tool): Upon failure, report the list
46050         of candidates.
46051         Honor the initial value of the envvar.
46052
46053 2009-09-05  Eric Blake  <ebb9@byu.net>
46054
46055         symlinkat: new module
46056         * modules/symlinkat: New file.
46057         * lib/symlinkat.c: Likewise.
46058         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46060         * modules/unistd (Makefile.am): Use them.
46061         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46062         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
46063         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
46064         * MODULES.html.sh (File system functions): Mention module.
46065         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
46066         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46067         * modules/symlinkat-tests: New test.
46068         * tests/test-symlinkat.c: Likewise.
46069
46070         test-openat-safer: add more checks
46071         * tests/test-openat-safer.c (main): Check more code paths.
46072
46073 2009-09-05  Jim Meyering  <meyering@redhat.com>
46074
46075         syntax-check: detect unnecessary inclusion of openat.h
46076         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
46077
46078 2009-09-05  Bruno Haible  <bruno@clisp.org>
46079
46080         Support towlower, towupper.
46081         * doc/posix-functions/towlower.texi: Mention module wctype.
46082         * doc/posix-functions/towupper.texi: Likewise.
46083         * lib/wctype.in.h (towlower, towupper): New functions.
46084         * tests/test-wctype.c: Include stdio.h, stdlib.h.
46085         (ASSERT): New macro.
46086         (e): New variable.
46087         (main): Test also towlower, towupper. Test WEOF argument.
46088         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46089
46090 2009-09-05  Bruno Haible  <bruno@clisp.org>
46091
46092         Fix conversion behaviour when the input is invalid.
46093         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
46094         mark occurring in first pass of indirect conversion.
46095         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
46096         input.
46097         Found by clang's static analyzer.
46098
46099 2009-09-05  Bruno Haible  <bruno@clisp.org>
46100
46101         * tests/test-striconveh.c (main): Test indirect conversion on platforms
46102         where direct conversion is possible.
46103
46104 2009-09-04  Eric Blake  <ebb9@byu.net>
46105
46106         openat: fail with ENOENT on empty name
46107         * lib/openat-proc.c (openat_proc_name): Special-case the empty
46108         buffer.
46109
46110         link-follow: fix logic bug in prior patch
46111         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
46112         reversed sense of yes and no in prior patch.  Avoid confusing
46113         compilation failure with desired semantics.
46114
46115         link-follow: accommodate mingw and cross-compilation
46116         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
46117         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
46118         cross-compilation results to -1, to make linkat easier to
46119         implement when cross-compiling.  Trivially support mingw.
46120         * modules/link-follow (configure.ac): Call new name.
46121         * NEWS: Mention this.
46122
46123 2009-09-03  Eric Blake  <ebb9@byu.net>
46124
46125         faccessat: compile replacement
46126         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
46127         needed.
46128
46129         fts: fix compilation error
46130         * lib/fts.c (includes): Re-add "openat.h", for
46131         openat_needs_fchdir.
46132
46133         faccessat: new module
46134         * modules/faccessat: New file.
46135         * lib/faccessat.c: Likewise.
46136         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46138         * modules/unistd (Makefile.am): Use it.
46139         * lib/unistd.in.h (faccessat): Declare it.
46140         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
46141         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
46142         * MODULES.html.sh (File system functions): Mention it.
46143         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
46144         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
46145
46146         euidaccess: prefer POSIX over non-standard implementation
46147         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
46148         * lib/euidaccess.c (euidaccess): Use it if available.
46149
46150         openat: make template easier to use
46151         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
46152         AT_FUNC_F2 to be undefined.
46153         (VALIDATE_FLAG): New macro; use it to reject bad flags.
46154         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
46155         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
46156         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
46157         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
46158         Likewise.
46159         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
46160         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
46161         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
46162         Likewise.
46163
46164         openat: declare in POSIX headers
46165         * NEWS: Mention this.
46166         * modules/openat (configure.ac): Declare witnesses.
46167         (Depends-on): Add fcntl-h, sys_stat, unistd.
46168         (Include): Mention correct headers.
46169         * modules/fcntl-h (Depends-on): Add link-warning.
46170         (Files): Add openat.m4.
46171         (Makefile.am): Substitute witnesses.
46172         * modules/sys_stat (Files, Makefile.am): Likewise.
46173         * modules/unistd (Files, Makefile.am): Likewise.
46174         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
46175         (gl_OPENAT_DEFAULTS): New macro.
46176         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
46177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
46178         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
46179         (SYS_STAT_H): Remove unused variable.
46180         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
46181         * lib/fcntl--.h (includes): Remove unneeded header.
46182         * lib/openat-safer.c (includes): Likewise.
46183         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
46184         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
46185         appropriate headers.
46186         (__OPENAT_PREFIX): Delete.
46187         * lib/fcntl.in.h (openat): Provide declaration.
46188         (AT_FDCWD): Fix Solaris bug.
46189         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
46190         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
46191         * lib/fchmodat.c (includes):  Adjust to find declaration.
46192         * lib/fchownat.c (includes): Likewise.
46193         * lib/mkdirat.c (includes): Likewise.
46194         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
46195         still visible.
46196
46197 2009-09-02  Eric Blake  <ebb9@byu.net>
46198
46199         errno: use consistently
46200         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
46201         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
46202         * lib/canonicalize.c (ELOOP): Likewise.
46203         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
46204         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
46205         * lib/lchown.c (EOPNOTSUPP): Likewise.
46206         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
46207         * lib/savewd.c (ESTALE): Likewise.
46208         * lib/settime.c (ENOSYS): Likewise.
46209         * lib/utimens.c (ENOSYS): Likewise.
46210         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
46211         * lib/chdir-safer.c (ELOOP): Likewise.
46212         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
46213         * modules/c-stack (Depends-on): Add errno.
46214         * modules/canonicalize (Depends-on): Likewise.
46215         * modules/chdir-safer (Depends-on): Likewise.
46216         * modules/fdopendir (Depends-on): Likewise.
46217         * modules/inet_ntop (Depends-on): Likewise.
46218         * modules/inet_pton (Depends-on): Likewise.
46219         * modules/lchown (Depends-on): Likewise.
46220         * modules/openat (Depends-on): Likewise.
46221         * modules/savewd (Depends-on): Likewise.
46222         * modules/settime (Depends-on): Likewise.
46223         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
46224
46225         fts: avoid leaking fds
46226         * modules/fts (Depends-on): Add cloexec.
46227         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
46228         flag.
46229
46230         fts: make directory fds more robust
46231         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
46232         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
46233
46234         backupfile, chdir-long, fts, savedir: make safer
46235         * lib/backupfile.c (includes): Use "dirent--.h", since
46236         numbered_backup can write to stderr during readdir.
46237         * lib/savedir.c (includes): Likewise.
46238         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
46239         emulation can write to stderr on failure.
46240         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
46241         * lib/getcwd.c: Document why opendir_safer is unused.
46242         * lib/glob.c: Likewise.
46243         * lib/scandir.c: Likewise.
46244         * lib/openat-proc.c: Likewise, for open_safer.
46245         * modules/backupfile (Depends-on): Add dirent-safer.
46246         * modules/savedir (Depends-on): Likewise.
46247         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
46248         * modules/chdir-long (Depends-on): Add openat-safer.
46249
46250         openat-safer: new module
46251         * modules/openat-safer: New file.
46252         * lib/openat-safer.c: Likewise.
46253         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
46254         * lib/fcntl-safer.h (openat_safer): Declare.
46255         * lib/fcntl--.h (openat): Override.
46256         * MODULES.html.sh (File descriptor based I/O): Mention it.
46257         * lib/openat.h: Add double-inclusion guards.
46258         * lib/openat.c (includes): Only include "fcntl-safer.h", not
46259         "fcntl--.h", so we can implement openat.
46260         * modules/openat-safer-tests: New test.
46261         * tests/test-openat-safer.c: New file.
46262
46263         dirent-safer: new module
46264         * modules/dirent-safer: New file.
46265         * lib/dirent--.h: Likewise.
46266         * lib/dirent-safer.h: Likewise.
46267         * lib/opendir-safer.c: Likewise.
46268         * m4/dirent-safer.m4: Likewise.
46269         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
46270         * modules/dirent-safer-tests: New test.
46271         * tests/test-dirent-safer.c: New file.
46272         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
46273
46274         fdopendir: optimize on mingw
46275         * lib/unistd.in.h (_gl_directory_name): New prototype.
46276         * lib/fchdir.c (_gl_directory_name): Implement it.
46277         (fchdir): Use it to simplify implementation.
46278         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
46279         fchdir, when available, to avoid calling [f]chdir().
46280
46281         fdopendir: split into its own module
46282         * lib/openat.c (fdopendir): Move...
46283         * lib/fdopendir.c: ...into new file.
46284         * modules/fdopendir: New module.
46285         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
46286         * modules/openat (Depends-on): Add fdopendir.
46287         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
46288         fdopendir here.
46289         * modules/savedir (Depends-on): Only need fdopendir, not full
46290         openat.
46291         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
46292         * lib/openat.h (fdopendir): Drop prototype.
46293         * lib/dirent.in.h (fdopendir): Provide prototype.
46294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
46295         * modules/dirent (Makefile.am): Substitute them.
46296         * MODULES.html.sh (File system functions): Mention it.
46297         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
46298         * modules/fdopendir-tests: New file.
46299         * tests/test-fdopendir.c: Likewise.
46300
46301         fchdir: use more consistent macro convention
46302         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
46303         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
46304         REPLACE_FCHDIR, rather than relying on config.h macros.
46305         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
46306         inside a single make-time REPLACE_FCHDIR block, rather than using
46307         the config.h FCHDIR_REPLACEMENT.
46308         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
46309         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
46310         Manage fstat replacement.
46311         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
46312         REPLACE_FCHDIR.
46313         * modules/sys_stat (Files): Add m4/unistd_h.m4.
46314         (Makefile.am): Substitute REPLACE_FCHDIR.
46315         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
46316         FCHDIR_REPLACEMENT.
46317         * lib/dup-safer.c (dup_safer): Likewise.
46318         * lib/dup2.c (rpl_dup2): Likewise.
46319         * lib/dup3.c (rpl_dup3): Likewise.
46320         * lib/open.c (rpl_open): Likewise.
46321
46322         fchdir: simplify error handling, and support dup3
46323         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
46324         stdbool, malloc-posix, realloc-posix.
46325         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
46326         (ensure_dirs_slot): Return false on allocation failure.
46327         (rpl_dup2): Delete.
46328         (_gl_register_dup): New function.
46329         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
46330         (_gl_register_fd): Close fd on allocation failure.
46331         * lib/fcntl.in.h (_gl_register_fd): Update signature.
46332         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
46333         prototype.
46334         (rpl_dup2_fchdir): Delete prototype.
46335         * lib/open.c (open): Update caller.
46336         * lib/dup2.c (dup2): Track fchdir metadata.
46337         * lib/dup3.c (dup3): Likewise.
46338         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
46339         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
46340
46341 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46342
46343         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
46344         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
46345         don't pass arguments to AC_OUTPUT.
46346
46347 2009-09-02  Bruno Haible  <bruno@clisp.org>
46348
46349         * modules/mkdtemp (License): Relicense under LGPLv2+.
46350         Reported by Paolo Bonzini.
46351
46352 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46353
46354         Replace uses of obsolete autoconf macros in Jim's modules.
46355         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
46356         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
46357         can evoke a warning from autoconf when run with -Wobsolete
46358         enabled.  They were declared obsolete for good reasons (see
46359         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
46360         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
46361         should not continue using the deprecated macros.
46362         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
46363         obsolete Autoconf macros with modern counterparts.
46364         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46365         * m4/dos.m4 (gl_AC_DOS): Likewise.
46366         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
46367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
46368         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
46369         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
46370         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
46371         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
46372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
46373         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
46374         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46375         Likewise.
46376         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
46377         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
46378         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
46379         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
46380         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46381         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
46382
46383 2009-09-01  Eric Blake  <ebb9@byu.net>
46384
46385         fchdir: fix off-by-one bug in previous patch
46386         * lib/fchdir.c (rpl_fstat): Use correct bounds.
46387         (_gl_unregister_fd): Delete useless if.
46388
46389 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
46390
46391         maint.mk: sort the list of syntax-check rules
46392         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
46393         easier to get a sense of progress when the rules are run sequentially
46394         and take a long time.
46395
46396 2009-09-01  Simon Josefsson  <simon@josefsson.org>
46397
46398         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
46399         * modules/netinet_in: Likewise.
46400         * modules/sys_file: Likewise.
46401         * modules/sys_ioctl: Likewise.
46402         * modules/sys_select: Likewise.
46403         * modules/sys_socket: Likewise.
46404         * modules/sys_stat: Likewise.
46405         * modules/sys_time: Likewise.
46406         * modules/sys_times: Likewise.
46407         * modules/sys_utsname: Likewise.
46408         * modules/sys_wait: Likewise.
46409
46410 2009-09-01  Jim Meyering  <meyering@redhat.com>
46411
46412         fts: help ensure that return values are not ignored
46413         * lib/fts_.h (__GNUC_PREREQ): Define.
46414         (__attribute_warn_unused_result__): Define.
46415         (fts_children, fts_close, fts_open, fts_read): Declare with
46416         __attribute_warn_unused_result__.
46417
46418         fts: fts_close now fails also when closing a dir file descriptor fails
46419         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
46420         and propagate to caller, along with errno.
46421
46422         announce-gen: correct formatting in --help output
46423         * build-aux/announce-gen (usage): Move the one-line description in
46424         --help output "up", to where it belongs, just after Usage:.
46425
46426 2009-08-31  Eric Blake  <ebb9@byu.net>
46427
46428         fchdir: port to mingw
46429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
46430         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
46431         opened, then use a substitute.
46432         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
46433         replacement.
46434         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
46435         (_gl_register_fd): No need to check stat if open already filters
46436         all directories.
46437         (fchdir): Fix error condition to match POSIX.
46438         * modules/fchdir (Depends-on): Add sys_stat.
46439         * doc/posix-functions/open.texi (open): Document the limitation.
46440         * modules/fchdir-tests: New file.
46441         * tests/test-fchdir.c: Likewise.
46442
46443         canonicalize: allow cross-testing from cygwin to mingw
46444         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
46445         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
46446         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
46447         Likewise.
46448         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
46449         target does not support symlinks.
46450         * tests/test-canonicalize-lgpl.sh: Likewise.
46451
46452         chown: avoid compilation warning on mingw
46453         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
46454         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
46455         mingw.
46456         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46457         * modules/chown (Depends-on): Add errno.
46458
46459 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
46460
46461         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
46462         command.
46463
46464 2009-08-31  Jim Meyering  <meyering@redhat.com>
46465
46466         canonicalize: remove useless initialization
46467         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
46468         initialization of local, "end".
46469
46470 2009-08-30  Bruno Haible  <bruno@clisp.org>
46471
46472         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
46473         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
46474         ENOSYS.
46475
46476 2009-08-30  Bruno Haible  <bruno@clisp.org>
46477
46478         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
46479         /usr/xpg4/bin/tr when it exists.
46480         * tests/test-pipe-filter-gi1.sh: Likewise.
46481
46482 2009-08-30  Bruno Haible  <bruno@clisp.org>
46483
46484         Work around deficient /usr/bin/id program on Solaris.
46485         * tests/test-file-has-acl.sh (ID): New variable.
46486         * tests/test-set-mode-acl.sh (ID): Likewise.
46487         * tests/test-copy-acl.sh (ID): Likewise.
46488         * tests/test-copy-file.sh (ID): Likewise.
46489
46490 2009-08-30  Bruno Haible  <bruno@clisp.org>
46491
46492         New module 'xstriconveh'.
46493         * lib/xstriconveh.h: New file.
46494         * lib/xstriconveh.c: New file.
46495         * modules/xstriconveh: New file.
46496
46497 2009-08-30  Bruno Haible  <bruno@clisp.org>
46498
46499         Make it easier to use mem_cd_iconveh.
46500         * lib/striconveh.h (iconveh_t): New type.
46501         (iconveh_open, iconveh_close): New declarations.
46502         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46503         with a single 'const iconveh_t *' argument.
46504         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
46505         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
46506         with a single 'const iconveh_t *' argument.
46507         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
46508         * tests/test-striconveh.c (main): Update.
46509         * NEWS: Mention the change.
46510
46511 2009-08-30  Bruno Haible  <bruno@clisp.org>
46512
46513         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
46514         problem.
46515
46516 2009-08-30  Bruno Haible  <bruno@clisp.org>
46517
46518         Work around iconv_open problem on Solaris.
46519         * lib/iconv_open-solaris.gperf: New file.
46520         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
46521         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
46522         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
46523         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
46524         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
46525         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
46526
46527 2009-08-29  Jim Meyering  <meyering@redhat.com>
46528
46529         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
46530         * top/maint.mk (cvs-check): Remove target; it was just an alias
46531         to the better-named vc-diff-check.
46532         (maintainer-distcheck): Remove rule.  It was used only from
46533         the (alpha/beta/major) target, and all of its commands but one
46534         were coreutils-specific.
46535         (vc-dist): Remove rule.
46536         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
46537         Run vc-diff-check, not vc-dist.
46538         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
46539
46540 2009-08-27  Bruno Haible  <bruno@clisp.org>
46541
46542         * tests/test-bitrotate.c (main): Remove test that uses a shift count
46543         of 0.
46544
46545 2009-08-27  Bruno Haible  <bruno@clisp.org>
46546
46547         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
46548         compilers.
46549         * doc/func.texi: Document the SunPRO C bug.
46550
46551 2009-08-27  Bruno Haible  <bruno@clisp.org>
46552
46553         Fix link error on Solaris.
46554         * tests/test-parse-duration.c (xstrdup): Remove function.
46555
46556 2009-08-26  Pádraig Brady  <P@draigbrady.com>
46557
46558         ignore-value: handle pointer types, too
46559         * lib/ignore-value.h (__attribute__): Remove definition.
46560         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
46561         of a more concise and more-often effective "(void) i" statement.
46562         (ignore_ptr): New function to suppress warnings from functions that
46563         return pointers, and to make it explicit that one function doesn't
46564         handle all cases.
46565
46566 2009-08-25  Bruno Haible  <bruno@clisp.org>
46567
46568         dup2: work around a Linux bug.
46569         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
46570         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
46571         * doc/posix-functions/dup2.texi: Mention the Linux bug.
46572         Reported by Simon Josefsson.
46573
46574 2009-08-25  Jim Meyering  <meyering@redhat.com>
46575
46576         libguestfs uses gnulib
46577         * users.txt: Add libguestfs.
46578
46579 2009-08-24  Eric Blake  <ebb9@byu.net>
46580
46581         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
46582         * lib/pipe2.c (includes): Add binary-io.h.
46583         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
46584
46585 2009-08-24  Bruno Haible  <bruno@clisp.org>
46586
46587         Tolerate declared but missing accept4 syscall.
46588         * lib/accept4.c (accept4): Invoke original accept4 function first, if
46589         available.
46590         * lib/sys_socket.in.h (accept4): If the function is already present,
46591         override it.
46592         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
46593         * modules/accept4 (Makefile.am): Compile accept4.c always.
46594         Reported by Paolo Bonzini and Eric Blake.
46595
46596 2009-08-23  Bruno Haible  <bruno@clisp.org>
46597
46598         New module 'accept4'.
46599         * lib/sys_socket.in.h (accept4): New declaration.
46600         * lib/accept4.c: New file.
46601         * m4/accept4.m4: New file.
46602         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46603         GNULIB_ACCEPT4, HAVE_ACCEPT4.
46604         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
46605         HAVE_ACCEPT4.
46606         * modules/accept4: New file.
46607         * doc/glibc-functions/accept4.texi: Mention the new module.
46608
46609 2009-08-24  Jim Meyering  <meyering@redhat.com>
46610
46611         progname: also set global program_invocation_name, when possible
46612         Before this change, a libtool-enabled program that calls glibc's
46613         error function would report the program name as
46614         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
46615         * modules/progname (configure.ac): Check for a declaration of
46616         program_invocation_name.
46617         * lib/progname.c:  Include <errno.h>.
46618         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
46619         Set program_invocation_name.
46620
46621 2009-08-23  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/dup3.c: Include <string.h>.
46624
46625 2009-08-23  Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/dup3.c (dup3): Test only once whether the system actually exists.
46628         * lib/pipe2.c (pipe2): Likewise.
46629         Suggested by Eric Blake.
46630
46631 2009-08-23  Bruno Haible  <bruno@clisp.org>
46632
46633         Tolerate declared but missing dup3 syscall.
46634         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
46635         * lib/unistd.in.h (dup3): If the function is already present,
46636         override it.
46637         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
46638         * modules/dup3 (Makefile.am): Compile dup3.c always.
46639         Reported by Paolo Bonzini.
46640
46641 2009-08-23  Bruno Haible  <bruno@clisp.org>
46642
46643         Tolerate declared but missing pipe2 syscall.
46644         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
46645         available.
46646         * lib/unistd.in.h (pipe2): If the function is already present,
46647         override it.
46648         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
46649         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
46650         Reported by Paolo Bonzini.
46651
46652 2009-08-23  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/pipe2.c (pipe2): Move #ifs inside function.
46655
46656 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46657
46658         quotearg: document limitations of quote_these_too
46659         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
46660         those limitations are created.
46661         * lib/quotearg.h (set_char_quoting): Document that digits and
46662         letters that are special after backslash are not permitted.
46663         (quotearg_char): Cross-reference set_char_quoting documentation.
46664
46665 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
46666
46667         quotearg: implement custom_quoting_style
46668         * lib/quotearg.c: (struct quoting_options): Add left_quote and
46669         right_quote fields.
46670         (set_custom_quoting): New public function.
46671         (quotearg_buffer_restyled): Add left_quote and right_quote
46672         arguments, handle them very much like locale quoting, and update
46673         all uses.
46674         (quotearg_n_custom): New public function.
46675         (quotearg_n_custom_mem): New public function.
46676         (quotearg_custom): New public function.
46677         (quotearg_custom_mem): New public function.
46678         * lib/quotearg.h: Prototype and document new public functions.
46679         (enum quoting_style): For escape_quoting_style and
46680         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
46681         ignored even though they're otherwise like c_quoting_style.
46682         Add custom_quoting_style member and document with comparison to
46683         clocale_quoting_style.
46684         * tests/test-quotearg.c (custom_quotes): New array.
46685         (custom_results): New array.
46686         (main): Extend to test custom quoting.
46687
46688 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46689
46690         quotearg: fix right quote escaping when it's in quote_these_too
46691         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
46692         quote, be sure to prepend only one backslash.
46693         * tests/test-quotearg.c (use_quote_double_quotes): New function.
46694         (main): Test it.
46695
46696 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
46697
46698         quotearg-tests: test escaping of embedded locale quotes
46699         * tests/test-quotearg.c (struct result_strings): Add member for
46700         new input.
46701         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
46702         (inputs): Add new input.
46703         (results_g): Add expected results.
46704         (flag_results): Likewise.
46705         (locale_results): Likewise.
46706         (compare_strings): Check those.
46707
46708 2009-08-23  Bruno Haible  <bruno@clisp.org>
46709
46710         Tests for module 'dup3'.
46711         * modules/dup3-tests: New file.
46712         * tests/test-dup3.c: New file.
46713
46714         New module 'dup3'.
46715         * lib/unistd.in.h (dup3): New declaration.
46716         * lib/dup3.c: New file.
46717         * m4/dup3.m4: New file.
46718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
46719         HAVE_DUP3.
46720         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
46721         * modules/dup3: New file.
46722         * doc/glibc-functions/dup3.texi: Mention the new module.
46723
46724 2009-08-23  Bruno Haible  <bruno@clisp.org>
46725
46726         Tweak the dup2 test.
46727         * tests/test-dup2.c (main): Create the test file empty. Verify that an
46728         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
46729         the test file is still empty. Fix argument order of lseek.
46730
46731 2009-08-23  Bruno Haible  <bruno@clisp.org>
46732
46733         Avoid test link errors when the modules getopt-gnu, gettext are used.
46734         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
46735         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46736
46737 2009-08-23  Bruno Haible  <bruno@clisp.org>
46738
46739         Fix getdtablesize() on mingw.
46740         * lib/getdtablesize.c (getdtablesize): Implement differently.
46741         * lib/unistd.in.h (getdtablesize): Improve comment.
46742
46743 2009-08-23  Bruno Haible  <bruno@clisp.org>
46744
46745         New module 'mkostemp'.
46746         Based on Ulrich Drepper's 2007-08-10 change in glibc.
46747         * lib/stdlib.in.h (mksotemp): New declaration.
46748         * lib/mkostemp.c: New file, from glibc with modifications.
46749         * lib/tempname.h (GT_FILE): Remove outdated comment.
46750         (gen_tempname): Add flags argument.
46751         * lib/tempname.c (__GT_BIGFILE): Remove macro.
46752         (__GT_FILE): Map to 1.
46753         (small_open, large_open): Remove macros.
46754         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
46755         * lib/mkstemp.c (mkstemp): Update.
46756         * lib/mkdtemp.c (mkdtemp): Likewise.
46757         * m4/mkostemp.m4: New file.
46758         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
46759         HAVE_MKOSTEMP.
46760         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
46761         HAVE_MKOSTEMP.
46762         * modules/mkostemp: New file, based on modules/mkstemp.
46763         * doc/glibc-functions/mkostemp.texi: Mention the new module.
46764         * NEWS: Mention the change.
46765
46766 2009-08-23  Bruno Haible  <bruno@clisp.org>
46767
46768         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
46769         Reported by Eric Blake.
46770
46771 2009-08-23  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
46774         Reported by Eric Blake.
46775
46776 2009-08-23  Bruno Haible  <bruno@clisp.org>
46777
46778         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
46779         * modules/pipe2 (Depends-on): Likewise.
46780
46781 2009-08-23  Eric Blake  <ebb9@byu.net>
46782
46783         fcntl-h: add O_TTY_INIT support
46784         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
46785         * tests/test-fcntl-h.c (o): Test it.
46786         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46787
46788         fcntl-h: rename from fcntl, in preparation for fcntl(2)
46789         * modules/fcntl: Move <fcntl.h> header replacement...
46790         * modules/fcntl-h: ...to new name, so as not to collide with
46791         like-named function.
46792         * tests/test-fcntl.c: Rename...
46793         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
46794         * modules/fcntl-tests: Rename...
46795         * modules/fcntl-h-tests: ...to this.  Update test file name.
46796         * modules/chdir-long (Depends-on): Update clients.
46797         * modules/chdir-safer (Depends-on): Likewise.
46798         * modules/fcntl-safer (Depends-on): Likewise.
46799         * modules/fts (Depends-on): Likewise.
46800         * modules/mkancesdirs (Depends-on): Likewise.
46801         * modules/mkdir-p (Depends-on): Likewise.
46802         * modules/open (Depends-on): Likewise.
46803         * modules/savewd (Depends-on): Likewise.
46804         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
46805         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
46806
46807 2009-08-22  Bruno Haible  <bruno@clisp.org>
46808
46809         * modules/binary-io (License): Relicense under LGPL.
46810         * modules/pipe2 (License): Likewise.
46811
46812 2009-08-22  Bruno Haible  <bruno@clisp.org>
46813
46814         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
46815         return value.
46816         * lib/pipe-filter-gi.c (filter_init): Likewise.
46817         Reported by Eric Blake.
46818
46819 2009-08-22  Bruno Haible  <bruno@clisp.org>
46820
46821         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
46822         * modules/pipe (Depends-on): Add pipe2.
46823
46824 2009-08-22  Bruno Haible  <bruno@clisp.org>
46825
46826         Tests for module 'pipe2'.
46827         * modules/pipe2-tests: New file.
46828         * tests/test-pipe2.c: New file.
46829
46830         New module 'pipe2'.
46831         * lib/unistd.in.h (pipe2): New declaration.
46832         * lib/pipe2.c: New file.
46833         * m4/pipe2.m4: New file.
46834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46835         HAVE_PIPE2.
46836         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46837         * modules/pipe2: New file.
46838         * doc/glibc-functions/pipe2.texi: Mention the new module.
46839
46840 2009-08-22  Bruno Haible  <bruno@clisp.org>
46841
46842         Reference some new glibc functions.
46843         * doc/glibc-functions/accept4.texi: New file.
46844         * doc/glibc-functions/dup3.texi: New file.
46845         * doc/glibc-functions/mkostemp.texi: New file.
46846         * doc/glibc-functions/pipe2.texi: New file.
46847         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46848         (Glibc sys/socket.h): Refer to accept4.
46849         (Glibc unistd.h): Refer to dup3, pipe2.
46850         Reported by Eric Blake.
46851
46852 2009-08-22  Jim Meyering  <meyering@redhat.com>
46853             Bruno Haible  <bruno@clisp.org>
46854
46855         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46856         This makes it so packages using automake-1.11's silent-rules option
46857         can print e.g., a single "GEN    configmake.h" line, rather than
46858         the 30+ statements that perform the job.  If you want to see the
46859         actual commands, you can still run "make V=1".
46860         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46861         so that make output is abbreviated when those variables are defined
46862         appropriately.
46863         * modules/argz: Likewise.
46864         * modules/arpa_inet: Likewise.
46865         * modules/byteswap: Likewise.
46866         * modules/configmake: Likewise.
46867         * modules/dirent: Likewise.
46868         * modules/errno: Likewise.
46869         * modules/fcntl: Likewise.
46870         * modules/float: Likewise.
46871         * modules/fnmatch: Likewise.
46872         * modules/getopt-posix: Likewise.
46873         * modules/glob: Likewise.
46874         * modules/iconv_open: Likewise.
46875         * modules/inttypes: Likewise.
46876         * modules/localcharset: Likewise.
46877         * modules/locale: Likewise.
46878         * modules/math: Likewise.
46879         * modules/netdb: Likewise.
46880         * modules/netinet_in: Likewise.
46881         * modules/poll: Likewise.
46882         * modules/posix_spawnp-tests: Likewise.
46883         * modules/sched: Likewise.
46884         * modules/search: Likewise.
46885         * modules/selinux-h: Likewise.
46886         * modules/signal: Likewise.
46887         * modules/spawn: Likewise.
46888         * modules/stdarg: Likewise.
46889         * modules/stdbool: Likewise.
46890         * modules/stddef: Likewise.
46891         * modules/stdint: Likewise.
46892         * modules/stdio: Likewise.
46893         * modules/stdlib: Likewise.
46894         * modules/string: Likewise.
46895         * modules/strings: Likewise.
46896         * modules/sys_file: Likewise.
46897         * modules/sys_ioctl: Likewise.
46898         * modules/sys_select: Likewise.
46899         * modules/sys_socket: Likewise.
46900         * modules/sys_stat: Likewise.
46901         * modules/sys_time: Likewise.
46902         * modules/sys_times: Likewise.
46903         * modules/sys_utsname: Likewise.
46904         * modules/sys_wait: Likewise.
46905         * modules/sysexits: Likewise.
46906         * modules/time: Likewise.
46907         * modules/unistd: Likewise.
46908         * modules/wchar: Likewise.
46909         * modules/wctype: Likewise.
46910
46911 2009-08-22  Jim Meyering  <meyering@redhat.com>
46912
46913         announce-gen: detect write failure
46914         * build-aux/announce-gen: Add Coda at end.
46915         Remove equivalent-but-more-verbose block at top.
46916
46917 2009-08-19  Akim Demaille  <demaille@gostai.com>
46918
46919         bootstrap: --help to stdout.
46920         * bootstrap (usage): Don't send --help to stderr.
46921         Use a here doc instead of a long string.
46922
46923 2009-08-21  Eric Blake  <ebb9@byu.net>
46924
46925         test-popen-safer: split from test-popen
46926         * tests/test-popen.c (main): Move...
46927         * tests/test-popen.h: ...into new file.
46928         * tests/test-popen-safer2.c: New file.
46929         * modules/popen-tests (Files): Add test-popen.h.
46930         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46931         Suggested by Bruno Haible.
46932
46933         test-fcntl-safer: split from test-open
46934         * tests/test-open.c (main): Move...
46935         * tests/test-open.h: ...into new file.
46936         * tests/test-fcntl-safer.c: New file.
46937         * modules/open-tests (Files): Add test-open.h.
46938         * modules/fcntl-safer-tests: New file.
46939         Suggested by Bruno Haible.
46940
46941         test-fopen-safer: split from test-fopen
46942         * tests/test-fopen.c (main): Move...
46943         * tests/test-fopen.h: ...into new file.
46944         * tests/test-fopen-safer.c: New file.
46945         * modules/fopen-tests (Files): Add test-fopen.h.
46946         * modules/fopen-safer-tests: New file.
46947         Suggested by Bruno Haible.
46948
46949 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46950
46951         popen-safer: test O_CLOEXEC at run-time.
46952         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46953
46954 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46955
46956         fcntl: move more flags to the header
46957         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46958         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46959         * lib/fcntl.in.h: Do both things here.
46960
46961 2009-08-21  Jim Meyering  <meyering@redhat.com>
46962
46963         consistently remove $@-t before redirecting to it
46964         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46965         * modules/alloca-opt: Likewise.
46966         * modules/byteswap: Likewise.
46967         * modules/fnmatch: Likewise.
46968         * modules/getopt-posix: Likewise.
46969         * modules/glob: Likewise.
46970         * modules/poll: Likewise.
46971         * modules/posix_spawnp-tests: Likewise.
46972         * modules/sys_socket: Likewise.
46973         * modules/sysexits: Likewise.
46974
46975 2009-08-21  Eric Blake  <ebb9@byu.net>
46976
46977         popen: simplify access to original popen
46978         * lib/popen.c (rpl_popen): No need to worry about popen being a
46979         macro.
46980         Reported by Bruno Haible.
46981
46982 2009-08-20  Eric Blake  <ebb9@byu.net>
46983
46984         build: avoid some compiler warnings
46985         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46986         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46987         type.
46988         (new_exclude_segment, excluded_file_pattern_p)
46989         (excluded_file_name_p): Reduce scope.
46990         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46991         old-style declaration.
46992
46993 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46994
46995         * tests/test-exclude1.sh: Handle Windows EOL.
46996         * tests/test-exclude2.sh: Likewise.
46997         * tests/test-exclude3.sh: Likewise.
46998         * tests/test-exclude4.sh: Likewise.
46999         * tests/test-exclude5.sh: Likewise.
47000         * tests/test-exclude6.sh: Likewise.
47001         * tests/test-exclude7.sh: Likewise.
47002
47003 2009-08-19  Akim Demaille  <demaille@gostai.com>
47004
47005         bootstrap: find sha1sum when named gsha1sum.
47006         * bootstrap (find_tool): New.
47007         ($SHA1SUM): New.
47008         Use it.
47009
47010 2009-08-20  Jim Meyering  <meyering@redhat.com>
47011
47012         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47013         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47014         expression that converts "." in a file name to "\." in the resulting
47015         regexp.  Start with a dummy statement, so that prior shell variable
47016         definitions are expanded portably.  Reported by Simon Josefsson.
47017
47018 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47019
47020         Fix polling for writeability of a screen buffer.
47021         * lib/poll.c: Distinguish input and screen buffers for the
47022         Win32 implementation.
47023         * lib/select.c: Likewise.
47024
47025 2009-08-19  Eric Blake  <ebb9@byu.net>
47026
47027         popen-safer: prevent popen from clobbering std descriptors
47028         * modules/popen-safer: New file.
47029         * lib/popen-safer.c: Likewise.
47030         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47031         * lib/stdio--.h (popen): Provide override.
47032         * lib/stdio-safer.h (popen_safer): Provide declaration.
47033         * tests/test-popen.c (includes): Partially test this.
47034         * modules/popen-safer-tests: New file, for more tests.
47035         * tests/test-popen-safer.c: Likewise.
47036         * MODULES.html.sh (file stream based Input/Output): Mention it.
47037
47038         tests: test some of the *-safer modules
47039         * modules/fopen-safer (Depends-on): Add fopen.
47040         * modules/fcntl-safer (Depends-on): Add fcntl.
47041         * modules/stdlib-safer (Depends-on): Add stdlib.
47042         (configure.ac): Set indicator.
47043         * modules/unistd-safer (configure.ac): Likewise.
47044         * modules/tmpfile-safer (configure.ac): Likewise.
47045         (Depends-on): Add tmpfile.
47046         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47047         active.
47048         * tests/test-fopen.c (includes): Test safer versions when they are
47049         in use.
47050         * tests/test-open.c (includes): Likewise.
47051
47052         popen: fix cygwin 1.5 bug when stdin closed
47053         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47054         * modules/popen: New file.
47055         * modules/popen-tests: Likewise.
47056         * tests/test-popen.c: Likewise.
47057         * m4/popen.m4: Likewise.
47058         * lib/popen.c: Likewise.
47059         * lib/stdio.in.h (popen): New declaration.
47060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47061         * modules/stdio (Makefile.am): Likewise.
47062         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
47063
47064 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
47065
47066         maint.mk: give full control over update-copyright exclusions
47067         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
47068         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
47069         (update-copyright): Don't force inclusion of top-level
47070         ChangeLog.  Don't force exclusion of all COPYING files, but make
47071         them the default exclusion instead.
47072
47073 2009-08-16  Bruno Haible  <bruno@clisp.org>
47074
47075         Fix test failures on Solaris 10.
47076         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
47077         tests when Solaris iconv() is used.
47078         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
47079         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
47080         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
47081         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
47082         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
47083
47084 2009-08-16  Bruno Haible  <bruno@clisp.org>
47085
47086         Fix test failures on Solaris 10.
47087         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
47088         'tr' program and pass it as first argument.
47089         * tests/test-pipe-filter-gi1.sh: Likewise.
47090         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
47091         program as first argument.
47092         * tests/test-pipe-filter-gi1.c (main): Likewise.
47093
47094 2009-08-16  Eric Blake  <ebb9@byu.net>
47095
47096         fpurge: fix previous commits
47097         * modules/fpurge (Makefile.am): Make replacement conditional,
47098         partially reverting 2007-04-29 change; missed in previous
47099         attempt.
47100         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
47101         is missing.
47102
47103 2009-08-16  Bruno Haible  <bruno@clisp.org>
47104
47105         Clarify fpurge's effect on the file position.
47106         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
47107         * tests/test-fpurge.c (main): Make a second pass for checking the file
47108         position.
47109
47110 2009-08-16  Bruno Haible  <bruno@clisp.org>
47111
47112         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
47113         declaration of fpurge is missing.
47114         * tests/test-fpurge.c (main): Check that the file has not more contents
47115         than expected. Close the file before removing it.
47116
47117 2009-08-15  Eric Blake  <ebb9@byu.net>
47118
47119         fpurge: don't wrap working cygwin implementation
47120         * lib/fpurge.c (fpurge): Fix comment typo.
47121         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
47122         1.7 to avoid replacement.
47123         * tests/test-fpurge.c (main): Enhance test.
47124
47125 2009-08-15  Eric Blake  <ebb9@byu.net>
47126         and Jim Meyering  <meyering@redhat.com>
47127
47128         test-update-copyright: skip if perl is insufficient
47129         * tests/test-update-copyright.sh: Failure to run maintainer tool
47130         should not cause testsuite failure on cygwin 1.5.
47131
47132 2009-08-14  Eric Blake  <ebb9@byu.net>
47133
47134         doc: mention more functions added in cygwin 1.7.0
47135         * doc/posix-headers/limits.texi (limits.h): Update for recent
47136         cygwin additions.
47137         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
47138         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
47139         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
47140         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
47141         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
47142
47143 2009-08-14  Eric Blake  <ebb9@byu.net>
47144
47145         maint.mk: simplify update-copyright rule
47146         * top/maint.mk (update-copyright-local): Delete, and document how
47147         to do it in cfg.mk instead.
47148         (update-copyright-exclude-regexp): Delete, and document how to do
47149         it in .x-update-copyright instead.
47150         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
47151         exclude ChangeLog.
47152
47153 2009-08-14  Bruno Haible  <bruno@clisp.org>
47154
47155         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
47156
47157 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47158
47159         maint.mk: support update-copyright-env
47160         * top/maint.mk (update-copyright-env): Define place-holder.
47161         (update-copyright): Expand $(update-copyright-env) before
47162         invoking update-copyright.
47163
47164 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47165
47166         update-copyright: implement forced reformatting
47167         * build-aux/update-copyright: Implement and document
47168         UPDATE_COPYRIGHT_FORCE.
47169         * tests/test-update-copyright.sh: Test it.
47170
47171 2009-08-14  Eric Blake  <ebb9@byu.net>
47172         and Bruno Haible  <bruno@clisp.org>
47173
47174         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
47175         * tests/test-locale.c: Revert previous patch related to NULL.
47176         * tests/test-stdio.c: Likewise.
47177         * tests/test-stdlib.c: Likewise.
47178         * tests/test-string.c: Likewise.
47179         * tests/test-unistd.c: Likewise.
47180         * modules/time-tests (Depends-on): Add verify.
47181         * modules/wchar-tests (Depends-on): Likewise.
47182         * tests/test-time.c: Test for NULL compliance.
47183         * tests/test-wchar.c: Likewise.
47184         * modules/locale (Depends-on): Add stddef.
47185         * modules/stdio (Depends-on): Likewise.
47186         * modules/stdlib (Depends-on): Likewise.
47187         * modules/string (Depends-on): Likewise.
47188         * modules/time (Depends-on): Likewise.
47189         * modules/unistd (Depends-on): Likewise.
47190         * modules/wchar (Depends-on): Likewise.
47191         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
47192         * lib/stdlib.in.h (includes): Likewise.
47193         * lib/string.in.h (includes): Likewise.
47194         * lib/time.in.h (includes): Likewise.
47195         * lib/unistd.in.h (includes): Likewise.
47196         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
47197         replaced.
47198         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
47199         * m4/stddef_h.m4: New file.
47200         * modules/stddef: Likewise.
47201         * lib/stddef.in.h: Likewise.
47202         * modules/stddef-tests: Likewise.
47203         * tests/test-stddef.c: Likewise.
47204         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
47205         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
47206         * doc/posix-headers/locale.texi (locale.h): Likewise.
47207         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
47208         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
47209         * doc/posix-headers/string.texi (string.h): Likewise.
47210         * doc/posix-headers/time.texi (time.h): Likewise.
47211         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
47212         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
47213
47214 2009-08-14  Eric Blake  <ebb9@byu.net>
47215
47216         doc: improve git diff of texinfo files
47217         * .gitattributes: Add rule for *.texi files, with hint on how to
47218         use it.
47219         Copied from m4, and based on a report by Bruno Haible.
47220
47221 2009-08-14  Bruno Haible  <bruno@clisp.org>
47222
47223         Disable multithread support by default on Cygwin 1.5.x for real.
47224         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
47225
47226 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
47227
47228         update-copyright: much ado about intervals
47229         * build-aux/update-copyright: Implement and document
47230         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
47231         of copyright year intervals.
47232         Also, document UPDATE_COPYRIGHT_YEAR.
47233         * tests/test-update-copyright.sh: Test it.
47234
47235         update-copyright: convert 2-digit to 4-digit years
47236         * build-aux/update-copyright: Implement and document.
47237         * tests/test-update-copyright.sh: Update.
47238
47239 2009-08-14  Jim Meyering  <meyering@redhat.com>
47240
47241         test-exclude: avoid coreutils "make check" failure
47242         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
47243         just as in test-argmatch.c.
47244
47245 2009-08-13  Eric Blake  <ebb9@byu.net>
47246
47247         test-dup2: fix bad assumption
47248         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
47249         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
47250
47251         test-version-etc: fix CRLF portability issue
47252         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
47253         recognize \r.
47254         * tests/test-argp-version-etc-1.sh: Likewise.
47255
47256         getopt: update client modules
47257         * modules/argp (Depends-on): Use getopt-gnu.
47258         * modules/git-merge-changelog (Depends-on): Likewise.
47259         * modules/long-options (Depends-on): Likewise.
47260         * modules/xstrtol (Depends-on): Likewise.
47261
47262 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47263
47264         * tests/test-version-etc.sh: Don't fail on different
47265         project/version.  Don't fail on CRLF differences.  Rewrite to use
47266         multiple -e instead of multiple sed forks, suggested by Eric Blake
47267         <ebb9@byu.net>.
47268         * tests/test-argp-version-etc-1.sh: Likewise.
47269
47270 2009-08-13  Simon Josefsson  <simon@josefsson.org>
47271
47272         * tests/test-version-etc.sh: Don't fail on different
47273         project/version.
47274
47275 2009-08-12  Bruno Haible  <bruno@clisp.org>
47276
47277         Tests for modules 'getopt-posix', 'getopt-gnu'.
47278         * modules/getopt-posix-tests: New file.
47279         * tests/test-getopt.c: New file.
47280         * tests/test-getopt.h: New file.
47281         * tests/test-getopt_long.h: New file.
47282
47283         New modules 'getopt-posix', 'getopt-gnu'.
47284         * modules/getopt-gnu: New file, renamed from modules/getopt.
47285         * modules/getopt-posix: New file.
47286         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
47287         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
47288         (gl_GETOPT): Remove macro.
47289         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
47290         Disable the test against BSD systems that declare optreset. Test
47291         against mingw bug. Test against lack of support of optional arguments
47292         on many platforms.
47293         * doc/glibc-headers/getopt.texi: Update module name and list of
47294         relevant platforms.
47295         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
47296         'getopt-gnu' and more portability problems.
47297         * NEWS: Mention the changes.
47298
47299 2009-08-12  Bruno Haible  <bruno@clisp.org>
47300
47301         Ensure that optarg etc. get declared by <unistd.h>.
47302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
47303         AC_USE_SYSTEM_EXTENSIONS.
47304         * modules/getopt (Depends-on): Add 'extensions'.
47305
47306 2009-08-12  Bruno Haible  <bruno@clisp.org>
47307
47308         Avoid test link errors.
47309         * modules/pipe-filter-ii-tests (Makefile.am): Define
47310         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
47311         * modules/pipe-filter-gi-tests (Makefile.am): Define
47312         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
47313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47314
47315 2009-08-12  Bruno Haible  <bruno@clisp.org>
47316
47317         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
47318         gl_GETOPT_SUBSTITUTE before.
47319         (gl_GETOPT): Use it.
47320         * m4/argp.m4 (gl_ARGP): Update.
47321         Reported by Sergey Poznyakoff.
47322
47323         * m4/getopt.m4: Reorder macros.
47324         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
47325         (gl_GETOPT_SUBSTITUTE): Remove macro.
47326
47327 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47328
47329         Minor improvement in gitlog-to-changelog
47330
47331         * build-aux/gitlog-to-changelog: New option `--format' makes
47332         output format string configurable.
47333
47334 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47335
47336         Optimize exclude: use hash tables for non-wildcard patterns.
47337
47338         * lib/exclude.c: Include hash.h and mbuiter.h
47339         (struct exclude_pattern, exclude_segment): New data types.
47340         (struct exclude): Rewrite.
47341         (fnmatch_pattern_has_wildcards): New function.
47342         (new_exclude_segment, free_exclude_segment): New functions.
47343         (excluded_file_pattern_p, excluded_file_name_p): New functions.
47344         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
47345         * lib/exclude.h (is_fnmatch_pattern): New prototype.
47346         * modules/exclude: Depend on hash and mbuiter.
47347
47348         * modules/exclude-tests: New file.
47349         * tests/test-exclude.c: New file.
47350         * tests/test-exclude1.sh: New file.
47351         * tests/test-exclude2.sh: New file.
47352         * tests/test-exclude3.sh: New file.
47353         * tests/test-exclude4.sh: New file.
47354         * tests/test-exclude5.sh: New file.
47355         * tests/test-exclude6.sh: New file.
47356         * tests/test-exclude7.sh: New file.
47357
47358 2009-08-12  Bruno Haible  <bruno@clisp.org>
47359
47360         Ensure that getopt() gets declared by <unistd.h>.
47361         * lib/unistd.in.h: Conditionally include getopt.h.
47362         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
47363         Set GNULIB_UNISTD_H_GETOPT.
47364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47365         GNULIB_UNISTD_H_GETOPT.
47366         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
47367
47368 2009-08-12  Bruno Haible  <bruno@clisp.org>
47369
47370         Clarify logic.
47371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
47372         gl_replace_getopt instead of GETOPT_H.
47373
47374 2009-08-12  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/getopt.m4: Add comments.
47377
47378 2009-08-12  Bruno Haible  <bruno@clisp.org>
47379
47380         Disable multithread support by default on Cygwin 1.5.x.
47381         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
47382         set gl_use_threads=no if not specified otherwise.
47383
47384 2009-08-11  Bruno Haible  <bruno@clisp.org>
47385
47386         Avoid compilation error on NetBSD 5.0.
47387         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
47388         * tests/test-stdio.c: Likewise.
47389         * tests/test-stdlib.c: Likewise.
47390         * tests/test-string.c: Likewise.
47391         * tests/test-unistd.c: Likewise.
47392         Reported by Greg Troxel <gdt@ir.bbn.com>
47393         at <https://savannah.gnu.org/support/?106973>.
47394
47395 2009-08-11  Bruno Haible  <bruno@clisp.org>
47396
47397         * modules/dup2-tests (Depends-on): Remove close.
47398
47399         Undo 2009-07-19 commit.
47400         * modules/acl-tests (Depends-on): Remove close.
47401         * modules/binary-io-tests (Depends-on): Likewise.
47402         * modules/closein-tests (Depends-on): Likewise.
47403         * modules/flock-tests (Depends-on): Likewise.
47404         * modules/fsync-tests (Depends-on): Likewise.
47405         * modules/lseek-tests (Depends-on): Likewise.
47406         * modules/pipe-tests (Depends-on): Likewise.
47407         * modules/posix_spawn-tests (Depends-on): Likewise.
47408         * modules/posix_spawnp-tests (Depends-on): Likewise.
47409         * modules/stat-time-tests (Depends-on): Likewise.
47410         * modules/yesno-tests (Depends-on): Likewise.
47411
47412 2009-08-10  Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
47415
47416 2009-08-10  Bruno Haible  <bruno@clisp.org>
47417
47418         Fix a gcc warning.
47419         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
47420
47421 2009-08-10  Bruno Haible  <bruno@clisp.org>
47422
47423         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
47424         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
47425         not only the first time.
47426         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
47427         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
47428         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
47429         is 1, not only the the first time.
47430
47431 2009-08-10  Bruno Haible  <bruno@clisp.org>
47432
47433         Make it possible to use module 'gethostname' without module 'close'.
47434         * lib/unistd.in.h (close): Evoke a link error only if
47435         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47437         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47438         * modules/unistd (Makefile.am): Substitute
47439         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47440         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
47441         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
47442         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
47443         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47444         * modules/sys_ioctl (Makefile.am): Substitute
47445         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47446         * modules/socket (configure.ac): On native Windows, set
47447         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
47448         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
47449         Reported by Sam Steingold <sds@gnu.org>.
47450
47451 2009-08-10  Bruno Haible  <bruno@clisp.org>
47452
47453         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
47454         * modules/ioctl (configure.ac): Likewise.
47455
47456 2009-08-10  Bruno Haible  <bruno@clisp.org>
47457
47458         Avoid collision between gnulib wrapper and libintl wrapper.
47459         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
47460         already defined in intl/printf.c.
47461         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
47462         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
47463
47464 2009-08-09  Bruno Haible  <bruno@clisp.org>
47465
47466         Make <sys/select.h> really self-contained, also on Solaris 10.
47467         * lib/sys_select.in.h: Include <string.h>.
47468         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
47469         Solaris 10 problem.
47470         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
47471         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
47472         Reported by Jim Meyering.
47473
47474 2009-08-09  Bruno Haible  <bruno@clisp.org>
47475
47476         Avoid warnings from 'aclocal' that are due to a use of macro name
47477         AM_XGETTEXT_OPTION that is not defined in automake.
47478         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
47479         automake.
47480         * modules/error (configure.ac): Likewise.
47481         * modules/propername (configure.ac): Likewise.
47482         * modules/vasprintf (configure.ac): Likewise.
47483         * modules/verror (configure.ac): Likewise.
47484         * modules/xprintf (configure.ac): Likewise.
47485         * modules/xvasprintf (configure.ac): Likewise.
47486
47487 2009-08-08  Bruno Haible  <bruno@clisp.org>
47488
47489         Avoid compilation error in C++ mode.
47490         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
47491         Reported by Sam Steingold <sds@gnu.org>.
47492
47493 2009-08-08  Bruno Haible  <bruno@clisp.org>
47494
47495         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
47496         for the various Unix platforms.
47497         * doc/posix-headers/limits.texi: Update platforms list regarding
47498         HOST_NAME_MAX.
47499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47500
47501 2009-08-07  Jim Meyering  <meyering@redhat.com>
47502
47503         selinux-at: fix typo in a comment
47504         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
47505         Spotted by Paolo Bonzini.
47506
47507         selinux-at: remove redundant m4 code, add documentation
47508         * modules/selinux-at (configure.ac): Remove redundant code.
47509         LIB_SELINUX is already set via the dependent module, selinux-h.
47510         (Include): Add quotes around selinux-at.h.
47511         * lib/selinux-at.h: Add documentation.
47512         Reported by Bruno Haible in
47513         http://marc.info/?l=gnulib-bug&m=124958988300749
47514
47515 2009-08-07  Bruno Haible  <bruno@clisp.org>
47516
47517         Avoid link error on MacOS X 10.3 and 10.4.
47518         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
47519         on non-ELF systems.
47520         * lib/argp-pv.c (argp_program_version): Likewise.
47521         Reported by Simon Josefsson.
47522
47523 2009-08-07  Simon Josefsson  <simon@josefsson.org>
47524
47525         * tests/test-version-etc.sh: Use $EXEEXT.
47526
47527 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
47528
47529         update-copyright: update documentation to point to maint.mk
47530         * build-aux/update-copyright: Here.
47531
47532 2009-08-06  Jim Meyering  <meyering@redhat.com>
47533
47534         maint.mk: support update-copyright-local
47535         * top/maint.mk (update-copyright-local): Define place-holder.
47536         (update-copyright): Depend on $(update-copyright-local).
47537
47538 2009-08-06  Jim Meyering  <meyering@redhat.com>
47539
47540         selinux-at: new module
47541         Initially written for coreutils, this module will soon be
47542         used by findutils, too.
47543         * MODULES.html.sh [Misc]: Add selinux-at.
47544         * lib/selinux-at.h: New file, from coreutils.
47545         * lib/selinux-at.c: Likewise.
47546         * modules/selinux-at: Likewise.
47547         (License): Change from LGPL to GPL, since it depends
47548         on the GPL'd openat module.
47549
47550         doc: update README
47551         * README: Remove references to cogito.
47552         Remove cvs-repo-updating instructions from 2007.
47553         Don't imply that CVS is better if you have limited disk space.
47554
47555 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47556
47557         update-copyright: support C-style comments
47558         * build-aux/update-copyright: Implement and document.
47559         * tests/test-update-copyright.sh: Test.
47560
47561 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47562
47563         update-copyright: support omitted "(C)"
47564         * build-aux/update-copyright: Implement and document.  Also,
47565         allow variable whitespace before "(C)".
47566         * tests/test-update-copyright.sh: Test.
47567
47568 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47569
47570         update-copyright: don't trip on non-FSF copyright statements
47571         * build-aux/update-copyright: Fix so that the first correctly
47572         formatted FSF copyright statement is recognized no matter what
47573         appears before it.  Update documentation.
47574         * tests/test-update-copyright.sh: Test that.
47575
47576 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47577
47578         update-copyright: clean up code a little
47579         * build-aux/update-copyright: Append "_re" to the name of any
47580         variable holding a regular expression.
47581         Replace "old" and "new" with "stmt" in variable names.
47582         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
47583         handled correctly.
47584         Format code more consistently.
47585
47586 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
47587
47588         update-copyright-tests: improve portability
47589         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
47590         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
47591
47592 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47593
47594         update-copyright: support @copyright{} and &copy;
47595         * build-aux/update-copyright: Implement and document.
47596         * tests/test-update-copyright.sh: Test.
47597
47598 2009-08-04  Jim Meyering  <meyering@redhat.com>
47599
47600         update-copyright-tests: correctly test EOL=\r\n handling
47601         * tests/test-update-copyright.sh: Put \r at the end of some lines
47602         for the dos-eol tests.  Based on a patch by Joel E. Denny.
47603
47604         maint.mk: make update-copyright exclusion list more configurable
47605         * top/maint.mk (update-copyright): Default to excluding COPYING,
47606         but allow an override, in case someone does want to update that file.
47607
47608         maint.mk: don't update copyright date in COPYING
47609         * top/maint.mk (update-copyright): Exclude COPYING.
47610
47611         maint.mk: add a copyright-updating rule
47612         * top/maint.mk (update-copyright): New rule.
47613         Derived from coreutils/Makefile.am.
47614
47615         update-copyright: rename some variables
47616         * build-aux/update-copyright: Rename a few variables for clarity.
47617         Tweak syntax.  List Joel E. Denny as coauthor.
47618
47619 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
47620
47621         update-copyright: fix bug for 2-digit last year and add tests
47622         * build-aux/update-copyright: Fix bug.
47623         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
47624         specified.
47625         * modules/update-copyright-tests: New
47626         * tests/test-update-copyright.sh: New.
47627
47628 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47629
47630         update-copyright: handle leading tabs in line prefix
47631         * build-aux/update-copyright: Count leading tabs as 8 spaces
47632         when computing margin.  This helps with the formatting of
47633         ChangeLogs, for example.
47634         Fix documentation a little.
47635
47636 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47637
47638         update-copyright: support EOL=\r\n
47639         * build-aux/update-copyright: Implement that.
47640
47641 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
47642
47643         update-copyright: automatically format copyright statements
47644         * build-aux/update-copyright: Implement that.
47645         Also, be a little more predictable and safer by always failing
47646         when the full copyright format is not perfectly recognized as an
47647         unbroken whole.  Discussed at
47648         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
47649         Rewrite documentation.
47650
47651 2009-08-03  Bruno Haible  <bruno@clisp.org>
47652
47653         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
47654
47655 2009-08-02  Bruno Haible  <bruno@clisp.org>
47656
47657         Tests for module 'uname'.
47658         * modules/uname-tests: New file.
47659         * tests/test-uname.c: New file.
47660
47661         New module 'uname'.
47662         * lib/uname.c: New file.
47663         * m4/uname.m4: New file.
47664         * modules/uname: New file.
47665         * doc/posix-functions/uname.texi: Mention the new module.
47666
47667 2009-08-02  Bruno Haible  <bruno@clisp.org>
47668
47669         Tests for module 'sys_utsname'.
47670         * modules/sys_utsname-tests: New file.
47671         * tests/test-sys_utsname.c: New file.
47672
47673         New module 'sys_utsname'.
47674         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
47675         * m4/sys_utsname_h.m4: New file.
47676         * modules/sys_utsname: New file.
47677         * doc/posix-headers/sys_utsname.texi: Mention the new module.
47678
47679 2009-08-02  Bruno Haible  <bruno@clisp.org>
47680
47681         Implicitly initialize the sockets library.
47682         * lib/gethostname.c: Include sockets.h.
47683         (rpl_gethostname): Invoke gl_sockets_startup.
47684         * lib/socket.c: Include sockets.h.
47685         (rpl_socket): Invoke gl_sockets_startup.
47686         * modules/gethostname (Depends-on): Add sockets.
47687         * modules/socket (Depends-on): Likewise.
47688         * tests/test-poll.c: Don't include sockets.h.
47689         (main): Don't invoke gl_sockets_startup.
47690         * tests/test-select.c: Don't include sockets.h.
47691         (main): Don't invoke gl_sockets_startup.
47692
47693 2009-08-02  Bruno Haible  <bruno@clisp.org>
47694
47695         Allow multiple calls to gl_sockets_startup.
47696         * lib/sockets.c (initialized_sockets_version): New variable.
47697         (gl_sockets_startup): Do nothing if already called for this or a higher
47698         version.
47699         (gl_sockets_cleanup): Reset initialized_sockets_version.
47700
47701 2009-08-03  Simon Josefsson  <simon@josefsson.org>
47702
47703         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
47704         different project/version.
47705
47706 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
47707             Bruno Haible  <bruno@clisp.org>
47708
47709         Tests for module 'pipe-filter-gi'.
47710         * modules/pipe-filter-gi-tests: New file.
47711         * tests/test-pipe-filter-gi1.sh: New file.
47712         * tests/test-pipe-filter-gi1.c: New file.
47713         * tests/test-pipe-filter-gi2.sh: New file.
47714         * tests/test-pipe-filter-gi2-main.c: New file.
47715         * tests/test-pipe-filter-gi2-child.c: New file.
47716
47717         New module 'pipe-filter-gi'.
47718         * lib/pipe-filter-gi.c: New file.
47719         * modules/pipe-filter-gi: New file.
47720
47721 2009-08-02  Bruno Haible  <bruno@clisp.org>
47722             Paolo Bonzini  <bonzini@gnu.org>
47723
47724         Tests for module 'pipe-filter-ii'.
47725         * modules/pipe-filter-ii-tests: New file.
47726         * tests/test-pipe-filter-ii1.sh: New file.
47727         * tests/test-pipe-filter-ii1.c: New file.
47728         * tests/test-pipe-filter-ii2.sh: New file.
47729         * tests/test-pipe-filter-ii2-main.c: New file.
47730         * tests/test-pipe-filter-ii2-child.c: New file.
47731
47732         New module 'pipe-filter-ii'.
47733         * lib/pipe-filter.h: New file.
47734         * lib/pipe-filter-ii.c: New file.
47735         * lib/pipe-filter-aux.h: New file.
47736         * modules/pipe-filter-ii: New file.
47737
47738 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47739
47740         * lib/gc-libgcrypt.c: Change copyright to FSF.
47741         * lib/gc-gnulib.c: Likewise.
47742
47743 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
47744
47745         * lib/gethostname.c: Include limits.h.
47746
47747 2009-08-02  Simon Josefsson  <simon@josefsson.org>
47748             Bruno Haible  <bruno@clisp.org>
47749
47750         Ensure HOST_NAME_MAX as part of the gethostname module.
47751         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
47752         define also HOST_NAME_MAX.
47753         * tests/test-gethostname.c: Include <limits.h>.
47754         (main): Check also HOST_NAME_MAX.
47755         * doc/posix-headers/limits.texi: Document the mingw problem.
47756
47757 2009-08-02  Bruno Haible  <bruno@clisp.org>
47758
47759         * lib/gethostname.c (gethostname): Fix handling of large len argument.
47760         Add comments.
47761
47762 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47763
47764         * lib/gethostname.c: Add Windows wrapper.
47765         * m4/gethostname.m4: Look for gethostname in -lws2_32.
47766         * modules/gethostname: Depend on sys_socket & errno, for also
47767         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
47768         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
47769
47770 2009-07-31  Jim Meyering  <meyering@redhat.com>
47771
47772         getloadavg: fix symbol name in comment
47773         * lib/getloadavg.c: Correct a typo I introduced when adding
47774         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
47775         Matt Kraai spotted the problem.
47776
47777 2009-07-29  Matt Kraai  <mkraai@beckman.com>
47778
47779         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
47780         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
47781         code also if ! defined N_NAME_POINTER.
47782         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
47783         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
47784         but the n_name member is a 12-byte array.
47785
47786 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
47787
47788         update-copyright: generalize comment handling
47789         * build-aux/update-copyright: Handle copyright statements
47790         within more comment styles.
47791         Document usage.
47792         Report any file with an external copyright holder or parse failure.
47793
47794 2009-07-29  Jim Meyering  <meyering@redhat.com>
47795
47796         mktime: correct setting of REPLACE_MKTIME
47797         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
47798
47799         update-copyright: new module
47800         * modules/update-copyright: New file.
47801         * build-aux/update-copyright: New file.
47802         * MODULES.html.sh (maint+release support): Add update-copyright.
47803
47804 2009-07-27  Bruno Haible  <bruno@clisp.org>
47805
47806         Fix compilation error when <ctime> is used and mktime is replaced.
47807         * lib/time.in.h (mktime): New declaration.
47808         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
47809         REPLACE_MKTIME instead of defining mktime in config.h.
47810         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
47811         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
47812         Reported by Ross McFarland <rwmcfa1@neces.com>.
47813
47814 2009-07-27  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
47817         Reported by Matt Kraai <mkraai@beckman.com>.
47818
47819 2009-07-25  Jim Meyering  <meyering@redhat.com>
47820
47821         maint.mk: avoid warnings about missing files
47822         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
47823         diagnostic when .prev-version does not exist.
47824         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
47825         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
47826         nonexistent cfg.mk.
47827         Suggestions from Simon Josefsson.
47828
47829 2009-07-25  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47832         defined as macros. Needed on QNX 6.4.1.
47833         Reported by Matt Kraai <mkraai@beckman.com>.
47834
47835 2009-07-23  Jim Meyering  <meyering@redhat.com>
47836
47837         maint.mk: invoke "make dist" with a working value of XZ_OPT
47838         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47839
47840 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47841
47842         Make fseeko.c compile on QNX.
47843         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47844
47845 2009-07-22  Peter Simons  <simons@cryp.to>
47846
47847         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47848         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47849         * lib/md4.h: Likewise.
47850         * lib/md5.h: Likewise.
47851         * lib/sha1.h: Likewise.
47852         * lib/sha256.h: Likewise.
47853         * lib/sha512.h: Likewise.
47854
47855         tests-sha1: don't assign literal string to 'char *' variable
47856         * tests/test-sha1.c (main): Declare locals with "const" to match
47857         attributes of the right hand side.
47858
47859 2009-07-21  Eric Blake  <ebb9@byu.net>
47860
47861         dup2: fix more mingw problems
47862         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47863         fd to itself.
47864         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47865         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47866         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47867         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47868         care of mingw bugs.
47869
47870 2009-07-21  Jim Meyering  <meyering@redhat.com>
47871
47872         vc-list-files: avoid failure when /bin/sh is dash
47873         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47874         On some Debian based systems, /bin/sh is a symlink to dash, and running
47875         this command would omit the "/" following each 'tests' prefix:
47876           dash -x build-aux/vc-list-files -C . tests
47877         That is because bash and dash work differently:
47878           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47879           bash ok
47880           dash odd
47881
47882 2009-07-21  Eric Blake  <ebb9@byu.net>
47883
47884         dup2-tests: test previous patch
47885         * modules/dup2-tests: New file.
47886         * tests/test-dup2.c: Likewise.
47887         * tests/test-open.c (main): Avoid unspecified behavior.
47888         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47889         test.
47890
47891         dup2: work around mingw and cygwin 1.5 bug
47892         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47893         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47894         * modules/unistd (Makefile.am): Substitute it.
47895         * lib/unistd.in.h (dup2): Declare the replacement.
47896         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47897         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47898         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47899         * modules/execute (Depends-on): Add dup2.
47900         * modules/fseterr (Depends-on): Likewise.
47901         * modules/pipe (Depends-on): Likewise.
47902         * modules/posix_spawn-internal (Depends-on): Likewise.
47903
47904 2009-07-21  Bruno Haible  <bruno@clisp.org>
47905
47906         * modules/.gitattributes: New file.
47907
47908 2009-07-20  Bruno Haible  <bruno@clisp.org>
47909
47910         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47911         (main): Use it.
47912
47913 2009-07-20  Eric Blake  <ebb9@byu.net>
47914
47915         test-pipe: make a bit more robust.
47916         * tests/test-pipe.c (myerr): Allow error messages regardless of
47917         what we do to stderr.
47918         (test_pipe): Rearrange to avoid deadlock.
47919         (child_main): Try a larger read, to ensure we avoided deadlock.
47920         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47921         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47922         if misused.
47923
47924 2009-07-19  Jim Meyering  <meyering@redhat.com>
47925
47926         fts: avoid false-positive cycle-detection
47927         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47928         for each new command line argument.
47929
47930 2009-07-19  Bruno Haible  <bruno@clisp.org>
47931
47932         Fix build error on mingw with the modules sys_select and unistd.
47933         * modules/acl-tests (Depends-on): Add close.
47934         * modules/binary-io-tests (Depends-on): Likewise.
47935         * modules/closein-tests (Depends-on): Likewise.
47936         * modules/flock-tests (Depends-on): Likewise.
47937         * modules/fsync-tests (Depends-on): Likewise.
47938         * modules/lseek-tests (Depends-on): Likewise.
47939         * modules/pipe-tests (Depends-on): Likewise.
47940         * modules/posix_spawn-tests (Depends-on): Likewise.
47941         * modules/posix_spawnp-tests (Depends-on): Likewise.
47942         * modules/stat-time-tests (Depends-on): Likewise.
47943         * modules/yesno-tests (Depends-on): Likewise.
47944
47945 2009-07-19  Bruno Haible  <bruno@clisp.org>
47946
47947         Unify conditionals.
47948         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47949         macros, not at the compiler macros.
47950         * lib/pipe.c: Likewise.
47951         * lib/execute.c: Likewise.
47952         * lib/spawni.c: Likewise.
47953
47954 2009-07-19  Bruno Haible  <bruno@clisp.org>
47955
47956         Fix handling of closed stdin/stdout/stderr on mingw.
47957         * lib/w32spawn.h: Include unistd.h.
47958         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47959         file descriptor with O_NOINHERIT flag.
47960         (fd_safer_noinherit): New function, based on fd-safer.c.
47961         (dup_safer_noinherit): New function, based on dup-safer.c.
47962         (undup_safer_noinherit): New function.
47963         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47964         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47965         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47966         instead of fd_safer.
47967         * tests/test-pipe.c: Include <windows.h>.
47968         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47969         result.
47970
47971         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47972         from main.
47973         (test_pipe): Pass an extra argument for disambiguation.
47974         (main): Invoke parent_main or child_main.
47975
47976         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47977         consistently.
47978
47979 2009-07-18  Eric Blake  <ebb9@byu.net>
47980
47981         test-pipe: fix mingw build
47982         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47983
47984 2009-07-18  Bruno Haible  <bruno@clisp.org>
47985
47986         * modules/pipe-tests (Makefile.am): Fix typo.
47987
47988 2009-07-18  Eric Blake  <ebb9@byu.net>
47989
47990         error: fix mingw build
47991         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47992         Reported by Bruno Haible.
47993
47994         error: avoid undefined use of stdout
47995         * lib/error.c (error, error_at_line): Check that fd 1 is open
47996         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47997         is handling faults and the close_stdout module wants to report the
47998         detection of closed stdout as an error.
47999
48000 2009-07-17  Eric Blake  <ebb9@byu.net>
48001
48002         pipe: be robust in face of closed fds
48003         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48004         should cause child to misbehave.
48005         * modules/pipe-tests: New module.
48006         * tests/test-pipe.c: New file.
48007         * tests/test-pipe.sh: New file.
48008         Reported by Akim Demaille.
48009
48010 2009-07-14  Bruno Haible  <bruno@clisp.org>
48011
48012         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48013         Reported by anonymous kc.
48014
48015 2009-07-07  Jim Meyering  <meyering@redhat.com>
48016
48017         maint.mk: don't look for translatable strings in *.m4 or *.mk
48018         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48019         when searching for translatable strings.
48020
48021 2009-07-05  Jim Meyering  <meyering@redhat.com>
48022
48023         remove superfluous parentheses in STREQ definition
48024         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48025         * lib/getugroups.c (STREQ): Likewise.
48026         * lib/fnmatch.c (STREQ): Likewise.
48027         Spotted by Bruno Haible.
48028
48029 2009-07-04  Jim Meyering  <meyering@redhat.com>
48030
48031         argv-iter: new module
48032         * MODULES.html.sh: Add argv-iter.
48033         * lib/argv-iter.c, lib/argv-iter.h: New files.
48034         * modules/argv-iter: New file.
48035         * modules/argv-iter-tests: New file.
48036         * tests/test-argv-iter.c: Test it.
48037
48038 2009-07-04  Bruno Haible  <bruno@clisp.org>
48039
48040         Fix assertion.
48041         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48042         contains more exact copies of a given entry than file2, leave the extra
48043         copies unpaired rather than aborting.
48044         Reported by Eric Blake.
48045
48046 2009-07-02  Bruno Haible  <bruno@clisp.org>
48047
48048         Speedup git-merge-changelog for git cherry-pick.
48049         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48050         (entries_mapping_get): New function, extracted from compute_mapping.
48051         (entries_mapping_reverse_get): New function.
48052         (compute_mapping): Add a 'full' argument. Return the result in a
48053         'struct entries_mapping'.
48054         (main): Update. Access the mappings through entries_mapping_get.
48055         Reported by Eric Blake.
48056
48057 2009-07-02  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48060         best_i.
48061
48062 2009-07-02  Bruno Haible  <bruno@clisp.org>
48063
48064         Speed up approximate search for matching ChangeLog entries.
48065         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
48066         argument. Call fstrcmp_bounded instead of fstrcmp.
48067         (compute_mapping, try_split_merged_entry, main): Update callers.
48068
48069 2009-07-02  Bruno Haible  <bruno@clisp.org>
48070
48071         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
48072
48073 2009-06-30  Bruno Haible  <bruno@clisp.org>
48074
48075         Reduce the number of uc_is_cased calls.
48076         * lib/unicase.h (casing_suffix_context_t): Add
48077         'first_char_except_ignorable' field.
48078         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
48079         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
48080         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
48081         Update initializer.
48082         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
48083         case-ignorable characters.
48084         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
48085         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
48086         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
48087         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
48088         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
48089
48090 2009-06-30  Bruno Haible  <bruno@clisp.org>
48091
48092         Tests for module 'unicase/ignorable'.
48093         * modules/unicase/ignorable-tests: New file.
48094         * tests/unicase/test-ignorable.c: New file, generated by
48095         gen-uni-tables.
48096
48097         Tests for module 'unicase/cased'.
48098         * modules/unicase/cased-tests: New file.
48099         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
48100         * tests/unicase/test-predicate-part1.h: New file, derived from
48101         tests/unictype/test-predicate-part1.h.
48102         * tests/unicase/test-predicate-part2.h: New file, same as
48103         tests/unictype/test-predicate-part2.h.
48104
48105         Fix evaluation of "Before C" condition of FINAL_SIGMA.
48106         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
48107         (output_casing_properties): New function.
48108         (main): Call it.
48109         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
48110         * lib/unicase/cased.c: Include unictype/bitmap.h.
48111         (uc_is_cased): Define through a bitmap lookup.
48112         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
48113         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
48114         (uc_is_case_ignorable): Define through a bitmap lookup.
48115         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
48116         lib/unictype/bitmap.h.
48117         (Depends-on): Add inline. Clean up.
48118         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
48119         lib/unictype/bitmap.h.
48120         (Depends-on): Add inline. Clean up.
48121         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
48122         recognition.
48123         * tests/unicase/test-u16-tolower.c (main): Likewise.
48124         * tests/unicase/test-u32-tolower.c (main): Likewise.
48125
48126 2009-06-30  Bruno Haible  <bruno@clisp.org>
48127
48128         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
48129         * lib/unicase/u16-casemap.c: Likewise.
48130         * lib/unicase/u32-casemap.c: Likewise.
48131
48132 2009-06-29  Bruno Haible  <bruno@clisp.org>
48133
48134         Define u32_casefold as a wrapper around u32_ct_casefold.
48135         * lib/unicase/u32-casefold.c: Update.
48136         * modules/unicase/u32-casefold (Depends-on): Add
48137         unicase/u32-ct-casefold, unicase/empty-prefix-context,
48138         unicase/empty-suffix-context. Clean up.
48139
48140         Define u16_casefold as a wrapper around u16_ct_casefold.
48141         * lib/unicase/u16-casefold.c: Update.
48142         * modules/unicase/u16-casefold (Depends-on): Add
48143         unicase/u16-ct-casefold, unicase/empty-prefix-context,
48144         unicase/empty-suffix-context. Clean up.
48145
48146         Define u8_casefold as a wrapper around u8_ct_casefold.
48147         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
48148         * lib/unicase/u8-casefold.c: Update.
48149         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
48150         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48151
48152         Define u32_totitle as a wrapper around u32_ct_totitle.
48153         * lib/unicase/u32-totitle.c: Update.
48154         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
48155         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48156
48157         Define u16_totitle as a wrapper around u16_ct_totitle.
48158         * lib/unicase/u16-totitle.c: Update.
48159         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
48160         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48161
48162         Define u8_totitle as a wrapper around u8_ct_totitle.
48163         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
48164         functions.
48165         (FUNC): Delegate to U_CT_TOTITLE.
48166         * lib/unicase/u8-totitle.c: Update.
48167         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
48168         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
48169
48170         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
48171         invocation.
48172         * modules/unicase/u32-tolower (Depends-on): Add
48173         unicase/empty-prefix-context, unicase/empty-suffix-context.
48174
48175         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
48176         invocation.
48177         * modules/unicase/u16-tolower (Depends-on): Add
48178         unicase/empty-prefix-context, unicase/empty-suffix-context.
48179
48180         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
48181         * modules/unicase/u8-tolower (Depends-on): Add
48182         unicase/empty-prefix-context, unicase/empty-suffix-context.
48183
48184         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
48185         invocation.
48186         * modules/unicase/u32-toupper (Depends-on): Add
48187         unicase/empty-prefix-context, unicase/empty-suffix-context.
48188
48189         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
48190         invocation.
48191         * modules/unicase/u16-toupper (Depends-on): Add
48192         unicase/empty-prefix-context, unicase/empty-suffix-context.
48193
48194         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
48195         * modules/unicase/u8-toupper (Depends-on): Add
48196         unicase/empty-prefix-context, unicase/empty-suffix-context.
48197
48198         New module 'unicase/u32-ct-casefold'.
48199         * lib/unicase/u32-ct-casefold.c: New file.
48200         * modules/unicase/u32-ct-casefold: New file.
48201
48202         New module 'unicase/u16-ct-casefold'.
48203         * lib/unicase/u16-ct-casefold.c: New file.
48204         * modules/unicase/u16-ct-casefold: New file.
48205
48206         New module 'unicase/u8-ct-casefold'.
48207         * lib/unicase/u8-ct-casefold.c: New file.
48208         * lib/unicase/u-ct-casefold.h: New file, derived from
48209         lib/unicase/u-casefold.h.
48210         * modules/unicase/u8-ct-casefold: New file.
48211
48212         New module 'unicase/u32-ct-totitle'.
48213         * lib/unicase/u32-ct-totitle.c: New file.
48214         * modules/unicase/u32-ct-totitle: New file.
48215
48216         New module 'unicase/u16-ct-totitle'.
48217         * lib/unicase/u16-ct-totitle.c: New file.
48218         * modules/unicase/u16-ct-totitle: New file.
48219
48220         New module 'unicase/u8-ct-totitle'.
48221         * lib/unicase/u8-ct-totitle.c: New file.
48222         * lib/unicase/u-ct-totitle.h: New file, derived from
48223         lib/unicase/u-totitle.h.
48224         * modules/unicase/u8-ct-totitle: New file.
48225
48226         New module 'unicase/u32-ct-tolower'.
48227         * lib/unicase/u32-ct-tolower.c: New file.
48228         * modules/unicase/u32-ct-tolower: New file.
48229
48230         New module 'unicase/u16-ct-tolower'.
48231         * lib/unicase/u16-ct-tolower.c: New file.
48232         * modules/unicase/u16-ct-tolower: New file.
48233
48234         New module 'unicase/u8-ct-tolower'.
48235         * lib/unicase/u8-ct-tolower.c: New file.
48236         * modules/unicase/u8-ct-tolower: New file.
48237
48238         New module 'unicase/u32-ct-toupper'.
48239         * lib/unicase/u32-ct-toupper.c: New file.
48240         * modules/unicase/u32-ct-toupper: New file.
48241
48242         New module 'unicase/u16-ct-toupper'.
48243         * lib/unicase/u16-ct-toupper.c: New file.
48244         * modules/unicase/u16-ct-toupper: New file.
48245
48246         New module 'unicase/u8-ct-toupper'.
48247         * lib/unicase/u8-ct-toupper.c: New file.
48248         * modules/unicase/u8-ct-toupper: New file.
48249
48250         Add context arguments to u*_casemap functions.
48251         * lib/unicase/unicasemap.h: Include unicase.h.
48252         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
48253         suffix_context arguments.
48254         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
48255         functions.
48256         (FUNC): Add prefix_context and suffix_context arguments. Use
48257         uc_is_cased and uc_is_case_ignorable.
48258         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
48259         * lib/unicase/u16-casemap.c: Likewise.
48260         * lib/unicase/u32-casemap.c: Likewise.
48261         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
48262         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48263         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
48264         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48265         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
48266         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
48267
48268         New module 'unicase/u32-suffix-context'.
48269         * lib/unicase/u32-suffix-context.c: New file.
48270         * modules/unicase/u32-suffix-context: New file.
48271
48272         New module 'unicase/u16-suffix-context'.
48273         * lib/unicase/u16-suffix-context.c: New file.
48274         * modules/unicase/u16-suffix-context: New file.
48275
48276         New module 'unicase/u8-suffix-context'.
48277         * lib/unicase/u8-suffix-context.c: New file.
48278         * lib/unicase/u-suffix-context.h: New file.
48279         * modules/unicase/u8-suffix-context: New file.
48280
48281         New module 'unicase/empty-suffix-context'.
48282         * lib/unicase/empty-suffix-context.c: New file.
48283         * modules/unicase/empty-suffix-context: New file.
48284
48285         New module 'unicase/u32-prefix-context'.
48286         * lib/unicase/u32-prefix-context.c: New file.
48287         * modules/unicase/u32-prefix-context: New file.
48288
48289         New module 'unicase/u16-prefix-context'.
48290         * lib/unicase/u16-prefix-context.c: New file.
48291         * modules/unicase/u16-prefix-context: New file.
48292
48293         New module 'unicase/u8-prefix-context'.
48294         * lib/unicase/u8-prefix-context.c: New file.
48295         * lib/unicase/u-prefix-context.h: New file.
48296         * lib/unicase/context.h: New file.
48297         * modules/unicase/u8-prefix-context: New file.
48298
48299         New module 'unicase/empty-prefix-context'.
48300         * lib/unicase/empty-prefix-context.c: New file.
48301         * modules/unicase/empty-prefix-context: New file.
48302
48303         New module 'unicase/ignorable'.
48304         * lib/unicase/ignorable.c: New file.
48305         * modules/unicase/ignorable: New file.
48306
48307         New module 'unicase/cased'.
48308         * lib/unicase/caseprop.h: New file.
48309         * lib/unicase/cased.c: New file.
48310         * modules/unicase/cased: New file.
48311
48312         New functions for case mapping of substrings.
48313         * lib/unicase.h (casing_prefix_context_t): New type.
48314         (unicase_empty_prefix_context): New variable.
48315         (u8_casing_prefix_context, u16_casing_prefix_context,
48316         u32_casing_prefix_context, u8_casing_prefixes_context,
48317         u16_casing_prefixes_context, u32_casing_prefixes_context): New
48318         declarations.
48319         (casing_suffix_context_t): New type.
48320         (unicase_empty_suffix_context): New variable.
48321         (u8_casing_suffix_context, u16_casing_suffix_context,
48322         u32_casing_suffix_context, u8_casing_suffixes_context,
48323         u16_casing_suffixes_context, u32_casing_suffixes_context,
48324         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
48325         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
48326         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
48327         declarations.
48328
48329 2009-06-28  Jim Meyering  <meyering@redhat.com>
48330
48331         boostrap: indent only with spaces
48332         * build-aux/bootstrap: Indent only with spaces, never TABs.
48333
48334         bootstrap: split long lines
48335         * build-aux/bootstrap: Keep line length < 80.
48336
48337         bootstrap: sync from coreutils
48338         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
48339         just as autoreconf does.  Verify a list of prerequisite
48340         package-name,version-number pairs if defined in bootstrap.conf.
48341         Refer to README-prereq, if prerequisites are not satisfied.
48342
48343 2009-06-27  Eric Blake  <ebb9@byu.net>
48344
48345         tests: add test for bogus NULL definition
48346         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
48347         * tests/test-stdlib.c: Likewise.
48348         * tests/test-string.c: Likewise.
48349         * tests/test-locale.c: Likewise.
48350         * tests/test-unistd.c: Likewise.
48351         * modules/stdio-tests (Depends-on): Add verify.
48352         * modules/stdlib-tests (Depends-on): Likewise.
48353         * modules/string-tests (Depends-on): Likewise.
48354         * modules/locale-tests (Depends-on): Likewise.
48355         * modules/unistd-tests (Depends-on): Likewise.
48356
48357 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
48358
48359         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
48360         self-explaining comment.
48361         * m4/selinux-selinux-h: Update serial.
48362         (gl_LIBSELINUX): New macro, adding a warning for missing development
48363         packages to code extracted from...
48364         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
48365         Add warning for missing development packages here, too.
48366
48367 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
48368
48369         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
48370
48371 2009-06-25  Eric Blake  <ebb9@byu.net>
48372
48373         version-etc: fix regression
48374         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
48375         gcc.
48376         (version_etc): Use it, to catch bugs with trailing NULL.
48377         * lib/version-etc.c (version_etc_arn): Delete unused argument.
48378         (version_etc_va): Fix logic bug.
48379         * modules/version-etc-tests: Add test.
48380         * tests/test-version-etc.c: New file.
48381         * tests/test-version-etc.sh: Likewise.
48382
48383 2009-06-25  Sam Steingold  <sds@gnu.org>
48384
48385         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
48386         mbtowc declaration.
48387
48388 2009-06-25  Eric Blake  <ebb9@byu.net>
48389
48390         fpurge: migrate into <stdio.h>
48391         * lib/fpurge.h: Delete...
48392         * lib/stdio.in.h (fpurge): ...and declare here, instead.
48393         * lib/fpurge.c (fpurge): Change declaring header.
48394         * modules/fpurge (Files): Drop deleted file.
48395         (Depends-on): Add stdio.
48396         (configure.ac): Set witness.
48397         * modules/stdio (Makefile.am): Support fpurge macros.
48398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48399         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
48400         * lib/fflush.c: Update client.
48401         * tests/test-fpurge.c: Likewise.
48402         * NEWS: Mention the change.
48403
48404 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48405
48406         * lib/argp-version-etc.c (program_authors): Add const
48407         qualifier.
48408         * lib/version-etc.c: Fix typos in the comments.
48409         * modules/argp-version-etc: Depends on version-etc.
48410
48411 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48412
48413         argp-version-etc: new module.
48414
48415         * lib/argp-version-etc.c: New file.
48416         * lib/argp-version-etc.h: New file.
48417         * modules/argp-version-etc: New file.
48418         * modules/argp-version-etc-tests: New file.
48419         * tests/test-argp-version-etc.c: New test.
48420         * tests/test-argp-version-etc-1.sh: New test.
48421
48422 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48423
48424         Provide additional interfaces and documentation for version-etc
48425         module.
48426
48427         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
48428         interfaces.
48429         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
48430         prototypes.
48431
48432 2009-06-24  Bruno Haible  <bruno@clisp.org>
48433
48434         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
48435         HAVE_LIB${NAME} macro.
48436         Reported by Sam Steingold <sds@gnu.org>.
48437
48438 2009-06-23  Simon Josefsson  <simon@josefsson.org>
48439
48440         * modules/hash-tests (test_hash_LDADD): Link to libintl when
48441         needed.
48442
48443 2009-06-21  Bruno Haible  <bruno@clisp.org>
48444
48445         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
48446         work.
48447         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
48448         together with LIB${NAME}, LTLIB${NAME}.
48449         Reported by Sam Steingold <sds@gnu.org>.
48450
48451 2009-06-20  Jim Meyering  <meyering@redhat.com>
48452
48453         tests: make sc_require_test_exit_idiom more generic
48454         * top/maint.mk (Exit_witness_file): New overridable variable.
48455         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
48456         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
48457
48458 2009-06-19  Jim Meyering  <meyering@redhat.com>
48459
48460         hash: reverse order of src/dst parameters in an internal interface
48461         * lib/hash.c (transfer_entries): Reverse order of parameters to
48462         put DST before SRC.  Adjust callers.
48463
48464         tests: test-hash: avoid wholesale duplication
48465         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
48466         Instead, use a loop and add a single conditional.
48467
48468         tests: test-hash: allow seed selection via a command line argument
48469         * tests/test-hash.c (get_seed): New function.
48470         (main): Use it.
48471
48472 2009-06-19  Eric Blake  <ebb9@byu.net>
48473
48474         hash: avoid memory leak on allocation failure
48475         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
48476         failure.  Factor repeated algorithm...
48477         (transfer_entries): ...into new helper routine.
48478         (hash_delete): React to hash_rehash return value.
48479
48480         hash: reduce memory pressure in hash_rehash no-op case
48481         * lib/hash.c (next_prime): Avoid overflow.
48482         (hash_initialize): Factor bucket size computation...
48483         (compute_bucket_size): ...into new helper function.
48484         (hash_rehash): Use new function and open coding to reduce memory
48485         pressure, and avoid a memory leak in USE_OBSTACK code.
48486         Reported by Jim Meyering.
48487
48488 2009-06-18  Eric Blake  <ebb9@byu.net>
48489
48490         hash: make rotation more obvious
48491         * modules/hash (Depends-on): Add bitrotate and stdint.
48492         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
48493         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
48494         (SIZE_MAX): Rely on headers for definition.
48495         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
48496         (raw_hasher): Use rotr_sz.
48497         Suggested by Jim Meyering.
48498
48499         hash: fix memory leak in last patch
48500         * lib/hash.c (hash_rehash): Avoid memory leak.
48501
48502         hash: avoid no-op rehashing
48503         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
48504
48505         hash: provide default callback functions
48506         * lib/hash.c (raw_hasher, raw_comparator): New functions.
48507         (hash_initialize): Use them as defaults.
48508         * tests/test-hash.c (main): Test this.
48509
48510         hash: minor optimization
48511         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
48512         when possible.
48513         (hash_initialize): Document this promise.
48514         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
48515         * tests/test-hash.c (hash_compare_strings): Test this.
48516
48517 2009-06-18  Bruno Haible  <bruno@clisp.org>
48518
48519         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
48520         going to be replaced anyway.
48521
48522 2009-06-18  Bruno Haible  <bruno@clisp.org>
48523
48524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
48525         in one place.
48526         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
48527         be replaced anyway.
48528
48529 2009-06-18  Eric Blake  <ebb9@byu.net>
48530
48531         hash: check for resize before insertion
48532         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
48533         threshold before insertion, so that a pathological hash_rehash
48534         that fills every bucket can still trigger another rehash.
48535
48536 2009-06-18  Jim Meyering  <meyering@redhat.com>
48537
48538         hash-tests: add a loop around the small tests
48539         * tests/test-hash.c (main): Repeat small tests with selected
48540         small initial table sizes.
48541
48542 2009-06-17  Eric Blake  <ebb9@byu.net>
48543
48544         hash: minor cleanups
48545         * lib/hash.h (hash_entry): Make opaque, by moving...
48546         * lib/hash.c (hash_entry): ...here.
48547         (hash_insert): Clarify restrictions on what can be inserted.
48548         (hash_get_next): Clarify when it is safe to remove an element
48549         during traversal.
48550         (check_tuning): Skip verification when tuning is known safe.
48551         (hash_initialize): Clarify restrictions on tuning.
48552
48553 2009-06-17  Jim Meyering  <jim@meyering.net>
48554         and Eric Blake  <ebb9@byu.net>
48555
48556         hash-tests: new module
48557         * modules/hash-tests: New file.
48558         * tests/test-hash.c: New file.
48559
48560 2009-06-17  Eric Blake  <ebb9@byu.net>
48561
48562         strstr-simple: document new module
48563         * MODULES.html.sh: Document new module.
48564
48565         strstr, strcasestr: replace on platforms with broken memchr
48566         * modules/strstr: Split into...
48567         * modules/strstr-simple: ...new module that does not care about
48568         performance, but does care about glibc bug.
48569         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
48570         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
48571         if platform memchr is broken, per Debian bug 521737.
48572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
48573         memchr.
48574         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
48575         * doc/posix-functions/strstr.texi (strstr): Document the fix.
48576         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48577         * modules/mountlist (Depends-on): Add strstr-simple.
48578         * modules/gen-uni-tables (Depends-on): Likewise.
48579         * modules/argz (Depends-on): Add strstr.
48580
48581 2009-06-17  Bruno Haible  <bruno@clisp.org>
48582
48583         * modules/posix_spawn-internal (Depends-on): Add errno.
48584
48585 2009-06-17  Bruno Haible  <bruno@clisp.org>
48586
48587         Define missing ESTALE on Interix 3.5.
48588         * lib/errno.in.h (ESTALE): Assign a value if missing.
48589         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
48590         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
48591         missing.
48592         * doc/posix-headers/errno.texi: Mention the Interix bug.
48593         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
48594
48595 2009-06-15  Eric Blake  <ebb9@byu.net>
48596
48597         memchr, memchr2: add valgrind exception
48598         * lib/memchr.valgrind: New file.
48599         * lib/memchr2.valgrind: New file.
48600         * modules/memchr (Files): Distribute valgrind file.
48601         * modules/memchr2 (Files): Likewise.
48602
48603         docs: memchr is no longer obsolete
48604         * MODULES.html.sh: Move memchr from obsolete to string.h section.
48605         * lib/string.in.h (memchr): Simplify logic.
48606
48607 2009-06-14  Jim Meyering  <meyering@redhat.com>
48608
48609         link-follow: fix the "checking..." message to not mention trailing slash
48610         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
48611         never considered trailing slashes.
48612
48613 2009-06-14  Bruno Haible  <bruno@clisp.org>
48614
48615         * m4/memchr.m4: Mention also the bug on IA-64.
48616         * doc/posix-functions/memchr.texi: Likewise.
48617
48618 2009-06-12  Eric Blake  <ebb9@byu.net>
48619
48620         memchr: detect broken x86_64 and alpha implementations
48621         * modules/memchr-tests (Depends-on): Move mmap detection...
48622         * modules/memchr (Depends-on): ...here.
48623         (configure.ac): Set indicator.
48624         * lib/string.in.h (memchr): Declare replacement.
48625         * modules/string (Makefile.am): Trigger replacement.
48626         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48627         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
48628         bugs.
48629         * doc/posix-functions/memchr.texi (memchr): Document the bug.
48630         * modules/getpagesize (License): Relax license.
48631
48632 2009-06-11  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/idpriv.h: Add more references.
48635
48636 2009-06-08  Bruno Haible  <bruno@clisp.org>
48637
48638         Tests for module 'idpriv-droptemp'.
48639         * modules/idpriv-droptemp-tests: New file.
48640         * tests/test-idpriv-droptemp.sh: New file.
48641         * tests/test-idpriv-droptemp.su.sh: New file.
48642         * tests/test-idpriv-droptemp.c: New file.
48643
48644         New module 'idpriv-droptemp'.
48645         * lib/idpriv-droptemp.c: New file.
48646         * modules/idpriv-droptemp: New file.
48647
48648 2009-06-08  Bruno Haible  <bruno@clisp.org>
48649
48650         Tests for module 'idpriv-drop'.
48651         * modules/idpriv-drop-tests: New file.
48652         * tests/test-idpriv-drop.sh: New file.
48653         * tests/test-idpriv-drop.su.sh: New file.
48654         * tests/test-idpriv-drop.c: New file.
48655
48656         New module 'idpriv-drop'.
48657         * lib/idpriv.h: New file.
48658         * lib-idpriv-drop.c: New file.
48659         * m4/idpriv.m4: New file.
48660         * modules/idpriv-drop: New file.
48661
48662 2009-06-08  Bruno Haible  <bruno@clisp.org>
48663
48664         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
48665         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48666         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48667         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48668         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48669         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48670         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48671
48672 2009-06-08  Eric Blake  <ebb9@byu.net>
48673
48674         test-strstr: use memory fence, when possible
48675         * tests/test-strstr.c (main): Use memory fence, in order to be
48676         more likely to trigger Debian bug 521737.
48677         * modules/strstr-tests (Files): Pull in additional files.
48678
48679         memchr: no longer obsolete, for wider field testing
48680         * modules/memchr (Status, Notice): Delete, this module is no
48681         longer obsolete.
48682         * modules/vasnprintf (Depends-on): Add memchr.
48683
48684 2009-06-07  Jim Meyering  <meyering@redhat.com>
48685
48686         hash: declare some functions with the warn_unused_result attribute
48687         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
48688
48689 2009-06-07  Bruno Haible  <bruno@clisp.org>
48690
48691         * tests/test-alignof.c: Don't test int64_t if it does not exist.
48692         Reported by Eric Blake.
48693
48694 2009-06-06  Eric Blake  <ebb9@byu.net>
48695
48696         test-alignof: fix typo with long double
48697         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
48698         compiler error.
48699
48700 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
48701
48702         Escape non-texinfo { and }s.
48703         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
48704         markup error.
48705
48706 2009-06-04  Jim Meyering  <meyering@redhat.com>
48707
48708         gitlog-to-changelog: don't infloop on an empty commit log
48709         * build-aux/gitlog-to-changelog: Warn about an empty log message.
48710         Reported by Boris Petersen <transacid@centerim.org>.
48711
48712 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
48713
48714         version-etc: extend for packagers
48715         Add three new configure options, intended for packagers:
48716           --with-packager="packager name"
48717           --with-packager-version="packager-specific version"
48718           --with-packager-bug-reports="packager bug reporting"
48719         An example with coreutils:
48720           $ ./configure \
48721             --with-packager=Gentoo \
48722             --with-packager-bug-report=http://bugs.gentoo.org/ \
48723             --with-packager-version="patchset 1.6"
48724           $ ./src/ls --version | head -n2
48725           ls (GNU coreutils) 7.1-dirty
48726           Packaged by Gentoo (patchset 1.6)
48727         Note that the bug reporting info via --help doesn't show up because
48728         coreutils uses its own custom emit_bug_reporting_address() implementation
48729         in src/system.h.  If it didn't, it'd look like:
48730           $ ./src/ls --help | tail -n4
48731           Report bugs to <bug-coreutils@gnu.org>.
48732           Report Gentoo bugs to <http://bugs.gentoo.org/>.
48733           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
48734           General help using GNU software: <http://www.gnu.org/gethelp/>.
48735         * lib/version-etc.c: Print new information, if provided.
48736         * m4/version-etc.m4: New file.
48737         * modules/version-etc (Files): Add m4/version-etc.m4.
48738         (configure.ac): Add gl_VERSION_ETC.
48739
48740 2009-05-31  Bruno Haible  <bruno@clisp.org>
48741
48742         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
48743         and 'int64_t'.
48744         * modules/alignof-tests (Dependencies): Add stdint.
48745         Reported by Eric Blake.
48746
48747 2009-05-31  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
48750         restriction due to compiler bugs.
48751         Reported by Eric Blake.
48752
48753 2009-05-31  Simon Josefsson  <simon@josefsson.org>
48754             Bruno Haible  <bruno@clisp.org>
48755
48756         Fix test-alignof failure.
48757         * lib/alignof.h (alignof_slot): New macro.
48758         (alignof_type): New macro, with the same semantics as the previous
48759         'alignof'.
48760         (alignof): Alias to alignof_slot.
48761         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
48762         check that the results are usable as constant expressions.
48763
48764 2009-05-31  Bruno Haible  <bruno@clisp.org>
48765
48766         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
48767         * tests/test-memchr.c (main): Check that memchr does not read past the
48768         first occurrence of the byte.
48769         * tests/test-strstr.c (main): Update comment.
48770         Suggested by Eric Blake.
48771
48772 2009-05-30  Bruno Haible  <bruno@clisp.org>
48773
48774         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
48775         detail how to use dumpbin.
48776         Reported by David Byron <dbyron@dbyron.com>.
48777
48778 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48779
48780         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
48781
48782 2009-06-02  Simon Josefsson  <simon@josefsson.org>
48783
48784         * m4/manywarnings.m4: Add GCC 4.4 warnings.
48785
48786 2009-05-28  Bruno Haible  <bruno@clisp.org>
48787
48788         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
48789         build-aux/ files.
48790
48791 2009-05-28  Simon Josefsson  <simon@josefsson.org>
48792
48793         * gnulib-tool (func_import): Transform license on build-aux/ files too.
48794
48795 2009-05-27  Simon Josefsson  <simon@josefsson.org>
48796
48797         * gnulib-tool (sed_transform_main_lib_file)
48798         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
48799         regexps.
48800
48801 2009-05-26  Simon Josefsson  <simon@josefsson.org>
48802
48803         * tests/test-strstr.c: Add another self-test.
48804         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
48805         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
48806
48807 2009-05-23  Bruno Haible  <bruno@clisp.org>
48808
48809         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
48810         change.
48811
48812 2009-05-21  Bruno Haible  <bruno@clisp.org>
48813
48814         Simplify use of mode_t varargs.
48815         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
48816         uses 'mode_t' or 'int'.
48817         * lib/openat.c (openat): Likewise.
48818         * lib/open-safer.c (open_safer): Likewise.
48819         * m4/mode_t.m4: New file.
48820         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
48821         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
48822         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
48823         * modules/open (Files): Add m4/mode_t.m4.
48824         * modules/openat (Files): Likewise.
48825         * modules/fcntl-safer (Files): Likewise.
48826         Suggested by Eric Blake.
48827
48828 2009-05-21  Pádraig Brady  <P@draigbrady.com>
48829
48830         * doc/glibc-functions/fallocate.texi: New file.
48831         * doc/gnulib.texi: Include it.
48832
48833 2009-05-21  Eric Blake  <ebb9@byu.net>
48834             Bruno Haible  <bruno@clisp.org>
48835
48836         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48837         invocations.
48838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48839
48840 2009-05-21  Eric Blake  <ebb9@byu.net>
48841             Bruno Haible  <bruno@clisp.org>
48842
48843         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48844         include_next. Fix of 2008-11-20 commit.
48845         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48846         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48847         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48848         NEXT_MATH_H.
48849         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48850         instead of NEXT_MATH_H.
48851
48852 2009-05-21  Bruno Haible  <bruno@clisp.org>
48853
48854         Avoid redefinition warnings for SIZE_MAX.
48855         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48856         Reported by Simon Josefsson.
48857
48858 2009-05-21  Bruno Haible  <bruno@clisp.org>
48859
48860         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48861         AC_CACHE_VAL.
48862
48863 2009-05-20  Bruno Haible  <bruno@clisp.org>
48864
48865         Make zeroptr.h work on mingw.
48866         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48867         mprotect.
48868         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48869         * modules/memchr2-tests (configure.ac): Likewise.
48870         * modules/memcmp-tests (configure.ac): Likewise.
48871         * modules/memmem-tests (configure.ac): Likewise.
48872         * modules/memrchr-tests (configure.ac): Likewise.
48873         Reported by Simon Josefsson.
48874
48875 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48876
48877         * tests/test-glob.c: Include string.h for strcmp prototype.
48878
48879 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48880
48881         * modules/getdelim (Depends-on): Add explicit stdint, although it
48882         was implicitly already pulled in via realloc-posix.
48883         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48884
48885 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48886
48887         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48888         G. Christensen" <tgc@jupiterrise.com>.
48889         * m4/sys_socket_h.m4: Check for sa_family_t.
48890         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48891         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48892         * tests/test-sys_socket.c: Check that sa_family_t works.
48893
48894 2009-05-18  Eric Blake  <ebb9@byu.net>
48895
48896         maint.mk: allow gnulib_dir in VPATH build
48897         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48898
48899 2009-05-15  Jim Meyering  <meyering@redhat.com>
48900
48901         maint.mk: Give gnulib_dir a default definition.
48902         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48903         Thus, most packages no longer need to specify this variable in cfg.mk
48904
48905 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48906
48907         rename.m4: fix typos that would make non-mingw cross-configure fail
48908         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48909
48910 2009-05-13  Eric Blake  <ebb9@byu.net>
48911
48912         mmap-anon: avoid out-of-order autoconf expansion
48913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48914         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48915         * modules/memchr-tests (Depends-on): Add extensions.
48916         * modules/memchr2-tests (Depends-on): Add extensions.
48917         * modules/memcmp-tests (Depends-on): Add extensions.
48918         * modules/memmem-tests (Depends-on): Add extensions.
48919         * modules/memrchr-tests (Depends-on): Add extensions.
48920
48921 2009-05-13  Bruno Haible  <bruno@clisp.org>
48922
48923         Make some tests ISO C 99 compliant.
48924         * tests/zerosize-ptr.h: New file.
48925         * tests/test-memchr.c: Include zerosize-ptr.h.
48926         (main): Use a zero-size object pointer instead of NULL.
48927         * tests/test-memchr2.c: Include zerosize-ptr.h.
48928         (main): Use a zero-size object pointer instead of NULL.
48929         * tests/test-memcmp.c: Include zerosize-ptr.h.
48930         (main): Use a zero-size object pointer instead of NULL.
48931         * tests/test-memmem.c: Include zerosize-ptr.h.
48932         (main): Use a zero-size object pointer instead of NULL.
48933         * tests/test-memrchr.c: Include zerosize-ptr.h.
48934         (main): Use a zero-size object pointer instead of NULL.
48935         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48936         m4/mmap-anon.m4.
48937         (Depends-on): Add getpagesize.
48938         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48939         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48940         m4/mmap-anon.m4.
48941         (Depends-on): Add getpagesize.
48942         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48943         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48944         m4/mmap-anon.m4.
48945         (Depends-on): Add getpagesize.
48946         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48947         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48948         m4/mmap-anon.m4.
48949         (Depends-on): Add getpagesize.
48950         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48951         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48952         m4/mmap-anon.m4.
48953         (Depends-on): Add getpagesize.
48954         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48955
48956 2009-05-12  Bruno Haible  <bruno@clisp.org>
48957
48958         Tests for module 'alignof'.
48959         * modules/alignof-tests: New file.
48960         * tests/test-alignof.c: New file.
48961
48962 2009-05-12  Bruno Haible  <bruno@clisp.org>
48963
48964         Fix alignof macro.
48965         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48966         vendor compilers that are always correct.
48967
48968 2009-05-12  Bruno Haible  <bruno@clisp.org>
48969
48970         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48971         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48972         not whether its fully works.
48973
48974 2009-05-12  Bruno Haible  <bruno@clisp.org>
48975
48976         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48977
48978 2009-05-12  Jim Meyering  <meyering@redhat.com>
48979
48980         * top/maint.mk: Adjust backslash alignment.
48981
48982 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48983
48984         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48985
48986 2009-05-11  Eric Blake  <ebb9@byu.net>
48987
48988         argp: avoid undefined behavior
48989         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48990         macros.
48991
48992 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48993
48994         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48995         user.name to prevent git commit from complaining.
48996
48997 2009-05-10  Bruno Haible  <bruno@clisp.org>
48998
48999         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49000         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49001         it rewrites every file name only once.
49002         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49003
49004 2009-05-08  Bruno Haible  <bruno@clisp.org>
49005
49006         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49007         instead of 'max'.
49008
49009 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49010
49011         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49012         sockaddr_storage test.
49013
49014 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49015
49016         * modules/sys_socket (Makefile.am): Substitute
49017         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49018         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49019         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49020         * tests/test-sys_socket.c: Check sockaddr_storage.
49021
49022 2009-05-08  Bruno Haible  <bruno@clisp.org>
49023
49024         New module 'alignof'.
49025         * lib/alignof.h: New file.
49026         * modules/alignof: New file.
49027
49028 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49029             Bruno Haible  <bruno@clisp.org>
49030
49031         Fix test-file-has-acl on FreeBSD.
49032         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49033         mask is implicitly added.
49034         * tests/test-file-has-acl.c: Include <signal.h>.
49035         (main): Terminate the test after 5 seconds.
49036         * modules/acl-tests (configure.ac): Check for alarm function.
49037
49038 2009-05-04  Bruno Haible  <bruno@clisp.org>
49039
49040         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49041         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49042         * modules/errno (configure.ac): Drop AC_REQUIRE.
49043         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49044         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49045
49046 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49047
49048         * modules/glob-tests: New module.
49049         * tests/test-glob.c: Add.
49050
49051 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49052
49053         * modules/fnmatch-tests: New module.
49054         * tests/test-fnmatch.c: Add.
49055
49056 2009-05-04  Eric Blake  <ebb9@byu.net>
49057
49058         maint: make the new no-submodule-changes rule VPATH-safe
49059         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49060
49061 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49062             Bruno Haible  <bruno@clisp.org>
49063
49064         acl: Fix infinite loop on FreeBSD.
49065         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
49066         of return value from acl_get_entry.
49067         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
49068         Likewise.
49069
49070 2009-05-03  Bruno Haible  <bruno@clisp.org>
49071
49072         * lib/acl-internal.h (acl_entries): Clarify return value.
49073         * lib/acl_entries.c (acl_entries): Likewise.
49074
49075 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49076
49077         Bug fix in acl module.
49078         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
49079
49080 2009-05-03  Bruno Haible  <bruno@clisp.org>
49081
49082         Create gperf-generated file in the source dir, not in the build dir.
49083         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
49084         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
49085         * modules/unicase/locale-language (unicase/locale-languages.h):
49086         Likewise.
49087         * modules/unicase/special-casing (unicase/special-casing-table.h):
49088         Likewise.
49089         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
49090         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
49091         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
49092         Reported by Ralf Wildenhues.
49093
49094 2009-05-03  Bruno Haible  <bruno@clisp.org>
49095
49096         * modules/fnmatch (Description, configure.ac): Taken from
49097         fnmatch-posix.
49098         * modules/fnmatch-posix: Turn into a symbolic reference to the
49099         'fnmatch' module, and deprecate.
49100         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
49101
49102 2009-05-03  Bruno Haible  <bruno@clisp.org>
49103
49104         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
49105         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
49106         Reported by Ralf Wildenhues.
49107
49108 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49109
49110         * m4/fnmatch.m4: Fix fnmatch re-define.
49111
49112 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49113
49114         priv-set: new module and tests; adapt write-any-file
49115         * lib/priv-set.c: New file.
49116         * lib/priv-set.h: New file.
49117         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
49118         * lib/write-any-file.c: Simplify by using priv-set module.
49119         * m4/priv-set.m4: New file.
49120         * modules/priv-set: New file.
49121         * modules/unlinkdir: Add dependency on priv-set module.
49122         * modules/write-any-file: Likewise.
49123
49124         Tests for module 'priv-set'.
49125         * modules/priv-set-tests: New file.
49126         * tests/test-priv-set.c: New file.
49127
49128 2009-05-03  Jim Meyering  <meyering@redhat.com>
49129             Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
49132         use the converted UTF-8 variant of the name instead.
49133
49134 2009-05-03  Jim Meyering  <meyering@redhat.com>
49135
49136         tests: tighten some getdate tests
49137         * tests/test-getdate.c (main): Tighten tests: require equality,
49138         not just greater than.  Set TZ envvar to UTC0.
49139
49140 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
49141
49142         getdate: correctly interpret "next monday" when run on a Monday
49143         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
49144         that e.g., "next tues" (when run on a tuesday) results in a date
49145         that is one week in the future, and not today's date.
49146         I.e., add a week when the wday is the same as the current one.
49147         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
49148         and earlier by Martin Bernreuther and Jan Minář.
49149         * tests/test-getdate.c (main): Check that "next DAY" is always in
49150         the future and that "last DAY" is always in the past.
49151
49152 2009-05-02  Jim Meyering  <meyering@redhat.com>
49153
49154         build: ensure that a release build fails when a submodule is unclean
49155         * top/maint.mk (no-submodule-changes): New rule.
49156         (alpha beta major): Depend on it.
49157
49158 2009-05-02  Bruno Haible  <bruno@clisp.org>
49159
49160         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
49161         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
49162         shell variable gl_fnmatch_required to detect which variant is
49163         requested.
49164         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
49165         gl_FUNC_FNMATCH_POSIX.
49166         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
49167         exclude fnmatch-posix.
49168
49169 2009-05-02  Bruno Haible  <bruno@clisp.org>
49170
49171         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
49172         * modules/mbsrtowcs (License): Change to LGPLv2+.
49173         * modules/strnlen1 (License): Likewise.
49174         Reported by Simon Josefsson.
49175
49176 2009-05-02  Bruno Haible  <bruno@clisp.org>
49177
49178         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
49179         "cross".
49180         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
49181         gnulib-tool was called with option --source-base=lib.
49182
49183 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49184
49185         Use automake *-local hooks without commands, for extensibility.
49186         * modules/localcharset (Makefile.am): Rename install-exec-local
49187         rule to install-exec-localcharset, and make it a prerequisite of
49188         install-exec-local.  Likewise, rename the uninstall-local rule to
49189         uninstall-localcharset, and make it a prerequisite of the former.
49190
49191 2009-05-01  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
49194         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49195         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
49196         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
49197         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
49198         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49199         m4/locale-zh.m4, m4/codeset.m4.
49200
49201         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
49202         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
49203         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
49204         m4/locale-zh.m4.
49205
49206         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
49207         REPLACE_WCRTOMB if mbstate_t must be replaced.
49208         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
49209         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
49210
49211 2009-05-01  Bruno Haible  <bruno@clisp.org>
49212
49213         Avoid compiler warnings when redefining macros defined by <libintl.h>.
49214         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
49215         dngettext, dcngettext, textdomain, bindtextdomain,
49216         bind_textdomain_codeset): Undefine before redefining.
49217
49218 2009-04-30  Bruno Haible  <bruno@clisp.org>
49219
49220         Fix bug introduced on 2009-04-25.
49221         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
49222         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
49223         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
49224         is defined.
49225         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
49226         is defined.
49227         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
49228         is defined.
49229         Reported by Elbert_Pol <elbert.pol@gmail.com>.
49230
49231 2009-04-28  Bruno Haible  <bruno@clisp.org>
49232
49233         Comment tweaks.
49234         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
49235         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
49236         * lib/unicase.h (u*_casexfrm): Likewise.
49237         Reported by Paolo Bonzini.
49238
49239 2009-04-28  Bruno Haible  <bruno@clisp.org>
49240
49241         Fix a compilation error.
49242         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
49243         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49244         Reported by Jim Meyering.
49245
49246 2009-04-27  Bruno Haible  <bruno@clisp.org>
49247
49248         New module 'libunistring'.
49249         * modules/libunistring: New file.
49250         * m4/libunistring.m4: New file.
49251         * MODULES.html.sh (Unicode string functions): Add it.
49252
49253 2009-04-27  Eric Blake  <ebb9@byu.net>
49254
49255         maint.mk: allow package-specific header to provide <config.h>
49256         * top/maint.mk (sc_require_config_h): New variable.
49257         (sc_require_config_h, sc_require_config_h_first): Use it.
49258
49259 2009-04-27  Simon Josefsson  <simon@josefsson.org>
49260
49261         * top/maint.mk (sc_avoid_if_before_free): Except
49262         useless-if-before-free script.
49263
49264 2009-04-27  Eric Blake  <ebb9@byu.net>
49265
49266         maintainer-makefile: depend on all required helper scripts
49267         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
49268         useless-if-before-free.
49269         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
49270         version, rather than assuming gnulib checkout is available.
49271         Reported by Simen Josefsson.
49272
49273 2009-04-26  Bruno Haible  <bruno@clisp.org>
49274
49275         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
49276         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
49277         "../" or "..".
49278
49279 2009-04-26  Bruno Haible  <bruno@clisp.org>
49280
49281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
49282         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
49283         AC_LIB_HAVE_LINKFLAGS.
49284
49285 2009-04-26  Bruno Haible  <bruno@clisp.org>
49286
49287         Simplify calling convention of u*_conv_from_encoding.
49288         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
49289         u32_conv_from_encoding): Expect a resultbuf argument and return the
49290         result directly as a pointer.
49291         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
49292         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
49293         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
49294         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
49295         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
49296         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49297         Update.
49298         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
49299         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
49300         * lib/vasnprintf.c (VASNPRINTF): Update.
49301         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
49302         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
49303         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
49304         * NEWS: Mention the change.
49305
49306 2009-04-26  Bruno Haible  <bruno@clisp.org>
49307
49308         Simplify calling convention of u*_conv_to_encoding.
49309         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49310         u32_conv_to_encoding): Expect a resultbuf argument and return the
49311         result directly as a pointer.
49312         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49313         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
49314         freeing scaled_offsets if mem_iconveha failed.
49315         * lib/unicase/u-casexfrm.h (FUNC): Update.
49316         * lib/uninorm/u-normxfrm.h (FUNC): Update.
49317         * lib/vasnprintf.c (VASNPRINTF): Update.
49318         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
49319         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
49320         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
49321         * NEWS: Mention the change.
49322
49323 2009-04-26  Bruno Haible  <bruno@clisp.org>
49324
49325         Avoid test failures on AIX and OSF/1.
49326         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
49327         malloc(0).
49328         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
49329         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
49330         Likewise.
49331         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
49332         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
49333         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
49334         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
49335         * doc/posix-functions/malloc.texi: Document the portability problem
49336         related to malloc(0).
49337
49338 2009-04-26  Bruno Haible  <bruno@clisp.org>
49339
49340         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
49341         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
49342         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
49343
49344 2009-04-25  Bruno Haible  <bruno@clisp.org>
49345
49346         Avoid link error when creating a namespace clean library.
49347         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
49348         as macro with arguments if already defined as an alias.
49349         * lib/signbitf.c (gl_signbitf): Don't undefine.
49350         * lib/signbitd.c (gl_signbitd): Don't undefine.
49351         * lib/signbitl.c (gl_signbitl): Don't undefine.
49352
49353 2009-04-25  Jim Meyering  <meyering@redhat.com>
49354
49355         vc-list-files: fix another quoting bug
49356         * build-aux/vc-list-files: Avoid sed backslash expansion
49357         of pathological directory names.
49358
49359 2009-04-25  Eric Blake  <ebb9@byu.net>
49360
49361         vc-list-files: fix shell quoting error
49362         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
49363         timestamp.
49364
49365 2009-04-25  Jim Meyering  <meyering@redhat.com>
49366
49367         vc-list-files: restore lost functionality with subdir argument
49368         * build-aux/vc-list-files: When given a non-"." sub-directory
49369         argument, substitute the $dir/ prefix back onto each resulting name.
49370         Otherwise, coreutils' root_tests check would fail.
49371
49372 2009-04-24  Eric Blake  <ebb9@byu.net>
49373
49374         vc-list-files: ignore git symlinks
49375         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
49376         than ls-files, to ignore git symlinks.
49377
49378         maint.mk: import improvements from m4
49379         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
49380         (move_if_change): Delete unused macro.
49381         (news-date-check, vc-diff-check): Support VPATH builds.
49382         (announcement): Likewise.  Split --bootstrap-tools list...
49383         (boostrap-tools): ...into separate list, which can be overridden
49384         in cfg.mk.
49385         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
49386         requiring dependency on useless-if-before-free module.
49387         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
49388         Support VPATH builds.
49389
49390 2009-04-24  Jim Meyering  <meyering@redhat.com>
49391
49392         maint.mk: remove coreutils-specific rules and variables
49393         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
49394         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
49395         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
49396
49397         maint.mk: remove obsolete rule
49398         * top/maint.mk (rel-check): Remove rule.
49399         (WGET, WGETFLAGS): Remove now-unused variables.
49400
49401 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49402
49403         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
49404         consistency.
49405
49406         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
49407         '$(PATH_SEPARATOR)' instead of ':'.
49408
49409 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49410
49411         * lib/getopt1.c (main): Use 'const' for static array.
49412
49413 2009-04-24  Simon Josefsson  <simon@josefsson.org>
49414
49415         * top/maint.mk: Sync with coreutils.
49416         * NEWS: Explain incompatibilities.
49417
49418 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49419             Bruno Haible  <bruno@clisp.org>
49420
49421         Fix cross-compilation results.
49422         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
49423         statement, as third argument of AC_TRY_RUN.
49424         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
49425         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
49426         Likewise.
49427         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
49428         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49429         Likewise.
49430         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49431         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
49432         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
49433
49434 2009-04-20  Bruno Haible  <bruno@clisp.org>
49435
49436         Avoid test failure on mingw.
49437         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
49438
49439 2009-04-20  Bruno Haible  <bruno@clisp.org>
49440
49441         Avoid compilation error on mingw.
49442         * modules/localename-tests (Depends-on): Add locale.
49443
49444 2009-04-19  Bruno Haible  <bruno@clisp.org>
49445
49446         Support for building a shared library on Windows platforms.
49447         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
49448         (main): Test the presence of UNINORM_NFC here.
49449         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
49450         (main): Test the presence of UNINORM_NFD here.
49451         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
49452         (main): Test the presence of UNINORM_NFKC here.
49453         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
49454         (main): Test the presence of UNINORM_NFKD here.
49455
49456 2009-04-19  Bruno Haible  <bruno@clisp.org>
49457
49458         Avoid a compiler warning.
49459         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
49460         Change type of variable 'sequence'.
49461
49462 2009-04-19  Bruno Haible  <bruno@clisp.org>
49463
49464         * modules/configmake (Makefile.am): When the contents of configmake.h
49465         does not change, arrange to preserve its modification time.
49466
49467 2009-04-17  Simon Josefsson  <simon@josefsson.org>
49468
49469         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
49470         gettext domain.
49471
49472 2009-04-16  Jim Meyering  <meyering@redhat.com>
49473
49474         useless-if-before-free: improve conversion code
49475         * build-aux/useless-if-before-free: Adjust code-in-comment to match
49476         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
49477
49478 2009-04-14  Bruno Haible  <bruno@clisp.org>
49479
49480         * modules/fcntl (Depends-on): Add extensions.
49481         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
49482
49483 2009-04-12  Ben Pfaff  <blp@gnu.org>
49484
49485         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
49486         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
49487
49488 2009-03-20  Ben Pfaff  <blp@gnu.org>
49489
49490         Make rename replace existing destinations on Windows.
49491         * m4/rename.m4: Add test for Mingw.
49492         * lib/rename.c: Add rename replacement that uses MoveFileEx with
49493         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
49494         * doc/posix-functions/rename.texi: Document.
49495
49496 2009-04-10  Bruno Haible  <bruno@clisp.org>
49497
49498         New include file "iconveh.h".
49499         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
49500         * lib/striconveh.h: Include it.
49501         (enum iconv_ilseq_handler): Remove definition.
49502         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
49503         striconveh.h.
49504         * lib/striconveha.c: Include striconveh.h.
49505         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
49506         * modules/striconveh (Files): Add lib/iconveh.h.
49507         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
49508         lib/striconveh.h.
49509
49510 2009-04-10  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/uniconv.h: Update comment.
49513
49514 2009-04-10  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
49517         always.
49518         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
49519         * lib/unistr/u16-mbtouc-aux.c: Likewise.
49520         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
49521         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
49522         "unistring-notinline.h", so that the function gets defined always.
49523         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
49524         * lib/unistr/u8-uctomb.c: Likewise.
49525         * lib/unistr/u16-mbtouc.c: Likewise.
49526         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
49527         * lib/unistr/u16-uctomb.c: Likewise.
49528         * lib/unistr/u32-mbtouc.c: Likewise.
49529         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
49530         * lib/unistr/u32-uctomb.c: Likewise.
49531
49532 2009-04-10  Bruno Haible  <bruno@clisp.org>
49533
49534         Mark 'utime' obsolete.
49535         * modules/utime (Status, Notice): New sections.
49536         Suggested by Jim Meyering.
49537
49538         Fix cross-compile guess for utime test.
49539         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
49540         autoconf.
49541         * doc/posix-functions/utime.texi: Give more precisions.
49542         Reported by Jan <ipif@ymail.com>.
49543
49544 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
49545
49546         filevercmp: correct today's change
49547         * lib/filevercmp.c: Also handle coreutils' test inputs.
49548         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
49549
49550         Fix regression in 'filevercmp' module. Thanks Sven Joachim
49551         for reporting it.
49552         * lib/filevercmp.c: Special handle for "", "." and "..".
49553         * tests/test-filevercmp.c: Enlarge the set suite.
49554
49555 2009-04-07  Jim Meyering  <meyering@redhat.com>
49556
49557         useless-if-before-free: show how to remove braced useless free, too
49558         * build-aux/useless-if-before-free: still only in a comment, though.
49559
49560 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
49561
49562         maint.mk: import changes to syntax-check macros from coreutils
49563         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
49564         Use them in the relevant macros.
49565
49566 2009-04-06  Bruno Haible  <bruno@clisp.org>
49567
49568         Fix unportable use of bit-fields.
49569         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
49570         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
49571         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
49572
49573 2009-04-06  Bruno Haible  <bruno@clisp.org>
49574
49575         Avoid test failures on AIX and OSF/1.
49576         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
49577         that malloc(0) = NULL.
49578         * tests/unicase/test-u8-tolower.c (check): Likewise.
49579         * tests/unicase/test-u8-totitle.c (check): Likewise.
49580         * tests/unicase/test-u8-toupper.c (check): Likewise.
49581         * tests/unicase/test-u16-casefold.c (check): Likewise.
49582         * tests/unicase/test-u16-tolower.c (check): Likewise.
49583         * tests/unicase/test-u16-totitle.c (check): Likewise.
49584         * tests/unicase/test-u16-toupper.c (check): Likewise.
49585         * tests/unicase/test-u32-casefold.c (check): Likewise.
49586         * tests/unicase/test-u32-tolower.c (check): Likewise.
49587         * tests/unicase/test-u32-totitle.c (check): Likewise.
49588         * tests/unicase/test-u32-toupper.c (check): Likewise.
49589         * tests/uninorm/test-u8-nfc.c (check): Likewise.
49590         * tests/uninorm/test-u8-nfd.c (check): Likewise.
49591         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
49592         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
49593         * tests/uninorm/test-u16-nfc.c (check): Likewise.
49594         * tests/uninorm/test-u16-nfd.c (check): Likewise.
49595         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
49596         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
49597         * tests/uninorm/test-u32-nfc.c (check): Likewise.
49598         * tests/uninorm/test-u32-nfd.c (check): Likewise.
49599         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
49600         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
49601
49602 2009-04-05  Bruno Haible  <bruno@clisp.org>
49603
49604         Work around an autoconf limitation.
49605         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
49606         comment line if it would be longer than 3 KB.
49607
49608 2009-04-05  Bruno Haible  <bruno@clisp.org>
49609
49610         Avoid test failure with libiconv-1.13.
49611         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
49612         of the expected test results.
49613
49614 2009-04-05  Bruno Haible  <bruno@clisp.org>
49615
49616         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
49617         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
49618         that it should be installed.
49619
49620 2009-04-05  Bruno Haible  <bruno@clisp.org>
49621
49622         * gnulib-tool: New option --copy-file.
49623         (func_usage): Document it.
49624         (func_dest_tmpfilename): Moved out of func_import.
49625         (func_add_file, func_update_file): New functions, extracted from
49626         func_import.
49627         (func_import): Update.
49628
49629 2009-04-05  Karl Berry  <karl@gnu.org>
49630
49631         * README: prominently mention gnulib-tool.
49632         Rearrange sections so getting the code is near the top.
49633
49634 2009-04-05  Bruno Haible  <bruno@clisp.org>
49635
49636         * lib/unicase.h: Mention u*_cmp2.
49637         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49638         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
49639         * lib/unicase/ulc-casecmp.c: Likewise.
49640         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
49641         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
49642         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
49643         unistr/u8-cmp.
49644         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
49645         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
49646         unistr/u16-cmp.
49647         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
49648         unistr/u32-cmp.
49649
49650         * lib/uninorm.h: Mention u*_cmp2.
49651         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
49652         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
49653         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
49654         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
49655         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
49656         unistr/u8-cmp.
49657         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
49658         unistr/u16-cmp.
49659         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
49660         unistr/u32-cmp.
49661
49662         New module 'unistr/u32-cmp2'.
49663         * lib/unistr/u32-cmp2.c: New file.
49664         * modules/unistr/u32-cmp2: New file.
49665
49666         New module 'unistr/u16-cmp2'.
49667         * lib/unistr/u16-cmp2.c: New file.
49668         * modules/unistr/u16-cmp2: New file.
49669
49670         New module 'unistr/u8-cmp2'.
49671         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
49672         * lib/unistr/u8-cmp2.c: New file.
49673         * lib/unistr/u-cmp2.h: New file.
49674         * modules/unistr/u8-cmp2: New file.
49675
49676 2009-04-05  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/unictype.h (uc_property_is_valid): New macro.
49679         * tests/unictype/test-pr_byname.c (main): Use it.
49680
49681         * lib/unistr.h: Doc fixes.
49682         * lib/uniconv.h: Doc fixes.
49683         * lib/unictype.h: Doc fixes.
49684
49685 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
49686
49687         Port coreutils 7.2 to Solaris 8.
49688
49689         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
49690         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
49691         for Solaris 8.  This is a bit of a hack, as it means it's the
49692         caller's responsibility to add -lnsl if needed, but most likely it
49693         won't be needed since only getaddrinfo uses this and getaddrinfo
49694         isn't needed on Solaris 8.
49695
49696         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
49697         problem to Solaris 8 encountered with coreutils 7.2, which
49698         resulted in a message "fnmatch.c:292: warning: passing argument 4
49699         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
49700         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
49701
49702 2009-04-03  Simon Josefsson  <simon@josefsson.org>
49703
49704         * m4/ld-version-script.m4: Add FIXME comment.
49705
49706 2009-04-02  Simon Josefsson  <simon@josefsson.org>
49707
49708         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
49709         SOVERSION variable.
49710
49711 2009-04-02  Bruno Haible  <bruno@clisp.org>
49712
49713         * Makefile (info, html, dvi, pdf): Combine the rules.
49714         Suggested by Jim Meyering.
49715
49716 2009-04-01  Bruno Haible  <bruno@clisp.org>
49717
49718         * Makefile (info, html, dvi, pdf): New targets.
49719         Reported by Reuben Thomas <rrt@sc3d.org>.
49720
49721 2009-04-01  Bruno Haible  <bruno@clisp.org>
49722
49723         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
49724         can be put into PATH.
49725         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
49726
49727 2009-04-01  Bruno Haible  <bruno@clisp.org>
49728
49729         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
49730
49731 2009-04-01  Bruno Haible  <bruno@clisp.org>
49732
49733         Rename module 'visibility'.
49734         * modules/lib-symbol-visibility: Renamed from modules/visibility.
49735         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
49736         * doc/gnulib.texi: Update.
49737         * MODULES.html.sh (Misc): Update.
49738         * NEWS: Mention the change.
49739
49740 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49741
49742         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
49743         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
49744         Eric Blake <ebb9@byu.net> for review.
49745         * MODULES.html.sh: Add lib-msvc-compat.
49746         * doc/gnulib.texi: Link to new section.
49747         * m4/ld-output-def.m4: New file.
49748         * doc/ld-output-def.texi: New file.
49749
49750 2009-04-01  Simon Josefsson  <simon@josefsson.org>
49751
49752         Rename ld-version-script to lib-symbol-versions.  Suggested by
49753         Bruno Haible <bruno@clisp.org>.
49754         * modules/ld-version-script: Renamed to lib-symbol-versions.
49755         * doc/ld-version-script.texi: Fix module name.
49756         * MODULES.html.sh: Add lib-symbol-versions.
49757
49758 2009-03-31  Simon Josefsson  <simon@josefsson.org>
49759
49760         * modules/u64-tests: New file.
49761         * tests/test-u64.c: New file.
49762
49763 2009-03-04  Simon Josefsson  <simon@josefsson.org>
49764
49765         * MODULES.html.sh: Mention u64.
49766         * modules/u64: New module.
49767         * modules/crypto/sha512: Depend on u64 module instead of providing
49768         u64.h.
49769
49770 2009-03-27  Eric Blake  <ebb9@byu.net>
49771
49772         test-strerror: make debugging EAI_SYSTEM easier
49773         * modules/getaddrinfo-tests (Depends-on): Add strerror.
49774         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
49775         failure was EAI_SYSTEM.
49776
49777 2009-03-25  Bruno Haible  <bruno@clisp.org>
49778
49779         Fix a problem with --enable-relocatable on Solaris 7.
49780         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
49781         since 2008-02-24.
49782
49783 2009-03-25  Eric Blake  <ebb9@byu.net>
49784
49785         test-sockets: avoid gcc warning
49786         * tests/test-sockets.c (main): Silence compiler warning.
49787
49788 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
49789
49790         New modules nproc, pthread, contributed by Glen Lenker.
49791
49792         * MODULES.html.sh: Add pthread, nproc.
49793         * lib/nproc.c: New file.
49794         * lib/nproc.h: New file.
49795         * lib/pthread.in.h: New file.
49796         * m4/pthread.m4: New file.
49797         * modules/nproc: New file.
49798         * modules/pthread: New file.
49799
49800 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49801
49802         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
49803         New variable.
49804
49805 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
49806
49807         filevercmp: handle simple~ and numbered.~3~ backup suffixes
49808         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
49809         * tests/test-filevercmp.c: Add tests for backup suffixes.
49810
49811 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49812
49813         * modules/stdlib (Depends-on): Add stdint, needed when defining
49814         struct random_data on, for example, HP-UX 10.20.  Reported by
49815         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49816
49817 2009-03-24  Simon Josefsson  <simon@josefsson.org>
49818
49819         * lib/readline.c (readline): Call fflush on stdout after printing
49820         prompt.
49821
49822 2009-03-20  Bruno Haible  <bruno@clisp.org>
49823
49824         Remove dependency from 'close' module to -lws2_32 on native Windows.
49825         * lib/close-hook.h: New file.
49826         * lib/close-hook.c: New file.
49827         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
49828         w32sock.h.
49829         (_gl_close_fd_maybe_socket): Remove function.
49830         (rpl_close): Invoke execute_all_close_hooks instead of
49831         _gl_close_fd_maybe_socket.
49832         * lib/sockets.c: Include close-hook.h, w32sock.h.
49833         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49834         (close_sockets_hook): New variable.
49835         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49836         (gl_sockets_cleanup): Unregister it.
49837         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49838         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49839         * modules/close-hook: New file.
49840         * modules/close (Files): Remove lib/w32sock.h.
49841         (Depends-on): Add close-hook.
49842         (Link): Remove section.
49843         * modules/sockets (Files): Add lib/w32sock.h.
49844         (Depends-on): Add close-hook.
49845         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49846         invocation.
49847         * NEWS: Mention that LIB_CLOSE is gone.
49848
49849 2009-03-23  Eric Blake  <ebb9@byu.net>
49850
49851         signal-tests: test previous patch
49852         * tests/test-signal.c: New file.
49853         * modules/signal-tests: Likewise.
49854
49855         signal.h: always support 'volatile sig_atomic_t'
49856         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49857         (gl_SIGNAL_H_DEFAULTS): Add a default.
49858         * modules/signal (Makefile.am): Substitute if needed.
49859         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49860         users can blindly add volatile.
49861         * doc/posix-headers/signal.texi (signal.h): Document it.
49862         Reported by Matthew Woehlke.
49863
49864 2009-03-23  Jim Meyering  <meyering@redhat.com>
49865
49866         pathmax: PATH_MAX: use pathconf only when available
49867         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49868         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49869         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49870         This avoids a link failure in a PSP cross-compilation environment
49871         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49872
49873         * lib/vasnprintf.c (divide): Fix typo in comment.
49874
49875 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49876
49877         * gnulib-tool (func_filter_filelist): Fix comment.
49878
49879 2009-03-20  Bruno Haible  <bruno@clisp.org>
49880
49881         Make sockets.h self-contained.
49882         * lib/sockets.c: Include sockets.h first.
49883         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49884
49885 2009-03-19  Eric Blake  <ebb9@byu.net>
49886
49887         doc: mention more functions added in cygwin 1.7.0
49888         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49889         addition.
49890         * doc/posix-functions/log2f.texi: Likewise.
49891
49892 2009-03-19  Jim Meyering  <meyering@redhat.com>
49893
49894         fsusage: avoid syntax error due to statement-before-declaration
49895         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49896         after all declarations.  Reported by Matthew Woehlke in
49897         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49898
49899 2009-03-18  Eric Blake  <ebb9@byu.net>
49900
49901         build-aux/compile: sync from automake
49902         * build-aux/compile: New file, from automake.
49903         * config/srclist.txt: Mention build-aux/compile.
49904
49905 2009-03-17  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/git-merge-changelog.c: Fix typo in comment.
49908         Reported by Reuben Thomas <rrt@sc3d.org>.
49909
49910 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49911
49912         * m4/regex.m4: update and improve help for
49913         --without-included-regex.
49914
49915 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49916
49917         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49918         failure on missing include files.
49919
49920 2009-03-17  Eric Blake  <ebb9@byu.net>
49921
49922         doc: mention more functions added in cygwin 1.7.0
49923         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49924         addition.
49925         * doc/posix-functions/fwscanf.texi: Likewise.
49926         * doc/posix-functions/swprintf.texi: Likewise.
49927         * doc/posix-functions/swscanf.texi: Likewise.
49928         * doc/posix-functions/vfwprintf.texi: Likewise.
49929         * doc/posix-functions/vfwscanf.texi: Likewise.
49930         * doc/posix-functions/vswprintf.texi: Likewise.
49931         * doc/posix-functions/vswscanf.texi: Likewise.
49932         * doc/posix-functions/vwprintf.texi: Likewise.
49933         * doc/posix-functions/vwscanf.texi: Likewise.
49934         * doc/posix-functions/wcscasecmp.texi: Likewise.
49935         * doc/posix-functions/wcsdup.texi: Likewise.
49936         * doc/posix-functions/wcsftime.texi: Likewise.
49937         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49938         * doc/posix-functions/wprintf.texi: Likewise.
49939         * doc/posix-functions/wscanf.texi: Likewise.
49940         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49941
49942 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943
49944         maint.mk: really add $(AM_MAKEFLAGS)
49945         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49946         was inadvertently omitted in the last commit.
49947         Spotted by Bruno Haible.
49948
49949         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49950         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49951         $(AM_MAKEFLAGS)' rather than plain `make'.
49952
49953         gnulib-tool: execute $MAKE not make
49954         * gnulib-tool: Default $MAKE to 'make'.
49955         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49956         than make.  Initialize $MAKE in the do-autobuild script.
49957
49958         gnulib-tool: use $MAKE not make in generated files
49959         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49960         make, in generated files.  Initialize $MAKE in the do-autobuild
49961         script.
49962
49963         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49964
49965         GNUmakefile: disable parallelism only for multiple, recursive targets
49966         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49967         additions in the Makefile.
49968         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49969         by Automake.
49970         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49971         are listed on the command line and at least one of them is
49972         listed in $(ALL_RECURSIVE_TARGETS).
49973
49974 2009-03-14  Bruno Haible  <bruno@clisp.org>
49975
49976         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49977         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49978         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49979         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49980         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49981         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49982         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49983         unistr/u8-uctomb.
49984         * modules/unistr/u8-strchr (Depends-on): Likewise.
49985         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49986         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49987         unistr/u16-uctomb.
49988         * modules/unistr/u16-strchr (Depends-on): Likewise.
49989         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49990
49991 2009-03-12  Bruno Haible  <bruno@clisp.org>
49992
49993         Work around select() bug on Interix 3.5.
49994         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49995         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49996         * m4/select.m4: New file.
49997         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49998         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49999         * modules/select (Files): Add m4/select.m4.
50000         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50001         * modules/nanosleep (Depends-on): Add select.
50002         * modules/poll (Depends-on): Likewise.
50003         * doc/posix-functions/select.texi: Mention the Interix bug.
50004         Reported by Markus Duft <mduft@gentoo.org>.
50005
50006         * lib/select.c: Renamed from lib/winsock-select.c.
50007         * modules/select (Files): Add lib/select.c, remove
50008         lib/winsock-select.c.
50009         (configure.ac): Update.
50010
50011 2009-03-12  Jim Meyering  <meyering@redhat.com>
50012
50013         avoid gcc warnings about unused macro definitions
50014         * lib/readtokens.c (STREQ): Remove unused definition.
50015         * lib/xmalloc.c (SIZE_MAX): Likewise.
50016         * lib/openat-die.c (N_): Likewise.
50017         * lib/mountlist.c (SIZE_MAX): Remove definition.
50018         Instead, include <stdint.h>.
50019         * lib/readutmp.c: Likewise.
50020         * modules/readutmp (Depends-on): Add stdint.
50021         * modules/mountlist (Depends-on): Add stdint.
50022         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50023
50024 2009-03-10  Bruno Haible  <bruno@clisp.org>
50025
50026         Tests for module 'mbmemcasecoll'.
50027         * modules/mbmemcasecoll-tests: New file.
50028         * tests/test-mbmemcasecoll1.sh: New file.
50029         * tests/test-mbmemcasecoll2.sh: New file.
50030         * tests/test-mbmemcasecoll3.sh: New file.
50031         * tests/test-mbmemcasecoll.c: New file.
50032
50033         New module 'mbmemcasecoll'.
50034         * lib/mbmemcasecoll.h: New file.
50035         * lib/mbmemcasecoll.c: New file.
50036         * modules/mbmemcasecoll: New file.
50037
50038         * tests/test-mbmemcasecmp.h: New file, extracted from
50039         tests/test-mbmemcasecmp.c.
50040         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50041         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50042         (main): Update.
50043         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50044
50045 2009-03-09  Bruno Haible  <bruno@clisp.org>
50046
50047         Tests for module 'mbmemcasecmp'.
50048         * modules/mbmemcasecmp-tests: New file.
50049         * tests/test-mbmemcasecmp1.sh: New file.
50050         * tests/test-mbmemcasecmp2.sh: New file.
50051         * tests/test-mbmemcasecmp3.sh: New file.
50052         * tests/test-mbmemcasecmp.c: New file.
50053
50054         New module 'mbmemcasecmp'.
50055         * lib/mbmemcasecmp.h: New file.
50056         * lib/mbmemcasecmp.c: New file.
50057         * modules/mbmemcasecmp: New file.
50058
50059 2009-03-09  Bruno Haible  <bruno@clisp.org>
50060
50061         Tests for module 'unicase/ulc-casecoll'.
50062         * modules/unicase/ulc-casecoll-tests: New file.
50063         * tests/unicase/test-ulc-casecoll1.sh: New file.
50064         * tests/unicase/test-ulc-casecoll2.sh: New file.
50065         * tests/unicase/test-ulc-casecoll.c: New file.
50066
50067         New module 'unicase/ulc-casecoll'.
50068         * lib/unicase.h (ulc_casecoll): New declaration.
50069         * lib/unicase/ulc-casecoll.c: New file.
50070         * modules/unicase/ulc-casecoll: New file.
50071
50072         New module 'unicase/ulc-casexfrm'.
50073         * lib/unicase.h (ulc_casexfrm): New declaration.
50074         * lib/unicase/ulc-casexfrm.c: New file.
50075         * modules/unicase/ulc-casexfrm: New file.
50076
50077 2009-03-09  Bruno Haible  <bruno@clisp.org>
50078
50079         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
50080         invocations.
50081
50082         * m4/mbscasecmp.m4: Remove file.
50083         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
50084         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
50085
50086         * m4/mbscasestr.m4: Remove file.
50087         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
50088         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
50089
50090         * m4/mbschr.m4: Remove file.
50091         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
50092         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
50093
50094         * m4/mbscspn.m4: Remove file.
50095         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
50096         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
50097
50098         * m4/mbslen.m4: Remove file.
50099         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
50100         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
50101
50102         * m4/mbsncasecmp.m4: Remove file.
50103         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
50104         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
50105
50106         * m4/mbsnlen.m4: Remove file.
50107         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
50108         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
50109
50110         * m4/mbspbrk.m4: Remove file.
50111         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
50112         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
50113
50114         * m4/mbspcasecmp.m4: Remove file.
50115         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
50116         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
50117
50118         * m4/mbsrchr.m4: Remove file.
50119         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
50120         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
50121
50122         * m4/mbssep.m4: Remove file.
50123         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
50124         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
50125
50126         * m4/mbsspn.m4: Remove file.
50127         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
50128         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
50129
50130         * m4/mbsstr.m4: Remove file.
50131         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
50132         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
50133
50134         * m4/mbstok_r.m4: Remove file.
50135         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
50136         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
50137
50138         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
50139
50140         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
50141         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
50142
50143         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
50144
50145 2009-03-08  Bruno Haible  <bruno@clisp.org>
50146
50147         Tests for module 'unicase/ulc-casecmp'.
50148         * modules/unicase/ulc-casecmp-tests: New file.
50149         * tests/unicase/test-ulc-casecmp1.sh: New file.
50150         * tests/unicase/test-ulc-casecmp2.sh: New file.
50151         * tests/unicase/test-ulc-casecmp.c: New file.
50152
50153         New module 'unicase/ulc-casecmp'.
50154         * lib/unicase.h (ulc_casecmp): New declaration.
50155         * lib/unicase/ulc-casecmp.c: New file.
50156         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
50157         'const SRC_UNIT *'.
50158         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
50159         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
50160         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
50161         * modules/unicase/ulc-casecmp: New file.
50162
50163         Tests for module 'unicase/u32-is-cased'.
50164         * modules/unicase/u32-is-cased-tests: New file.
50165         * tests/unicase/test-u32-is-cased.c: New file.
50166
50167         Tests for module 'unicase/u16-is-cased'.
50168         * modules/unicase/u16-is-cased-tests: New file.
50169         * tests/unicase/test-u16-is-cased.c: New file.
50170
50171         Tests for module 'unicase/u8-is-cased'.
50172         * modules/unicase/u8-is-cased-tests: New file.
50173         * tests/unicase/test-u8-is-cased.c: New file.
50174         * tests/unicase/test-is-cased.h: New file.
50175
50176         New module 'unicase/u32-is-cased'.
50177         * lib/unicase/u32-is-cased.c: New file.
50178         * modules/unicase/u32-is-cased: New file.
50179
50180         New module 'unicase/u16-is-cased'.
50181         * lib/unicase/u16-is-cased.c: New file.
50182         * modules/unicase/u16-is-cased: New file.
50183
50184         New module 'unicase/u8-is-cased'.
50185         * lib/unicase/u8-is-cased.c: New file.
50186         * lib/unicase/u-is-cased.h: New file.
50187         * modules/unicase/u8-is-cased: New file.
50188
50189         Tests for module 'unicase/u32-is-casefolded'.
50190         * modules/unicase/u32-is-casefolded-tests: New file.
50191         * tests/unicase/test-u32-is-casefolded.c: New file.
50192
50193         Tests for module 'unicase/u16-is-casefolded'.
50194         * modules/unicase/u16-is-casefolded-tests: New file.
50195         * tests/unicase/test-u16-is-casefolded.c: New file.
50196
50197         Tests for module 'unicase/u8-is-casefolded'.
50198         * modules/unicase/u8-is-casefolded-tests: New file.
50199         * tests/unicase/test-u8-is-casefolded.c: New file.
50200         * tests/unicase/test-is-casefolded.h: New file.
50201
50202         New module 'unicase/u32-is-casefolded'.
50203         * lib/unicase/u32-is-casefolded.c: New file.
50204         * modules/unicase/u32-is-casefolded: New file.
50205
50206         New module 'unicase/u16-is-casefolded'.
50207         * lib/unicase/u16-is-casefolded.c: New file.
50208         * modules/unicase/u16-is-casefolded: New file.
50209
50210         New module 'unicase/u8-is-casefolded'.
50211         * lib/unicase/u8-is-casefolded.c: New file.
50212         * modules/unicase/u8-is-casefolded: New file.
50213
50214         Tests for module 'unicase/u32-is-titlecase'.
50215         * modules/unicase/u32-is-titlecase-tests: New file.
50216         * tests/unicase/test-u32-is-titlecase.c: New file.
50217
50218         Tests for module 'unicase/u16-is-titlecase'.
50219         * modules/unicase/u16-is-titlecase-tests: New file.
50220         * tests/unicase/test-u16-is-titlecase.c: New file.
50221
50222         Tests for module 'unicase/u8-is-titlecase'.
50223         * modules/unicase/u8-is-titlecase-tests: New file.
50224         * tests/unicase/test-u8-is-titlecase.c: New file.
50225         * tests/unicase/test-is-titlecase.h: New file.
50226
50227         New module 'unicase/u32-is-titlecase'.
50228         * lib/unicase/u32-is-titlecase.c: New file.
50229         * modules/unicase/u32-is-titlecase: New file.
50230
50231         New module 'unicase/u16-is-titlecase'.
50232         * lib/unicase/u16-is-titlecase.c: New file.
50233         * modules/unicase/u16-is-titlecase: New file.
50234
50235         New module 'unicase/u8-is-titlecase'.
50236         * lib/unicase/u8-is-titlecase.c: New file.
50237         * modules/unicase/u8-is-titlecase: New file.
50238
50239         Tests for module 'unicase/u32-is-lowercase'.
50240         * modules/unicase/u32-is-lowercase-tests: New file.
50241         * tests/unicase/test-u32-is-lowercase.c: New file.
50242
50243         Tests for module 'unicase/u16-is-lowercase'.
50244         * modules/unicase/u16-is-lowercase-tests: New file.
50245         * tests/unicase/test-u16-is-lowercase.c: New file.
50246
50247         Tests for module 'unicase/u8-is-lowercase'.
50248         * modules/unicase/u8-is-lowercase-tests: New file.
50249         * tests/unicase/test-u8-is-lowercase.c: New file.
50250         * tests/unicase/test-is-lowercase.h: New file.
50251
50252         New module 'unicase/u32-is-lowercase'.
50253         * lib/unicase/u32-is-lowercase.c: New file.
50254         * modules/unicase/u32-is-lowercase: New file.
50255
50256         New module 'unicase/u16-is-lowercase'.
50257         * lib/unicase/u16-is-lowercase.c: New file.
50258         * modules/unicase/u16-is-lowercase: New file.
50259
50260         New module 'unicase/u8-is-lowercase'.
50261         * lib/unicase/u8-is-lowercase.c: New file.
50262         * modules/unicase/u8-is-lowercase: New file.
50263
50264         Tests for module 'unicase/u32-is-uppercase'.
50265         * modules/unicase/u32-is-uppercase-tests: New file.
50266         * tests/unicase/test-u32-is-uppercase.c: New file.
50267
50268         Tests for module 'unicase/u16-is-uppercase'.
50269         * modules/unicase/u16-is-uppercase-tests: New file.
50270         * tests/unicase/test-u16-is-uppercase.c: New file.
50271
50272         Tests for module 'unicase/u8-is-uppercase'.
50273         * modules/unicase/u8-is-uppercase-tests: New file.
50274         * tests/unicase/test-u8-is-uppercase.c: New file.
50275         * tests/unicase/test-is-uppercase.h: New file.
50276
50277         New module 'unicase/u32-is-uppercase'.
50278         * lib/unicase/u32-is-uppercase.c: New file.
50279         * modules/unicase/u32-is-uppercase: New file.
50280
50281         New module 'unicase/u16-is-uppercase'.
50282         * lib/unicase/u16-is-uppercase.c: New file.
50283         * modules/unicase/u16-is-uppercase: New file.
50284
50285         New module 'unicase/u8-is-uppercase'.
50286         * lib/unicase/u8-is-uppercase.c: New file.
50287         * modules/unicase/u8-is-uppercase: New file.
50288
50289         New module 'unicase/u32-is-invariant'.
50290         * lib/unicase/u32-is-invariant.c: New file.
50291         * modules/unicase/u32-is-invariant: New file.
50292
50293         New module 'unicase/u16-is-invariant'.
50294         * lib/unicase/u16-is-invariant.c: New file.
50295         * modules/unicase/u16-is-invariant: New file.
50296
50297         New module 'unicase/u8-is-invariant'.
50298         * lib/unicase/u8-is-invariant.c: New file.
50299         * lib/unicase/invariant.h: New file.
50300         * lib/unicase/u-is-invariant.h: New file.
50301         * modules/unicase/u8-is-invariant: New file.
50302
50303         Tests for module 'unicase/u32-casecoll'.
50304         * modules/unicase/u32-casecoll-tests: New file.
50305         * tests/unicase/test-u32-casecoll.c: New file.
50306
50307         Tests for module 'unicase/u16-casecoll'.
50308         * modules/unicase/u16-casecoll-tests: New file.
50309         * tests/unicase/test-u16-casecoll.c: New file.
50310
50311         Tests for module 'unicase/u8-casecoll'.
50312         * modules/unicase/u8-casecoll-tests: New file.
50313         * tests/unicase/test-u8-casecoll.c: New file.
50314
50315         New module 'unicase/u32-casecoll'.
50316         * lib/unicase/u32-casecoll.c: New file.
50317         * modules/unicase/u32-casecoll: New file.
50318
50319         New module 'unicase/u16-casecoll'.
50320         * lib/unicase/u16-casecoll.c: New file.
50321         * modules/unicase/u16-casecoll: New file.
50322
50323         New module 'unicase/u8-casecoll'.
50324         * lib/unicase/u8-casecoll.c: New file.
50325         * lib/unicase/u-casecoll.h: New file.
50326         * modules/unicase/u8-casecoll: New file.
50327
50328         New module 'unicase/u32-casexfrm'.
50329         * lib/unicase/u32-casexfrm.c: New file.
50330         * modules/unicase/u32-casexfrm: New file.
50331
50332         New module 'unicase/u16-casexfrm'.
50333         * lib/unicase/u16-casexfrm.c: New file.
50334         * modules/unicase/u16-casexfrm: New file.
50335
50336         New module 'unicase/u8-casexfrm'.
50337         * lib/unicase/u8-casexfrm.c: New file.
50338         * lib/unicase/u-casexfrm.h: New file.
50339         * modules/unicase/u8-casexfrm: New file.
50340
50341         Tests for module 'unicase/u32-casecmp'.
50342         * modules/unicase/u32-casecmp-tests: New file.
50343         * tests/unicase/test-u32-casecmp.c: New file.
50344
50345         Tests for module 'unicase/u16-casecmp'.
50346         * modules/unicase/u16-casecmp-tests: New file.
50347         * tests/unicase/test-u16-casecmp.c: New file.
50348
50349         Tests for module 'unicase/u8-casecmp'.
50350         * modules/unicase/u8-casecmp-tests: New file.
50351         * tests/unicase/test-u8-casecmp.c: New file.
50352         * tests/unicase/test-casecmp.h: New file.
50353
50354         New module 'unicase/u32-casecmp'.
50355         * lib/unicase/u32-casecmp.c: New file.
50356         * modules/unicase/u32-casecmp: New file.
50357
50358         New module 'unicase/u16-casecmp'.
50359         * lib/unicase/u16-casecmp.c: New file.
50360         * modules/unicase/u16-casecmp: New file.
50361
50362         New module 'unicase/u8-casecmp'.
50363         * lib/unicase/u8-casecmp.c: New file.
50364         * lib/unicase/u-casecmp.h: New file.
50365         * modules/unicase/u8-casecmp: New file.
50366
50367         Tests for module 'unicase/u32-casefold'.
50368         * modules/unicase/u32-casefold-tests: New file.
50369         * tests/unicase/test-u32-casefold.c: New file.
50370
50371         Tests for module 'unicase/u16-casefold'.
50372         * modules/unicase/u16-casefold-tests: New file.
50373         * tests/unicase/test-u16-casefold.c: New file.
50374
50375         Tests for module 'unicase/u8-casefold'.
50376         * modules/unicase/u8-casefold-tests: New file.
50377         * tests/unicase/test-u8-casefold.c: New file.
50378
50379         New module 'unicase/u32-casefold'.
50380         * lib/unicase/u32-casefold.c: New file.
50381         * modules/unicase/u32-casefold: New file.
50382
50383         New module 'unicase/u16-casefold'.
50384         * lib/unicase/u16-casefold.c: New file.
50385         * modules/unicase/u16-casefold: New file.
50386
50387         New module 'unicase/u8-casefold'.
50388         * lib/unicase/u8-casefold.c: New file.
50389         * lib/unicase/u-casefold.h: New file.
50390         * modules/unicase/u8-casefold: New file.
50391
50392         New module 'unicase/tocasefold'.
50393         * lib/unicase/casefold.h: New file.
50394         * lib/unicase/tocasefold.c: New file.
50395         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
50396         * modules/unicase/tocasefold: New file.
50397
50398         Tests for module 'unicase/u32-totitle'.
50399         * modules/unicase/u32-totitle-tests: New file.
50400         * tests/unicase/test-u32-totitle.c: New file.
50401
50402         Tests for module 'unicase/u16-totitle'.
50403         * modules/unicase/u16-totitle-tests: New file.
50404         * tests/unicase/test-u16-totitle.c: New file.
50405
50406         Tests for module 'unicase/u8-totitle'.
50407         * modules/unicase/u8-totitle-tests: New file.
50408         * tests/unicase/test-u8-totitle.c: New file.
50409
50410         New module 'unicase/u32-totitle'.
50411         * lib/unicase/u32-totitle.c: New file.
50412         * modules/unicase/u32-totitle: New file.
50413
50414         New module 'unicase/u16-totitle'.
50415         * lib/unicase/u16-totitle.c: New file.
50416         * modules/unicase/u16-totitle: New file.
50417
50418         New module 'unicase/u8-totitle'.
50419         * lib/unicase/u8-totitle.c: New file.
50420         * lib/unicase/u-totitle.h: New file.
50421         * modules/unicase/u8-totitle: New file.
50422
50423         Tests for module 'unicase/u32-tolower'.
50424         * modules/unicase/u32-tolower-tests: New file.
50425         * tests/unicase/test-u32-tolower.c: New file.
50426
50427         Tests for module 'unicase/u16-tolower'.
50428         * modules/unicase/u16-tolower-tests: New file.
50429         * tests/unicase/test-u16-tolower.c: New file.
50430
50431         Tests for module 'unicase/u8-tolower'.
50432         * modules/unicase/u8-tolower-tests: New file.
50433         * tests/unicase/test-u8-tolower.c: New file.
50434
50435         New module 'unicase/u32-tolower'.
50436         * lib/unicase/u32-tolower.c: New file.
50437         * modules/unicase/u32-tolower: New file.
50438
50439         New module 'unicase/u16-tolower'.
50440         * lib/unicase/u16-tolower.c: New file.
50441         * modules/unicase/u16-tolower: New file.
50442
50443         New module 'unicase/u8-tolower'.
50444         * lib/unicase/u8-tolower.c: New file.
50445         * modules/unicase/u8-tolower: New file.
50446
50447         Tests for module 'unicase/u32-toupper'.
50448         * modules/unicase/u32-toupper-tests: New file.
50449         * tests/unicase/test-u32-toupper.c: New file.
50450
50451         Tests for module 'unicase/u16-toupper'.
50452         * modules/unicase/u16-toupper-tests: New file.
50453         * tests/unicase/test-u16-toupper.c: New file.
50454
50455         Tests for module 'unicase/u8-toupper'.
50456         * modules/unicase/u8-toupper-tests: New file.
50457         * tests/unicase/test-u8-toupper.c: New file.
50458
50459         New module 'unicase/u32-toupper'.
50460         * lib/unicase/u32-toupper.c: New file.
50461         * modules/unicase/u32-toupper: New file.
50462
50463         New module 'unicase/u16-toupper'.
50464         * lib/unicase/u16-toupper.c: New file.
50465         * modules/unicase/u16-toupper: New file.
50466
50467         New module 'unicase/u8-toupper'.
50468         * lib/unicase/u8-toupper.c: New file.
50469         * modules/unicase/u8-toupper: New file.
50470
50471         New module 'unicase/u32-casemap'.
50472         * lib/unicase/u32-casemap.c: New file.
50473         * modules/unicase/u32-casemap: New file.
50474
50475         New module 'unicase/u16-casemap'.
50476         * lib/unicase/u16-casemap.c: New file.
50477         * modules/unicase/u16-casemap: New file.
50478
50479         New module 'unicase/u8-casemap'.
50480         * lib/unicase/unicasemap.h: New file.
50481         * lib/unicase/u8-casemap.c: New file.
50482         * lib/unicase/u-casemap.h: New file.
50483         * modules/unicase/u8-casemap: New file.
50484
50485         New module 'unicase/special-casing'.
50486         * lib/unicase/special-casing.h: New file.
50487         * lib/unicase/special-casing.c: New file.
50488         * lib/unicase/special-casing-table.gperf: New file, generated by
50489         gen-uni-tables.c.
50490         * modules/unicase/special-casing: New file.
50491
50492         Tests for module 'unicase/locale-language'.
50493         * modules/unicase/locale-language-tests: New file.
50494         * tests/unicase/test-locale-language.sh: New file.
50495         * tests/unicase/test-locale-language.c: New file.
50496
50497         New module 'unicase/locale-language'.
50498         * lib/unicase/locale-language.c: New file.
50499         * lib/unicase/locale-languages.gperf: New file.
50500         * modules/unicase/locale-language: New file.
50501
50502         Generate more tables for case conversion and case folding.
50503         * lib/gen-uni-tables.c (SCC_*): New enum items.
50504         (struct special_casing_rule): New type.
50505         (casing_rules, num_casing_rules, allocated_casing_rules): New
50506         variables.
50507         (add_casing_rule, fill_casing_rules): New functions.
50508         (struct casefold_rule): New type.
50509         (casefolding_rules, num_casefolding_rules,
50510         allocated_casefolding_rules): New variables.
50511         (fill_casefolding_rules): New function.
50512         (unicode_casefold): New variable.
50513         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
50514         sort_casing_rules, output_casing_rules): New functions.
50515         (main): Accept to more arguments: SpecialCasing.txt and
50516         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
50517         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
50518         Output mapping for casefolding.
50519
50520         * lib/unicase.h: Include stdbool.h, uninorm.h.
50521         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
50522         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
50523         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
50524         arguments.
50525         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
50526         resultp arguments.
50527         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
50528         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
50529         resultp arguments.
50530         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
50531         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
50532         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
50533         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
50534         declarations.
50535         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
50536
50537 2009-03-08  Bruno Haible  <bruno@clisp.org>
50538
50539         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50540         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
50541         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
50542         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50543
50544 2009-03-07  Bruno Haible  <bruno@clisp.org>
50545
50546         Adjust u*_normcmp, u*_normcoll API.
50547         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
50548         u16_normcoll, u32_normcoll): Change failure conventions.
50549         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
50550         errno and return -1.
50551         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
50552
50553 2009-03-07  Bruno Haible  <bruno@clisp.org>
50554
50555         Tests for module 'uninorm/u32-normcoll'.
50556         * modules/uninorm/u32-normcoll-tests: New file.
50557         * tests/uninorm/test-u32-normcoll.c: New file.
50558
50559         Tests for module 'uninorm/u16-normcoll'.
50560         * modules/uninorm/u16-normcoll-tests: New file.
50561         * tests/uninorm/test-u16-normcoll.c: New file.
50562
50563         Tests for module 'uninorm/u8-normcoll'.
50564         * modules/uninorm/u8-normcoll-tests: New file.
50565         * tests/uninorm/test-u8-normcoll.c: New file.
50566
50567 2009-03-07  Bruno Haible  <bruno@clisp.org>
50568
50569         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
50570         tests/uninorm/test-u32-normcmp.c.
50571         * tests/uninorm/test-u32-normcmp.c: Include it.
50572         (test_nonascii): New function, extracted from main. Add some more
50573         tests.
50574         (main): Invoke test_ascii and test_nonascii.
50575         * modules/uninorm/u32-normcmp-tests (Files): Add
50576         tests/uninorm/test-u32-normcmp.h.
50577         (Depends-on): Remove uninorm/u32-normcmp.
50578
50579         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
50580         tests/uninorm/test-u16-normcmp.c.
50581         * tests/uninorm/test-u16-normcmp.c: Include it.
50582         (test_nonascii): New function, extracted from main. Add some more
50583         tests.
50584         (main): Invoke test_ascii and test_nonascii.
50585         * modules/uninorm/u16-normcmp-tests (Files): Add
50586         tests/uninorm/test-u16-normcmp.h.
50587         (Depends-on): Remove uninorm/u16-normcmp.
50588
50589         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
50590         tests/uninorm/test-u8-normcmp.c.
50591         * tests/uninorm/test-u8-normcmp.c: Include it.
50592         (test_nonascii): New function, extracted from main. Add some more
50593         tests.
50594         (main): Invoke test_ascii and test_nonascii.
50595         * modules/uninorm/u8-normcmp-tests (Files): Add
50596         tests/uninorm/test-u8-normcmp.h.
50597         (Depends-on): Remove uninorm/u8-normcmp.
50598
50599 2009-03-07  Bruno Haible  <bruno@clisp.org>
50600
50601         New module 'uninorm/u32-normcoll'.
50602         * lib/uninorm/u32-normcoll.c: New file.
50603         * modules/uninorm/u32-normcoll: New file.
50604
50605         New module 'uninorm/u16-normcoll'.
50606         * lib/uninorm/u16-normcoll.c: New file.
50607         * modules/uninorm/u16-normcoll: New file.
50608
50609         New module 'uninorm/u8-normcoll'.
50610         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
50611         declarations.
50612         * lib/uninorm/u8-normcoll.c: New file.
50613         * lib/uninorm/u-normcoll.h: New file.
50614         * modules/uninorm/u8-normcoll: New file.
50615
50616         New module 'uninorm/u32-normxfrm'.
50617         * lib/uninorm/u32-normxfrm.c: New file.
50618         * modules/uninorm/u32-normxfrm: New file.
50619
50620         New module 'uninorm/u16-normxfrm'.
50621         * lib/uninorm/u16-normxfrm.c: New file.
50622         * modules/uninorm/u16-normxfrm: New file.
50623
50624         New module 'uninorm/u8-normxfrm'.
50625         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
50626         declarations.
50627         * lib/uninorm/u8-normxfrm.c: New file.
50628         * lib/uninorm/u-normxfrm.h: New file.
50629         * modules/uninorm/u8-normxfrm: New file.
50630
50631 2009-03-07  Bruno Haible  <bruno@clisp.org>
50632
50633         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
50634         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
50635         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
50636
50637 2009-03-07  Bruno Haible  <bruno@clisp.org>
50638
50639         New module 'memxfrm'.
50640         * lib/memxfrm.h: New file.
50641         * lib/memxfrm.c: New file.
50642         * modules/memxfrm: New file.
50643
50644 2009-03-07  Bruno Haible  <bruno@clisp.org>
50645
50646         New module 'memcmp2'.
50647         * lib/memcmp2.h: New file.
50648         * lib/memcmp2.c: New file.
50649         * modules/memcmp2: New file.
50650
50651 2009-03-07  Bruno Haible  <bruno@clisp.org>
50652
50653         Tests for module 'uninorm/decomposing-form'.
50654         * modules/uninorm/decomposing-form-tests: New file.
50655         * tests/uninorm/test-decomposing-form.c: New file.
50656
50657         New module 'uninorm/decomposing-form'.
50658         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
50659         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
50660         Add 'decomposing_variant' field.
50661         * lib/uninorm/decomposing-form.c: New file.
50662         * lib/uninorm/nfc.c (uninorm_nfc): Update.
50663         * lib/uninorm/nfd.c (uninorm_nfd): Update.
50664         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
50665         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
50666         * modules/uninorm/decomposing-form: New file.
50667         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
50668         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
50669
50670 2009-03-07  Bruno Haible  <bruno@clisp.org>
50671
50672         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
50673         strings.
50674
50675 2009-03-06  Bruno Haible  <bruno@clisp.org>
50676
50677         Tests for module 'uninorm/u32-normcmp'.
50678         * tests/uninorm/test-u32-normcmp.c: New file.
50679         * modules/uninorm/u32-normcmp-tests: New file.
50680
50681         Tests for module 'uninorm/u16-normcmp'.
50682         * tests/uninorm/test-u16-normcmp.c: New file.
50683         * modules/uninorm/u16-normcmp-tests: New file.
50684
50685         Tests for module 'uninorm/u8-normcmp'.
50686         * tests/uninorm/test-u8-normcmp.c: New file.
50687         * modules/uninorm/u8-normcmp-tests: New file.
50688
50689         New module 'uninorm/u32-normcmp'.
50690         * lib/uninorm/u32-normcmp.c: New file.
50691         * modules/uninorm/u32-normcmp: New file.
50692
50693         New module 'uninorm/u16-normcmp'.
50694         * lib/uninorm/u16-normcmp.c: New file.
50695         * modules/uninorm/u16-normcmp: New file.
50696
50697         New module 'uninorm/u8-normcmp'.
50698         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
50699         declarations.
50700         * lib/uninorm/u8-normcmp.c: New file.
50701         * lib/uninorm/u-normcmp.h: New file.
50702         * modules/uninorm/u8-normcmp: New file.
50703
50704 2009-03-06  Bruno Haible  <bruno@clisp.org>
50705
50706         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
50707         Reported by Eric Blake.
50708
50709 2009-03-06  Eric Blake  <ebb9@byu.net>
50710             Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
50713         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
50714         condition.
50715         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50716         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
50717         condition.
50718         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
50719
50720 2009-03-06  Eric Blake  <ebb9@byu.net>
50721
50722         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
50723         to avoid compiler warnings.
50724         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
50725
50726 2009-03-05  Bruno Haible  <bruno@clisp.org>
50727
50728         * tests/test-ftell.c (main): Disable test beyond end of file on
50729         FreeMiNT.
50730         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50731
50732 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
50733
50734         * lib/filevercmp.c: Move hidden files up in ordering.
50735         * tests/test-filevercmp.c: Add tests for hidden files.
50736
50737 2009-03-04  Bruno Haible  <bruno@clisp.org>
50738
50739         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
50740         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
50741         AM_CFLAGS.
50742         Reported by Simon Josefsson.
50743
50744 2009-03-03  Bruno Haible  <bruno@clisp.org>
50745
50746         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
50747         Reported by Simon Josefsson.
50748
50749         * doc/ld-version-script.texi: Update node reference.
50750
50751 2009-03-03  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/visibility (License): Change to 'unlimited'.
50754         Suggested by Simon Josefsson.
50755
50756 2009-03-03  Jim Meyering  <meyering@redhat.com>
50757
50758         unlinkdir: cannot_unlink_dir may modify process state
50759         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
50760         it's neither thread-safe nor appropriate for use in a library.
50761
50762 2009-03-03  Eric Blake  <ebb9@byu.net>
50763
50764         test-closein: silence test under Darwin
50765         * tests/test-closein.sh: Ignore stderr from cat, since we don't
50766         care if it dies from EPIPE or EBADF.
50767
50768 2009-03-03  Bruno Haible  <bruno@clisp.org>
50769
50770         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
50771         earlier.
50772         * doc/visibility.texi: Fix @node and @section.
50773
50774 2009-03-03  Simon Josefsson  <simon@josefsson.org>
50775
50776         * doc/gnulib.texi: Link to sections for ld version script and
50777         visibility.
50778         * doc/visibility.texi: Add @node and @section.
50779         * modules/ld-version-script: New module.
50780         * m4/ld-version-script.m4: New file.
50781         * doc/ld-version-script.texi: New file.
50782
50783 2009-03-02  David Lutterkort  <lutter@redhat.com>
50784
50785         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
50786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50787
50788 2009-03-02  Bruno Haible  <bruno@clisp.org>
50789
50790         * doc/visibility.texi: Mention libtool's -export-symbols option.
50791
50792 2009-03-02  Jim Meyering  <meyering@redhat.com>
50793
50794         announce-gen: new option: --no-print-checksums
50795         * build-aux/announce-gen (usage): Describe it.
50796         (print_checksums): Print a newline here, not in the [*] footnote.
50797         (main): Honor it.
50798
50799 2009-03-01  Bruno Haible  <bruno@clisp.org>
50800
50801         Use socklen_t in the native Windows replacements prototypes.
50802         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
50803         instead of 'int'.
50804         * lib/getsockopt.c (rpl_getsockopt): Likewise.
50805         * lib/setsockopt.c (rpl_setsockopt): Likewise.
50806         * modules/getsockopt (Depends-on): Add socklen.
50807         * modules/setsockopt (Depends-on): Add socklen.
50808
50809 2009-03-01  Bruno Haible  <bruno@clisp.org>
50810
50811         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
50812         least 4.2.
50813
50814 2009-03-01  Eric Blake  <ebb9@byu.net>
50815             Bruno Haible  <bruno@clisp.org>
50816
50817         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
50818         error messages.
50819         * lib/wait-process.c (wait_subprocess): Omit error message about
50820         deadly signal sent to the child of termsigp != NULL.
50821
50822 2009-03-01  Eric Blake  <ebb9@byu.net>
50823
50824         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
50825
50826 2009-03-01  Bruno Haible  <bruno@clisp.org>
50827
50828         Avoid a gcc warning.
50829         * tests/test-sched.c (b): Make global.
50830         Reported by Eric Blake.
50831
50832 2009-01-19  Martin Lambers  <marlam@marlam.de>
50833
50834         Provide POSIX semantics for socket timeout options on W32.
50835         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50836         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50837         * modules/setsockopt: Depend on sys_time module for struct timeval.
50838         * modules/getsockopt: Depend on sys_time module for struct timeval.
50839
50840 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50841
50842         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50843         __USE_GNU, for consistency with netdb.in.h.
50844         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50845
50846 2009-03-01  Bruno Haible  <bruno@clisp.org>
50847
50848         More support for FreeMiNT.
50849         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50850         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50851
50852 2009-03-01  Bruno Haible  <bruno@clisp.org>
50853
50854         More support for FreeMiNT.
50855         * lib/fpurge.c (fpurge): Correct last commit.
50856         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50857
50858 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50859
50860         Fix unportable awk script in vc-list-files.
50861         * build-aux/vc-list-files: In the replacement awk script, use
50862         substr with a second argument of 1, not zero.
50863         Report by Simon Josefsson.
50864
50865 2009-02-28  Bruno Haible  <bruno@clisp.org>
50866
50867         More support for FreeMiNT.
50868         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50869         to FreeMiNT today.
50870         * lib/fwriting.c (fwriting): Likewise.
50871         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50872
50873 2009-02-28  Bruno Haible  <bruno@clisp.org>
50874
50875         * tests/test-freadseek.c (main): Disable test beyond end of file on
50876         FreeMiNT.
50877         * tests/test-ftello.c (main): Likewise.
50878         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50879
50880 2009-02-28  Bruno Haible  <bruno@clisp.org>
50881
50882         Add tentative support for FreeMiNT.
50883         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50884         * lib/fpurge.c (fpurge): Likewise.
50885         * lib/freadable.c (freadable): Likewise.
50886         * lib/freading.c (freading): Likewise.
50887         * lib/freadptr.c (freadptr): Likewise.
50888         * lib/freadseek.c (freadptrinc): Likewise.
50889         * lib/fseeko.c (rpl_fseeko): Likewise.
50890         * lib/fseterr.c (fseterr): Likewise.
50891         * lib/fwritable.c (fwritable): Likewise.
50892         * lib/fwriting.c (fwriting): Likewise.
50893         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50894         Hourihane.
50895         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50896
50897 2009-02-28  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50900         SIGCHLD.
50901         Reported by Jim Meyering.
50902
50903 2009-02-28  Bruno Haible  <bruno@clisp.org>
50904
50905         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50906         Mention the results of these tests on various platforms.
50907         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50908         order.
50909         * doc/posix-functions/printf.texi: Likewise.
50910         * doc/posix-functions/snprintf.texi: Likewise.
50911         * doc/posix-functions/sprintf.texi: Likewise.
50912         * doc/posix-functions/vfprintf.texi: Likewise.
50913         * doc/posix-functions/vprintf.texi: Likewise.
50914         * doc/posix-functions/vsnprintf.texi: Likewise.
50915         * doc/posix-functions/vsprintf.texi: Likewise.
50916         * doc/glibc-functions/obstack_printf.texi: Likewise.
50917         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50918
50919 2009-02-28  Bruno Haible  <bruno@clisp.org>
50920
50921         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50922         Reported by Loïc Minier <lool@dooz.org>.
50923
50924 2009-02-27  Bruno Haible  <bruno@clisp.org>
50925
50926         * gnulib-tool (func_import): Make the sed expression used to create the
50927         sed script for updating the .gitignore file POSIX compliant.
50928         Reported by Eric Blake.
50929
50930 2009-02-27  Bruno Haible  <bruno@clisp.org>
50931
50932         * gnulib-tool (sed): Don't alias as "sed --posix".
50933         Reported by Eric Blake.
50934
50935 2009-02-27  Bruno Haible  <bruno@clisp.org>
50936
50937         Avoid test link errors.
50938         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50939         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50940         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50941         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50942         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50943
50944 2009-02-27  Bruno Haible  <bruno@clisp.org>
50945
50946         Avoid spurious "(cached)" in configure output.
50947         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50948         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50949         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50950         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50951         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50952         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50953         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50954         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50955         Reported by Eric Blake.
50956
50957 2009-02-27  Eric Blake  <ebb9@byu.net>
50958
50959         printf: fix regression in previous patch
50960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50961
50962 2009-02-27  Bruno Haible  <bruno@clisp.org>
50963
50964         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50965         value.
50966         * lib/stdint.in.h: Likewise.
50967         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50968
50969 2009-02-27  Eric Blake  <ebb9@byu.net>
50970
50971         doc: mention more functions added in cygwin 1.7.0
50972         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50973         addition.
50974         * doc/posix-functions/open_wmemstream.texi: Likewise.
50975         * doc/posix-functions/wcsnlen.texi: Likewise.
50976         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50977         * doc/posix-functions/wcstod.texi: Likewise.
50978         * doc/posix-functions/wcstof.texi: Likewise.
50979         * doc/posix-functions/wcstoimax.texi: Likewise.
50980         * doc/posix-functions/wcstok.texi: Likewise.
50981         * doc/posix-functions/wcstoumax.texi: Likewise.
50982
50983         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50985         * doc/posix-functions/fprintf.texi: Update.
50986         * doc/posix-functions/printf.texi: Update.
50987         * doc/posix-functions/snprintf.texi: Update.
50988         * doc/posix-functions/sprintf.texi: Update.
50989         * doc/posix-functions/vfprintf.texi: Update.
50990         * doc/posix-functions/vprintf.texi: Update.
50991         * doc/posix-functions/vsnprintf.texi: Update.
50992         * doc/posix-functions/vsprintf.texi: Update.
50993         * doc/glibc-functions/obstack_printf.texi: Update.
50994         * doc/glibc-functions/obstack_vprintf.texi: Update.
50995
50996 2009-02-26  Eric Blake  <ebb9@byu.net>
50997
50998         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50999         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51000         compilation bug by using runtime conversion.
51001         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51002         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51003         * modules/ceill-tests (Files): Use nan.h.
51004         * modules/floorl-tests (Files): Likewise.
51005         * modules/frexpl-tests (Files): Likewise.
51006         * modules/isnanl-tests (Files): Likewise.
51007         * modules/ldexpl-tests (Files): Likewise.
51008         * modules/roundl-tests (Files): Likewise.
51009         * modules/truncl-tests (Files): Likewise.
51010         * tests/test-ceill.c (main): Use a working NaN.
51011         * tests/test-floorl.c (main): Likewise.
51012         * tests/test-frexpl.c (main): Likewise.
51013         * tests/test-isnan.c (test_long_double): Likewise.
51014         * tests/test-isnanl.h (main): Likewise.
51015         * tests/test-ldexpl.h (main): Likewise.
51016         * tests/test-roundl.h (main): Likewise.
51017         * tests/test-truncl.h (main): Likewise.
51018         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51019
51020 2009-02-26  Eric Blake  <ebb9@byu.net>
51021             Bruno Haible  <bruno@clisp.org>
51022
51023         Work around a *printf bug with %ls on Solaris.
51024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51025         precision is specified, sprintf stops converting the wide string
51026         argument when the number of bytes that have been produced by this
51027         conversion equals or exceeds the precision.
51028         * doc/posix-functions/fprintf.texi: Update.
51029         * doc/posix-functions/printf.texi: Update.
51030         * doc/posix-functions/snprintf.texi: Update.
51031         * doc/posix-functions/sprintf.texi: Update.
51032         * doc/posix-functions/vfprintf.texi: Update.
51033         * doc/posix-functions/vprintf.texi: Update.
51034         * doc/posix-functions/vsnprintf.texi: Update.
51035         * doc/posix-functions/vsprintf.texi: Update.
51036         * doc/glibc-functions/obstack_printf.texi: Update.
51037         * doc/glibc-functions/obstack_vprintf.texi: Update.
51038
51039 2009-02-26  Eric Blake  <ebb9@byu.net>
51040
51041         stdlib: favor compiler check of random.h
51042         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51043         to avoid an ObjC random.h installed by Swarm.
51044
51045 2009-02-26  Bruno Haible  <bruno@clisp.org>
51046
51047         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51048         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51049         Reported by Gary V. Vaughan <gary@gnu.org>.
51050
51051 2009-02-26  Bruno Haible  <bruno@clisp.org>
51052
51053         Fix *printf behaviour regarding the %ls directive.
51054         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51055         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51056         NEED_PRINTF_DIRECTIVE_LS.
51057         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51058         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51060         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51061         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51062         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
51063         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51068         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
51069         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51071         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51072         * doc/posix-functions/fprintf.texi: Update.
51073         * doc/posix-functions/printf.texi: Update.
51074         * doc/posix-functions/snprintf.texi: Update.
51075         * doc/posix-functions/sprintf.texi: Update.
51076         * doc/posix-functions/vfprintf.texi: Update.
51077         * doc/posix-functions/vprintf.texi: Update.
51078         * doc/posix-functions/vsnprintf.texi: Update.
51079         * doc/posix-functions/vsprintf.texi: Update.
51080         * doc/glibc-functions/obstack_printf.texi: Update.
51081         * doc/glibc-functions/obstack_vprintf.texi: Update.
51082         Reported by Eric Blake.
51083
51084 2009-02-25  Bruno Haible  <bruno@clisp.org>
51085
51086         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
51087         with known value.
51088         Reported by Gary V. Vaughan <gary@gnu.org>.
51089
51090 2009-02-25  Bruno Haible  <bruno@clisp.org>
51091
51092         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
51093         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
51094         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
51095         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
51096         Reported by Gary V. Vaughan <gary@gnu.org>.
51097
51098 2009-02-25  Bruno Haible  <bruno@clisp.org>
51099
51100         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
51101         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
51102         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
51103         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
51104         Reported by Gary V. Vaughan <gary@gnu.org>.
51105
51106 2009-02-25  Eric Blake  <ebb9@byu.net>
51107
51108         tests: skip fseek/ftell tests if ungetc is broken
51109         * m4/ungetc.m4: New file.
51110         * modules/fseek-tests: Split test, so ungetc dependency is
51111         separate from rest of test.
51112         * modules/fseeko-tests: Likewise.
51113         * modules/ftell-tests: Likewise.
51114         * modules/ftello-tests: Likewise.
51115         * tests/test-fseek.c (main): Isolate ungetc dependency.
51116         * tests/test-fseeko.c (main): Likewise.
51117         * tests/test-ftell.c (main): Likewise.
51118         * tests/test-ftello.c (main): Likewise.
51119         * tests/test-fseek2.sh: New file.
51120         * tests/test-fseeko2.sh: Likewise.
51121         * tests/test-ftell2.sh: Likewise.
51122         * tests/test-ftello2.sh: Likewise.
51123
51124 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
51125
51126         test-getaddrinfo: fix usage of skip return code 77
51127         * tests/test-gettaddrinfo.c: Return skip code 77 only
51128         for first occurrence of skip (4x77 is not 77)
51129
51130 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
51131
51132         strtod: avoid C99 decl-after-statement
51133         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
51134
51135 2009-02-24  Eric Blake  <ebb9@byu.net>
51136
51137         strtod: detect HP-UX 11.31 bug
51138         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
51139         Reported by Gary V. Vaughan.
51140
51141 2009-02-23  Bruno Haible  <bruno@clisp.org>
51142
51143         Fix invalid read past end of memory block.
51144         * lib/vasnprintf.c (DCHAR_SET): Define.
51145         (local_wcslen): Define only when needed.
51146         (local_strnlen, local_wcsnlen): New functions.
51147         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
51148         directives that involve a conversion ourselves.
51149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
51150         wcsnlen, mbrtowc, wcrtomb.
51151         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
51152         * tests/test-vasprintf-posix.c (test_function): Likewise.
51153         * tests/test-snprintf-posix.h (test_function): Likewise.
51154         * tests/test-sprintf-posix.h (test_function): Likewise.
51155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51156
51157 2009-02-22  Bruno Haible  <bruno@clisp.org>
51158
51159         Implement new clarified decomposition of Hangul syllables.
51160         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
51161         of type LTV, return only a pairwise decomposition.
51162         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
51163         Likewise.
51164         * tests/uninorm/test-decomposition.c (main): Updated expected result.
51165         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
51166         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
51167
51168 2009-02-22  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
51171         zero-length results and shrink excess allocated memory.
51172         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
51173         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
51174         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
51175         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
51176         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
51177         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
51178         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
51179         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
51180         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
51181         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
51182         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
51183         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
51184
51185 2009-02-21  Bruno Haible  <bruno@clisp.org>
51186
51187         * doc/gnulib.texi: Include safe-alloc.texi earlier.
51188         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
51189         spaces after a period. Put a space between a macro name and its
51190         argument list. Trivial rewordings.
51191         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
51192         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
51193         (main): Return 0 explicitly.
51194
51195 2009-02-21  Bruno Haible  <bruno@clisp.org>
51196
51197         Tests for module 'uninorm/filter'.
51198         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
51199         * modules/uninorm/filter-tests: New file.
51200
51201         New module 'uninorm/filter'.
51202         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
51203         uninorm_filter_flush, uninorm_filter_free): New declarations.
51204         * lib/uninorm/uninorm-filter.c: New file.
51205         * modules/uninorm/filter: New file.
51206
51207 2009-02-21  Bruno Haible  <bruno@clisp.org>
51208
51209         Tests for module 'uninorm/nfkc'.
51210         * tests/uninorm/test-nfkc.c: New file.
51211         * tests/uninorm/test-u8-nfkc.c: New file.
51212         * tests/uninorm/test-u16-nfkc.c: New file.
51213         * tests/uninorm/test-u32-nfkc.c: New file.
51214         * tests/uninorm/test-u32-nfkc-big.sh: New file.
51215         * tests/uninorm/test-u32-nfkc-big.c: New file.
51216         * modules/uninorm/nfkc-tests: New file.
51217
51218         New module 'uninorm/nfkc'.
51219         * lib/uninorm/nfkc.c: New file.
51220         * modules/uninorm/nfkc: New file.
51221
51222         Tests for module 'uninorm/nfkd'.
51223         * tests/uninorm/test-nfkd.c: New file.
51224         * tests/uninorm/test-u8-nfkd.c: New file.
51225         * tests/uninorm/test-u16-nfkd.c: New file.
51226         * tests/uninorm/test-u32-nfkd.c: New file.
51227         * tests/uninorm/test-u32-nfkd-big.sh: New file.
51228         * tests/uninorm/test-u32-nfkd-big.c: New file.
51229         * modules/uninorm/nfkd-tests: New file.
51230
51231         New module 'uninorm/nfkd'.
51232         * lib/uninorm/nfkd.c: New file.
51233         * modules/uninorm/nfkd: New file.
51234
51235         Tests for module 'uninorm/nfc'.
51236         * tests/uninorm/test-nfc.c: New file.
51237         * tests/uninorm/test-u8-nfc.c: New file.
51238         * tests/uninorm/test-u16-nfc.c: New file.
51239         * tests/uninorm/test-u32-nfc.c: New file.
51240         * tests/uninorm/test-u32-nfc-big.sh: New file.
51241         * tests/uninorm/test-u32-nfc-big.c: New file.
51242         * modules/uninorm/nfc-tests: New file.
51243
51244         New module 'uninorm/nfc'.
51245         * lib/uninorm/nfc.c: New file.
51246         * modules/uninorm/nfc: New file.
51247
51248         Tests for module 'uninorm/nfd'.
51249         * tests/uninorm/test-nfd.c: New file.
51250         * tests/uninorm/test-u8-nfd.c: New file.
51251         * tests/uninorm/test-u16-nfd.c: New file.
51252         * tests/uninorm/test-u32-nfd.c: New file.
51253         * tests/uninorm/test-u32-nfd-big.sh: New file.
51254         * tests/uninorm/test-u32-nfd-big.c: New file.
51255         * tests/uninorm/test-u32-normalize-big.h: New file.
51256         * tests/uninorm/test-u32-normalize-big.c: New file.
51257         * tests/uninorm/NormalizationTest.txt: New file, created from
51258         Unicode 5.1.0 NormalizationTest.txt.
51259         * modules/uninorm/nfd-tests: New file.
51260
51261         New module 'uninorm/nfd'.
51262         * lib/uninorm/nfd.c: New file.
51263         * modules/uninorm/nfd: New file.
51264
51265         New module 'uninorm/u32-normalize'.
51266         * lib/uninorm/u32-normalize.c: New file.
51267         * modules/uninorm/u32-normalize: New file.
51268
51269         New module 'uninorm/u16-normalize'.
51270         * lib/uninorm/u16-normalize.c: New file.
51271         * modules/uninorm/u16-normalize: New file.
51272
51273         New module 'uninorm/u8-normalize'.
51274         * lib/uninorm/u8-normalize.c: New file.
51275         * lib/uninorm/normalize-internal.h: New file.
51276         * lib/uninorm/u-normalize-internal.h: New file.
51277         * modules/uninorm/u8-normalize: New file.
51278
51279         New module 'uninorm/decompose-internal'.
51280         * lib/uninorm/decompose-internal.c: New file.
51281         * modules/uninorm/decompose-internal: New file.
51282
51283         Tests for module 'uninorm/composition'.
51284         * tests/uninorm/test-composition.c: New file.
51285         * modules/uninorm/composition-tests: New file.
51286
51287         New module 'uninorm/composition'.
51288         * lib/uninorm/composition.c: New file.
51289         * lib/uninorm/composition-table.gperf: New file, generated by
51290         gen-uni-tables.
51291         * modules/uninorm/composition: New file.
51292
51293         Tests for module 'uninorm/compat-decomposition'.
51294         * tests/uninorm/test-compat-decomposition.c: New file.
51295         * modules/uninorm/compat-decomposition-tests: New file.
51296
51297         New module 'uninorm/compat-decomposition'.
51298         * lib/uninorm/decompose-internal.h: New file.
51299         * lib/uninorm/compat-decomposition.c: New file.
51300         * modules/uninorm/compat-decomposition: New file.
51301
51302         Tests for module 'uninorm/canonical-decomposition'.
51303         * tests/uninorm/test-canonical-decomposition.c: New file.
51304         * modules/uninorm/canonical-decomposition-tests: New file.
51305
51306         New module 'uninorm/canonical-decomposition'.
51307         * lib/uninorm/canonical-decomposition.c: New file.
51308         * modules/uninorm/canonical-decomposition: New file.
51309
51310         Tests for module 'uninorm/decomposition'.
51311         * tests/uninorm/test-decomposition.c: New file.
51312         * modules/uninorm/decomposition-tests: New file.
51313
51314         New module 'uninorm/decomposition'.
51315         * lib/uninorm/decomposition.c: New file.
51316         * modules/uninorm/decomposition: New file.
51317
51318         New module 'uninorm/decomposition-table'.
51319         * lib/uninorm/decomposition-table.h: New file.
51320         * lib/uninorm/decomposition-table.c: New file.
51321         * lib/uninorm/decomposition-table1.h: New file, generated by
51322         gen-uni-tables.
51323         * lib/uninorm/decomposition-table2.h: New file, generated by
51324         gen-uni-tables.
51325         * modules/uninorm/decomposition-table: New file.
51326
51327         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
51328         (UC_DECOMP_*): New enumeration items.
51329         (get_decomposition): New function.
51330         (struct decomp_table): New type.
51331         (output_decomposition, output_decomposition_tables): New functions.
51332         (unicode_composition_exclusions): New variable.
51333         (fill_composition_exclusions, debug_output_composition_tables): New
51334         functions.
51335         (main): Accept one more argument. Invoke fill_composition_exclusions.
51336         Output decomposition and composition tables.
51337
51338         New module 'uninorm/base'.
51339         * lib/uninorm.h: New file.
51340         * lib/unictype.h: Update comment.
51341         * modules/uninorm/base: New file.
51342
51343 2009-02-21  David Lutterkort  <lutter@redhat.com>
51344
51345         Tests for module 'safe-alloc'.
51346         * tests/test-safe-alloc.c: New file.
51347         * modules/safe-alloc-tests: New file.
51348
51349         New module 'safe-alloc'.
51350         * lib/safe-alloc.h: New file.
51351         * lib/safe-alloc.c: New file.
51352         * m4/safe-alloc.m4: New file.
51353         * modules/safe-alloc: New file.
51354         * doc/safe-alloc.texi: New file.
51355         * doc/gnulib.texi: Include it.
51356         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
51357         safe-alloc.
51358
51359 2009-02-18  Bruno Haible  <bruno@clisp.org>
51360
51361         Fix link error on non-glibc systems.
51362         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
51363         variable.
51364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51365
51366 2009-02-18  Jim Meyering  <meyering@redhat.com>
51367
51368         fts: avoid used-uninitialized error due to recent change
51369         * lib/fts.c (fts_read): Guard uses of the new member,
51370         parent->fts_n_dirs_remaining, since it's not relevant for
51371         the parent of a directory specified on the command-line.
51372
51373 2009-02-17  James Youngman  <jay@gnu.org>
51374             Bruno Haible  <bruno@clisp.org>
51375
51376         * m4/include_next.m4: Reformulate comment.
51377
51378 2009-02-16  Jim Meyering  <meyering@redhat.com>
51379
51380         fts: add #if guards so that the fts_lgpl module still builds
51381         * lib/fts.c: Guard just-added hash-table-using parts with
51382         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
51383         Reported by Simon Josefsson.
51384
51385 2009-02-15  Bruno Haible  <bruno@clisp.org>
51386
51387         * modules/array-mergesort-tests: New file.
51388         * tests/test-array-mergesort.c: New file.
51389
51390         New module 'array-mergesort'.
51391         * modules/array-mergesort: New file.
51392         * lib/array-mergesort.h: New file.
51393
51394 2009-02-15  Bruno Haible  <bruno@clisp.org>
51395
51396         Fix 2009-02-07 commit.
51397         * lib/gen-uni-tables.c (output_predicate, output_category,
51398         output_combclass, output_bidi_category, output_decimal_digit,
51399         output_digit, output_numeric, output_mirror, output_scripts,
51400         output_ident_category, output_simple_mapping): Fix format directives.
51401         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
51402
51403 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
51404
51405         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
51406         fixes are available from IBM.
51407
51408 2009-02-13  Jim Meyering  <meyering@redhat.com>
51409
51410         fts: arrange not to stat non-directories in more cases
51411         This makes GNU find (when it doesn't need to stat each file)
51412         *much* more efficient at traversing reiserfs file systems.
51413         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
51414         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
51415         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
51416         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
51417         (leaf_optimization_applies): New function.
51418         (LCO_hash, LCO_compare): New helper functions.
51419         (link_count_optimize_ok): New function.
51420         (fts_stat): Initialize new member (if dir).
51421         (fts_read): Decrement parent's fts_n_dirs_remaining count if
51422         we've just stat'ed a directory.  Skip the stat call when possible.
51423         ---
51424         Note this AFS-related exchange:
51425         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
51426         and note find's pioctl call in find/fstype.c.
51427         But that is necessary only if you want to enable the
51428         optimization for AFS, and for now, I don't.
51429
51430         fts: move a function definition "up" (no semantic change)
51431         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
51432         "up" to precede upcoming use of a related function.
51433
51434 2009-02-11  Jim Meyering  <meyering@redhat.com>
51435
51436         fts: correct internal computation of nlinks (optimization-related)
51437         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
51438         whether the current entry is a directory, so don't test it.
51439
51440 2009-02-10  Bruno Haible  <bruno@clisp.org>
51441
51442         Tests for module 'uniwbrk/ulc-wordbreaks'.
51443         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
51444         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
51445         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
51446
51447         Tests for module 'uniwbrk/u32-wordbreaks'.
51448         * modules/uniwbrk/u32-wordbreaks-tests: New file.
51449         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
51450
51451         Tests for module 'uniwbrk/u16-wordbreaks'.
51452         * modules/uniwbrk/u16-wordbreaks-tests: New file.
51453         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
51454
51455         Tests for module 'uniwbrk/u8-wordbreaks'.
51456         * modules/uniwbrk/u8-wordbreaks-tests: New file.
51457         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
51458
51459 2009-02-10  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
51462         property.
51463         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
51464         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
51465         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
51466
51467 2009-02-10  Simon Josefsson  <simon@josefsson.org>
51468
51469         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
51470         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
51471
51472 2009-02-10  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
51475         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
51476         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
51477         * lib/unilbrk/u8-possible-linebreaks.c: Update.
51478         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
51479         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
51480
51481 2009-02-09  Simon Josefsson  <simon@josefsson.org>
51482
51483         * lib/sockets.h (gl_fd_to_handle): New function.
51484
51485         * tests/test-sockets.c: Call gl_fd_to_handle.
51486
51487 2009-02-09  Bruno Haible  <bruno@clisp.org>
51488
51489         * doc/havelib.texi: Document the conventions on bi-arch systems.
51490
51491 2009-02-08  Bruno Haible  <bruno@clisp.org>
51492
51493         Document the AC_LIB_LINKFLAGS macro.
51494         * doc/havelib.texi: New file, mostly written on 2005-05-24.
51495         * doc/gnulib.texi: Include it.
51496
51497 2009-02-08  Bruno Haible  <bruno@clisp.org>
51498
51499         Fix wrong order of sections, compared to TOC.
51500         * doc/gnulib.texi: Include relocatable-maint.texi after the
51501         "Regular expressions" node, not before.
51502
51503 2009-02-08  Bruno Haible  <bruno@clisp.org>
51504
51505         Tests for module 'unicase/totitle'.
51506         * modules/unicase/totitle-tests: New file.
51507
51508         Tests for module 'unicase/tolower'.
51509         * modules/unicase/tolower-tests: New file.
51510
51511         Tests for module 'unicase/toupper'.
51512         * modules/unicase/toupper-tests: New file.
51513         * tests/unicase/test-mapping-part1.h: New file.
51514         * tests/unicase/test-mapping-part2.h: New file.
51515
51516         New module 'unicase/totitle'.
51517         * modules/unicase/totitle: New file.
51518         * lib/unicase/totitle.c: New file.
51519
51520         New module 'unicase/tolower'.
51521         * modules/unicase/tolower: New file.
51522         * lib/unicase/tolower.c: New file.
51523
51524         New module 'unicase/toupper'.
51525         * modules/unicase/toupper: New file.
51526         * lib/unicase/toupper.c: New file.
51527         * lib/unicase/simple-mapping.h: New file.
51528
51529         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
51530         (mapping_table): New structure.
51531         (output_simple_mapping): New function.
51532         (main): Invoke output_simple_mapping_test and output_simple_mapping.
51533         * modules/gen-uni-tables (Description): Update.
51534         * lib/unicase/toupper.h: New file, automatically generated by
51535         gen-uni-tables.
51536         * lib/unicase/tolower.h: New file, automatically generated by
51537         gen-uni-tables.
51538         * lib/unicase/totitle.h: New file, automatically generated by
51539         gen-uni-tables.
51540         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
51541         gen-uni-tables.
51542         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
51543         gen-uni-tables.
51544         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
51545         gen-uni-tables.
51546
51547         New module 'unicase/base'.
51548         * modules/unicase/base: New file.
51549         * lib/unicase.h: New file.
51550
51551 2009-02-08  Bruno Haible  <bruno@clisp.org>
51552
51553         New module 'uniwbrk/ulc-wordbreaks'.
51554         * modules/uniwbrk/ulc-wordbreaks: New file.
51555         * lib/uniwbrk/ulc-wordbreaks.c: New file.
51556
51557         New module 'uniwbrk/u32-wordbreaks'.
51558         * modules/uniwbrk/u32-wordbreaks: New file.
51559         * lib/uniwbrk/u32-wordbreaks.c: New file.
51560
51561         New module 'uniwbrk/u16-wordbreaks'.
51562         * modules/uniwbrk/u16-wordbreaks: New file.
51563         * lib/uniwbrk/u16-wordbreaks.c: New file.
51564
51565         New module 'uniwbrk/u8-wordbreaks'.
51566         * modules/uniwbrk/u8-wordbreaks: New file.
51567         * lib/uniwbrk/u8-wordbreaks.c: New file.
51568         * lib/uniwbrk/u-wordbreaks.h: New file.
51569
51570         New module 'uniwbrk/table'.
51571         * modules/uniwbrk/table: New file.
51572         * lib/uniwbrk/wbrktable.h: New file.
51573         * lib/uniwbrk/wbrktable.c: New file.
51574
51575         New module 'uniwbrk/wordbreak-property'.
51576         * modules/uniwbrk/wordbreak-property: New file.
51577         * lib/uniwbrk/wordbreak-property.c: New file.
51578
51579         * lib/gen-uni-tables.c (WBP_*): New enum items.
51580         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
51581         (unicode_org_wbp): New variable.
51582         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
51583         New functions.
51584         (wbp_table): New structure.
51585         (output_wbp, output_wbrk_tables): New functions.
51586         (main): Accept additional argument. Invoke fill_org_wbp,
51587         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
51588         output_wbrk_tables.
51589         * modules/gen-uni-tables (Description): Update.
51590         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
51591         gen-uni-tables.
51592
51593         New module 'uniwbrk/base'.
51594         * modules/uniwbrk/base: New file.
51595         * lib/uniwbrk.h: New file.
51596
51597 2009-02-08  Bruno Haible  <bruno@clisp.org>
51598
51599         Update to Unicode 5.1.0.
51600         * lib/gen-uni-tables.c (is_property_alphabetic): Include
51601         U+2185..U+2188.
51602         (is_property_default_ignorable_code_point): Don't include characters
51603         of category Cc or Cs and not-a-characters.
51604         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
51605         U+0D79, U+109E, U+109F, U+A60C.
51606         * lib/unictype/bidi_of.h: Regenerated.
51607         * lib/unictype/blocks.h: Regenerated.
51608         * lib/unictype/categ_C.h: Regenerated.
51609         * lib/unictype/categ_Cf.h: Regenerated.
51610         * lib/unictype/categ_Cn.h: Regenerated.
51611         * lib/unictype/categ_L.h: Regenerated.
51612         * lib/unictype/categ_Ll.h: Regenerated.
51613         * lib/unictype/categ_Lm.h: Regenerated.
51614         * lib/unictype/categ_Lo.h: Regenerated.
51615         * lib/unictype/categ_Lu.h: Regenerated.
51616         * lib/unictype/categ_M.h: Regenerated.
51617         * lib/unictype/categ_Mc.h: Regenerated.
51618         * lib/unictype/categ_Me.h: Regenerated.
51619         * lib/unictype/categ_Mn.h: Regenerated.
51620         * lib/unictype/categ_N.h: Regenerated.
51621         * lib/unictype/categ_Nd.h: Regenerated.
51622         * lib/unictype/categ_Nl.h: Regenerated.
51623         * lib/unictype/categ_No.h: Regenerated.
51624         * lib/unictype/categ_P.h: Regenerated.
51625         * lib/unictype/categ_Pd.h: Regenerated.
51626         * lib/unictype/categ_Pe.h: Regenerated.
51627         * lib/unictype/categ_Pf.h: Regenerated.
51628         * lib/unictype/categ_Pi.h: Regenerated.
51629         * lib/unictype/categ_Po.h: Regenerated.
51630         * lib/unictype/categ_Ps.h: Regenerated.
51631         * lib/unictype/categ_S.h: Regenerated.
51632         * lib/unictype/categ_Sk.h: Regenerated.
51633         * lib/unictype/categ_Sm.h: Regenerated.
51634         * lib/unictype/categ_So.h: Regenerated.
51635         * lib/unictype/categ_of.h: Regenerated.
51636         * lib/unictype/combining.h: Regenerated.
51637         * lib/unictype/ctype_alnum.h: Regenerated.
51638         * lib/unictype/ctype_alpha.h: Regenerated.
51639         * lib/unictype/ctype_graph.h: Regenerated.
51640         * lib/unictype/ctype_lower.h: Regenerated.
51641         * lib/unictype/ctype_print.h: Regenerated.
51642         * lib/unictype/ctype_punct.h: Regenerated.
51643         * lib/unictype/ctype_upper.h: Regenerated.
51644         * lib/unictype/decdigit.h: Regenerated.
51645         * lib/unictype/digit.h: Regenerated.
51646         * lib/unictype/mirror.h: Regenerated.
51647         * lib/unictype/numeric.h: Regenerated.
51648         * lib/unictype/pr_alphabetic.h: Regenerated.
51649         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
51650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
51651         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
51652         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
51653         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
51654         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
51655         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
51656         * lib/unictype/pr_combining.h: Regenerated.
51657         * lib/unictype/pr_dash.h: Regenerated.
51658         * lib/unictype/pr_decimal_digit.h: Regenerated.
51659         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
51660         * lib/unictype/pr_deprecated.h: Regenerated.
51661         * lib/unictype/pr_diacritic.h: Regenerated.
51662         * lib/unictype/pr_extender.h: Regenerated.
51663         * lib/unictype/pr_format_control.h: Regenerated.
51664         * lib/unictype/pr_grapheme_base.h: Regenerated.
51665         * lib/unictype/pr_grapheme_extend.h: Regenerated.
51666         * lib/unictype/pr_grapheme_link.h: Regenerated.
51667         * lib/unictype/pr_id_continue.h: Regenerated.
51668         * lib/unictype/pr_id_start.h: Regenerated.
51669         * lib/unictype/pr_ideographic.h: Regenerated.
51670         * lib/unictype/pr_ignorable_control.h: Regenerated.
51671         * lib/unictype/pr_lowercase.h: Regenerated.
51672         * lib/unictype/pr_math.h: Regenerated.
51673         * lib/unictype/pr_numeric.h: Regenerated.
51674         * lib/unictype/pr_other_alphabetic.h: Regenerated.
51675         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
51676         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
51677         * lib/unictype/pr_other_id_continue.h: Regenerated.
51678         * lib/unictype/pr_other_lowercase.h: Regenerated.
51679         * lib/unictype/pr_other_math.h: Regenerated.
51680         * lib/unictype/pr_punctuation.h: Regenerated.
51681         * lib/unictype/pr_sentence_terminal.h: Regenerated.
51682         * lib/unictype/pr_soft_dotted.h: Regenerated.
51683         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
51684         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
51685         * lib/unictype/pr_unified_ideograph.h: Regenerated.
51686         * lib/unictype/pr_uppercase.h: Regenerated.
51687         * lib/unictype/pr_xid_continue.h: Regenerated.
51688         * lib/unictype/pr_xid_start.h: Regenerated.
51689         * lib/unictype/pr_zero_width.h: Regenerated.
51690         * lib/unictype/scripts.h: Regenerated.
51691         * lib/unictype/scripts_byname.gperf: Regenerated.
51692         * lib/unictype/sy_java_ident.h: Regenerated.
51693         * lib/unilbrk/lbrkprop1.h: Regenerated.
51694         * lib/unilbrk/lbrkprop2.h: Regenerated.
51695         * tests/unictype/test-categ_C.c: Regenerated.
51696         * tests/unictype/test-categ_Cf.c: Regenerated.
51697         * tests/unictype/test-categ_Cn.c: Regenerated.
51698         * tests/unictype/test-categ_L.c: Regenerated.
51699         * tests/unictype/test-categ_Ll.c: Regenerated.
51700         * tests/unictype/test-categ_Lm.c: Regenerated.
51701         * tests/unictype/test-categ_Lo.c: Regenerated.
51702         * tests/unictype/test-categ_Lu.c: Regenerated.
51703         * tests/unictype/test-categ_M.c: Regenerated.
51704         * tests/unictype/test-categ_Mc.c: Regenerated.
51705         * tests/unictype/test-categ_Me.c: Regenerated.
51706         * tests/unictype/test-categ_Mn.c: Regenerated.
51707         * tests/unictype/test-categ_N.c: Regenerated.
51708         * tests/unictype/test-categ_Nd.c: Regenerated.
51709         * tests/unictype/test-categ_Nl.c: Regenerated.
51710         * tests/unictype/test-categ_No.c: Regenerated.
51711         * tests/unictype/test-categ_P.c: Regenerated.
51712         * tests/unictype/test-categ_Pd.c: Regenerated.
51713         * tests/unictype/test-categ_Pe.c: Regenerated.
51714         * tests/unictype/test-categ_Pf.c: Regenerated.
51715         * tests/unictype/test-categ_Pi.c: Regenerated.
51716         * tests/unictype/test-categ_Po.c: Regenerated.
51717         * tests/unictype/test-categ_Ps.c: Regenerated.
51718         * tests/unictype/test-categ_S.c: Regenerated.
51719         * tests/unictype/test-categ_Sk.c: Regenerated.
51720         * tests/unictype/test-categ_Sm.c: Regenerated.
51721         * tests/unictype/test-categ_So.c: Regenerated.
51722         * tests/unictype/test-ctype_alnum.c: Regenerated.
51723         * tests/unictype/test-ctype_alpha.c: Regenerated.
51724         * tests/unictype/test-ctype_graph.c: Regenerated.
51725         * tests/unictype/test-ctype_lower.c: Regenerated.
51726         * tests/unictype/test-ctype_print.c: Regenerated.
51727         * tests/unictype/test-ctype_punct.c: Regenerated.
51728         * tests/unictype/test-ctype_upper.c: Regenerated.
51729         * tests/unictype/test-decdigit.h: Regenerated.
51730         * tests/unictype/test-digit.h: Regenerated.
51731         * tests/unictype/test-numeric.h: Regenerated.
51732         * tests/unictype/test-pr_alphabetic.c: Regenerated.
51733         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
51734         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
51735         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
51736         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
51737         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
51738         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
51739         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
51740         * tests/unictype/test-pr_combining.c: Regenerated.
51741         * tests/unictype/test-pr_dash.c: Regenerated.
51742         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
51743         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
51744         * tests/unictype/test-pr_deprecated.c: Regenerated.
51745         * tests/unictype/test-pr_diacritic.c: Regenerated.
51746         * tests/unictype/test-pr_extender.c: Regenerated.
51747         * tests/unictype/test-pr_format_control.c: Regenerated.
51748         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
51749         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
51750         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
51751         * tests/unictype/test-pr_id_continue.c: Regenerated.
51752         * tests/unictype/test-pr_id_start.c: Regenerated.
51753         * tests/unictype/test-pr_ideographic.c: Regenerated.
51754         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
51755         * tests/unictype/test-pr_lowercase.c: Regenerated.
51756         * tests/unictype/test-pr_math.c: Regenerated.
51757         * tests/unictype/test-pr_numeric.c: Regenerated.
51758         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
51759         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
51760         Regenerated.
51761         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
51762         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
51763         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
51764         * tests/unictype/test-pr_other_math.c: Regenerated.
51765         * tests/unictype/test-pr_punctuation.c: Regenerated.
51766         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
51767         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
51768         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
51769         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
51770         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
51771         * tests/unictype/test-pr_uppercase.c: Regenerated.
51772         * tests/unictype/test-pr_xid_continue.c: Regenerated.
51773         * tests/unictype/test-pr_xid_start.c: Regenerated.
51774         * tests/unictype/test-pr_zero_width.c: Regenerated.
51775
51776         Update to Unicode 5.1.0.
51777         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
51778         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
51779         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
51780         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
51781         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
51782         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
51783         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
51784         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
51785         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
51786         (nonspacing_table_ind): Update.
51787         * tests/uniwidth/test-uc_width2.sh: Update expected result.
51788
51789         Update to Unicode 5.1.0.
51790         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
51791         code transform.
51792         * lib/uniname/uniname.c (unicode_character_name,
51793         unicode_name_character): Add the range 0x1Fxxx to the code transform.
51794         * lib/uniname/uninames.h: Regenerated.
51795         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
51796
51797 2009-02-07  Bruno Haible  <bruno@clisp.org>
51798
51799         Merge gen-ctype and gen-lbrk into a single program.
51800         * lib/gen-uni-tables.c: New file, incorporating
51801         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
51802         Add directory prefixes to the names of the generated files.
51803         * lib/unictype/gen-ctype.c: Remove file.
51804         * lib/unilbrk/gen-lbrk.c: Remove file.
51805         * modules/gen-uni-tables: New file.
51806         * modules/unictype/gen-ctype: Remove file.
51807         * modules/unilbrk/gen-lbrk: Remove file.
51808
51809 2009-02-07  Bruno Haible  <bruno@clisp.org>
51810
51811         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
51812
51813         New module 'unistr/u32-strcoll'.
51814         * modules/unistr/u32-strcoll: New file.
51815         * lib/unistr/u32-strcoll.c: New file.
51816
51817         New module 'unistr/u16-strcoll'.
51818         * modules/unistr/u16-strcoll: New file.
51819         * lib/unistr/u16-strcoll.c: New file.
51820
51821         New module 'unistr/u8-strcoll'.
51822         * modules/unistr/u8-strcoll: New file.
51823         * lib/unistr/u8-strcoll.c: New file.
51824         * lib/unistr/u-strcoll.h: New file.
51825
51826 2009-02-07  Bruno Haible  <bruno@clisp.org>
51827
51828         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
51829         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51830         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
51831         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51832         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51833         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51834
51835 2009-02-07  Bruno Haible  <bruno@clisp.org>
51836
51837         Make 64-bit clean.
51838         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51839         output_combclass, output_bidi_category, output_decimal_digit,
51840         output_digit, output_numeric, output_mirror, output_scripts,
51841         output_ident_category): Use proper width specifier in format strings.
51842
51843 2009-02-07  Bruno Haible  <bruno@clisp.org>
51844
51845         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51846         failure behaviour.
51847
51848 2009-02-07  Jim Meyering  <meyering@redhat.com>
51849
51850         regex: avoid compilation failure with upcoming gcc-4.4
51851         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51852         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51853         "... error: integer overflow in preprocessor expression".
51854
51855 2009-02-05  Ben Pfaff  <blp@gnu.org>
51856
51857         Fix link errors on Windows when close module is used.
51858         * modules/close: Add $(LIB_CLOSE) to Link section.
51859         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51860         $(LIB_CLOSE) on Windows.
51861
51862 2009-02-05  Jim Meyering  <meyering@redhat.com>
51863
51864         still avoid unused-parameter warnings, but do it cleanly
51865         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51866         (get_fs_usage): Cast to void instead.
51867         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51868         (dev_from_mount_options, read_file_system_list): Cast to void.
51869         Prompted by Bruno Haible.
51870
51871 2009-02-04  Jim Meyering  <meyering@redhat.com>
51872
51873         fsusage.c: correct copyright year
51874         * lib/fsusage.c: Reflect year in which the change is pushed into
51875
51876         avoid misc. warnings
51877         * lib/fsusage.c (UNUSED_PARAM): Define.
51878         (get_fs_usage): Mark parameter "disk" as unused.
51879         * lib/getugroups.c (getgrent): Use "void" in prototype.
51880         * lib/mountlist.c: Mark unused parameters.
51881         (read_file_system_list): Declare a local with "const".
51882         * lib/nanosleep.c (getnow): Declare static.
51883         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51884
51885         dirfd: set errno upon failure
51886         * lib/dirfd.c: Include <errno.h>.
51887         Set errno to ENOTSUP when returning -1.
51888         * modules/dirfd (Depends-on): Add errno.
51889         Suggested by John Kodis <kodis@comcast.net>.
51890
51891 2009-02-01  Bruno Haible  <bruno@clisp.org>
51892
51893         Don't assume sizeof (long) >= sizeof (void *).
51894         * lib/memcmp.c: Include stdint.h.
51895         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51896         srcp2 to 'const byte *'.
51897         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51898         types to uintptr_t.
51899         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51900         * modules/memcmp (Depends-on): Add stdint.
51901         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51902
51903 2009-01-30  Eric Blake  <ebb9@byu.net>
51904
51905         fix more require-before-expand issues
51906         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51907         expand, AC_PROG_AWK.
51908         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51909
51910 2009-01-28  Eric Blake  <ebb9@byu.net>
51911
51912         version-etc: use consistent URL formatting
51913         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51914         Improve formatting.  Use fputs for string without %.
51915
51916 2009-01-28  Jim Meyering  <meyering@redhat.com>
51917
51918         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51919         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51920         "underquoted definition of NAME" from autoconf-2.59.
51921
51922 2009-01-28  Bruno Haible  <bruno@clisp.org>
51923
51924         * doc/gnulib.texi: Add "Obsolete modules" to index.
51925
51926 2009-01-28  Jim Meyering  <meyering@redhat.com>
51927
51928         useless-if-before-free: recognize more variants
51929         * build-aux/useless-if-before-free: Also recognize e.g.,
51930         if (NULL != p) free (p);
51931
51932 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51933
51934         test-getaddrinfo: skip (don't fail) this test when there's no network
51935         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51936         on the presumption that it means you lack network access.
51937
51938 2009-01-26  Jim Meyering  <meyering@redhat.com>
51939
51940         fflush: avoid warnings on modern systems
51941         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51942         pos and result, into scopes where they're used.
51943
51944 2009-01-26  Eric Blake  <ebb9@byu.net>
51945
51946         Silence warning reintroduced by recent extensions patch.
51947         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51948         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51949         autoconf.
51950
51951         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51952         * m4/00gnulib.m4: New file.
51953         * gnulib-tool (func_get_filelist): Always use it.
51954         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51955         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51956
51957 2009-01-25  Bruno Haible  <bruno@clisp.org>
51958
51959         Make test-quotearg work on MacOS X and AIX.
51960         * tests/test-quotearg.sh: New file.
51961         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51962         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51963         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51964         include <libintl.h>.
51965         (fake_locale): Remove variable.
51966         (gettext, dgettext, dcgettext): Remove functions.
51967         (main): Instead of setting a fake locale, set a real locale. Call
51968         textdomain and bindtextdomain.
51969         * modules/quotearg-tests (Files): Add the new files.
51970         (Depends-on): Add gettext, setenv, unsetenv.
51971         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51972         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51973         Augment TESTS_ENVIRONMENT.
51974
51975 2009-01-25  Bruno Haible  <bruno@clisp.org>
51976
51977         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51978         fr_FR.ISO8859-1 locale on MacOS X.
51979         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51980         ja_JP.eucJP locale on MacOS X.
51981         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51982         zh_CN.GB18030 locale on MacOS X.
51983
51984 2009-01-25  Bruno Haible  <bruno@clisp.org>
51985
51986         Avoid link errors on MacOS X 10.3.
51987         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51988         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51989
51990 2009-01-25  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51993         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51994         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51995         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51996         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51997         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51998         posix_spawnattr_init, posix_spawnattr_setsigmask,
51999         posix_spawnattr_setflags, posix_spawnattr_destroy.
52000
52001         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52002         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52003         * modules/execute (Files): Remove m4/posix_spawn.m4.
52004         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52005         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52006         posix_spawnattr_init, posix_spawnattr_setsigmask,
52007         posix_spawnattr_setflags, posix_spawnattr_destroy.
52008
52009 2009-01-25  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/glthread/threadlib.c: Include <stdlib.h>.
52012
52013 2009-01-25  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/glthread/threadlib.c (dummy): New declaration.
52016
52017 2009-01-25  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52020         multibyte characters also for the GB18030 encoding. Don't crash when
52021         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52022
52023 2009-01-25  Bruno Haible  <bruno@clisp.org>
52024
52025         Avoid redefining 'struct random_data' on OSF/1 5.1.
52026         * lib/stdlib.in.h: Include <random.h> if it exists.
52027         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52028         HAVE_RANDOM_H. Include <random.h> when testing whether
52029         'struct random_data' exists.
52030         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52031
52032 2009-01-25  Bruno Haible  <bruno@clisp.org>
52033
52034         Don't install charset.alias on MacOS X >= 10.3.
52035         * lib/localcharset.c (DARWIN7): New macro.
52036         (get_charset_aliases): Hardcode the result for Darwin7.
52037         * modules/localcharset (install-exec-local): Don't install
52038         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52039
52040 2009-01-25  Bruno Haible  <bruno@clisp.org>
52041
52042         Don't install charset.alias on mingw and Cygwin.
52043         * modules/localcharset (install-exec-local): Don't install
52044         charset.alias on mingw and Cygwin, if the file does not yet exist.
52045         The result for these platforms is hardcoded in localcharset.c.
52046
52047 2009-01-25  Bruno Haible  <bruno@clisp.org>
52048
52049         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52051         before requiring AC_USE_SYSTEM_EXTENSIONS.
52052
52053 2009-01-25  Jim Meyering  <meyering@redhat.com>
52054
52055         c-strtod: avoid warnings
52056         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52057         "assignment discards qualifiers from pointer target type" warnings.
52058
52059 2009-01-24  Bruno Haible  <bruno@clisp.org>
52060
52061         Add support for non-UTF-8 locales on MacOS X.
52062         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
52063         canonical encodings. For Darwin 7 and newer, don't map traditional
52064         encodings to UTF-8.
52065         Reported by Vincent Lefevre <vincent@vinc17.org>
52066         at <http://savannah.gnu.org/bugs/?25235>.
52067
52068 2009-01-24  Bruno Haible  <bruno@clisp.org>
52069
52070         * doc/gnulib.texi (Obsolete modules): New section.
52071         Reported by Mike Frysinger <vapier@gentoo.org>.
52072
52073 2009-01-24  Bruno Haible  <bruno@clisp.org>
52074
52075         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
52076         (%.dvi): New rule.
52077
52078 2009-01-24  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
52081         Reported by Eric Blake.
52082
52083 2009-01-24  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
52086         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
52087         Reported by Gary V. Vaughan <gary@gnu.org>.
52088
52089 2009-01-24  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
52092
52093 2009-01-23  Bruno Haible  <bruno@clisp.org>
52094
52095         Make c-strtod, c-strtold usable in libraries.
52096         * lib/c-strtod.c: Include string.h instead of xalloc.h.
52097         (C_STRTOD): Call strdup instead of xstrdup.
52098         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
52099         * modules/c-strtold (Depends-on): Likewise.
52100         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
52101         * NEWS: Mention the change.
52102         Reported by Michael Gold <mgold@ncf.ca>.
52103
52104 2009-01-23  Jim Meyering  <meyering@redhat.com>
52105
52106         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
52107         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
52108         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
52109
52110 2009-01-23  Simon Josefsson  <simon@josefsson.org>
52111
52112         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
52113         GNU CoreUtils.
52114         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
52115         * modules/version-etc (Description): Update.
52116
52117 2009-01-22  Bruno Haible  <bruno@clisp.org>
52118
52119         Cache the C locale object.
52120         * lib/c-strtod.c (c_locale_cache): New variable.
52121         (c_locale): New function.
52122         (C_STRTOD): Use it, and don't call freelocale.
52123         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
52124         Suggested by Paolo Bonzini.
52125
52126 2009-01-21  Bruno Haible  <bruno@clisp.org>
52127
52128         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
52129         conditions other than overflow.
52130
52131 2009-01-21  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/c-strtod.c: Include errno.h.
52134         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
52135         value from STRTOD_L and STRTOD.
52136
52137 2009-01-21  Bruno Haible  <bruno@clisp.org>
52138         and Jim Meyering  <meyering@redhat.com>
52139
52140         nanosleep: skip configure test (fail it) for apple universal builds
52141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
52142         universal builds, assume that nanosleep does not work.
52143         * modules/nanosleep (Depends-on): Add multiarch.
52144
52145         mktime: skip configure test (fail it) for apple universal builds
52146         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
52147         universal builds, assume that mktime does not work.
52148         * modules/mktime (Depends-on): Add multiarch.
52149
52150 2009-01-21  Eric Blake  <ebb9@byu.net>
52151
52152         multiarch: avoid expand-before-require warning
52153         * modules/multiarch (configure.ac): Require, rather than expand,
52154         gl_MULTIARCH.
52155         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
52156         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
52157         enforce that all clients require it.  Partial reversion of
52158         2008-12-29 patch.
52159
52160         error: avoid expand-before-require warning
52161         * modules/errno (configure.ac): Require, rather than expand,
52162         gl_HEADER_ERRNO_H.
52163         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
52164         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
52165         enforce that all clients require it.
52166
52167         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
52168         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
52169         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
52170         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
52171
52172 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
52173
52174         Revert:
52175         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52176
52177         regex: do not depend on obsolete modules.
52178         * modules/regex: Remove memcmp and memmove.
52179
52180 2009-01-20  Bruno Haible  <bruno@clisp.org>
52181
52182         Make the 'link' module link on Windows NT 4.
52183         * lib/link.c (_WIN32_WINNT): Don't define.
52184         (CreateHardLinkFuncType): New type.
52185         (CreateHardLinkFunc, initialized): New variables.
52186         (initialize): New function.
52187         (link): Invoke CreateHardLink indirectly through the function pointer.
52188
52189 2009-01-20  Bruno Haible  <bruno@clisp.org>
52190
52191         Fix compilation failure on mingw.
52192         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
52193
52194 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
52195
52196         * doc/c-strtod.texi: Mention a couple of restrictions.
52197
52198 2009-01-20  Jim Meyering  <meyering@redhat.com>
52199
52200         gettimeofday: move more declarations out of functions
52201         * lib/gettimeofday.c: Move extern declarations of tzset and
52202         gmtime out of containing functions.  Prompted by Bruno Haible.
52203
52204 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
52205
52206         regex: do not depend on obsolete modules.
52207         * modules/regex: Remove memcmp and memmove.
52208
52209 2009-01-19  Bruno Haible  <bruno@clisp.org>
52210
52211         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52212         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
52213         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52214         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
52215         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
52216
52217 2009-01-19  Bruno Haible  <bruno@clisp.org>
52218
52219         * tests/test-link.c: Include <errno.h>.
52220         (main): Exit with code 77 when a hard link cannot be created due to
52221         the file system.
52222         * tests/test-link.sh: Skip test when a hard link cannot be created due
52223         to the file system.
52224         Suggested by Eric Blake.
52225
52226 2009-01-19  Martin Lambers  <marlam@marlam.de>
52227
52228         * modules/link-tests: New file.
52229         * tests/test-link.sh: New file.
52230         * tests/test-link.c: New file.
52231
52232 2009-01-19  Eric Blake  <ebb9@byu.net>
52233
52234         doc: mention another function added in cygwin 1.7.0
52235         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
52236         Another new function in cygwin 1.7.
52237
52238 2009-01-19  Bruno Haible  <bruno@clisp.org>
52239
52240         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
52241         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
52242         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
52243         gl_BIGENDIAN, not AC_C_BIGENDIAN.
52244         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
52245         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
52246         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
52247         * m4/md4.m4 (gl_MD4): Likewise.
52248         * m4/md5.m4 (gl_MD5): Likewise.
52249         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
52250         * m4/sha1.m4 (gl_SHA1): Likewise.
52251         * m4/sha256.m4 (gl_SHA256): Likewise.
52252         * m4/sha512.m4 (gl_SHA512): Likewise.
52253
52254 2009-01-19  Bruno Haible  <bruno@clisp.org>
52255
52256         * modules/uniname/uniname-tests (Depends-on): Add progname.
52257         * tests/uniname/test-uninames.c: Include progname.h.
52258         (main): Call set_program_name.
52259
52260         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
52261         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
52262         (main): Call set_program_name.
52263
52264         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
52265         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
52266         (main): Call set_program_name.
52267
52268         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
52269         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
52270         (main): Call set_program_name.
52271
52272         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
52273         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
52274         (main): Call set_program_name.
52275
52276         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
52277         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
52278         (main): Call set_program_name.
52279
52280         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
52281         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
52282         (main): Call set_program_name.
52283
52284         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
52285         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
52286         (main): Call set_program_name.
52287
52288         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
52289         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
52290         (main): Call set_program_name.
52291
52292 2009-01-19  Eric Blake  <ebb9@byu.net>
52293
52294         test-unistd: test previous patch
52295         * tests/test-unistd.c: Test *_FILENO macros.
52296
52297         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
52298         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52299         Guarantee a definition.
52300         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
52301         * modules/unistd-safer (Depends-on): Add dependency on unistd.
52302         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
52303         * lib/dup-safer.c (STDERR_FILENO): Likewise.
52304         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52305         Likewise.
52306         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
52307         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
52308         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
52309         Likewise.
52310         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
52311         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
52312         (STDERR_FILENO): Likewise.
52313         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
52314         (STDERR_FILENO): Likewise.
52315         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
52316         (STDERR_FILENO): Likewise.
52317         Reported by Elbert Pol.
52318
52319 2009-01-19  Eric Blake  <ebb9@byu.net>
52320
52321         doc: mention more functions added in cygwin 1.7.0
52322         * doc/posix-functions/abort.texi (abort): Update wording related
52323         to cygwin.
52324         * doc/posix-functions/daylight.texi (daylight): Likewise.
52325         * doc/posix-functions/optarg.texi (optarg): Likewise.
52326         * doc/posix-functions/optarg.texi (opterr): Likewise.
52327         * doc/posix-functions/optarg.texi (optind): Likewise.
52328         * doc/posix-functions/optarg.texi (optopt): Likewise.
52329         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
52330         worked in 1.5.x, and was withdrawn in 1.7.
52331         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
52332         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
52333         cygwin versions.
52334         * doc/posix-functions/perror.texi (perror): Likewise.
52335         * doc/posix-functions/printf.texi (printf): Likewise.
52336         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
52337         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
52338         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52339         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52340         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52341         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
52342         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52343         Likewise.
52344         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52345         Likewise.
52346         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
52347         this function.
52348         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
52349         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
52350         Likewise.
52351         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
52352         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
52353         * doc/posix-functions/confstr.texi (confstr): Likewise.
52354         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
52355         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
52356         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
52357         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
52358         * doc/posix-functions/fputws.texi (fputws): Likewise.
52359         * doc/posix-functions/fwide.texi (fwide): Likewise.
52360         * doc/posix-functions/getwc.texi (getwc): Likewise.
52361         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
52362         * doc/posix-functions/putwc.texi (putwc): Likewise.
52363         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
52364         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
52365         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
52366         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
52367         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
52368         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
52369         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
52370         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
52371         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
52372         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
52373         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
52374
52375 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52376
52377         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
52378         * lib/ioctl.c: Include <sys/ioctl.h>.
52379
52380 2009-01-19  Simon Josefsson  <simon@josefsson.org>
52381
52382         * modules/getdate-tests (Depends-on): Add progname.
52383         * tests/test-getdate.c: Use progname module, to avoid link errors
52384         on non-glibc systems.
52385
52386 2009-01-18  Simon Josefsson  <simon@josefsson.org>
52387
52388         * modules/filenamecat-tests (Depends-on): Add progname.
52389         * modules/fstrcmp-tests (Depends-on): Likewise.
52390
52391         * tests/test-filenamecat.c: Use progname module, to avoid link
52392         errors on non-glibc systems.
52393         * tests/test-fstrcmp.c: Likewise.
52394
52395 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
52396
52397         gettimeofday: avoid warning: nested extern declaration of 'localtime'
52398         * lib/gettimeofday.c: Move extern declaration out of function.
52399
52400 2009-01-18  Bruno Haible  <bruno@clisp.org>
52401
52402         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
52403         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
52404         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
52405
52406 2009-01-18  Bruno Haible  <bruno@clisp.org>
52407
52408         * lib/strftime.c (MEMPCPY): Remove unused macro.
52409         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
52410
52411 2009-01-18  Martin Lambers  <marlam@marlam.de>
52412
52413         New module 'link'.
52414         * lib/unistd.in.h (link): New declaration.
52415         * lib/link.c: New file.
52416         * m4/link.m4: New file.
52417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
52418         HAVE_LINK.
52419         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
52420         * modules/link: New file.
52421         * doc/posix-functions/link.texi: Mention the new module.
52422
52423 2009-01-18  Bruno Haible  <bruno@clisp.org>
52424
52425         * tests/test-avltree_list.c (main): Call set_program_name.
52426         * tests/test-avltree_oset.c (main): Likewise.
52427         * tests/test-obstack-printf.c: Include progname.h.
52428         (main): Call set_program_name.
52429         * tests/test-quotearg.c: Include progname.h.
52430         (main): Call set_program_name.
52431         * tests/test-xmemdup0.c: Include progname.h.
52432         (main): Call set_program_name.
52433
52434 2009-01-18  Bruno Haible  <bruno@clisp.org>
52435
52436         New module 'alphasort'.
52437         * lib/dirent.in.h (alphasort): New declaration.
52438         * lib/alphasort.c: New file, from glibc with modifications.
52439         * m4/alphasort.m4: New file.
52440         * modules/alphasort: New file.
52441         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
52442         HAVE_ALPHASORT.
52443         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
52444         HAVE_ALPHASORT.
52445         * doc/posix-functions/alphasort.texi: Mention the new module and the
52446         portability problems.
52447
52448 2009-01-18  Bruno Haible  <bruno@clisp.org>
52449
52450         New module 'scandir'.
52451         * lib/dirent.in.h (scandir): New declaration.
52452         * lib/scandir.c: New file, from glibc with modifications.
52453         * m4/scandir.m4: New file.
52454         * modules/scandir: New file.
52455         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
52456         HAVE_SCANDIR.
52457         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
52458         HAVE_SCANDIR.
52459         * doc/posix-functions/scandir.texi: Mention the new module and the
52460         portability problems.
52461
52462 2009-01-17  Bruno Haible  <bruno@clisp.org>
52463
52464         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
52465         Update documentation.
52466         (func_remove_suffix): Escape all dots in the suffix. Update
52467         documentation.
52468         (func_filter_filelist): Update documentation.
52469         Reported by Ralf Wildenhues.
52470
52471 2009-01-17  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/dprintf-posix-tests: New file.
52474         * tests/test-dprintf-posix.sh: New file.
52475         * tests/test-dprintf-posix.c: New file.
52476
52477         New modules 'dprintf', 'dprintf-posix'.
52478         * lib/stdio.in.h (dprintf): New declaration.
52479         * lib/dprintf.c: New file.
52480         * m4/dprintf.m4: New file.
52481         * m4/dprintf-posix.m4: New file.
52482         * modules/dprintf: New file.
52483         * modules/dprintf-posix: New file.
52484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
52485         HAVE_DPRINTF, REPLACE_DPRINTF.
52486         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
52487         HAVE_DPRINTF, REPLACE_DPRINTF.
52488         * doc/posix-functions/dprintf.texi: Mention the new modules.
52489
52490 2009-01-17  Bruno Haible  <bruno@clisp.org>
52491
52492         * modules/vdprintf-posix-tests: New file.
52493         * tests/test-vdprintf-posix.sh: New file.
52494         * tests/test-vdprintf-posix.c: New file.
52495
52496         New modules 'vdprintf', 'vdprintf-posix'.
52497         * lib/stdio.in.h (vdprintf): New declaration.
52498         * lib/vdprintf.c: New file.
52499         * m4/vdprintf.m4: New file.
52500         * m4/vdprintf-posix.m4: New file.
52501         * modules/vdprintf: New file.
52502         * modules/vdprintf-posix: New file.
52503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
52504         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52505         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
52506         HAVE_VDPRINTF, REPLACE_VDPRINTF.
52507         * doc/posix-functions/vdprintf.texi: Mention the new modules.
52508
52509 2009-01-17  Bruno Haible  <bruno@clisp.org>
52510
52511         Fix replacement of fopen on mingw.
52512         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
52513         mingw.
52514
52515 2009-01-17  Bruno Haible  <bruno@clisp.org>
52516
52517         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
52518         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
52519
52520 2009-01-17  Bruno Haible  <bruno@clisp.org>
52521
52522         Avoid test-fflush2.sh failure on mingw.
52523         * tests/test-fflush2.c: Include binary-io.h.
52524         (main): Put standard input into binary mode.
52525         * modules/fflush-tests (Depends-on): Add binary-io.
52526
52527 2009-01-17  Bruno Haible  <bruno@clisp.org>
52528
52529         * lib/wchar.in.h: In another particular situation, include only the
52530         system's <wchar.h> file.
52531         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
52532         Reported by Albert Chin-A-Young <china@thewrittenword.com>
52533         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
52534
52535 2009-01-17  Bruno Haible  <bruno@clisp.org>
52536
52537         Support for stripping executables in --enable-relocatable.
52538         * build-aux/install-reloc: Expect one more argument, or an environment
52539         variable RELOC_STRIP_PROG. If set, strip the destination program and
52540         its wrapper.
52541         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
52542         RELOC_STRIP_PROG.
52543         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
52544         to set RELOCATABLE_STRIP.
52545         * NEWS: Mention the new Makefile requirement.
52546
52547 2009-01-17  Bruno Haible  <bruno@clisp.org>
52548
52549         * build-aux/install-reloc: Remove debugging information left over by
52550         C compiler on MacOS X.
52551
52552 2009-01-17  Bruno Haible  <bruno@clisp.org>
52553
52554         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
52555         * lib/progreloc.c (find_executable): Fix type of pointer passed to
52556         _NSGetExecutablePath.
52557
52558 2009-01-16  Jim Meyering  <meyering@redhat.com>
52559
52560         strerror: avoid warnings about discarding "const"
52561         * lib/strerror.c (rpl_strerror): Instead of returning a const
52562         string from each and every "case", use a variable, and add a single
52563         cast after the switch.
52564
52565 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
52566
52567         * lib/arpa_inet.in.h: Add extern "C" block for C++.
52568
52569 2009-01-16  Bruno Haible  <bruno@clisp.org>
52570
52571         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
52572         array initializer syntax that also works in C++ mode.
52573         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52574
52575 2009-01-16  Jim Meyering  <meyering@redhat.com>
52576
52577         poll: suppress a warning
52578         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
52579         to ignore "...unsigned expression < 0 is always false" warnings.
52580
52581 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
52582
52583         poll: remove declarations of unused variables
52584         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
52585         sockbuf and optlen.
52586
52587 2009-01-15  Bruno Haible  <bruno@clisp.org>
52588
52589         Make fflush-after-ungetc POSIX compliant on BSD systems.
52590         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
52591         (clear_ungetc_buffer): Implement also for other systems.
52592         (rpl_fflush): On glibc systems, invoke
52593         clear_ungetc_buffer_preserving_position. Otherwise, invoke
52594         clear_ungetc_buffer after fetching the stream's position, not before.
52595
52596 2009-01-15  Bruno Haible  <bruno@clisp.org>
52597
52598         Make fflush-after-ungetc POSIX compliant on glibc systems.
52599         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
52600         after ungetc.
52601         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
52602         (rpl_fflush): On glibc systems, simply call the system's fflush
52603         function after clearing the ungetc buffer.
52604         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
52605         Instead, lseek only to the end of file, then use the system's fseeko
52606         for the rest. On glibc systems, reset the EOF indicator bit.
52607
52608 2009-01-15  Jim Meyering  <meyering@redhat.com>
52609
52610         openmp.m4: revert quote-adding change, for portability to older autoconf
52611         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
52612         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
52613         Simon Josefsson noticed the problem when using autoconf-2.61.
52614
52615 2009-01-15  Bruno Haible  <bruno@clisp.org>
52616
52617         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
52618         * tests/test-fflush2.c (ASSERT): Always fail.
52619         (main): Add two tests for fflush() after ungetc(), taking into account
52620         the Austin Group's clarification.
52621         Suggested by Eric Blake.
52622
52623 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
52624
52625         mktime.m4: remove K&R-style function prototypes
52626         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
52627         for the Sun C++ compiler.
52628
52629 2009-01-14  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
52632         while including <wchar.h>.
52633         * lib/wchar.in.h: In two particular situations on HP-UX, include only
52634         the system's <wchar.h> file.
52635         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52636
52637 2009-01-14  Bruno Haible  <bruno@clisp.org>
52638
52639         * m4/csharp.m4: Don't mention gettext on the serial number line.
52640         * m4/csharpexec.m4: Likewise.
52641         * m4/eaccess.m4: Likewise.
52642         * m4/javaexec.m4: Likewise.
52643         * m4/sig_atomic_t.m4: Likewise.
52644         * m4/tmpdir.m4: Likewise.
52645         * m4/intldir.m4: Bump gettext version.
52646         * m4/lib-ld.m4: Likewise.
52647
52648 2009-01-14  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/progname.c (set_program_name): Add more comments.
52651         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
52652
52653 2009-01-14  Simon Josefsson  <simon@josefsson.org>
52654
52655         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
52656         were sys/stat.h does not define it.
52657
52658 2009-01-14  Jim Meyering  <meyering@redhat.com>
52659
52660         many *.m4 files: improve m4 quoting
52661         99% of this change was performed by running the following commands:
52662         git ls-files | grep '\.m4$' | xargs perl -pi \
52663           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
52664           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52665           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
52666           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
52667         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
52668         The remainder were to add Copyright dates, increment serial numbers,
52669         undo some changes in comments, exclude m4/intl.m4, and add quotes
52670         around the "1" in ",1" where the unusual spacing prohibited the
52671         above regexps from doing the job.  For more details, see
52672         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
52673         * m4/acl.m4: Modified.
52674         * m4/afs.m4: Likewise.
52675         * m4/alloca.m4: Likewise.
52676         * m4/argp.m4: Likewise.
52677         * m4/argz.m4: Likewise.
52678         * m4/atexit.m4: Likewise.
52679         * m4/bison-i18n.m4: Likewise.
52680         * m4/bison.m4: Likewise.
52681         * m4/byteswap.m4: Likewise.
52682         * m4/c-stack.m4: Likewise.
52683         * m4/c-strtod.m4: Likewise.
52684         * m4/calloc.m4: Likewise.
52685         * m4/canonicalize-lgpl.m4: Likewise.
52686         * m4/chown.m4: Likewise.
52687         * m4/clock_time.m4: Likewise.
52688         * m4/codeset.m4: Likewise.
52689         * m4/copy-file.m4: Likewise.
52690         * m4/csharp.m4: Likewise.
52691         * m4/csharpcomp.m4: Likewise.
52692         * m4/csharpexec.m4: Likewise.
52693         * m4/d-ino.m4: Likewise.
52694         * m4/d-type.m4: Likewise.
52695         * m4/dirfd.m4: Likewise.
52696         * m4/double-slash-root.m4: Likewise.
52697         * m4/eaccess.m4: Likewise.
52698         * m4/eealloc.m4: Likewise.
52699         * m4/environ.m4: Likewise.
52700         * m4/errno_h.m4: Likewise.
52701         * m4/euidaccess.m4: Likewise.
52702         * m4/execute.m4: Likewise.
52703         * m4/fatal-signal.m4: Likewise.
52704         * m4/fchdir.m4: Likewise.
52705         * m4/fcntl_h.m4: Likewise.
52706         * m4/fileblocks.m4: Likewise.
52707         * m4/filenamecat.m4: Likewise.
52708         * m4/findprog.m4: Likewise.
52709         * m4/flexmember.m4: Likewise.
52710         * m4/fnmatch.m4: Likewise.
52711         * m4/fopen.m4: Likewise.
52712         * m4/fpending.m4: Likewise.
52713         * m4/fprintf-posix.m4: Likewise.
52714         * m4/free.m4: Likewise.
52715         * m4/frexp.m4: Likewise.
52716         * m4/frexpl.m4: Likewise.
52717         * m4/fsusage.m4: Likewise.
52718         * m4/ftruncate.m4: Likewise.
52719         * m4/gc-camellia.m4: Likewise.
52720         * m4/gc-random.m4: Likewise.
52721         * m4/gc.m4: Likewise.
52722         * m4/getaddrinfo.m4: Likewise.
52723         * m4/getcwd-abort-bug.m4: Likewise.
52724         * m4/getcwd-path-max.m4: Likewise.
52725         * m4/getdate.m4: Likewise.
52726         * m4/getdomainname.m4: Likewise.
52727         * m4/getgroups.m4: Likewise.
52728         * m4/gethostname.m4: Likewise.
52729         * m4/gethrxtime.m4: Likewise.
52730         * m4/getline.m4: Likewise.
52731         * m4/getloadavg.m4: Likewise.
52732         * m4/getndelim2.m4: Likewise.
52733         * m4/getpass.m4: Likewise.
52734         * m4/gettext.m4: Likewise.
52735         * m4/gettime.m4: Likewise.
52736         * m4/gettimeofday.m4: Likewise.
52737         * m4/gnulib-common.m4: Likewise.
52738         * m4/group-member.m4: Likewise.
52739         * m4/host-os.m4: Likewise.
52740         * m4/iconv.m4: Likewise.
52741         * m4/iconv_open.m4: Likewise.
52742         * m4/inet_ntop.m4: Likewise.
52743         * m4/inet_pton.m4: Likewise.
52744         * m4/inline.m4: Likewise.
52745         * m4/intldir.m4: Likewise.
52746         * m4/intlmacosx.m4: Likewise.
52747         * m4/intmax.m4: Likewise.
52748         * m4/intmax_t.m4: Likewise.
52749         * m4/inttypes.m4: Likewise.
52750         * m4/inttypes_h.m4: Likewise.
52751         * m4/inttypes-pri.m4: Likewise.
52752         * m4/isapipe.m4: Likewise.
52753         * m4/isnand.m4: Likewise.
52754         * m4/isnanf.m4: Likewise.
52755         * m4/isnanl.m4: Likewise.
52756         * m4/javacomp.m4: Likewise.
52757         * m4/javaexec.m4: Likewise.
52758         * m4/jm-winsz1.m4: Likewise.
52759         * m4/jm-winsz2.m4: Likewise.
52760         * m4/lchown.m4: Likewise.
52761         * m4/lcmessage.m4: Likewise.
52762         * m4/ldexpl.m4: Likewise.
52763         * m4/lib-ld.m4: Likewise.
52764         * m4/lib-link.m4: Likewise.
52765         * m4/libsigsegv.m4: Likewise.
52766         * m4/link-follow.m4: Likewise.
52767         * m4/localcharset.m4: Likewise.
52768         * m4/locale-fr.m4: Likewise.
52769         * m4/locale-ja.m4: Likewise.
52770         * m4/locale-tr.m4: Likewise.
52771         * m4/locale-zh.m4: Likewise.
52772         * m4/lock.m4: Likewise.
52773         * m4/longlong.m4: Likewise.
52774         * m4/ls-mntd-fs.m4: Likewise.
52775         * m4/lstat.m4: Likewise.
52776         * m4/malloc.m4: Likewise.
52777         * m4/mathl.m4: Likewise.
52778         * m4/mbrtowc.m4: Likewise.
52779         * m4/mbstate_t.m4: Likewise.
52780         * m4/mbswidth.m4: Likewise.
52781         * m4/memchr.m4: Likewise.
52782         * m4/memcmp.m4: Likewise.
52783         * m4/memcpy.m4: Likewise.
52784         * m4/memmem.m4: Likewise.
52785         * m4/memmove.m4: Likewise.
52786         * m4/mempcpy.m4: Likewise.
52787         * m4/memrchr.m4: Likewise.
52788         * m4/memset.m4: Likewise.
52789         * m4/minmax.m4: Likewise.
52790         * m4/mkdir-slash.m4: Likewise.
52791         * m4/mkdtemp.m4: Likewise.
52792         * m4/mktime.m4: Likewise.
52793         * m4/mmap-anon.m4: Likewise.
52794         * m4/mountlist.m4: Likewise.
52795         * m4/nanosleep.m4: Likewise.
52796         * m4/nls.m4: Likewise.
52797         * m4/nocrash.m4: Likewise.
52798         * m4/open.m4: Likewise.
52799         * m4/openat.m4: Likewise.
52800         * m4/openmp.m4: Likewise.
52801         * m4/pathmax.m4: Likewise.
52802         * m4/perl.m4: Likewise.
52803         * m4/physmem.m4: Likewise.
52804         * m4/pipe.m4: Likewise.
52805         * m4/po.m4: Likewise.
52806         * m4/poll.m4: Likewise.
52807         * m4/posixtm.m4: Likewise.
52808         * m4/posixver.m4: Likewise.
52809         * m4/printf-frexp.m4: Likewise.
52810         * m4/printf-frexpl.m4: Likewise.
52811         * m4/printf-posix.m4: Likewise.
52812         * m4/printf-posix-rpl.m4: Likewise.
52813         * m4/printf.m4: Likewise.
52814         * m4/progtest.m4: Likewise.
52815         * m4/putenv.m4: Likewise.
52816         * m4/readline.m4: Likewise.
52817         * m4/readlink.m4: Likewise.
52818         * m4/readutmp.m4: Likewise.
52819         * m4/realloc.m4: Likewise.
52820         * m4/regex.m4: Likewise.
52821         * m4/relocatable.m4: Likewise.
52822         * m4/relocatable-lib.m4: Likewise.
52823         * m4/rename-dest-slash.m4: Likewise.
52824         * m4/rename.m4: Likewise.
52825         * m4/rmdir-errno.m4: Likewise.
52826         * m4/rmdir.m4: Likewise.
52827         * m4/roundf.m4: Likewise.
52828         * m4/roundl.m4: Likewise.
52829         * m4/rpmatch.m4: Likewise.
52830         * m4/save-cwd.m4: Likewise.
52831         * m4/selinux-selinux-h.m4: Likewise.
52832         * m4/setenv.m4: Likewise.
52833         * m4/settime.m4: Likewise.
52834         * m4/sig2str.m4: Likewise.
52835         * m4/sig_atomic_t.m4: Likewise.
52836         * m4/signalblocking.m4: Likewise.
52837         * m4/signbit.m4: Likewise.
52838         * m4/sigpipe.m4: Likewise.
52839         * m4/sockets.m4: Likewise.
52840         * m4/sockpfaf.m4: Likewise.
52841         * m4/st_dm_mode.m4: Likewise.
52842         * m4/stat-time.m4: Likewise.
52843         * m4/stdbool.m4: Likewise.
52844         * m4/stdint.m4: Likewise.
52845         * m4/stdint_h.m4: Likewise.
52846         * m4/stpcpy.m4: Likewise.
52847         * m4/stpncpy.m4: Likewise.
52848         * m4/strcase.m4: Likewise.
52849         * m4/strchrnul.m4: Likewise.
52850         * m4/strcspn.m4: Likewise.
52851         * m4/strdup.m4: Likewise.
52852         * m4/strftime.m4: Likewise.
52853         * m4/strndup.m4: Likewise.
52854         * m4/strnlen.m4: Likewise.
52855         * m4/strpbrk.m4: Likewise.
52856         * m4/strptime.m4: Likewise.
52857         * m4/strsep.m4: Likewise.
52858         * m4/strtod.m4: Likewise.
52859         * m4/strtoimax.m4: Likewise.
52860         * m4/strtok_r.m4: Likewise.
52861         * m4/strtol.m4: Likewise.
52862         * m4/strtoll.m4: Likewise.
52863         * m4/strtoul.m4: Likewise.
52864         * m4/strtoull.m4: Likewise.
52865         * m4/strtoumax.m4: Likewise.
52866         * m4/strverscmp.m4: Likewise.
52867         * m4/threadlib.m4: Likewise.
52868         * m4/timegm.m4: Likewise.
52869         * m4/tm_gmtoff.m4: Likewise.
52870         * m4/tmpdir.m4: Likewise.
52871         * m4/tmpfile.m4: Likewise.
52872         * m4/tzset.m4: Likewise.
52873         * m4/uintmax_t.m4: Likewise.
52874         * m4/unlinkdir.m4: Likewise.
52875         * m4/unlocked-io.m4: Likewise.
52876         * m4/uptime.m4: Likewise.
52877         * m4/userspec.m4: Likewise.
52878         * m4/utimbuf.m4: Likewise.
52879         * m4/utime.m4: Likewise.
52880         * m4/utimes-null.m4: Likewise.
52881         * m4/utimes.m4: Likewise.
52882         * m4/vararrays.m4: Likewise.
52883         * m4/vasnprintf.m4: Likewise.
52884         * m4/vfprintf-posix.m4: Likewise.
52885         * m4/vprintf-posix.m4: Likewise.
52886         * m4/wait-process.m4: Likewise.
52887         * m4/wchar_t.m4: Likewise.
52888         * m4/wint_t.m4: Likewise.
52889         * m4/write-any-file.m4: Likewise.
52890         * m4/yield.m4: Likewise.
52891
52892 2009-01-13  Bruno Haible  <bruno@clisp.org>
52893
52894         Avoid test-copy-file.sh failures when ACL support insufficient.
52895         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52896         TESTS_ENVIRONMENT.
52897         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52898         Reported by Jim Meyering.
52899
52900 2009-01-13  Bruno Haible  <bruno@clisp.org>
52901
52902         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52903         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52904         * modules/unistdio/u8-printf-parse (Files): Likewise.
52905         * modules/unistdio/u32-printf-parse (Files): Likewise.
52906         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52907
52908 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52909
52910         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52911         and m4/inttypes_h.m4 too.
52912
52913 2009-01-12  Eric Blake  <ebb9@byu.net>
52914
52915         tests: IRIX 6.2 cc can't compile -0.0 into .data
52916         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52917         rather than at compile-time.
52918         * tests/test-floorl.c (minus_zero): Likewise.
52919         * tests/test-frexpl.c (minus_zero): Likewise.
52920         * tests/test-isnan.c (minus_zerol): Likewise.
52921         * tests/test-isnanl.h (minus_zero): Likewise.
52922         * tests/test-ldexpl.c (minus_zero): Likewise.
52923         * tests/test-roundl.c (minus_zero): Likewise.
52924         * tests/test-signbit.c (minus_zerol): Likewise.
52925         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52926         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52927         * tests/test-truncl.c (minus_zero): Likewise.
52928         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52929         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52930         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52931
52932 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52933
52934         regex: fix glibc bug 9697
52935         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52936         handling.
52937
52938 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52939
52940         regex: fix glibc bug 697
52941         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52942         being NULL also if there are no backreferences.
52943
52944 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52945
52946         regex: merge glibc changes
52947         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52948         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52949         re_string_skip_chars, re_string_reconstruct): Likewise.
52950         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52951
52952 2009-01-07  Jim Meyering  <meyering@redhat.com>
52953
52954         poll: filter through cppi
52955         * lib/poll.c: Indent cpp directives to reflect nesting.
52956
52957 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52958
52959         poll: don't return uninitialized
52960         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52961
52962 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52963
52964         avoid compile failure on AIX 6.1
52965         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52966         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52967
52968 2009-01-04  Jim Meyering  <meyering@redhat.com>
52969
52970         remove duplicate inclusion of <stdio.h>
52971         * tests/test-fprintf-posix.c: Likewise.
52972         * tests/test-printf-posix.c: Likewise.
52973         * tests/test-snprintf-posix.c: Likewise.
52974         * tests/test-sprintf-posix.c: Likewise.
52975         * tests/test-vasprintf-posix.c: Likewise.
52976         * tests/test-vfprintf-posix.c: Likewise.
52977         * tests/test-vprintf-posix.c: Likewise.
52978         * tests/test-vsnprintf-posix.c: Likewise.
52979         * tests/test-vsprintf-posix.c: Likewise.
52980
52981 2009-01-03  Jim Meyering  <meyering@redhat.com>
52982
52983         gnulib-tool: fix sed-based filtering
52984         * gnulib-tool (func_filter_filelist): Remove extra backslash
52985         in sed_fff_filter definition.
52986
52987 2009-01-02  Jim Meyering  <meyering@redhat.com>
52988
52989         strftime: avoid compilation failure on Solaris 2.6
52990         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52991         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52992         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52993         be available.  Reported by Tom G. Christensen.  Details in
52994         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52995
52996 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52997             Bruno Haible  <bruno@clisp.org>
52998
52999         Speed up gnulib-tool by doing more string processing through shell
53000         built-ins.
53001         * gnulib-tool (fast_func_append): New variable.
53002         (func_remove_prefix, func_remove_suffix): New functions.
53003         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53004         (func_filter_filelist): New function.
53005         (func_get_dependencies): Use func_remove_suffix instead of sed.
53006         (func_get_automake_snippet): Use func_filter_filelist instead of a
53007         subshell and sed invocation.
53008
53009 2009-01-01  Bruno Haible  <bruno@clisp.org>
53010
53011         Fix a security bug.
53012         * gnulib-tool (func_import, import, update): Don't allow the characters
53013         '"', '$', '`', '\' in macro arguments that become part of commands that
53014         are evaluated.
53015
53016 2009-01-01  Bruno Haible  <bruno@clisp.org>
53017
53018         * gnulib-tool (func_reset_sigpipe): Add more comments.
53019
53020 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53021
53022         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53023         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53024         already know the answer.
53025
53026 2009-01-01  Jim Meyering  <meyering@redhat.com>
53027
53028         * lib/version-etc.c (version_etc_va): Update copyright year.
53029
53030 2008-12-30  Bruno Haible  <bruno@clisp.org>
53031
53032         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53033         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53034         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53035
53036 2008-12-29  Eric Blake  <ebb9@byu.net>
53037
53038         multiarch: avoid autoconf AC_REQUIRE bug
53039         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53040         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53041         2.63 and older.
53042         Reported by Bruno Haible, and analyzed in
53043         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53044
53045 2008-12-29  Bruno Haible  <bruno@clisp.org>
53046
53047         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53048         files in subdirectories correctly.
53049         Reported by Ralf Wildenhues.
53050
53051 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53052
53053         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53054         rather than 'join FILE -', for Solaris join.
53055
53056 2008-12-29  Bruno Haible  <bruno@clisp.org>
53057
53058         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53059         quoting.
53060         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53061         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53062         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53063         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
53064         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53065         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
53066         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
53067         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
53068         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
53069         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
53070         * m4/nls.m4 (AM_NLS): Likewise.
53071         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
53072         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
53073         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53074         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
53075         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
53076         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
53077         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
53078         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
53079         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
53080         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
53081         * m4/xsize.m4 (gl_XSIZE): Likewise.
53082         Suggested by Jim Meyering.
53083
53084 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53085
53086         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
53087         * lib/parse-duration.c: use a switch instead of cascading if's.
53088
53089 2008-12-29  Eric Blake  <ebb9@byu.net>
53090
53091         wchar.h: supply WEOF on Irix 5.3
53092         * lib/wchar.in.h (wint_t): Also supply WEOF.
53093         * lib/wctype.in.h (wint_t): Likewise.
53094         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
53095         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
53096         Reported by Tom G. Christensen.
53097
53098 2008-12-26  Bruno Haible  <bruno@clisp.org>
53099
53100         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
53101         i486, i586, i686.
53102
53103 2008-12-26  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
53106
53107 2008-12-26  Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
53110         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
53111         not __STDC_CONSTANT_MACROS.
53112         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53113
53114 2008-12-25  Bruno Haible  <bruno@clisp.org>
53115
53116         Add support for universal builds to vasnprintf.
53117         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
53118         universal builds, guess no.
53119         * modules/vasnprintf-posix (Depends-on): Add multiarch.
53120         * modules/vasprintf-posix (Depends-on): Likewise.
53121         * modules/fprintf-posix (Depends-on): Likewise.
53122         * modules/vfprintf-posix (Depends-on): Likewise.
53123         * modules/snprintf-posix (Depends-on): Likewise.
53124         * modules/vsnprintf-posix (Depends-on): Likewise.
53125         * modules/sprintf-posix (Depends-on): Likewise.
53126         * modules/vsprintf-posix (Depends-on): Likewise.
53127         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53128         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53129         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53130         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53131         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53132         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53133         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53134
53135         Add support for universal builds to <inttypes.h>.
53136         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
53137         _SCNu64_PREFIX): In Apple
53138         universal builds, define directly, using _LP64.
53139         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
53140         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
53141         * modules/inttypes (Depends-on): Add multiarch.
53142         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53143
53144         Add support for universal builds to <stdint.h>.
53145         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
53146         universal builds, define directly, using _LP64.
53147         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
53148         Apple universal builds, don't test for the size and suffix of ptrdiff_t
53149         and size_t.
53150         * modules/stdint (Depends-on): Add multiarch.
53151         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
53152
53153         New module 'multiarch'.
53154         * modules/multiarch: New file.
53155         * m4/multiarch.m4: New file.
53156
53157 2008-12-25  Bruno Haible  <bruno@clisp.org>
53158
53159         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
53160
53161 2008-12-25  Bruno Haible  <bruno@clisp.org>
53162
53163         * modules/btowc (License): Relicense under LGPLv2+.
53164         * modules/mbsinit (License): Likewise.
53165         * modules/mbrtowc (License): Likewise.
53166         * modules/wcrtomb (License): Likewise.
53167         * modules/streq (License): Likewise.
53168         Reported by David Lutterkort <lutter@redhat.com>.
53169
53170 2008-12-23  Bruno Haible  <bruno@clisp.org>
53171
53172         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
53173
53174 2008-12-23  Bruno Haible  <bruno@clisp.org>
53175
53176         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
53177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
53178         GETADDRINFO_LIB, not in LIBS.
53179         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
53180         * modules/canon-host (Link): Likewise.
53181         * NEWS: Mention the change.
53182         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
53183         GETADDRINFO_LIB.
53184
53185 2008-12-22  Bruno Haible  <bruno@clisp.org>
53186
53187         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
53188         * doc/posix-functions/iswalpha_l.texi: Likewise.
53189         * doc/posix-functions/iswblank_l.texi: Likewise.
53190         * doc/posix-functions/iswcntrl_l.texi: Likewise.
53191         * doc/posix-functions/iswctype_l.texi: Likewise.
53192         * doc/posix-functions/iswdigit_l.texi: Likewise.
53193         * doc/posix-functions/iswgraph_l.texi: Likewise.
53194         * doc/posix-functions/iswlower_l.texi: Likewise.
53195         * doc/posix-functions/iswprint_l.texi: Likewise.
53196         * doc/posix-functions/iswpunct_l.texi: Likewise.
53197         * doc/posix-functions/iswspace_l.texi: Likewise.
53198         * doc/posix-functions/iswupper_l.texi: Likewise.
53199         * doc/posix-functions/iswxdigit_l.texi: Likewise.
53200         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
53201         * doc/posix-functions/open_wmemstream.texi: Likewise.
53202         * doc/posix-functions/swscanf.texi: Likewise.
53203         * doc/posix-functions/towctrans_l.texi: Likewise.
53204         * doc/posix-functions/towlower.texi: Likewise.
53205         * doc/posix-functions/towlower_l.texi: Likewise.
53206         * doc/posix-functions/towupper.texi: Likewise.
53207         * doc/posix-functions/towupper_l.texi: Likewise.
53208         * doc/posix-functions/vfwprintf.texi: Likewise.
53209         * doc/posix-functions/vfwscanf.texi: Likewise.
53210         * doc/posix-functions/vswscanf.texi: Likewise.
53211         * doc/posix-functions/vwprintf.texi: Likewise.
53212         * doc/posix-functions/vwscanf.texi: Likewise.
53213         * doc/posix-functions/wcpcpy.texi: Likewise.
53214         * doc/posix-functions/wcpncpy.texi: Likewise.
53215         * doc/posix-functions/wcscasecmp.texi: Likewise.
53216         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
53217         * doc/posix-functions/wcscoll_l.texi: Likewise.
53218         * doc/posix-functions/wcsdup.texi: Likewise.
53219         * doc/posix-functions/wcsncasecmp.texi: Likewise.
53220         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
53221         * doc/posix-functions/wcsnlen.texi: Likewise.
53222         * doc/posix-functions/wcsnrtombs.texi: Likewise.
53223         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
53224         * doc/posix-functions/wctrans_l.texi: Likewise.
53225         * doc/posix-functions/wctype_l.texi: Likewise.
53226         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
53227         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
53228         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
53229         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
53230         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
53231         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
53232         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
53233         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
53234         * doc/glibc-functions/wcschrnul.texi: Likewise.
53235         * doc/glibc-functions/wcsftime_l.texi: Likewise.
53236         * doc/glibc-functions/wcstod_l.texi: Likewise.
53237         * doc/glibc-functions/wcstof_l.texi: Likewise.
53238         * doc/glibc-functions/wcstol_l.texi: Likewise.
53239         * doc/glibc-functions/wcstold_l.texi: Likewise.
53240         * doc/glibc-functions/wcstoll_l.texi: Likewise.
53241         * doc/glibc-functions/wcstoq.texi: Likewise.
53242         * doc/glibc-functions/wcstoul_l.texi: Likewise.
53243         * doc/glibc-functions/wcstoull_l.texi: Likewise.
53244         * doc/glibc-functions/wcstouq.texi: Likewise.
53245         * doc/glibc-functions/wmempcpy.texi: Likewise.
53246
53247 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
53248             Eric Blake  <ebb9@byu.net>
53249             Paolo Bonzini  <bonzini@gnu.org>
53250             Bruno Haible  <bruno@clisp.org>
53251
53252         Make c-stack work on Haiku.
53253         * lib/c-stack.c (SA_ONSTACK): Define fallback.
53254         (c_stack_action): Use SA_ONSTACK flag.
53255
53256 2008-12-22  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
53259
53260 2008-12-22  Bruno Haible  <bruno@clisp.org>
53261
53262         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
53263         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
53264         being overridden.
53265         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
53266         New macros.
53267         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
53268         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
53269         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
53270         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
53271
53272 2008-12-22  Bruno Haible  <bruno@clisp.org>
53273
53274         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
53275         from test code.
53276
53277 2008-12-22  Eric Blake  <ebb9@byu.net>
53278
53279         Avoid gcc warnings on cygwin.
53280         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
53281         Avoid unused variable.
53282         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
53283         Likewise.
53284
53285 2008-12-22  Bruno Haible  <bruno@clisp.org>
53286
53287         Remove HAVE_MBRTOWC conditionals.
53288         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
53289         (mbscasecmp): Assume mbrtowc function.
53290         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
53291         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
53292         * lib/mbschr.c: Include mbuiter.h unconditionally.
53293         (mbschr): Assume mbrtowc function.
53294         * lib/mbscspn.c: Include mbuiter.h unconditionally.
53295         (mbscspn): Assume mbrtowc function.
53296         * lib/mbslen.c: Include mbuiter.h unconditionally.
53297         (mbslen): Assume mbrtowc function.
53298         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
53299         (mbsncasecmp): Assume mbrtowc function.
53300         * lib/mbsnlen.c: Include mbiter.h unconditionally.
53301         (mbsnlen): Assume mbrtowc function.
53302         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
53303         (mbspbrk): Assume mbrtowc function.
53304         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
53305         (mbspcasecmp): Assume mbrtowc function.
53306         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
53307         (mbsrchr): Assume mbrtowc function.
53308         * lib/mbssep.c: Include mbuiter.h unconditionally.
53309         (mbssep): Assume mbrtowc function.
53310         * lib/mbsspn.c: Include mbuiter.h unconditionally.
53311         (mbsspn): Assume mbrtowc function.
53312         * lib/mbsstr.c: Include mbuiter.h unconditionally.
53313         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
53314         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
53315         (mbstok_r): Assume mbrtowc function.
53316         * lib/propername.c: Include mbuiter.h unconditionally.
53317         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
53318         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
53319         (trim2): Assume mbrtowc function.
53320         * lib/mbswidth.c (mbsinit): Remove fallback definition.
53321         (mbsnwidth): Assume mbrtowc function.
53322         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
53323         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
53324         fallback definitions.
53325         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
53326
53327 2008-12-22  Bruno Haible  <bruno@clisp.org>
53328
53329         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
53330
53331 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
53332
53333         * modules/regex: Request emulations for the mb*/wc* functions we need.
53334         * m4/regex.m4: Don't look for those functions here.
53335         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
53336
53337 2008-12-22  Bruno Haible  <bruno@clisp.org>
53338
53339         * modules/fnmatch (Depends-on): Remove duplicated dependency.
53340
53341 2008-12-21  Bruno Haible  <bruno@clisp.org>
53342
53343         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
53344         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
53345         (Include): Remove conditionalization.
53346         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
53347         (Include): Remove conditionalization.
53348         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
53349         (Include): Remove conditionalization.
53350         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
53351         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53352         * NEWS: Mention the change.
53353         Reported by Alan Hourihane <alanh@fairlite.co.uk>
53354         via Sergey Poznyakoff <gray@gnu.org.ua>.
53355
53356 2008-12-21  Bruno Haible  <bruno@clisp.org>
53357
53358         * MODULES.html.sh (Extended multibyte and wide character utilities
53359         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
53360         wcrtomb, wcsrtombs.
53361         (Support for systems lacking POSIX:2008): Add accept, bind, close,
53362         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
53363         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
53364         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
53365
53366 2008-12-21  Bruno Haible  <bruno@clisp.org>
53367
53368         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
53369
53370 2008-12-21  Bruno Haible  <bruno@clisp.org>
53371
53372         * modules/wcsnrtombs-tests: New file.
53373         * tests/test-wcsnrtombs1.sh: New file.
53374         * tests/test-wcsnrtombs2.sh: New file.
53375         * tests/test-wcsnrtombs3.sh: New file.
53376         * tests/test-wcsnrtombs4.sh: New file.
53377         * tests/test-wcsnrtombs.c: New file.
53378
53379         New module 'wcsnrtombs'.
53380         * lib/wchar.in.h (wcsnrtombs): New declaration.
53381         * lib/wcsnrtombs.c: New file.
53382         * lib/wcsrtombs-state.c: New file.
53383         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
53384         (internal_state): Remove variable.
53385         * m4/wcsnrtombs.m4: New file.
53386         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
53387         compilation units.
53388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
53389         HAVE_WCSNRTOMBS.
53390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
53391         HAVE_WCSNRTOMBS.
53392         * modules/wcsnrtombs: New file.
53393         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
53394         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
53395
53396 2008-12-21  Bruno Haible  <bruno@clisp.org>
53397
53398         * modules/wcsrtombs-tests: New file.
53399         * tests/test-wcsrtombs1.sh: New file.
53400         * tests/test-wcsrtombs2.sh: New file.
53401         * tests/test-wcsrtombs3.sh: New file.
53402         * tests/test-wcsrtombs4.sh: New file.
53403         * tests/test-wcsrtombs.c: New file.
53404
53405         New module 'wcsrtombs'.
53406         * lib/wchar.in.h (wcsrtombs): New declaration.
53407         * lib/wcsrtombs.c: New file.
53408         * m4/wcsrtombs.m4: New file.
53409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
53410         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53411         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
53412         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
53413         * modules/wcsrtombs: New file.
53414         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
53415         bugs.
53416
53417 2008-12-21  Bruno Haible  <bruno@clisp.org>
53418
53419         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
53420         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
53421         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
53422         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
53423         if not correct.
53424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
53425         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
53426         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53427         m4/locale-zh.m4, m4/codeset.m4.
53428         * doc/posix-functions/wcrtomb.texi: Document the bug.
53429
53430 2008-12-21  Bruno Haible  <bruno@clisp.org>
53431
53432         Work around a btowc() bug on IRIX 6.5.
53433         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
53434         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
53435         REPLACE_WTOBC if not.
53436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
53437         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
53438         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
53439
53440 2008-12-21  Bruno Haible  <bruno@clisp.org>
53441
53442         * modules/wcrtomb-tests: New file.
53443         * tests/test-wcrtomb.sh: New file.
53444         * tests/test-wcrtomb.c: New file.
53445
53446         New module 'wcrtomb'.
53447         * lib/wchar.in.h (wcrtomb): New declaration.
53448         * lib/wcrtomb.c: New file.
53449         * m4/wcrtomb.m4: New file.
53450         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
53451         HAVE_WCRTOMB.
53452         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
53453         HAVE_WCRTOMB.
53454         * modules/wcrtomb: New file.
53455         * doc/posix-functions/wcrtomb.texi: Mention the new module.
53456
53457 2008-12-21  Bruno Haible  <bruno@clisp.org>
53458
53459         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
53460         * modules/mbsrtowcs (Files): Likewise.
53461         * modules/wctob (Files): Likewise.
53462         * modules/c-strcase-tests (Files): Likewise.
53463         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
53464         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
53465         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
53466         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
53467         * modules/vasnprintf-posix-tests (Files): Likewise.
53468
53469 2008-12-21  William Pursell  <bill.pursell@gmail.com>
53470
53471         gitlog-to-changelog: pass all command-line arguments to git-log
53472         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
53473         it is sometimes convenient to filter the commits in various ways.
53474         gitlog-to-changelog only allows --since to specify a start date,
53475         but git-log itself supports many other filtering mechanisms.
53476         At the moment, I want to filter by branch name.  Rather than
53477         adding a --branch option to gitlog-to-changelog, it seems more
53478         flexible to simply pass all options directly to git-log and let
53479         git do the work.  Notice that this effectively makes --since a
53480         redundant option for gitlog-to-changelog, but removing it would
53481         require current usage to change since calls would then require
53482         an additional '--'.
53483
53484 2008-12-21  Bruno Haible  <bruno@clisp.org>
53485
53486         * modules/mbsnrtowcs-tests: New file.
53487         * tests/test-mbsnrtowcs1.sh: New file.
53488         * tests/test-mbsnrtowcs2.sh: New file.
53489         * tests/test-mbsnrtowcs3.sh: New file.
53490         * tests/test-mbsnrtowcs4.sh: New file.
53491         * tests/test-mbsnrtowcs.c: New file.
53492
53493         New module 'mbsnrtowcs'.
53494         * lib/wchar.in.h (mbsnrtowcs): New declaration.
53495         * lib/mbsnrtowcs.c: New file.
53496         * lib/mbsrtowcs-state.c: New file.
53497         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
53498         (internal_state): Remove variable.
53499         * m4/mbsnrtowcs.m4: New file.
53500         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
53501         compilation units.
53502         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
53503         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53504         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
53505         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
53506         * modules/mbsnrtowcs: New file.
53507         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
53508         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
53509         portability problem.
53510
53511 2008-12-21  Bruno Haible  <bruno@clisp.org>
53512
53513         Work around mbsrtowcs bug.
53514         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
53515         (gl_FUNC_MBSRTOWCS): Invoke it.
53516         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53517         m4/locale-zh.m4.
53518         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
53519
53520 2008-12-21  Bruno Haible  <bruno@clisp.org>
53521
53522         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
53523
53524 2008-12-21  Bruno Haible  <bruno@clisp.org>
53525
53526         Update doc for AIX.
53527         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
53528         16-bit wchar_t type.
53529         * doc/posix-functions/btowc.texi: Likewise.
53530         * doc/posix-functions/fgetwc.texi: Likewise.
53531         * doc/posix-functions/fgetws.texi: Likewise.
53532         * doc/posix-functions/fputwc.texi: Likewise.
53533         * doc/posix-functions/fputws.texi: Likewise.
53534         * doc/posix-functions/fwide.texi: Likewise.
53535         * doc/posix-functions/fwprintf.texi: Likewise.
53536         * doc/posix-functions/fwscanf.texi: Likewise.
53537         * doc/posix-functions/getwchar.texi: Likewise.
53538         * doc/posix-functions/getwc.texi: Likewise.
53539         * doc/posix-functions/iswalnum.texi: Likewise.
53540         * doc/posix-functions/iswalpha.texi: Likewise.
53541         * doc/posix-functions/iswblank.texi: Likewise.
53542         * doc/posix-functions/iswcntrl.texi: Likewise.
53543         * doc/posix-functions/iswctype.texi: Likewise.
53544         * doc/posix-functions/iswdigit.texi: Likewise.
53545         * doc/posix-functions/iswgraph.texi: Likewise.
53546         * doc/posix-functions/iswlower.texi: Likewise.
53547         * doc/posix-functions/iswprint.texi: Likewise.
53548         * doc/posix-functions/iswpunct.texi: Likewise.
53549         * doc/posix-functions/iswspace.texi: Likewise.
53550         * doc/posix-functions/iswupper.texi: Likewise.
53551         * doc/posix-functions/iswxdigit.texi: Likewise.
53552         * doc/posix-functions/mbrtowc.texi: Likewise.
53553         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53554         * doc/posix-functions/mbstowcs.texi: Likewise.
53555         * doc/posix-functions/mbtowc.texi: Likewise.
53556         * doc/posix-functions/putwchar.texi: Likewise.
53557         * doc/posix-functions/putwc.texi: Likewise.
53558         * doc/posix-functions/swprintf.texi: Likewise.
53559         * doc/posix-functions/tolower.texi: Likewise.
53560         * doc/posix-functions/toupper.texi: Likewise.
53561         * doc/posix-functions/towctrans.texi: Likewise.
53562         * doc/posix-functions/ungetwc.texi: Likewise.
53563         * doc/posix-functions/vswprintf.texi: Likewise.
53564         * doc/posix-functions/wcrtomb.texi: Likewise.
53565         * doc/posix-functions/wcscat.texi: Likewise.
53566         * doc/posix-functions/wcschr.texi: Likewise.
53567         * doc/posix-functions/wcscmp.texi: Likewise.
53568         * doc/posix-functions/wcscoll.texi: Likewise.
53569         * doc/posix-functions/wcscpy.texi: Likewise.
53570         * doc/posix-functions/wcscspn.texi: Likewise.
53571         * doc/posix-functions/wcsftime.texi: Likewise.
53572         * doc/posix-functions/wcslen.texi: Likewise.
53573         * doc/posix-functions/wcsncat.texi: Likewise.
53574         * doc/posix-functions/wcsncmp.texi: Likewise.
53575         * doc/posix-functions/wcsncpy.texi: Likewise.
53576         * doc/posix-functions/wcspbrk.texi: Likewise.
53577         * doc/posix-functions/wcsrchr.texi: Likewise.
53578         * doc/posix-functions/wcsrtombs.texi: Likewise.
53579         * doc/posix-functions/wcsspn.texi: Likewise.
53580         * doc/posix-functions/wcsstr.texi: Likewise.
53581         * doc/posix-functions/wcstod.texi: Likewise.
53582         * doc/posix-functions/wcstof.texi: Likewise.
53583         * doc/posix-functions/wcstoimax.texi: Likewise.
53584         * doc/posix-functions/wcstok.texi: Likewise.
53585         * doc/posix-functions/wcstold.texi: Likewise.
53586         * doc/posix-functions/wcstoll.texi: Likewise.
53587         * doc/posix-functions/wcstol.texi: Likewise.
53588         * doc/posix-functions/wcstombs.texi: Likewise.
53589         * doc/posix-functions/wcstoull.texi: Likewise.
53590         * doc/posix-functions/wcstoul.texi: Likewise.
53591         * doc/posix-functions/wcstoumax.texi: Likewise.
53592         * doc/posix-functions/wcswidth.texi: Likewise.
53593         * doc/posix-functions/wcsxfrm.texi: Likewise.
53594         * doc/posix-functions/wctob.texi: Likewise.
53595         * doc/posix-functions/wctomb.texi: Likewise.
53596         * doc/posix-functions/wctrans.texi: Likewise.
53597         * doc/posix-functions/wctype.texi: Likewise.
53598         * doc/posix-functions/wcwidth.texi: Likewise.
53599         * doc/posix-functions/wmemchr.texi: Likewise.
53600         * doc/posix-functions/wmemcmp.texi: Likewise.
53601         * doc/posix-functions/wmemcpy.texi: Likewise.
53602         * doc/posix-functions/wmemmove.texi: Likewise.
53603         * doc/posix-functions/wmemset.texi: Likewise.
53604         * doc/posix-functions/wprintf.texi: Likewise.
53605         * doc/posix-functions/wscanf.texi: Likewise.
53606
53607 2008-12-21  Bruno Haible  <bruno@clisp.org>
53608
53609         Update doc for HP-UX 11.11.
53610         * doc/posix-functions/btowc.texi: Clarify that the function is missing
53611         in HP-UX version 11.00, not in all versions of HP-UX 11.
53612         * doc/posix-functions/fwide.texi: Likewise.
53613         * doc/posix-functions/fwprintf.texi: Likewise.
53614         * doc/posix-functions/fwscanf.texi: Likewise.
53615         * doc/posix-functions/inet_ntop.texi: Likewise.
53616         * doc/posix-functions/inet_pton.texi: Likewise.
53617         * doc/posix-functions/mbrlen.texi: Likewise.
53618         * doc/posix-functions/mbrtowc.texi: Likewise.
53619         * doc/posix-functions/mbsinit.texi: Likewise.
53620         * doc/posix-functions/mbsrtowcs.texi: Likewise.
53621         * doc/posix-functions/swprintf.texi: Likewise.
53622         * doc/posix-functions/swscanf.texi: Likewise.
53623         * doc/posix-functions/towctrans.texi: Likewise.
53624         * doc/posix-functions/vfwprintf.texi: Likewise.
53625         * doc/posix-functions/vswprintf.texi: Likewise.
53626         * doc/posix-functions/vwprintf.texi: Likewise.
53627         * doc/posix-functions/wcrtomb.texi: Likewise.
53628         * doc/posix-functions/wcsrtombs.texi: Likewise.
53629         * doc/posix-functions/wcsstr.texi: Likewise.
53630         * doc/posix-functions/wctob.texi: Likewise.
53631         * doc/posix-functions/wctrans.texi: Likewise.
53632         * doc/posix-functions/wmemchr.texi: Likewise.
53633         * doc/posix-functions/wmemcmp.texi: Likewise.
53634         * doc/posix-functions/wmemcpy.texi: Likewise.
53635         * doc/posix-functions/wmemmove.texi: Likewise.
53636         * doc/posix-functions/wmemset.texi: Likewise.
53637         * doc/posix-functions/wprintf.texi: Likewise.
53638         * doc/posix-functions/wscanf.texi: Likewise.
53639
53640 2008-12-21  Bruno Haible  <bruno@clisp.org>
53641
53642         Work around a portability problem.
53643         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
53644         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
53645
53646 2008-12-20  Bruno Haible  <bruno@clisp.org>
53647
53648         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
53649         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
53650         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
53651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
53652         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
53653
53654         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
53655         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
53656         set.
53657         (GNULIB_defined_mbstate_t): New macro.
53658         (mbsinit): Redefine if REPLACE_MBSINIT is set.
53659         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
53660         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
53661         reuses the system's mbrtowc function but works around the bugs.
53662         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
53663         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
53664         macros.
53665         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
53666         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
53667         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
53668         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
53669         REPLACE_MBSINIT if mbsinit needs to be overridden.
53670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
53671         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53672         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
53673         REPLACE_MBSINIT, REPLACE_MBRTOWC.
53674         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
53675         m4/locale-zh.m4.
53676         (Depends): Add mbsinit.
53677         * modules/mbsinit (Depends): Add mbrtowc.
53678         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
53679
53680 2008-12-20  Bruno Haible  <bruno@clisp.org>
53681
53682         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
53683         so that there are no conversion errors on AIX.
53684         * tests/test-mbsrtowcs.c (main): LIkewise.
53685
53686 2008-12-20  Bruno Haible  <bruno@clisp.org>
53687
53688         Work around wctob bug on Solaris <= 9.
53689         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
53690         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
53691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
53692         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
53693         * modules/wctob (Files): Add m4/locale-fr.m4.
53694         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
53695
53696 2008-12-20  Bruno Haible  <bruno@clisp.org>
53697
53698         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
53699         /dev/null.
53700         * tests/test-select-in.sh: Likewise.
53701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53702
53703 2008-12-20  Bruno Haible  <bruno@clisp.org>
53704
53705         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
53706         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
53707         Cygwin 1.5.x.
53708
53709 2008-12-20  Bruno Haible  <bruno@clisp.org>
53710
53711         Ensure mbstate_t is defined on HP-UX 11.11.
53712         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
53713         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
53714         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
53715         AC_USE_SYSTEM_EXTENSIONS.
53716         * modules/fnmatch (Depends-on): Add extensions.
53717         * modules/mbrlen (Depends-on): Likewise.
53718         * modules/mbrtowc (Depends-on): Likewise.
53719         * modules/mbsinit (Depends-on): Likewise.
53720         * modules/mbsrtowcs (Depends-on): Likewise.
53721         * modules/mbswidth (Depends-on): Likewise.
53722         * modules/quotearg (Depends-on): Likewise.
53723         * modules/strftime (Depends-on): Likewise.
53724
53725 2008-12-20  Bruno Haible  <bruno@clisp.org>
53726
53727         Ensure wctob is declared on IRIX 6.5.
53728         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
53729         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
53730         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
53731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
53732         of HAVE_WCTOB.
53733         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
53734         HAVE_WCTOB.
53735         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
53736
53737 2008-12-19  Bruno Haible  <bruno@clisp.org>
53738
53739         * modules/mbsrtowcs-tests: New file.
53740         * tests/test-mbsrtowcs1.sh: New file.
53741         * tests/test-mbsrtowcs2.sh: New file.
53742         * tests/test-mbsrtowcs3.sh: New file.
53743         * tests/test-mbsrtowcs4.sh: New file.
53744         * tests/test-mbsrtowcs.c: New file.
53745
53746         New module 'mbsrtowcs'.
53747         * lib/wchar.in.h (mbsrtowcs): New declaration.
53748         * lib/mbsrtowcs.c: New file.
53749         * m4/mbsrtowcs.m4: New file.
53750         * modules/mbsrtowcs: New file.
53751         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
53752         HAVE_MBSRTOWCS.
53753         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
53754         HAVE_MBSRTOWCS.
53755         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
53756
53757 2008-12-19  Bruno Haible  <bruno@clisp.org>
53758
53759         New module 'mbrlen'.
53760         * lib/wchar.in.h (mbrlen): New declaration.
53761         * lib/mbrlen.c: New file.
53762         * m4/mbrlen.m4: New file.
53763         * modules/mbrlen: New file.
53764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
53765         HAVE_MBRLEN.
53766         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
53767         HAVE_MBRLEN.
53768         * doc/posix-functions/mbrlen.texi: Document the new module.
53769
53770 2008-12-19  Bruno Haible  <bruno@clisp.org>
53771
53772         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
53773         * modules/mbrtowc (Depends-on): Add verify.
53774         Suggested by Paul Eggert.
53775
53776 2008-12-18  Bruno Haible  <bruno@clisp.org>
53777
53778         * modules/mbsinit-tests: New file.
53779         * tests/test-mbsinit.sh: New file.
53780         * tests/test-mbsinit.c: New file.
53781
53782 2008-12-18  Bruno Haible  <bruno@clisp.org>
53783
53784         * modules/mbrtowc-tests: New file.
53785         * tests/test-mbrtowc1.sh: New file.
53786         * tests/test-mbrtowc2.sh: New file.
53787         * tests/test-mbrtowc3.sh: New file.
53788         * tests/test-mbrtowc4.sh: New file.
53789         * tests/test-mbrtowc.c: New file.
53790
53791         New module 'mbrtowc'.
53792         * lib/wchar.in.h (mbstate_t): Override when the system does not have
53793         mbsinit and mbrtowc.
53794         (mbrtowc): New declaration.
53795         * lib/mbrtowc.c: New file.
53796         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
53797         * modules/mbrtowc: New file.
53798         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
53799         HAVE_MBRTOWC.
53800         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
53801         HAVE_MBRTOWC.
53802         * doc/posix-functions/mbrtowc.texi: Document the new module.
53803
53804 2008-12-18  Bruno Haible  <bruno@clisp.org>
53805
53806         New module 'wctob'.
53807         * lib/wchar.in.h (wctob): New declaration.
53808         * lib/wctob.c: New file.
53809         * m4/wctob.m4: New file.
53810         * modules/wctob: New file.
53811         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
53812         HAVE_WCTOB.
53813         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
53814         * doc/posix-functions/wctob.texi: Document the new module.
53815
53816 2008-12-18  Bruno Haible  <bruno@clisp.org>
53817
53818         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
53819         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
53820
53821 2008-12-18  Simon Josefsson  <simon@josefsson.org>
53822
53823         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
53824         G. Christensen" <tgc@jupiterrise.com>.
53825
53826         * lib/flock.c: Need to include errno.h.  Reported by "Tom
53827         G. Christensen" <tgc@jupiterrise.com>.
53828
53829         * lib/flock.c: Need to include string.h.  Reported by "Tom
53830         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
53831         <ebb9@byu.net>.
53832
53833 2008-12-18  Bruno Haible  <bruno@clisp.org>
53834
53835         * m4/locale-ja.m4: New file, from GNU gettext.
53836
53837 2008-12-17  Bruno Haible  <bruno@clisp.org>
53838
53839         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53840         Suggested by Eric Blake.
53841
53842 2008-12-17  Bruno Haible  <bruno@clisp.org>
53843
53844         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53845
53846 2008-12-17  Bruno Haible  <bruno@clisp.org>
53847
53848         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53849         * modules/mbsinit (Depends-on): Add verify.
53850         Suggested by Paul Eggert.
53851
53852 2008-12-17  Bruno Haible  <bruno@clisp.org>
53853
53854         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53855         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53856         gl_FUNC_MBRTOWC.
53857         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53858         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53859         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53860         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53861         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53862         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53863         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53864         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53865         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53866         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53867         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53868         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53869         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53870         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53871         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53872         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53873         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53874         * modules/trim (configure.ac): Likewise.
53875
53876 2008-12-17  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/btowc-tests: New file.
53879         * tests/test-btowc1.sh: New file.
53880         * tests/test-btowc2.sh: New file.
53881         * tests/test-btowc.c: New file.
53882
53883         New module 'btowc'.
53884         * lib/wchar.in.h (btowc): New declaration.
53885         * lib/btowc.c: New file.
53886         * m4/btowc.m4: New file.
53887         * modules/btowc: New file.
53888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53889         HAVE_BTOWC.
53890         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53891         * doc/posix-functions/btowc.texi: Document the new module.
53892
53893 2008-12-17  Bruno Haible  <bruno@clisp.org>
53894
53895         New module 'mbsinit'.
53896         * lib/wchar.in.h (mbsinit): New declaration.
53897         * lib/mbsinit.c: New file.
53898         * m4/mbsinit.m4: New file.
53899         * modules/mbsinit: New file.
53900         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53901         HAVE_MBSINIT.
53902         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53903         HAVE_MBSINIT.
53904         * doc/posix-functions/mbsinit.texi: Document the new module.
53905
53906 2008-12-16  Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/unistd.in.h: Add comment.
53909         * tests/test-environ.c: Don't include <stdlib.h>.
53910
53911 2008-12-16  Bruno Haible  <bruno@clisp.org>
53912
53913         * lib/parse-duration.h (parse_duration): Document return value
53914         convention.
53915         * lib/parse-duration.c: Include specification header first. Add
53916         comments.
53917         (_): Remove macro.
53918         (parse_year_month_day, parse_hour_minute_second): Move side effects
53919         outside of strchr call.
53920         (parse_non_iso8601): Move side effects outside of isspace call.
53921         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53922         call.
53923
53924 2008-12-16  Bruno Haible  <bruno@clisp.org>
53925
53926         * tests/test-parse-duration.sh: Produce no output when the test
53927         succeeds.
53928
53929 2008-12-16  Bruno Haible  <bruno@clisp.org>
53930
53931         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53932         expressions.
53933
53934 2008-12-15  Bruno Haible  <bruno@clisp.org>
53935
53936         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53937         * doc/glibc-functions/flistxattr.texi: Likewise.
53938         * doc/glibc-functions/fopencookie.texi: Likewise.
53939         * doc/glibc-functions/fremovexattr.texi: Likewise.
53940         * doc/glibc-functions/fsetxattr.texi: Likewise.
53941         * doc/glibc-functions/getxattr.texi: Likewise.
53942         * doc/glibc-functions/lgetxattr.texi: Likewise.
53943         * doc/glibc-functions/listxattr.texi: Likewise.
53944         * doc/glibc-functions/llistxattr.texi: Likewise.
53945         * doc/glibc-functions/lremovexattr.texi: Likewise.
53946         * doc/glibc-functions/lsetxattr.texi: Likewise.
53947         * doc/glibc-functions/removexattr.texi: Likewise.
53948         * doc/glibc-functions/setxattr.texi: Likewise.
53949         * doc/posix-functions/open_memstream.texi: Likewise.
53950
53951 2008-12-15  Eric Blake  <ebb9@byu.net>
53952
53953         Update doc for cygwin 1.7.
53954         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53955         functions.
53956         * doc/posix-functions/fchmodat.texi: Likewise.
53957         * doc/posix-functions/fchownat.texi: Likewise.
53958         * doc/posix-functions/fdopendir.texi: Likewise.
53959         * doc/posix-functions/fmemopen.texi: Likewise.
53960         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53961         * doc/posix-functions/fstatat.texi: Likewise.
53962         * doc/posix-functions/futimens.texi: Likewise.
53963         * doc/posix-functions/gai_strerror.texi: Likewise.
53964         * doc/posix-functions/getaddrinfo.texi: Likewise.
53965         * doc/posix-functions/getnameinfo.texi: Likewise.
53966         * doc/posix-functions/if_freenameindex.texi: Likewise.
53967         * doc/posix-functions/if_indextoname.texi: Likewise.
53968         * doc/posix-functions/if_nameindex.texi: Likewise.
53969         * doc/posix-functions/if_nametoindex.texi: Likewise.
53970         * doc/posix-functions/insque.texi: Likewise.
53971         * doc/posix-functions/linkat.texi: Likewise.
53972         * doc/posix-functions/llrint.texi: Likewise.
53973         * doc/posix-functions/llrintf.texi: Likewise.
53974         * doc/posix-functions/llrintl.texi: Likewise.
53975         * doc/posix-functions/lockf.texi: Likewise.
53976         * doc/posix-functions/lrintl.texi: Likewise.
53977         * doc/posix-functions/mkdirat.texi: Likewise.
53978         * doc/posix-functions/mkfifoat.texi: Likewise.
53979         * doc/posix-functions/mknodat.texi: Likewise.
53980         * doc/posix-functions/mq_close.texi: Likewise.
53981         * doc/posix-functions/mq_getattr.texi: Likewise.
53982         * doc/posix-functions/mq_notify.texi: Likewise.
53983         * doc/posix-functions/mq_open.texi: Likewise.
53984         * doc/posix-functions/mq_receive.texi: Likewise.
53985         * doc/posix-functions/mq_send.texi: Likewise.
53986         * doc/posix-functions/mq_setattr.texi: Likewise.
53987         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53988         * doc/posix-functions/mq_timedsend.texi: Likewise.
53989         * doc/posix-functions/mq_unlink.texi: Likewise.
53990         * doc/posix-functions/open_memstream.texi: Likewise.
53991         * doc/posix-functions/openat.texi: Likewise.
53992         * doc/posix-functions/posix_fadvise.texi: Likewise.
53993         * doc/posix-functions/posix_fallocate.texi: Likewise.
53994         * doc/posix-functions/posix_madvise.texi: Likewise.
53995         * doc/posix-functions/posix_memalign.texi: Likewise.
53996         * doc/posix-functions/posix_openpt.texi: Likewise.
53997         * doc/posix-functions/readlinkat.texi: Likewise.
53998         * doc/posix-functions/remque.texi: Likewise.
53999         * doc/posix-functions/renameat.texi: Likewise.
54000         * doc/posix-functions/rintl.texi: Likewise.
54001         * doc/posix-functions/sem_unlink.texi: Likewise.
54002         * doc/posix-functions/shm_open.texi: Likewise.
54003         * doc/posix-functions/shm_unlink.texi: Likewise.
54004         * doc/posix-functions/signgam.texi: Likewise.
54005         * doc/posix-functions/sigset.texi: Likewise.
54006         * doc/posix-functions/stpcpy.texi: Likewise.
54007         * doc/posix-functions/stpncpy.texi: Likewise.
54008         * doc/posix-functions/strerror.texi: Likewise.
54009         * doc/posix-functions/strtod.texi: Likewise.
54010         * doc/posix-functions/symlinkat.texi: Likewise.
54011         * doc/posix-functions/unlinkat.texi: Likewise.
54012         * doc/posix-functions/utimensat.texi: Likewise.
54013         * doc/glibc-functions/bindresvport.texi: Likewise.
54014         * doc/glibc-functions/dn_expand.texi: Likewise.
54015         * doc/glibc-functions/exp10.texi: Likewise.
54016         * doc/glibc-functions/exp10f.texi: Likewise.
54017         * doc/glibc-functions/fgetxattr.texi: Likewise.
54018         * doc/glibc-functions/flistxattr.texi: Likewise.
54019         * doc/glibc-functions/fopencookie.texi: Likewise.
54020         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54021         * doc/glibc-functions/fremovexattr.texi: Likewise.
54022         * doc/glibc-functions/fsetxattr.texi: Likewise.
54023         * doc/glibc-functions/getifaddrs.texi: Likewise.
54024         * doc/glibc-functions/getxattr.texi: Likewise.
54025         * doc/glibc-functions/lgetxattr.texi: Likewise.
54026         * doc/glibc-functions/listxattr.texi: Likewise.
54027         * doc/glibc-functions/llistxattr.texi: Likewise.
54028         * doc/glibc-functions/lremovexattr.texi: Likewise.
54029         * doc/glibc-functions/lsetxattr.texi: Likewise.
54030         * doc/glibc-functions/pow10.texi: Likewise.
54031         * doc/glibc-functions/pow10f.texi: Likewise.
54032         * doc/glibc-functions/rcmd_af.texi: Likewise.
54033         * doc/glibc-functions/removexattr.texi: Likewise.
54034         * doc/glibc-functions/res_init.texi: Likewise.
54035         * doc/glibc-functions/res_mkquery.texi: Likewise.
54036         * doc/glibc-functions/res_query.texi: Likewise.
54037         * doc/glibc-functions/res_querydomain.texi: Likewise.
54038         * doc/glibc-functions/res_send.texi: Likewise.
54039         * doc/glibc-functions/rresvport_af.texi: Likewise.
54040         * doc/glibc-functions/setxattr.texi: Likewise.
54041         * doc/glibc-functions/strcasestr.texi: Likewise.
54042
54043 2008-12-15  Bruno Haible  <bruno@clisp.org>
54044
54045         Fix compilation error on OSF/1 4.0.
54046         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54047         <sys/time.h>, simply delegate to the system header.
54048         Reported by Daniel Richard G. <oss@teragram.com>.
54049
54050 2008-12-15  Bruno Haible  <bruno@clisp.org>
54051
54052         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54053         * doc/posix-functions/fchmodat.texi: Likewise.
54054         * doc/posix-functions/fchownat.texi: Likewise.
54055         * doc/posix-functions/fdopendir.texi: Likewise.
54056         * doc/posix-functions/fstatat.texi: Likewise.
54057         * doc/posix-functions/mkdirat.texi: Likewise.
54058         * doc/posix-functions/unlinkat.texi: Likewise.
54059
54060 2008-12-14  Bruno Haible  <bruno@clisp.org>
54061
54062         Update doc for POSIX:2008.
54063         * doc/posix-functions/faccessat.texi: New file.
54064         * doc/posix-functions/fchmodat.texi: New file.
54065         * doc/posix-functions/fchownat.texi: New file.
54066         * doc/posix-functions/fdopendir.texi: New file.
54067         * doc/posix-functions/fstatat.texi: New file.
54068         * doc/posix-functions/futimens.texi: New file.
54069         * doc/posix-functions/linkat.texi: New file.
54070         * doc/posix-functions/mkdirat.texi: New file.
54071         * doc/posix-functions/mkfifoat.texi: New file.
54072         * doc/posix-functions/mknodat.texi: New file.
54073         * doc/posix-functions/open_wmemstream.texi: New file.
54074         * doc/posix-functions/openat.texi: New file.
54075         * doc/posix-functions/psiginfo.texi: New file.
54076         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
54077         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
54078         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
54079         * doc/posix-functions/readlinkat.texi: New file.
54080         * doc/posix-functions/renameat.texi: New file.
54081         * doc/posix-functions/strerror_l.texi: New file.
54082         * doc/posix-functions/symlinkat.texi: New file.
54083         * doc/posix-functions/unlinkat.texi: New file.
54084         * doc/posix-functions/utimensat.texi: New file.
54085         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54086
54087 2008-12-14  Bruno Haible  <bruno@clisp.org>
54088
54089         Update doc for POSIX:2008.
54090         * doc/posix-functions/alphasort.texi: Renamed from
54091         doc/glibc-functions/alphasort.texi.
54092         * doc/posix-functions/dirfd.texi: Renamed from
54093         doc/glibc-functions/dirfd.texi.
54094         * doc/posix-functions/dprintf.texi: Renamed from
54095         doc/glibc-functions/dprintf.texi.
54096         * doc/posix-functions/duplocale.texi: Renamed from
54097         doc/glibc-functions/duplocale.texi.
54098         * doc/posix-functions/fexecve.texi: Renamed from
54099         doc/glibc-functions/fexecve.texi.
54100         * doc/posix-functions/fmemopen.texi: Renamed from
54101         doc/glibc-functions/fmemopen.texi.
54102         * doc/posix-functions/freelocale.texi: Renamed from
54103         doc/glibc-functions/freelocale.texi.
54104         * doc/posix-functions/getdate_err.texi: Renamed from
54105         doc/glibc-functions/getdate_err.texi.
54106         * doc/posix-functions/isalnum_l.texi: Renamed from
54107         doc/glibc-functions/isalnum_l.texi.
54108         * doc/posix-functions/isalpha_l.texi: Renamed from
54109         doc/glibc-functions/isalpha_l.texi.
54110         * doc/posix-functions/isblank_l.texi: Renamed from
54111         doc/glibc-functions/isblank_l.texi.
54112         * doc/posix-functions/iscntrl_l.texi: Renamed from
54113         doc/glibc-functions/iscntrl_l.texi.
54114         * doc/posix-functions/isdigit_l.texi: Renamed from
54115         doc/glibc-functions/isdigit_l.texi.
54116         * doc/posix-functions/isgraph_l.texi: Renamed from
54117         doc/glibc-functions/isgraph_l.texi.
54118         * doc/posix-functions/islower_l.texi: Renamed from
54119         doc/glibc-functions/islower_l.texi.
54120         * doc/posix-functions/isprint_l.texi: Renamed from
54121         doc/glibc-functions/isprint_l.texi.
54122         * doc/posix-functions/ispunct_l.texi: Renamed from
54123         doc/glibc-functions/ispunct_l.texi.
54124         * doc/posix-functions/isspace_l.texi: Renamed from
54125         doc/glibc-functions/isspace_l.texi.
54126         * doc/posix-functions/isupper_l.texi: Renamed from
54127         doc/glibc-functions/isupper_l.texi.
54128         * doc/posix-functions/iswalnum_l.texi: Renamed from
54129         doc/glibc-functions/iswalnum_l.texi.
54130         * doc/posix-functions/iswalpha_l.texi: Renamed from
54131         doc/glibc-functions/iswalpha_l.texi.
54132         * doc/posix-functions/iswblank_l.texi: Renamed from
54133         doc/glibc-functions/iswblank_l.texi.
54134         * doc/posix-functions/iswcntrl_l.texi: Renamed from
54135         doc/glibc-functions/iswcntrl_l.texi.
54136         * doc/posix-functions/iswctype_l.texi: Renamed from
54137         doc/glibc-functions/iswctype_l.texi.
54138         * doc/posix-functions/iswdigit_l.texi: Renamed from
54139         doc/glibc-functions/iswdigit_l.texi.
54140         * doc/posix-functions/iswgraph_l.texi: Renamed from
54141         doc/glibc-functions/iswgraph_l.texi.
54142         * doc/posix-functions/iswlower_l.texi: Renamed from
54143         doc/glibc-functions/iswlower_l.texi.
54144         * doc/posix-functions/iswprint_l.texi: Renamed from
54145         doc/glibc-functions/iswprint_l.texi.
54146         * doc/posix-functions/iswpunct_l.texi: Renamed from
54147         doc/glibc-functions/iswpunct_l.texi.
54148         * doc/posix-functions/iswspace_l.texi: Renamed from
54149         doc/glibc-functions/iswspace_l.texi.
54150         * doc/posix-functions/iswupper_l.texi: Renamed from
54151         doc/glibc-functions/iswupper_l.texi.
54152         * doc/posix-functions/iswxdigit_l.texi: Renamed from
54153         doc/glibc-functions/iswxdigit_l.texi.
54154         * doc/posix-functions/isxdigit_l.texi: Renamed from
54155         doc/glibc-functions/isxdigit_l.texi.
54156         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
54157         doc/glibc-functions/mbsnrtowcs.texi.
54158         * doc/posix-functions/mkdtemp.texi: Renamed from
54159         doc/glibc-functions/mkdtemp.texi.
54160         * doc/posix-functions/newlocale.texi: Renamed from
54161         doc/glibc-functions/newlocale.texi.
54162         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
54163         doc/glibc-functions/nl_langinfo_l.texi.
54164         * doc/posix-functions/open_memstream.texi: Renamed from
54165         doc/glibc-functions/open_memstream.texi.
54166         * doc/posix-functions/opterr.texi: Renamed from
54167         doc/glibc-functions/opterr.texi.
54168         * doc/posix-functions/optind.texi: Renamed from
54169         doc/glibc-functions/optind.texi.
54170         * doc/posix-functions/optopt.texi: Renamed from
54171         doc/glibc-functions/optopt.texi.
54172         * doc/posix-functions/psignal.texi: Renamed from
54173         doc/glibc-functions/psignal.texi.
54174         * doc/posix-functions/scandir.texi: Renamed from
54175         doc/glibc-functions/scandir.texi.
54176         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
54177         doc/glibc-functions/sched_get_priority_min.texi.
54178         * doc/posix-functions/signgam.texi: Renamed from
54179         doc/glibc-functions/signgam.texi.
54180         * doc/posix-functions/stpcpy.texi: Renamed from
54181         doc/glibc-functions/stpcpy.texi.
54182         * doc/posix-functions/stpncpy.texi: Renamed from
54183         doc/glibc-functions/stpncpy.texi.
54184         * doc/posix-functions/strcasecmp_l.texi: Renamed from
54185         doc/glibc-functions/strcasecmp_l.texi.
54186         * doc/posix-functions/strcoll_l.texi: Renamed from
54187         doc/glibc-functions/strcoll_l.texi.
54188         * doc/posix-functions/strfmon_l.texi: Renamed from
54189         doc/glibc-functions/strfmon_l.texi.
54190         * doc/posix-functions/strftime_l.texi: Renamed from
54191         doc/glibc-functions/strftime_l.texi.
54192         * doc/posix-functions/strncasecmp_l.texi: Renamed from
54193         doc/glibc-functions/strncasecmp_l.texi.
54194         * doc/posix-functions/strndup.texi: Renamed from
54195         doc/glibc-functions/strndup.texi.
54196         * doc/posix-functions/strnlen.texi: Renamed from
54197         doc/glibc-functions/strnlen.texi.
54198         * doc/posix-functions/strsignal.texi: Renamed from
54199         doc/glibc-functions/strsignal.texi.
54200         * doc/posix-functions/strxfrm_l.texi: Renamed from
54201         doc/glibc-functions/strxfrm_l.texi.
54202         * doc/posix-functions/timer_gettime.texi: Renamed from
54203         doc/glibc-functions/timer_gettime.texi.
54204         * doc/posix-functions/tolower_l.texi: Renamed from
54205         doc/glibc-functions/tolower_l.texi.
54206         * doc/posix-functions/toupper_l.texi: Renamed from
54207         doc/glibc-functions/toupper_l.texi.
54208         * doc/posix-functions/towctrans_l.texi: Renamed from
54209         doc/glibc-functions/towctrans_l.texi.
54210         * doc/posix-functions/towlower_l.texi: Renamed from
54211         doc/glibc-functions/towlower_l.texi.
54212         * doc/posix-functions/towupper_l.texi: Renamed from
54213         doc/glibc-functions/towupper_l.texi.
54214         * doc/posix-functions/uselocale.texi: Renamed from
54215         doc/glibc-functions/uselocale.texi.
54216         * doc/posix-functions/vdprintf.texi: Renamed from
54217         doc/glibc-functions/vdprintf.texi.
54218         * doc/posix-functions/wcpcpy.texi:
54219         Renamed from doc/glibc-functions/wcpcpy.texi.
54220         * doc/posix-functions/wcpncpy.texi: Renamed from
54221         doc/glibc-functions/wcpncpy.texi.
54222         * doc/posix-functions/wcscasecmp.texi: Renamed from
54223         doc/glibc-functions/wcscasecmp.texi.
54224         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
54225         doc/glibc-functions/wcscasecmp_l.texi.
54226         * doc/posix-functions/wcscoll_l.texi: Renamed from
54227         doc/glibc-functions/wcscoll_l.texi.
54228         * doc/posix-functions/wcsdup.texi: Renamed from
54229         doc/glibc-functions/wcsdup.texi.
54230         * doc/posix-functions/wcsncasecmp.texi: Renamed from
54231         doc/glibc-functions/wcsncasecmp.texi.
54232         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
54233         doc/glibc-functions/wcsncasecmp_l.texi.
54234         * doc/posix-functions/wcsnlen.texi: Renamed from
54235         doc/glibc-functions/wcsnlen.texi.
54236         * doc/posix-functions/wcsnrtombs.texi: Renamed from
54237         doc/glibc-functions/wcsnrtombs.texi.
54238         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
54239         doc/glibc-functions/wcsxfrm_l.texi.
54240         * doc/posix-functions/wctrans_l.texi: Renamed from
54241         doc/glibc-functions/wctrans_l.texi.
54242         * doc/posix-functions/wctype_l.texi: Renamed from
54243         doc/glibc-functions/wctype_l.texi.
54244         * doc/gnulib.texi (Function Substitutes): Add these subsections.
54245         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
54246         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
54247         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
54248         these subsections.
54249         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
54250         Remove sections.
54251
54252 2008-12-14  Bruno Haible  <bruno@clisp.org>
54253
54254         Update doc for POSIX:2008.
54255         * doc/posix-functions/*.texi: Update URL of POSIX specification.
54256
54257 2008-12-14  Bruno Haible  <bruno@clisp.org>
54258
54259         Update doc for POSIX:2008.
54260         * doc/pastposix-functions/bcmp.texi: Renamed from
54261         doc/posix-functions/bcmp.texi.
54262         * doc/pastposix-functions/bcopy.texi: Renamed from
54263         doc/posix-functions/bcopy.texi.
54264         * doc/pastposix-functions/bsd_signal.texi: Renamed from
54265         doc/posix-functions/bsd_signal.texi.
54266         * doc/pastposix-functions/bzero.texi: Renamed from
54267         doc/posix-functions/bzero.texi.
54268         * doc/pastposix-functions/ecvt.texi: Renamed from
54269         doc/posix-functions/ecvt.texi.
54270         * doc/pastposix-functions/fcvt.texi: Renamed from
54271         doc/posix-functions/fcvt.texi.
54272         * doc/pastposix-functions/ftime.texi: Renamed from
54273         doc/posix-functions/ftime.texi.
54274         * doc/pastposix-functions/gcvt.texi: Renamed from
54275         doc/posix-functions/gcvt.texi.
54276         * doc/pastposix-functions/getcontext.texi: Renamed from
54277         doc/posix-functions/getcontext.texi.
54278         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
54279         doc/posix-functions/gethostbyaddr.texi.
54280         * doc/pastposix-functions/gethostbyname.texi: Renamed from
54281         doc/posix-functions/gethostbyname.texi.
54282         * doc/pastposix-functions/getwd.texi: Renamed from
54283         doc/posix-functions/getwd.texi.
54284         * doc/pastposix-functions/h_errno.texi: Renamed from
54285         doc/posix-functions/h_errno.texi.
54286         * doc/pastposix-functions/index.texi: Renamed from
54287         doc/posix-functions/index.texi.
54288         * doc/pastposix-functions/makecontext.texi: Renamed from
54289         doc/posix-functions/makecontext.texi.
54290         * doc/pastposix-functions/mktemp.texi: Renamed from
54291         doc/posix-functions/mktemp.texi.
54292         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
54293         doc/posix-functions/pthread_attr_getstackaddr.texi.
54294         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
54295         doc/posix-functions/pthread_attr_setstackaddr.texi.
54296         * doc/pastposix-functions/rindex.texi: Renamed from
54297         doc/posix-functions/rindex.texi.
54298         * doc/pastposix-functions/scalb.texi: Renamed from
54299         doc/posix-functions/scalb.texi.
54300         * doc/pastposix-functions/setcontext.texi: Renamed from
54301         doc/posix-functions/setcontext.texi.
54302         * doc/pastposix-functions/swapcontext.texi: Renamed from
54303         doc/posix-functions/swapcontext.texi.
54304         * doc/pastposix-functions/ualarm.texi: Renamed from
54305         doc/posix-functions/ualarm.texi.
54306         * doc/pastposix-functions/usleep.texi: Renamed from
54307         doc/posix-functions/usleep.texi.
54308         * doc/pastposix-functions/vfork.texi: Renamed from
54309         doc/posix-functions/vfork.texi.
54310         * doc/pastposix-functions/wcswcs.texi: Renamed from
54311         doc/posix-functions/wcswcs.texi.
54312         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
54313         (Function Substitutes): Update.
54314
54315 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54316
54317         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
54318         m4/strerror.m4.
54319
54320 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54321             Bruno Haible  <bruno@clisp.org>
54322
54323         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
54324
54325 2008-12-13  Bruno Haible  <bruno@clisp.org>
54326
54327         * modules/strtoull (Depends-on): Remove unistd.
54328
54329 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54330
54331         * modules/strtoull (Depends-on): Add stdlib.
54332
54333 2008-12-11  Simon Josefsson  <simon@josefsson.org>
54334
54335         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
54336
54337 2008-12-10  Jim Meyering  <meyering@redhat.com>
54338
54339         gl_ASSERT: don't say assertions are disabled when they're not
54340         * m4/assert.m4 (gl_ASSERT): Do not make configure report
54341         "checking whether to enable assertions... no", when they are in
54342         fact enabled.  This is solely a bug in the output of configure.
54343         In spite of saying "no", NDEBUG was not defined in that case.
54344         Also, as noted by Eric Blake, leave assertions enabled upon
54345         --enable-assert=INVALID.
54346
54347 2008-12-10  Bruno Haible  <bruno@clisp.org>
54348
54349         Change MODULES.html to refer to POSIX:2008 where possible.
54350         * MODULES.html.sh (POSIX2008_URL): New variable.
54351         (posix_headers): Remove sys/timeb, ucontext.
54352         (posix2001_headers): New variable.
54353         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
54354         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
54355         index, makecontext, mktemp, pthread_attr_getstackaddr,
54356         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
54357         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
54358         (posix2001_functions): New variable.
54359         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
54360         otherwise.
54361
54362 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54363
54364         add missing include to parse-duration.c
54365         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
54366         * modules/parse-duration (Depends-on): Add xalloc.
54367
54368         fix sed script reading maint.mk
54369         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
54370         (syntax-check-rules): Use it.
54371
54372 2008-12-09  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
54375         MacOS X 10.4/PowerPC.
54376         Reported by Simon Josefsson.
54377
54378 2008-12-08  Jim Meyering  <meyering@redhat.com>
54379
54380         work around mingw's lack of some S_IF definitions
54381         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
54382         Reported by Simon Josefsson.
54383
54384 2008-12-08  Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
54387         applied to variables. Needed on MacOS X 10.4/PowerPC.
54388         Reported by Simon Josefsson.
54389
54390 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
54391         and Eric Blake  <ebb9@byu.net>
54392
54393         assert: honor --enable-assert
54394         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
54395         order to honor --enable-assert, rather than treating it as a
54396         synonym for --disable-assert.
54397
54398 2008-12-08  Jim Meyering  <meyering@redhat.com>
54399
54400         * lib/posixtm.c: Remove now-useless declaration of mktime.
54401
54402         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
54403
54404 2008-12-07  Bruno Haible  <bruno@clisp.org>
54405
54406         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
54407         test_once): Mark functions as static.
54408         * tests/test-tls.c (test_tls): Likewise.
54409
54410 2008-12-07  Bruno Haible  <bruno@clisp.org>
54411
54412         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
54413         iconv_register_autodetect.
54414
54415 2008-12-07  Jim Meyering  <meyering@redhat.com>
54416
54417         posixtm.c: avoid a warning
54418         * lib/posixtm.c (posixtime): Don't initialize tm0.
54419         It's no longer needed to placate gcc4's -Wuninitialized,
54420         and the attempt to placate would elicit a new warning.
54421
54422         unicodeio.c: mark unused parameters
54423         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54424         (fallback_failure_callback): Likewise.
54425
54426 2008-12-07  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool (func_create_testdir): When building the tests
54429         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
54430         Reported by Simon Josefsson.
54431
54432 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54433
54434         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
54435
54436 2008-12-06  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
54439         Suggested by Eric Blake.
54440
54441 2008-12-06  Bruno Haible  <bruno@clisp.org>
54442
54443         Fix a c-stack test failure on MacOS X.
54444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
54445         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
54446         handler for SIGBUS as well.
54447         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
54448         install a signal handler for SIGBUS as well.
54449         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
54450
54451 2008-12-06  Bruno Haible  <bruno@clisp.org>
54452
54453         Advocacy documentation.
54454         * doc/gnulib-intro.texi (Benefits): New section.
54455         * doc/gnulib.texi: Update.
54456
54457 2008-12-06  Bruno Haible  <bruno@clisp.org>
54458
54459         Document the 'manywarnings' module.
54460         * doc/manywarnings.texi: New file.
54461         * doc/gnulib.texi: Include it.
54462
54463 2008-12-05  Eric Blake  <ebb9@byu.net>
54464
54465         tests: silence some gcc warnings
54466         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
54467         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
54468         type mismatches.
54469
54470 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54471             Bruno Haible  <bruno@clisp.org>
54472
54473         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
54474
54475 2008-11-29  Jim Meyering  <meyering@redhat.com>
54476
54477         unicodeio.c: mark unused parameters
54478         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
54479         (fallback_failure_callback): Likewise.
54480
54481         fts: fix a thinko
54482         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
54483         (set_stat_type): Return S_IF*-valued "type" directly.
54484         Prompted by James Youngman's spotting a related bug.
54485         Confirmed by further testing through find.
54486
54487         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
54488         * lib/fts.c (D_TYPE): Define.
54489         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
54490         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
54491         (s_ifmt_shift_bits): New function.
54492         (set_stat_type): New function.
54493         (fts_build): When not calling fts_stat, call set_stat_type
54494         to propagate dirent.d_type info to fts_read caller.
54495         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
54496         fts_statp->st_mode type information may be valid.
54497
54498 2008-11-28  Simon Josefsson  <simon@josefsson.org>
54499
54500         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
54501         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
54502         <sds@gnu.org>.
54503
54504 2008-11-20  Bruno Haible  <bruno@clisp.org>
54505
54506         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
54507         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
54508         INCLUDE_NEXT.
54509         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
54510         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
54511         * modules/math (Makefile.am): Substitute
54512         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
54513         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54514
54515 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
54516             Bruno Haible  <bruno@clisp.org>
54517
54518         * lib/stdint.in.h: Define all type macros so that their expansion is
54519         a single typedef'ed token. Fixes a compilation failure in Boost which
54520         does "using ::int8_t;".
54521
54522 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54523
54524         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
54525         gl_MANYWARN_ALL_GCC.
54526         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
54527         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
54528         * modules/manywarnings: New file.
54529         * MODULES.html.sh: Mention manywarnings module.
54530
54531 2008-11-18  Bruno Haible  <bruno@clisp.org>
54532
54533         * doc/gnulib-tool.texi (Unit tests): New section.
54534
54535 2008-11-18  Simon Josefsson  <simon@josefsson.org>
54536
54537         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
54538         paths like 'lib/po/foo.po'.
54539
54540 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54541
54542         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
54543         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
54544
54545 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54546
54547         * m4/warnings.m4: Use CPPFLAGS to really check whether the
54548         parameter works.
54549
54550 2008-11-17  Simon Josefsson  <simon@josefsson.org>
54551
54552         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
54553
54554 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54555
54556         * modules/parse-duration-tests: New file.
54557         * tests/test-parse-duration.sh: New file.
54558         * tests/test-parse-duration.c: New file.
54559
54560         New module 'parse-duration'.
54561         * lib/parse-duration.h: New file.
54562         * lib/parse-duration.c: New file.
54563         * modules/parse-duration: New file.
54564
54565 2008-11-17  Bruno Haible  <bruno@clisp.org>
54566
54567         * tests/test-select-out.sh: Comment out the first pipe test.
54568         Reported by Simon Josefsson.
54569
54570 2008-11-17  Bruno Haible  <bruno@clisp.org>
54571
54572         * modules/getaddrinfo (Depends-on): Add servent, hostent.
54573         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
54574         gl_HOSTENT.
54575
54576 2008-11-17  Bruno Haible  <bruno@clisp.org>
54577
54578         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
54579         -lnetwork and -lnet. Needed for Haiku and BeOS.
54580
54581 2008-11-16  Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
54584
54585 2008-11-16  Bruno Haible  <bruno@clisp.org>
54586
54587         Avoid test failure on Haiku.
54588         * tests/test-fsync.c: Include <errno.h>.
54589         (main): Don't require that fsync (0) fails.
54590
54591 2008-11-15  Bruno Haible  <bruno@clisp.org>
54592
54593         New module 'hostent'.
54594         * modules/hostent: New file.
54595         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
54596
54597 2008-11-15  Bruno Haible  <bruno@clisp.org>
54598
54599         New module 'servent'.
54600         * modules/servent: New file.
54601         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
54602
54603 2008-11-15  Bruno Haible  <bruno@clisp.org>
54604
54605         Avoid generating same test program with two different rules.
54606         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
54607         test-frexp to test-frexp-nolibm.
54608         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
54609         test-frexpl to test-frexpl-nolibm.
54610
54611 2008-11-15  Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
54614         $(FREXPL_LIBM).
54615
54616 2008-11-15  Bruno Haible  <bruno@clisp.org>
54617
54618         * lib/netdb.in.h: Activate the definitions also when the system's
54619         <netdb.h> has 'struct addrinfo'.
54620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
54621         EAI_OVERFLOW or AI_NUMERICSERV.
54622         * doc/posix-headers/netdb.texi: Document the problem.
54623
54624 2008-11-15  Bruno Haible  <bruno@clisp.org>
54625
54626         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
54627
54628         Make the 'sched' module work on platforms where <sched.h> exists but
54629         is incomplete (such as Haiku).
54630         * lib/sched.in.h; Include the system's <sched.h> if it exists.
54631         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
54632         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
54633         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
54634         HAVE_STRUCT_SCHED_PARAM.
54635         * modules/sched (Depends-on): Add include_next.
54636         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
54637         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
54638         * doc/posix-headers/sched.texi: Document the issue.
54639
54640 2008-11-13  Jim Meyering  <meyering@redhat.com>
54641
54642         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
54643         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
54644         test would fail due to the difference in the Report bugs to ...
54645         line.  The expected address is empty, "<>", while the actual
54646         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
54647
54648 2008-11-12  Bruno Haible  <bruno@clisp.org>
54649
54650         lstat: don't compile lstat.c on systems lacking lstat
54651         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
54652         which don't have lstat; this is handled by lib/sys_stat.in.h already.
54653         Reported by Daniel P. Berrange via Jim Meyering.
54654
54655 2008-11-12  Jim Meyering  <meyering@redhat.com>
54656
54657         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
54658
54659 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54660
54661         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
54662         instead.
54663
54664 2008-11-12  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/unicodeio.c: Include unistr.h.
54667         (utf8_wctomb): Remove function.
54668         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
54669
54670 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54671
54672         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
54673         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
54674         <bruno@clisp.org>.
54675         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
54676
54677 2008-11-12  Simon Josefsson  <simon@josefsson.org>
54678
54679         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
54680         * doc/gnulib.texi: Add section for warnings.
54681
54682 2008-11-11  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/sockets.h: Add a comment.
54685
54686 2008-11-11  Karl Berry  <karl@gnu.org>
54687
54688         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
54689
54690 2008-11-11  Eric Blake  <ebb9@byu.net>
54691
54692         fdl.texi: avoid git symlinks
54693         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
54694
54695 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54696
54697         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
54698
54699 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54700
54701         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
54702         (gl_WARN_ADD): Substitute $2 if literal.
54703
54704 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54705
54706         * m4/warning.m4: Remove.
54707
54708 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
54709
54710         * m4/warnings.m4: Almost complete rewrite. :-)
54711
54712 2008-11-10  Simon Josefsson  <simon@josefsson.org>
54713
54714         * modules/warnings: New module.
54715         * m4/warnings.m4: New file.
54716         * MODULES.html.sh: Mention warnings module.
54717         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
54718         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54719
54720 2008-11-10  Eric Blake  <ebb9@byu.net>
54721
54722         fdl.texi: make a symlink to the latest version
54723         * doc/standards.texi: Revert today's earlier change.
54724         * doc/fdl-1.2.texi: Rename from old fdl.texi...
54725         * doc/fdl.texi: ...and replace this with a symlink to the newer
54726         fdl-1.3.texi.
54727
54728 2008-11-10  Bruno Haible  <bruno@clisp.org>
54729
54730         * tests/test-select-fd.c (main): Accept the result file name as fourth
54731         argument.
54732         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
54733         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
54734
54735 2008-11-10  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
54738         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
54739         as autoconf-substituted macros.
54740         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
54741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
54742         gl_NETDB_H_DEFAULTS. Set these variables.
54743         * modules/netdb (Makefile.am): Substitute these variables.
54744
54745 2008-11-10  Eric Blake  <ebb9@byu.net>
54746
54747         standards.texi: include correct file for FDL 1.3
54748         * doc/standards.texi (GNU Free Documentation License): Change
54749         include file to pull in FDL 1.3, not 1.2.
54750
54751         fdl.texi: revert accidental change to license
54752         * doc/fdl.texi: This is FDL 1.2, not 1.3.
54753
54754 2008-11-10  Bruno Haible  <bruno@clisp.org>
54755
54756         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
54757         cross-compiling guesses also when the native compile gives no result.
54758
54759 2008-11-10  Bruno Haible  <bruno@clisp.org>
54760
54761         * lib/spawni.c (__spawni): Force variable into the stack.
54762
54763 2008-11-10  Bruno Haible  <bruno@clisp.org>
54764
54765         Add support for Haiku.
54766         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
54767         glibc and BeOS, but also on Haiku.
54768         * lib/fpurge.c (fpurge): Likewise.
54769         * lib/freadable.c (freadable): Likewise.
54770         * lib/freadahead.c (freadahead): Likewise.
54771         * lib/freading.c (freading): Likewise.
54772         * lib/freadptr.c (freadptr): Likewise.
54773         * lib/freadseek.c (freadptrinc): Likewise.
54774         * lib/fseeko.c (rpl_fseeko): Likewise.
54775         * lib/fseterr.c (fseterr): Likewise.
54776         * lib/fwritable.c (fwritable): Likewise.
54777         * lib/fwriting.c (fwriting): Likewise.
54778         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
54779
54780 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54781
54782         * lib/config.charset: Treat Haiku like BeOS.
54783
54784 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
54785
54786         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
54787         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
54788
54789 2008-11-08  Bruno Haible  <bruno@clisp.org>
54790
54791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
54792         AC_CACHE_CHECK.
54793
54794 2008-11-08  Bruno Haible  <bruno@clisp.org>
54795
54796         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
54797
54798 2008-11-08  Bruno Haible  <bruno@clisp.org>
54799
54800         * tests/test-select-fd.c: New file.
54801         * tests/test-select-in.sh: New file.
54802         * tests/test-select-out.sh: New file.
54803         * tests/test-select-stdin.c: New file.
54804         * modules/select-tests (Files): Add the new files.
54805         (Depends-on): Add gettimeofday.
54806         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
54807         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
54808         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
54809
54810 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
54811             Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
54814
54815 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
54816
54817         * build-aux/pmccabe2html: Added support for C++ source files.
54818
54819 2008-11-05  Ben Pfaff  <blp@gnu.org>
54820
54821         Fix lib/close.c build on Windows.
54822         * modules/close (Files): Add lib/w32sock.h.
54823
54824 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
54825
54826         Accept Bison's NEWS format.
54827         * build-aux/announce-gen (print_news_deltas): Tweak
54828         $re_prefix.
54829
54830 2008-11-04  Bruno Haible  <bruno@clisp.org>
54831
54832         * modules/random_r (Maintainer): Add glibc.
54833
54834 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54835
54836         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54837         by karl@freefriends.org (Karl Berry).
54838         * doc/alloca.texi: Likewise.
54839         * doc/c-ctype.texi: Likewise.
54840         * doc/c-strcase.texi: Likewise.
54841         * doc/c-strcaseeq.texi: Likewise.
54842         * doc/c-strcasestr.texi: Likewise.
54843         * doc/c-strstr.texi: Likewise.
54844         * doc/c-strtod.texi: Likewise.
54845         * doc/c-strtold.texi: Likewise.
54846         * doc/ctime.texi: Likewise.
54847         * doc/error.texi: Likewise.
54848         * doc/fdl.texi: Likewise.
54849         * doc/gcd.texi: Likewise.
54850         * doc/getdate.texi: Likewise.
54851         * doc/gnulib-intro.texi: Likewise.
54852         * doc/gnulib-tool.texi: Likewise.
54853         * doc/gnulib.texi: Likewise.
54854         * doc/inet_ntoa.texi: Likewise.
54855         * doc/maintain.texi: Likewise.
54856         * doc/make-stds.texi: Likewise.
54857         * doc/quote.texi: Likewise.
54858         * doc/regexprops-generic.texi: Likewise.
54859         * doc/standards.texi: Likewise.
54860         * doc/verify.texi: Likewise.
54861         * doc/visibility.texi: Likewise.
54862         * doc/gnulib.texi (GNU Free Documentation License): Include
54863         fdl-1.3.texi instead of fdl.texi.
54864
54865 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54866
54867         * doc/fdl-1.3.texi: New file, from
54868         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54869         * modules/fdl-1.3: Add.
54870         * MODULES.html.sh: Add fdl-1.3.
54871
54872 2008-11-03  Bruno Haible  <bruno@clisp.org>
54873
54874         Make determination of absolute name of header file work with AIX xlc.
54875         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54876         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54877         preprocessing.
54878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54879         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54880
54881 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54882
54883         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54884         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54885         <ludo@gnu.org>.
54886
54887 2008-11-02  Bruno Haible  <bruno@clisp.org>
54888
54889         Mark 'strpbrk' obsolete.
54890         * modules/strpbrk (Status, Notice): New sections.
54891         * modules/strtok_r (Depends-on): Add strpbrk.
54892
54893 2008-11-02  Bruno Haible  <bruno@clisp.org>
54894
54895         Mark 'strdup' obsolete.
54896         * modules/strdup (Status, Notice): New sections.
54897         * modules/findprog (Depends-on): Add strdup.
54898         * modules/getaddrinfo (Depends-on): Likewise.
54899         * modules/localename (Depends-on): Likewise.
54900         * modules/relocatable-lib (Depends-on): Likewise.
54901         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54902         * modules/relocatable-prog (Depends-on): Likewise.
54903         * modules/trim (Depends-on): Likewise.
54904         * modules/unictype/gen-ctype (Depends-on): Likewise.
54905         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54906
54907 2008-11-02  Bruno Haible  <bruno@clisp.org>
54908
54909         Mark 'strcspn' obsolete.
54910         * modules/strcspn (Status, Notice): New sections.
54911
54912 2008-11-02  Bruno Haible  <bruno@clisp.org>
54913
54914         Mark 'rmdir' obsolete.
54915         * modules/rmdir (Status, Notice): New sections.
54916         * modules/clean-temp (Depends-on): Add rmdir.
54917         * modules/openat (Depends-on): Likewise.
54918
54919 2008-11-02  Bruno Haible  <bruno@clisp.org>
54920
54921         Mark 'raise' obsolete.
54922         * modules/raise (Status, Notice): New sections.
54923         (Include): Specify <signal.h>.
54924         * modules/stdio (Depends-on): Add raise.
54925         * modules/write (Depends-on): Likewise.
54926
54927 2008-11-02  Bruno Haible  <bruno@clisp.org>
54928
54929         Mark 'memset' obsolete.
54930         * modules/memset (Status, Notice): New sections.
54931
54932 2008-11-02  Bruno Haible  <bruno@clisp.org>
54933
54934         Mark 'memmove' obsolete.
54935         * modules/memmove (Status, Notice): New sections.
54936         * modules/argp (Depends-on): Add memmove.
54937         * modules/argz (Depends-on): Likewise.
54938         * modules/canonicalize (Depends-on): Likewise.
54939         * modules/canonicalize-lgpl (Depends-on): Likewise.
54940         * modules/fts (Depends-on): Likewise.
54941         * modules/getcwd (Depends-on): Likewise.
54942         * modules/human (Depends-on): Likewise.
54943         * modules/regex (Depends-on): Likewise.
54944         * modules/striconveh (Depends-on): Likewise.
54945         * modules/trim (Depends-on): Likewise.
54946         * modules/unistr/u8-move (Depends-on): Likewise.
54947         * modules/unistr/u16-move (Depends-on): Likewise.
54948         * modules/unistr/u32-move (Depends-on): Likewise.
54949
54950 2008-11-02  Bruno Haible  <bruno@clisp.org>
54951
54952         Mark 'memcpy' obsolete.
54953         * modules/memcpy (Status, Notice): New sections.
54954
54955 2008-11-02  Bruno Haible  <bruno@clisp.org>
54956
54957         Mark 'memcmp' obsolete.
54958         * modules/memcmp (Status, Notice): New sections.
54959         * modules/argmatch (Depends-on): Add memchr.
54960         * modules/backupfile (Depends-on): Likewise.
54961         * modules/c-strcasestr (Depends-on): Likewise.
54962         * modules/crypto/des (Depends-on): Likewise.
54963         * modules/csharpcomp (Depends-on): Likewise.
54964         * modules/fnmatch (Depends-on): Likewise.
54965         * modules/git-merge-changelog (Depends-on): Likewise.
54966         * modules/isnand (Depends-on): Likewise.
54967         * modules/isnand-nolibm (Depends-on): Likewise.
54968         * modules/isnanf (Depends-on): Likewise.
54969         * modules/isnanf-nolibm (Depends-on): Likewise.
54970         * modules/isnanl (Depends-on): Likewise.
54971         * modules/isnanl-nolibm (Depends-on): Likewise.
54972         * modules/mbchar (Depends-on): Likewise.
54973         * modules/memcoll (Depends-on): Likewise.
54974         * modules/quotearg (Depends-on): Likewise.
54975         * modules/regex (Depends-on): Likewise.
54976         * modules/relocatable-prog (Depends-on): Likewise.
54977         * modules/same (Depends-on): Likewise.
54978         * modules/signbit (Depends-on): Likewise.
54979         * modules/strcasestr-simple (Depends-on): Likewise.
54980         * modules/unictype/gen-ctype (Depends-on): Likewise.
54981         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54982         * modules/uniname/uniname (Depends-on): Likewise.
54983         * modules/unistr/u8-cmp (Depends-on): Likewise.
54984
54985 2008-11-02  Bruno Haible  <bruno@clisp.org>
54986
54987         Mark 'memchr' obsolete.
54988         * modules/memchr (Status, Notice): New sections.
54989         * modules/argp (Depends-on): Add memchr.
54990         * modules/base64 (Depends-on): Likewise.
54991         * modules/c-strcasestr (Depends-on): Likewise.
54992         * modules/chdir-long (Depends-on): Likewise.
54993         * modules/fnmatch (Depends-on): Likewise.
54994         * modules/getsubopt (Depends-on): Likewise.
54995         * modules/git-merge-changelog (Depends-on): Likewise.
54996         * modules/glob (Depends-on): Likewise.
54997         * modules/strcasestr-simple (Depends-on): Likewise.
54998         * modules/strnlen (Depends-on): Likewise.
54999
55000 2008-11-02  Bruno Haible  <bruno@clisp.org>
55001
55002         Mark 'atexit' obsolete.
55003         * modules/atexit (Status, Notice): New sections.
55004         * modules/chdir-long (Depends-on): Add atexit.
55005         * modules/wait-process (Depends-on): Likewise.
55006
55007 2008-11-02  Bruno Haible  <bruno@clisp.org>
55008
55009         * gnulib-tool: New option --with-obsolete.
55010         (func_usage): Document it.
55011         (func_modules_transitive_closure): Drop obsolete dependencies if
55012         incobsolete is not true.
55013         (func_import): Read and save the incobsolete variable to the cache.
55014
55015 2008-11-02  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55018         * gnulib-tool: New option --extract-status.
55019         (func_usage): Document it.
55020         (sed_extract_prog): Recognize it.
55021         (func_get_status): New function.
55022
55023 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55024
55025         * modules/sockets (License): Change from LGPL to LGPLv2+.
55026
55027 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55028
55029         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55030
55031 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55032
55033         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55034         Mention times and sys_times.
55035         * modules/sys_times, modules/sys_times-tests: New modules.
55036         * modules/times, modules/times-tests: Likewise
55037         * m4/sys_times_h.m4: New file.
55038         * lib/sys_times.in.h: Likewise
55039         * lib/times.c: Likewise.
55040         * tests/test-sys_times.c: Likewise.
55041         * tests/test-times.c: Likewise.
55042         * doc/posix-headers/sys_times.texi: Update.
55043         * doc/posix-functions/times.texi: Update.
55044
55045 2008-10-28  Jim Meyering  <meyering@redhat.com>
55046
55047         * modules/tempname (Depends-on): Add lstat.
55048
55049         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55050
55051 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55052
55053         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55054         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55055         using idiom used elsewhere in gnulib.
55056
55057 2008-10-27  Jim Meyering  <meyering@redhat.com>
55058
55059         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55060
55061 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55062
55063         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
55064         TESTS_ENVIRONMENT, for shell scripts that needs to call built
55065         programs.
55066         * tests/test-argp-2.sh: Use $EXEEXT when needed.
55067
55068 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55069
55070         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
55071
55072 2008-10-27  Bruno Haible  <bruno@clisp.org>
55073
55074         * tests/test-lstat.c: Include <stdio.h>.
55075
55076 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55077
55078         * modules/lstat-tests: New module.
55079         * tests/test-lstat.c: New file.
55080
55081 2008-10-26  Jim Meyering  <meyering@redhat.com>
55082
55083         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
55084
55085 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55086             Bruno Haible  <bruno@clisp.org>
55087
55088         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
55089         * modules/configmake (Include): Add a note that the include must come
55090         after all system headers.
55091         * lib/javaversion.c: Include configmake.h after all other includes.
55092
55093 2008-10-26  Bruno Haible  <bruno@clisp.org>
55094
55095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
55096         HAVE_STRUCT_RANDOM_DATA to 1.
55097         (gl_STDLIB_H): Simplify.
55098
55099 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55100
55101         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
55102         substitute HAVE_STRUCT_RANDOM_DATA.
55103         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
55104         random_data.
55105         * modules/stdlib (Makefile.am): Substitute
55106         HAVE_STRUCT_RANDOM_DATA.
55107
55108 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55109
55110         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
55111         * doc/gnulib-intro.texi (Copyright): Likewise.
55112
55113 2008-10-26  Simon Josefsson  <simon@josefsson.org>
55114
55115         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
55116         findings.
55117
55118 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
55119             Bruno Haible  <bruno@clisp.org>
55120
55121         * lib/unistd.in.h: Include <winsock2.h>.
55122         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
55123         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
55124         Provide dummy declarations.
55125         (gethostname): Override.
55126         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
55127         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
55128         gl_PREREQ_SYS_H_WINSOCK2.
55129         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
55130         * doc/posix-functions/gethostname.texi: More details.
55131
55132 2008-10-25  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55135         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
55136         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
55137
55138         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
55139         here ...
55140         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
55141         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
55142         gl_UNISTD_H_DEFAULTS.
55143
55144 2008-10-25  Eric Blake  <ebb9@byu.net>
55145
55146         signbit: avoid spurious compiler failure
55147         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
55148         declarations inside function.
55149
55150 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55151             Bruno Haible  <bruno@clisp.org>
55152
55153         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
55154         * modules/random_r (Depends-on): Add stdint.
55155
55156 2008-10-24  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
55159         Eggert.
55160         * modules/strerror (License): Likewise.
55161
55162 2008-10-24  Jim Meyering  <meyering@redhat.com>
55163
55164         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
55165         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
55166
55167 2008-10-24  Eric Blake  <ebb9@byu.net>
55168
55169         getgroups: fix compilation when getgroups is available
55170         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
55171         but with <config.h> override of getgroups disabled.
55172
55173 2008-10-24  Simon Josefsson  <simon@josefsson.org>
55174
55175         * doc/gnulib.texi (Header files): Add note about C++ problems.
55176         Explained by Bruno Haible <bruno@clisp.org>.
55177
55178 2008-10-23  Bruno Haible  <bruno@clisp.org>
55179
55180         Define a dummy SA_NODEFER macro on Interix.
55181         * lib/signal.in.h (SA_NODEFER): Define fallback.
55182         Reported by Aleksey Cheusov <cheusov@tut.by> via
55183         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
55184
55185 2008-10-23  Bruno Haible  <bruno@clisp.org>
55186
55187         * modules/freadahead (License): Change to LGPLv2+.
55188         Suggested by Simon Josefsson.
55189
55190 2008-10-23  Jim Meyering  <meyering@redhat.com>
55191
55192         random_r: new module
55193         * modules/random_r: New file.
55194         * m4/random_r.m4: New file.
55195         * lib/random_r.c: New file, from glibc.
55196         * modules/random_r-tests: New file.
55197         * tests/test-random_r.c: New file.
55198         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
55199          Declare.
55200         (RAND_MAX): Define.
55201         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
55202         * modules/stdlib: Substitute them, too.
55203         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
55204         * doc/glibc-functions/initstate_r.texi: Mention the new module.
55205         * doc/glibc-functions/random_r.texi: Likewise.
55206         * doc/glibc-functions/setstate_r.texi: Likewise.
55207         * doc/glibc-functions/srandom_r.texi: Likewise.
55208         * config/srclist.txt: Mention it.
55209
55210 2008-10-23  David Lutterkort  <lutter@redhat.com>
55211
55212         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
55213         link requirement
55214
55215 2008-10-23  Jim Meyering  <meyering@redhat.com>
55216
55217         selinux-h: mark parameters of stub functions as intentionally unused
55218         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
55219         * lib/se-context.in.h: Likewise.
55220
55221 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55222
55223         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
55224
55225 2008-10-22  Simon Josefsson  <simon@josefsson.org>
55226
55227         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
55228
55229 2008-10-22  Eric Blake  <ebb9@byu.net>
55230
55231         glthread/thread: avoid compiler warning
55232         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
55233         Add unreachable abort to silence compiler.
55234
55235 2008-10-22  Eric Blake  <ebb9@byu.net>
55236
55237         netdb: also supply struct addrinfo for cygwin 1.5.x
55238         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
55239         older cygwin.
55240         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
55241         cygwin.
55242         * doc/posix-headers/netdb.texi (netdb.h): Document this.
55243
55244 2008-10-22  Bruno Haible  <bruno@clisp.org>
55245
55246         * users.txt: Update entry about pspp.
55247
55248 2008-10-21  Bruno Haible  <bruno@clisp.org>
55249
55250         Simplification.
55251         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
55252         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
55253
55254         Simplification.
55255         * lib/ioctl.c (ioctl): Don't undefine.
55256         * lib/socket.c (socket): Don't undefine.
55257
55258         Remove unused module indicator macros.
55259         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
55260         GNULIB_$1 as a C macro.
55261
55262         * doc/posix-functions/close.texi: Undo last change.
55263         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
55264         Windows platforms.
55265
55266 2008-10-21  Bruno Haible  <bruno@clisp.org>
55267
55268         Add gethostname() declaration to <unistd.h>.
55269         * lib/unistd.in.h (gethostname): New declaration.
55270         * lib/gethostname.c: Include <unistd.h>.
55271         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
55272         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
55273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
55274         and HAVE_GETHOSTNAME.
55275         * modules/gethostname (Depends-on): Add unistd.
55276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55277         (Include): Specify <unistd.h>.
55278         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
55279         HAVE_GETHOSTNAME.
55280         * tests/test-gethostname.c: Include <unistd.h> first.
55281
55282 2008-10-21  Bruno Haible  <bruno@clisp.org>
55283
55284         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
55285         * modules/select-tests (Depends-on): Likewise.
55286         Reported by Simon Josefsson.
55287
55288 2008-10-21  Simon Josefsson  <simon@josefsson.org>
55289
55290         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
55291         * lib/accept.c: New file, based on winsock.c.
55292         * lib/bind.c: New file, based on winsock.c.
55293         * lib/connect.c: New file, based on winsock.c.
55294         * lib/getpeername.c: New file, based on winsock.c.
55295         * lib/getsockname.c: New file, based on winsock.c.
55296         * lib/getsockopt.c: New file, based on winsock.c.
55297         * lib/ioctl.c: New file, based on winsock.c.
55298         * lib/listen.c: New file, based on winsock.c.
55299         * lib/recv.c: New file, based on winsock.c.
55300         * lib/recvfrom.c: New file, based on winsock.c.
55301         * lib/send.c: New file, based on winsock.c.
55302         * lib/sendto.c: New file, based on winsock.c.
55303         * lib/setsockopt.c: New file, based on winsock.c.
55304         * lib/shutdown.c: New file, based on winsock.c.
55305         * lib/socket.c: New file, based on winsock.c.
55306         * lib/w32sock.h: New file, based on winsock.c.
55307         * lib/winsock.c: Remove file.
55308         * modules/accept: Likewise.
55309         * modules/bind: Likewise.
55310         * modules/connect: Likewise.
55311         * modules/getpeername: Likewise.
55312         * modules/getsockname: Likewise.
55313         * modules/getsockopt: Likewise.
55314         * modules/ioctl: Likewise.
55315         * modules/listen: Likewise.
55316         * modules/recv: Likewise.
55317         * modules/recvfrom: Likewise.
55318         * modules/send: Likewise.
55319         * modules/sendto: Likewise.
55320         * modules/setsockopt: Likewise.
55321         * modules/shutdown: Likewise.
55322         * modules/socket: Use socket.c instead of winsock.c.
55323         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
55324         * doc/posix-functions/accept.texi: Doc fix.
55325         * doc/posix-functions/bind.texi: Doc fix.
55326         * doc/posix-functions/close.texi: Doc fix.
55327         * doc/posix-functions/connect.texi: Doc fix.
55328         * doc/posix-functions/getpeername.texi: Doc fix.
55329         * doc/posix-functions/getsockname.texi: Doc fix.
55330         * doc/posix-functions/getsockopt.texi: Doc fix.
55331         * doc/posix-functions/ioctl.texi: Doc fix.
55332         * doc/posix-functions/listen.texi: Doc fix.
55333         * doc/posix-functions/recv.texi: Doc fix.
55334         * doc/posix-functions/recvfrom.texi: Doc fix.
55335         * doc/posix-functions/send.texi: Doc fix.
55336         * doc/posix-functions/sendto.texi: Doc fix.
55337         * doc/posix-functions/setsockopt.texi: Doc fix.
55338         * doc/posix-functions/shutdown.texi: Doc fix.
55339         * doc/posix-functions/socket.texi: Doc fix.
55340
55341 2008-10-20  Bruno Haible  <bruno@clisp.org>
55342
55343         Take into account the role of SIGABRT_COMPAT on Windows 2008.
55344         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
55345         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
55346         as an alias for SIGABRT.
55347         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
55348         (sigaction): Map it to SIGABRT.
55349         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
55350
55351 2008-10-20  Bruno Haible  <bruno@clisp.org>
55352
55353         * lib/fts.c: Don't include lstat.h.
55354         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
55355
55356         Move the lstat() declaration to <sys/stat.h>.
55357         * lib/lstat.h: Remove file.
55358         * lib/sys_stat.in.h: Add special invocation convention.
55359         (lstat): New declaration.
55360         * lib/lstat.c (orig_lstat): New function.
55361         (rpl_lstat): Use orig_lstat instead of lstat.
55362         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
55363         AC_C_INLINE. Set REPLACE_LSTAT.
55364         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
55365         and REPLACE_LSTAT.
55366         * modules/lstat (Files): Remove lib/lstat.h.
55367         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55368         (Include): Specify <sys/stat.h> instead of lstat.h.
55369         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
55370         REPLACE_LSTAT.
55371         * NEWS: Mention the change.
55372
55373 2008-10-20  Bruno Haible  <bruno@clisp.org>
55374
55375         * modules/posix_spawn-tests: New file.
55376         * tests/test-posix_spawn3.c: New file.
55377
55378 2008-10-20  Bruno Haible  <bruno@clisp.org>
55379
55380         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
55381         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55382         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
55383         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
55384         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
55385
55386 2008-10-20  Bruno Haible  <bruno@clisp.org>
55387
55388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
55389         of posix_spawn on AIX 5.3.
55390
55391 2008-10-20  Bruno Haible  <bruno@clisp.org>
55392
55393         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
55394
55395 2008-10-20  Bruno Haible  <bruno@clisp.org>
55396
55397         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
55398         of AC_LANG_PROGRAM.
55399
55400 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55401
55402         * lib/netdb.in.h: Don't define GNU specific constants until they
55403         are supported or needed.  Reported by Bruno Haible
55404         <bruno@clisp.org>.
55405
55406 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55407
55408         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
55409
55410 2008-10-20  Simon Josefsson  <simon@josefsson.org>
55411
55412         * lib/getaddrinfo.h: Remove file.
55413         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
55414         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
55415         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
55416         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
55417         * modules/netdb: Substitute GNULIB_GETADDRINFO.
55418         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
55419         * tests/test-getaddrinfo.c: Likewise.
55420         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
55421         * NEWS: Mention change.
55422
55423 2008-10-19  Bruno Haible  <bruno@clisp.org>
55424
55425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
55426
55427 2008-10-19  Bruno Haible  <bruno@clisp.org>
55428
55429         * lib/wait-process.c: Include simply <sys/wait.h>.
55430         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
55431         WIFSTOPPED): Remove fallback definitions.
55432         * modules/wait-process (Depends-on): Add sys_wait.
55433
55434         New module 'sys_wait'.
55435         * modules/sys_wait: New file.
55436         * lib/sys_wait.in.h: New file, partially copied from
55437         lib/wait-process.c.
55438         * m4/sys_wait_h.m4: New file.
55439         * doc/posix-headers/sys_wait.texi: Mention the new module.
55440
55441 2008-10-19  Bruno Haible  <bruno@clisp.org>
55442
55443         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
55444
55445 2008-10-19  Bruno Haible  <bruno@clisp.org>
55446
55447         Assume that waitpid() fills an 'int' status, not a 'union wait'.
55448         * lib/wait-process.c (WAIT_T): Remove type.
55449         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
55450         (wait_subprocess): Update.
55451
55452 2008-10-19  Bruno Haible  <bruno@clisp.org>
55453
55454         New module 'atoll'.
55455         * modules/atoll: New file.
55456         * lib/stdlib.in.h (atoll): New declaration.
55457         * lib/atoll.c: New file, from glibc with modifications.
55458         * m4/atoll.m4: New file.
55459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
55460         HAVE_ATOLL.
55461         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
55462         * doc/posix-functions/atoll.texi: Mention the new module.
55463
55464 2008-10-19  Bruno Haible  <bruno@clisp.org>
55465
55466         Add strtoull() declaration to <stdlib.h>.
55467         * lib/stdlib.in.h (strtoull): New declaration.
55468         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55469         Set HAVE_STRTOULL.
55470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
55471         HAVE_STRTOULL.
55472         * modules/strtoull (Depends-on): Add stdlib.
55473         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55474         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
55475         HAVE_STRTOULL.
55476
55477 2008-10-19  Bruno Haible  <bruno@clisp.org>
55478
55479         Add strtoll() declaration to <stdlib.h>.
55480         * lib/stdlib.in.h (strtoll): New declaration.
55481         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
55482         Set HAVE_STRTOLL.
55483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
55484         HAVE_STRTOLL.
55485         * modules/strtoll (Depends-on): Add stdlib.
55486         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55487         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
55488
55489 2008-10-19  Bruno Haible  <bruno@clisp.org>
55490
55491         * modules/bcopy (Depends-on): Add strings.
55492         (Include): Specify <strings.h>.
55493
55494 2008-10-19  Bruno Haible  <bruno@clisp.org>
55495
55496         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
55497
55498 2008-10-19  Bruno Haible  <bruno@clisp.org>
55499
55500         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
55501         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
55502         mingw.
55503
55504 2008-10-19  Bruno Haible  <bruno@clisp.org>
55505
55506         * lib/atanl.c: Don't include isnanl.h.
55507         * lib/cosl.c: Likewise.
55508         * lib/ldexpl.c: Likewise.
55509         * lib/logl.c: Likewise.
55510         * lib/sinl.c: Likewise.
55511         * lib/sqrtl.c: Likewise.
55512         * lib/tanl.c: Likewise.
55513
55514         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
55515         * lib/isnanf.h: Remove file.
55516         * lib/isnand.h: Remove file.
55517         * lib/isnanl.h: Remove file.
55518         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
55519         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
55520         macros.
55521         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
55522         HAVE_ISNANF, don't define it as a C macro.
55523         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
55524         HAVE_ISNAND, don't define it as a C macro.
55525         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
55526         HAVE_ISNANL, don't define it as a C macro.
55527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
55528         HAVE_ISNAN[FDL].
55529         * modules/isnanf (Files): Remove lib/isnanf.h.
55530         (Depends-on): Add math.
55531         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55532         (Include): Specify <math.h> instead of isnanf.h.
55533         * modules/isnand (Files): Remove lib/isnand.h.
55534         (Depends-on): Add math.
55535         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55536         (Include): Specify <math.h> instead of isnand.h.
55537         * modules/isnanl (Files): Remove lib/isnanl.h.
55538         (Depends-on): Add math.
55539         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
55540         (Include): Specify <math.h> instead of isnanl.h.
55541         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
55542         HAVE_ISNAN[FDL].
55543         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
55544         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
55545         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
55546         * NEWS: Mention the change.
55547
55548 2008-10-18  Bruno Haible  <bruno@clisp.org>
55549
55550         Add getusershell(), setusershell(), endusershell() declarations to
55551         <unistd.h>.
55552         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
55553         declarations.
55554         * lib/getusershell.c: Include unistd.h.
55555         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
55556         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55557         HAVE_GETUSERSHELL.
55558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
55559         and HAVE_GETUSERSHELL.
55560         * modules/getusershell (Depends-on): Add unistd, extensions.
55561         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55562         (Include): Specify <unistd.h>.
55563         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
55564         HAVE_GETUSERSHELL.
55565
55566 2008-10-18  Bruno Haible  <bruno@clisp.org>
55567
55568         Add a getloadavg() declaration to <stdlib.h>.
55569         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
55570         getloadavg declaration.
55571         (getloadavg): New declaration.
55572         * lib/getloadavg.c: Include <stdlib.h> first.
55573         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
55574         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
55575         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
55576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
55577         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55578         * modules/getloadavg (Depends-on): Add stdlib, extensions.
55579         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55580         (Include): Specify <stdlib.h>.
55581         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
55582         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
55583
55584 2008-10-18  Bruno Haible  <bruno@clisp.org>
55585
55586         * lib/dirchownmod.c: Don't include lchmod.h.
55587
55588         Move the lchmod() declaration to <sys/stat.h>.
55589         * lib/lchmod.h: Remove file.
55590         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
55591         (lchmod): New declaration, moved here from lib/lchown.h.
55592         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
55593         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
55594         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
55595         and HAVE_LCHMOD.
55596         * modules/lchmod (Files): Remove lib/lchmod.h.
55597         (Depends-on): Add sys_stat, extensions.
55598         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
55599         (Include): Specify <sys/stat.h> instead of lchmod.h.
55600         * modules/sys_stat (Depends-on): Add link-warning.
55601         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
55602         definition of GL_LINK_WARNING.
55603         * NEWS: Mention the change.
55604
55605 2008-10-18  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/fchdir.c: Don't include dirfd.h.
55608         * lib/fts.c: Likewise.
55609         * lib/getcwd.c: Likewise.
55610         * lib/glob.c: Likewise.
55611
55612         Move the dirfd() declaration to <dirent.h>.
55613         * lib/dirfd.h: Remove file.
55614         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
55615         (dirfd): New declaration.
55616         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
55617         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
55618         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
55619         HAVE_DECL_DIRFD.
55620         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
55621         HAVE_DECL_DIRFD.
55622         * modules/dirfd (Files): Remove lib/dirfd.h.
55623         (Depends-on): Add dirent, extensions.
55624         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
55625         (Include): Specify <dirent.h> instead of dirfd.h.
55626         * modules/dirent (Depends-on): Add link-warning.
55627         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
55628         definition of GL_LINK_WARNING.
55629         * NEWS: Mention the change.
55630
55631 2008-10-18  Bruno Haible  <bruno@clisp.org>
55632
55633         Move the euidaccess() declaration to <unistd.h>.
55634         * lib/euidaccess.h: Remove file.
55635         * lib/unistd.in.h (euidaccess): New declaration.
55636         * lib/euidaccess.c: Don't include euidaccess.h.
55637         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
55638         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
55639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
55640         and HAVE_EUIDACCESS.
55641         * modules/euidaccess (Files): Remove lib/euidaccess.h.
55642         (Depends-on): Add unistd.
55643         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55644         (Include): Specify <unistd.h> instead of euidaccess.h.
55645         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
55646         HAVE_EUIDACCESS.
55647         * NEWS: Mention the change.
55648
55649 2008-10-18  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
55652
55653         Move the getdomainname() declaration to <unistd.h>.
55654         * lib/getdomainname.h: Remove file.
55655         * lib/unistd.in.h (getdomainname): New declaration.
55656         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
55657         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
55658         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
55659         HAVE_GETDOMAINNAME.
55660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55661         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
55662         * modules/getdomainname (Files): Remove lib/getdomainname.h.
55663         (Depends-on): Add unistd, extensions.
55664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55665         (Includes): Specify <unistd.h> instead of getdomainname.h.
55666         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
55667         HAVE_GETDOMAINNAME.
55668         * NEWS: Mention the change.
55669
55670 2008-10-18  Bruno Haible  <bruno@clisp.org>
55671
55672         * modules/dirent: New file.
55673         * m4/dirent_h.m4: New file.
55674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
55675         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
55676         * modules/fchdir (Files): Remove lib/dirent.in.h.
55677         (Depends-on): Add dirent.
55678         (Makefile.am): Move rules to modules/dirent.
55679         * doc/posix-headers/dirent.texi: Mention the new module.
55680
55681 2008-10-18  Bruno Haible  <bruno@clisp.org>
55682
55683         Avoid -Wunused-parameter warnings in public gnulib header files.
55684         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
55685         macro.
55686         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
55687
55688 2008-10-18  Bruno Haible  <bruno@clisp.org>
55689
55690         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
55691         * doc/glibc-functions/error.texi: Mention the module 'error'.
55692         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
55693         * doc/glibc-functions/getdomainname.texi: Mention the module
55694         'getdomainname'.
55695         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
55696         * doc/glibc-functions/getpagesize.texi: Mention the module
55697         'getpagesize'.
55698         * doc/glibc-functions/getusershell.texi: Mention the module
55699         'getusershell'.
55700         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
55701         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
55702         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
55703         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
55704         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
55705         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
55706         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
55707         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
55708         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
55709         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
55710         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
55711         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
55712         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
55713         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
55714
55715 2008-10-17  Bruno Haible  <bruno@clisp.org>
55716
55717         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
55718         HP-UX and IRIX, use -0.0L.
55719         * tests/test-ceill.c (minus_zero): Likewise.
55720         * tests/test-floorl.c (minus_zero): Likewise.
55721         * tests/test-frexpl.c (minus_zero): Likewise.
55722         * tests/test-isnan.c (minus_zerol): Likewise.
55723         * tests/test-isnanl.h (minus_zero): Likewise.
55724         * tests/test-ldexpl.c (minus_zero): Likewise.
55725         * tests/test-roundl.c (minus_zero): Likewise.
55726         * tests/test-signbit.c (minus_zerol): Likewise.
55727         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
55728         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
55729         * tests/test-truncl.c (minus_zero): Likewise.
55730         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
55731         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
55732         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
55733         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
55734
55735 2008-10-17  Bruno Haible  <bruno@clisp.org>
55736
55737         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
55738         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
55739         that it gets activated only for gcc >= 3.0.
55740         * lib/dirent.in.h: Likewise.
55741         * lib/errno.in.h: Likewise.
55742         * lib/fcntl.in.h: Likewise.
55743         * lib/float.in.h: Likewise.
55744         * lib/iconv.in.h: Likewise.
55745         * lib/inttypes.in.h: Likewise.
55746         * lib/locale.in.h: Likewise.
55747         * lib/math.in.h: Likewise.
55748         * lib/netdb.in.h: Likewise.
55749         * lib/netinet_in.in.h: Likewise.
55750         * lib/search.in.h: Likewise.
55751         * lib/signal.in.h: Likewise.
55752         * lib/spawn.in.h: Likewise.
55753         * lib/stdarg.in.h: Likewise.
55754         * lib/stdint.in.h: Likewise.
55755         * lib/stdio.in.h: Likewise.
55756         * lib/stdlib.in.h: Likewise.
55757         * lib/string.in.h: Likewise.
55758         * lib/strings.in.h: Likewise.
55759         * lib/sys_file.in.h: Likewise.
55760         * lib/sys_ioctl.in.h: Likewise.
55761         * lib/sys_select.in.h: Likewise.
55762         * lib/sys_socket.in.h: Likewise.
55763         * lib/sys_stat.in.h: Likewise.
55764         * lib/sys_time.in.h: Likewise.
55765         * lib/sysexits.in.h: Likewise.
55766         * lib/time.in.h: Likewise.
55767         * lib/unistd.in.h: Likewise.
55768         * lib/wchar.in.h: Likewise.
55769         * lib/wctype.in.h: Likewise.
55770         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55771
55772 2008-10-17  Jim Meyering  <meyering@redhat.com>
55773
55774         ignore-value: don't depend on inline module
55775         * modules/ignore-value (Depends-on): Remove 'inline'.
55776         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
55777         Suggestion from Bruno Haible.
55778
55779 2008-10-17  Bruno Haible  <bruno@clisp.org>
55780
55781         New implementation of condition variables for Win32.
55782         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
55783         (gl_linked_waitqueue_t): New type.
55784         (gl_cond_t): Use it.
55785         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
55786         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
55787         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
55788         (glthread_cond_init_func, glthread_cond_wait_func,
55789         glthread_cond_timedwait_func, glthread_cond_signal_func,
55790         glthread_cond_broadcast_func, glthread_cond_destroy_func):
55791         Reimplemented on the basis of gl_linked_waitqueue_t.
55792         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
55793         gl_waitqueue_t.
55794         (gl_rwlock_t): Update.
55795         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
55796
55797 2008-10-17  Simon Josefsson  <simon@josefsson.org>
55798
55799         * modules/recvfrom (Depends-on): Add dependency on getpeername.
55800         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55801
55802 2008-10-17  Jim Meyering  <meyering@redhat.com>
55803
55804         ignore-value: new module
55805         * modules/ignore-value: New file.
55806         * lib/ignore-value.h: New file.
55807         * MODULES.html.sh (Compiler warning management): New section,
55808         just for this module.  More to come.
55809
55810 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         open-safer.c: avoid 'signed and unsigned in conditional...' warning
55813         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
55814         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
55815
55816 2008-10-16  Jim Meyering  <meyering@redhat.com>
55817
55818         openat-die.c: avoid 'no previous prototype' warning
55819         * lib/openat-die.c: Include "openat.h".
55820         Reported by Reuben Thomas <rrt@sc3d.org>.
55821
55822 2008-10-16  Simon Josefsson  <simon@josefsson.org>
55823
55824         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
55825         * lib/netdb.in.h: Fix typo.
55826         Reported by Bruno Haible  <bruno@clisp.org>
55827
55828         * lib/netdb.in.h: Include sys/socket.h for platforms without
55829         netdb.h, to get structures like hostent on MinGW.
55830         * modules/netdb (Depends-on): Add sys_socket.
55831
55832 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55833
55834         * modules/netdb, modules/netdb-tests: New file.
55835         * m4/netdb_h.m4: New file.
55836         * lib/netdb.in.h: Add, currently just an empty file pending
55837         definitions.
55838         * tests/test-netdb.c: New file.
55839         * doc/posix-headers/netdb.texi: Mention that we replace it if
55840         needed.
55841         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55842         netdb.
55843
55844 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55845
55846         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55847         with code.
55848
55849 2008-10-13  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/glthread/cond.c (glthread_cond_wait_func,
55852         glthread_cond_timedwait_func): Add a comment.
55853
55854 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55855
55856         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55857         * tests/test-select.c: Likewise,
55858
55859 2008-10-13  Bruno Haible  <bruno@clisp.org>
55860
55861         * lib/glthread/cond.c (glthread_cond_wait_func,
55862         glthread_cond_timedwait_func): Fix variable name.
55863         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55864
55865 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55866
55867         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55869         struct sockaddr.sa_len.
55870         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55871
55872 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55873
55874         * build-aux/pmccabe2html: Add css and css_url parameters.
55875
55876 2008-10-12  Bruno Haible  <bruno@clisp.org>
55877
55878         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55879         calling aclx_get.
55880         Reported by Rainer Tammer <tammer@tammer.net>.
55881
55882 2008-10-12  Bruno Haible  <bruno@clisp.org>
55883
55884         Use msvcrt aware primitives for creation/termination of Win32 threads.
55885         * lib/glthread/thread.c: Include <process.h>.
55886         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55887         (wrapper_func): Update signature.
55888         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55889
55890 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55891             Bruno Haible  <bruno@clisp.org>
55892
55893         Provide a Win32 implementation of the 'cond' module.
55894         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55895         * lib/glthread/cond.c (glthread_cond_init_func,
55896         glthread_cond_wait_func, glthread_cond_timedwait_func,
55897         glthread_cond_signal_func, glthread_cond_broadcast_func,
55898         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55899         * modules/cond (Dependencies): Add gettimeofday.
55900
55901 2008-10-11  Bruno Haible  <bruno@clisp.org>
55902
55903         Make sleep work on older versions of mingw.
55904         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55905         only whether it exists.
55906         * doc/posix-functions/sleep.texi: Mention the problem with older
55907         versions of mingw.
55908
55909 2008-10-11  Bruno Haible  <bruno@clisp.org>
55910
55911         New module 'shutdown'.
55912         * modules/shutdown: New file.
55913         * lib/sys_socket.in.h (shutdown): New declaration.
55914         * lib/winsock.c (shutdown): New function.
55915         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55916         GNULIB_SHUTDOWN.
55917         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55918         * doc/posix-functions/shutdown.texi: Document the new module.
55919
55920 2008-10-11  Jim Meyering  <meyering@redhat.com>
55921
55922         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55923
55924 2008-10-11  Bruno Haible  <bruno@clisp.org>
55925
55926         New module 'fclose'.
55927         * modules/fclose: New file.
55928         * lib/stdio.in.h (fclose): New declaration.
55929         * lib/fclose.c: New file.
55930         * m4/fclose.m4: New file.
55931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55932         REPLACE_FCLOSE.
55933         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55934         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55935         REPLACE_FCLOSE.
55936         * modules/close (Depends-on): fclose.
55937         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55938
55939 2008-10-11  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55942         set errno and don't call _close.
55943
55944 2008-10-10  Bruno Haible  <bruno@clisp.org>
55945
55946         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55947         ACL, not afterwards. Fixes test failure on Cygwin.
55948
55949 2008-10-09  Ben Pfaff  <blp@gnu.org>
55950
55951         * build-aux/announce-gen: Fix gnulib version related part of usage
55952         message.  Die with a useful error message if no tarballs are
55953         found.
55954
55955 2008-10-10  Jim Meyering  <meyering@redhat.com>
55956
55957         bootstrap: use git's --depth=N option only if it's supported
55958         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55959         recognize the --depth option.  Reported by Pádraig Brady.
55960
55961 2008-10-09  Bruno Haible  <bruno@clisp.org>
55962
55963         New module 'ioctl'.
55964         * modules/ioctl: New file.
55965         * lib/sys_socket.in.h (ioctl): Remove declaration.
55966         * lib/winsock.c: Include <sys/ioctl.h>.
55967         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55968         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55969         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55970         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55971         * doc/posix-functions/ioctl.texi: Mention the new module.
55972
55973 2008-10-09  Bruno Haible  <bruno@clisp.org>
55974
55975         New module 'sys_ioctl'.
55976         * lib/sys_ioctl.in.h: New file.
55977         * m4/sys_ioctl_h.m4: New file.
55978         * modules/sys_ioctl: New file.
55979         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55980
55981 2008-10-09  Bruno Haible  <bruno@clisp.org>
55982
55983         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55984         * lib/winsock.c: Include <stdarg.h>.
55985         (rpl_ioctl): Change to second argument 'int' and then varargs.
55986
55987 2008-10-09  Bruno Haible  <bruno@clisp.org>
55988
55989         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55990         when the sys_socket module is present and the system has <winsock2.h>.
55991
55992 2008-10-09  Bruno Haible  <bruno@clisp.org>
55993
55994         * doc/posix-functions/close.texi: Mention module 'close' instead of
55995         module 'sys_socket'.
55996
55997 2008-10-09  Bruno Haible  <bruno@clisp.org>
55998
55999         * doc/glibc-headers/sys_ioctl.texi: New file.
56000         * doc/gnulib.texi: Include it.
56001
56002 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56003             Bruno Haible  <bruno@clisp.org>
56004
56005         Combine the two replacements of 'close'.
56006         * lib/sys_socket.in.h (close): Define to a reminder to include
56007         <unistd.h>.
56008         (_gl_close_fd_maybe_socket): New declaration.
56009         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56010         * lib/winsock.c (close): Remove undefinition.
56011         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56012         needed for the gnulib module 'close'.
56013         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56014         define to an error symbol or to a warning, if suitable.
56015         * lib/close.c: Include <sys/socket.h>.
56016         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56017         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56018         UNISTD_H_HAVE_WINSOCK2_H.
56019         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56021         UNISTD_H_HAVE_WINSOCK2_H.
56022         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56023         (configure.ac): Set a module indicator.
56024         (Makefile.am): Substitute GNULIB_CLOSE.
56025         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56026         * modules/poll-tests (Depends-on): Add close.
56027         * modules/select-tests (Depends-on): Likewise.
56028
56029 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56030             Bruno Haible  <bruno@clisp.org>
56031
56032         New module 'close'.
56033         * modules/close: New file.
56034         * lib/unistd.in.h (close): Move declaration out of the
56035         FCHDIR_REPLACEMENT scope.
56036         (_gl_unregister_fd): New declaration.
56037         * lib/close.c: New file.
56038         * lib/fchdir.c (rpl_close): Remove function.
56039         * m4/close.m4: New file.
56040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56041         close.
56042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56043         REPLACE_CLOSE.
56044         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56045         REPLACE_CLOSE.
56046         * modules/fchdir (Depends-on): Add close.
56047
56048 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56049             Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/fcntl.in.h (open): Simplify conditionals.
56052         (_gl_register_fd): New declaration.
56053         * lib/fchdir.c (rpl_open): Remove function.
56054         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56055         also.
56056         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56058         open.
56059
56060 2008-10-09  Jim Meyering  <meyering@redhat.com>
56061
56062         GNUmakefile: use the more name-space-friendly "_version"
56063         * top/GNUmakefile (_dummy): Update.
56064         (_version): Rename from "version".
56065
56066 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56067             Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
56070         rpl_close.
56071         (_gl_register_fd): New function, extracted from rpl_open.
56072         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
56073         (rpl_open, rpl_opendir): Use _gl_register_fd.
56074
56075 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56076
56077         Fix organization of 'open' replacement.
56078         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
56079         (gl_FUNC_OPEN): Use it.
56080         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
56081
56082 2008-10-08  Bruno Haible  <bruno@clisp.org>
56083
56084         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
56085
56086 2008-10-08  Simon Josefsson  <simon@josefsson.org>
56087
56088         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
56089         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
56090         listen).
56091
56092 2008-10-08  Eric Blake  <ebb9@byu.net>
56093
56094         GNUmakefile: add 'make version' target
56095         * top/GNUmakefile (_curr-ver): Split version update rules...
56096         (version): ...into a target.
56097
56098 2008-10-07  Bruno Haible  <bruno@clisp.org>
56099
56100         Use a more portable replacement expression for -0.0L.
56101         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
56102         instead of -0.0L. Fix m4 quotation.
56103
56104         * tests/test-signbit.c: Include <float.h>.
56105         (minus_zero): New variable.
56106         (test_signbitl): Use minus_zero instead of -zero.
56107         * modules/signbit-tests (Depends-on): Add float.
56108
56109         * tests/test-ceill.c: Include <float.h>.
56110         (zero): Remove variable.
56111         (minus_zero): New variable.
56112         (main): Use minus_zero instead of -zero.
56113         * modules/ceill-tests (Depends-on): Add float.
56114
56115         * tests/test-floorl.c: Include <float.h>.
56116         (zero): Remove variable.
56117         (minus_zero): New variable.
56118         (main): Use minus_zero instead of -zero.
56119         * modules/floorl-tests (Depends-on): Add float.
56120
56121         * tests/test-roundl.c: Include <float.h>.
56122         (zero): Remove variable.
56123         (minus_zero): New variable.
56124         (main): Use minus_zero instead of -zero.
56125         * modules/roundl-tests (Depends-on): Add float.
56126
56127         * tests/test-truncl.c: Include <float.h>.
56128         (zero): Remove variable.
56129         (minus_zero): New variable.
56130         (main): Use minus_zero instead of -zero.
56131         * modules/truncl-tests (Depends-on): Add float.
56132
56133         * tests/test-frexpl.c (zero): Remove variable.
56134         (minus_zero): New variable.
56135         (main): Use minus_zero instead of -zero.
56136         * modules/frexpl-tests (Depends-on): Add float.
56137
56138         * tests/test-isnan.c (zerol): Remove variable.
56139         (minus_zerol): New variable.
56140         (test_long_double): Use minus_zerol instead of -zerol.
56141         * modules/isnan-tests (Depends-on): Add float.
56142
56143         * tests/test-isnanl.h (zero): Remove variable.
56144         (minus_zero): New variable.
56145         (main): Use minus_zero instead of -zero.
56146         * modules/isnanl-nolibm-tests (Depends-on): Add float.
56147         * modules/isnanl-tests (Depends-on): Add float.
56148
56149         * tests/test-ldexpl.c (zero): Remove variable.
56150         (minus_zero): New variable.
56151         (main): Use minus_zero instead of -zero.
56152         * modules/ldexpl-tests (Depends-on): Add float.
56153
56154         * tests/test-snprintf-posix.h (zerol): Remove variable.
56155         (minus_zerol): New variable.
56156         (test_function): Use minus_zerol instead of -zerol.
56157         * modules/snprintf-posix-tests (Depends-on): Add float.
56158         * modules/vsnprintf-posix-tests (Depends-on): Add float.
56159
56160         * tests/test-sprintf-posix.h (zerol): Remove variable.
56161         (minus_zerol): New variable.
56162         (test_function): Use minus_zerol instead of -zerol.
56163         * modules/sprintf-posix-tests (Depends-on): Add float.
56164         * modules/vsprintf-posix-tests (Depends-on): Add float.
56165
56166         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
56167         (minus_zerol): New variable.
56168         (test_function): Use minus_zerol instead of -zerol.
56169         * modules/vasnprintf-posix-tests (Depends-on): Add float.
56170
56171         * tests/test-vasprintf-posix.c (zerol): Remove variable.
56172         (minus_zerol): New variable.
56173         (test_function): Use minus_zerol instead of -zerol.
56174         * modules/vasprintf-posix-tests (Depends-on): Add float.
56175
56176 2008-10-07  Simon Josefsson  <simon@josefsson.org>
56177
56178         * MODULES.html.sh (Support for building documentation): Mention
56179         pmccabe2html.  Sort entries.
56180
56181         Add pmccabe2html module, from gnupdf.
56182         * build-aux/pmccabe.css: New file.
56183         * build-aux/pmccabe2html: New file.
56184         * m4/pmccabe2html.m4: New file.
56185         * modules/pmccabe2html: New file.
56186
56187 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
56188
56189         flock: new module
56190         * MODULES.html.sh: Add to list of modules.
56191         * lib/flock.c: flock implementation for Windows and Unix systems
56192         which have fcntl.
56193         * doc/glibc-functions/flock.texi: Update documentation.
56194         * lib/sys_file.in.h: <sys/file.h> header file.
56195         * m4/flock.m4: M4 macros.
56196         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
56197         * modules/flock: flock module.
56198         * modules/flock-tests: flock tests module.
56199         * modules/sys_file: sys/file.h module.
56200         * tests/test-flock.c: test suite for flock.
56201
56202 2008-10-06  Jim Meyering  <meyering@redhat.com>
56203
56204         bootstrap: check for LT_INIT more portably still ;-)
56205         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
56206         Spotted by Bruno Haible.
56207
56208 2008-10-06  Eric Blake  <ebb9@byu.net>
56209
56210         test-signbit: avoid tripping Irix cc bug on -0.0L
56211         * tests/test-signbit.c (minus_zerol): Delete, and replace with
56212         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
56213         entire testsuite consistent and avoids an Irix 6.2 bug.
56214
56215 2008-10-05  Bruno Haible  <bruno@clisp.org>
56216             Jim Meyering  <jim@meyering.net>
56217
56218         Add an option for ignoring EPIPE during close_stdout.
56219         * lib/closeout.h: Include <stdbool.h>.
56220         (close_stdout_set_ignore_EPIPE): New declaration.
56221         * lib/closeout.c: Include <stdbool.h>.
56222         (ignore_EPIPE): New variable.
56223         (close_stdout_set_ignore_EPIPE): New function.
56224         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
56225         * lib/close-stream.c (close_stream): Mention the possible EPIPE
56226         failure.
56227         * modules/closeout (Depends-on): Add stdbool.
56228
56229 2008-10-05  Bruno Haible  <bruno@clisp.org>
56230
56231         * modules/accept: New file.
56232         * modules/bind: New file.
56233         * modules/connect: New file.
56234         * modules/getpeername: New file.
56235         * modules/getsockname: New file.
56236         * modules/getsockopt: New file.
56237         * modules/listen: New file.
56238         * modules/recv: New file.
56239         * modules/recvfrom: New file.
56240         * modules/send: New file.
56241         * modules/sendto: New file.
56242         * modules/setsockopt: New file.
56243         * modules/socket: New file.
56244         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
56245         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
56246         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
56247         the particular module is requested. Add a link warning when the
56248         particular module is not requested.
56249         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
56250         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
56251         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
56252         the particular module is requested.
56253         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
56254         gl_SYS_SOCKET_H_DEFAULTS): New macros.
56255         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
56256         * modules/sys_socket (Depends-on): Add link-warning.
56257         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
56258         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
56259         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
56260         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
56261         GL_LINK_WARNING.
56262         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
56263         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
56264         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
56265         * doc/posix-functions/getpeername.texi: Mention the new module
56266         'getpeername'.
56267         * doc/posix-functions/getsockname.texi: Mention the new module
56268         'getsockname'.
56269         * doc/posix-functions/getsockopt.texi: Mention the new module
56270         'getsockopt'.
56271         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
56272         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
56273         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
56274         * doc/posix-functions/send.texi: Mention the new module 'send'.
56275         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
56276         * doc/posix-functions/setsockopt.texi: Mention the new module
56277         'setsockopt'.
56278         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
56279         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
56280         listen, connect, accept.
56281         * modules/select-tests (Depends-on): Likewise.
56282
56283 2008-10-05  Bruno Haible  <bruno@clisp.org>
56284
56285         * lib/winsock.c (strerror): Remove unused #undef.
56286         (rpl_close): Remove unused local variable.
56287
56288         * modules/sys_socket (Depends-on); Add errno.
56289
56290 2008-10-05  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
56293         (select): Add a link warning when the 'select' module is not used.
56294         * modules/sys_select (Depends-on): Add link-warning.
56295         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
56296         Suggested by Paolo Bonzini.
56297
56298 2008-10-05  Jim Meyering  <meyering@redhat.com>
56299
56300         bootstrap: check for LT_INIT more portably
56301         * build-aux/bootstrap: Avoid using grep -E, since it's not
56302         portable enough.  Suggestion from Bruno Haible.
56303
56304 2008-10-05  Bruno Haible  <bruno@clisp.org>
56305
56306         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
56307         as being fixed by gnulib.
56308
56309 2008-10-05  Bruno Haible  <bruno@clisp.org>
56310
56311         * modules/select-tests: New file, mostly copied from
56312         modules/sys_select-tests.
56313         * tests/test-select.c: New file, mostly copied from
56314         tests/test-sys_select.c.
56315         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
56316         * modules/sys_select-tests (Depends-on): Remove all dependencies.
56317         (Makefile.am): Remove test_sys_select_LDADD.
56318
56319         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
56320         to an undefined symbol, for an error message.
56321         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
56322         (gl_SYS_SELECT_H_DEFAULTS): New macro.
56323         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
56324         winsock-select.c here.
56325         * modules/sys_select (Files): Remove lib/winsock-select.c.
56326         (Depends-on): Remove alloca.
56327         (Makefile.am): Substitute GNULIB_SELECT.
56328         * modules/select: New file.
56329         * doc/posix-functions/select.texi: Update.
56330
56331 2008-10-05  Bruno Haible  <bruno@clisp.org>
56332
56333         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
56334         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
56335         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
56336         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
56337         getdtablesize.
56338         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56339         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56340
56341 2008-10-05  Bruno Haible  <bruno@clisp.org>
56342
56343         * modules/getdtablesize-tests: New file.
56344         * tests/test-getdtablesize.c: New file.
56345
56346         New module 'getdtablesize'.
56347         * lib/unistd.in.h (getdtablesize): New declaration.
56348         * lib/getdtablesize.c: New file.
56349         * m4/getdtablesize.m4: New file.
56350         * modules/getdtablesize: New file.
56351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56352         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
56353         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
56354         HAVE_GETDTABLESIZE.
56355         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
56356
56357 2008-10-05  Bruno Haible  <bruno@clisp.org>
56358
56359         * modules/sched (Makefile.am): Fix typo.
56360         Reported by Simon Josefsson.
56361
56362 2008-10-05  Jim Meyering  <meyering@redhat.com>
56363
56364         bootstrap: check for LT_INIT, too
56365         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
56366         are deprecated.  Suggestion from Ralf Wildenhues.
56367
56368 2008-10-05  Bruno Haible  <bruno@clisp.org>
56369
56370         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
56371         overriding them by ours.
56372         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
56373
56374 2008-10-05  Jim Meyering  <meyering@redhat.com>
56375
56376         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
56377         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
56378         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
56379
56380 2008-10-04  Bruno Haible  <bruno@clisp.org>
56381
56382         * modules/dup2 (License): Change to LGPLv2+.
56383         * modules/sleep (License): Likewise.
56384         * modules/perror (License): Likewise.
56385         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
56386         Blake.
56387         * modules/signal (License): Likewise.
56388         * modules/sigprocmask (License): Likewise.
56389         * modules/raise (License): Change to LGPLv2+, with approval by Jim
56390         Meyering.
56391
56392 2008-10-04  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
56395         Reported by Rainer Tammer <tammer@tammer.net>.
56396
56397 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
56398             Bruno Haible  <bruno@clisp.org>
56399
56400         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
56401         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
56402         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
56403
56404 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
56405
56406         filevercmp: new module
56407         * lib/filevercmp.h: New function filevercmp comparing version strings.
56408         * lib/filevercmp.c: Implementation of filevercmp function.
56409         * modules/filevercmp: Module metadata.
56410         * tests/test-filevercmp.c: Unit test for new module.
56411         * modules/filevercmp-tests: Unit test metadata.
56412         * MODULES.html.sh: Add filevercmp module.
56413
56414 2008-10-03  Bruno Haible  <bruno@clisp.org>
56415
56416         * lib/c-ctype.h: Add comment.
56417         Reported by Jim Meyering.
56418
56419 2008-10-02  Bruno Haible  <bruno@clisp.org>
56420
56421         * modules/posix_spawn-internal (Depends-on): Add 'open'.
56422
56423 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56424
56425         * build-aux/bootstrap: Allow renaming bootstrap, and change the
56426         name of bootstrap.conf accordingly.
56427
56428 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56429
56430         * build-aux/bootstrap: Install git-merge-changelog configuration
56431         items into .gitconfig if needed.
56432
56433 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
56434
56435         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
56436         git repository, and initialize/update it accordingly.
56437
56438 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
56439
56440         * modules/fsync-tests: New file.
56441         * tests/test-fsync.c: New file.
56442
56443         New module 'fsync'.
56444         * lib/fsync.c: New file.
56445         * m4/fsync.m4: New file.
56446         * modules/fsync: New file.
56447         * lib/unistd.in.h (fsync): New declaration.
56448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
56449         GNULIB_FSYNC and HAVE_FSYNC.
56450         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
56451         * MODULES.html.sh (posix_functions): Add fsync.
56452         * doc/posix-functions/fsync.texi: Mention the new module.
56453
56454 2008-10-02  Jim Meyering  <meyering@redhat.com>
56455
56456         fts.c: sync with similar code from coreutils' remove.c
56457         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
56458         Guard also with "#if defined __linux__", since for now at least,
56459         this code is Linux-kernel-specific.
56460
56461 2008-10-02  Jim Meyering  <meyering@redhat.com>
56462
56463         fts: bug fixes
56464         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
56465         Include <sys/vfs.h>, not <sys/statfs.h>.
56466
56467         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
56468         Include <sys/vfs.h>, not <sys/statfs.h>.
56469
56470 2008-10-01  Bruno Haible  <bruno@clisp.org>
56471
56472         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
56473         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
56474         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
56475         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
56476         * doc/posix-functions/posix_spawnp.texi: Likewise.
56477         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
56478         whether posix_spawn actually works.
56479         * m4/pipe.m4 (gl_PIPE): Likewise.
56480         * modules/execute (Files): Add m4/posix_spawn.m4.
56481         * modules/pipe (Files): Add m4/posix_spawn.m4.
56482         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
56483
56484 2008-10-01  Jim Meyering  <meyering@redhat.com>
56485
56486         remove trailing spaces
56487         * NEWS: Likewise.
56488         * lib/poll.c (poll): Likewise.
56489         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
56490         * lib/winsock.c (rpl_close): Likewise.
56491         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
56492         * modules/yield: Likewise.
56493         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
56494         * tests/test-sys_select.c (connect_to_socket): Likewise.
56495
56496         fts.c: adjust a new interface to be more generally useful
56497         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
56498         (fts_build): Adjust caller.
56499
56500 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56501
56502         * modules/cond-tests: New file.
56503         * tests/test-cond.c: New file.
56504
56505 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56506             Bruno Haible  <bruno@clisp.org>
56507
56508         * modules/cond (Dependencies): Add errno, time.
56509         * lib/glthread/cond.h: Include <time.h>.
56510         (gl_cond_define, gl_cond_define_initialized): Use the same definition
56511         across platforms.
56512
56513 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56514             Bruno Haible  <bruno@clisp.org>
56515
56516         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
56517
56518 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56519             Bruno Haible  <bruno@clisp.org>
56520
56521         * modules/tls-tests (Depends-on): Add thread, yield.
56522         (configure.ac): Remove all checks.
56523         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
56524         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56525         gl_thread_self): Remove definitions. Include glthread/thread.h and
56526         glthread/yield.h instead.
56527         (test_tls): Pass an additional NULL argument to gl_thread_join.
56528
56529 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56530             Bruno Haible  <bruno@clisp.org>
56531
56532         * modules/lock-tests (Depends-on): Add thread, yield.
56533         (configure.ac): Remove all checks.
56534         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
56535         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
56536         gl_thread_self): Remove definitions. Include glthread/thread.h and
56537         glthread/yield.h instead.
56538         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
56539         additional NULL argument to gl_thread_join.
56540
56541 2008-09-30  Bruno Haible  <bruno@clisp.org>
56542
56543         Fix the Win32 implementation of the 'thread' module.
56544         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
56545         pointer type.
56546         (gl_thread_self): Invoke gl_thread_self_func.
56547         (gl_thread_self_func): New declaration.
56548         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
56549         (do_init_self_key, init_self_key): New functions.
56550         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
56551         Remove some fields.
56552         (running_threads, running_lock): Remove variables.
56553         (get_current_thread_handle): New function.
56554         (gl_thread_self_func, wrapper_func, glthread_create_func,
56555         glthread_join_func, gl_thread_exit_func): Largely rewritten and
56556         simplified.
56557
56558 2008-09-30  Bruno Haible  <bruno@clisp.org>
56559
56560         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
56561         files.
56562
56563 2008-09-30  Jim Meyering  <meyering@redhat.com>
56564
56565         fts.m4: correct the test for statfs.f_type
56566         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
56567         when checking for statfs.f_type.
56568
56569 2008-09-15  Simon Josefsson  <simon@josefsson.org>
56570
56571         tests: avoid some compiler warnings
56572         * tests/test-memchr.c (main): Pass NULL indirectly.
56573         * tests/test-getdate.c (main): Remove unused variable 'ret'.
56574
56575 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
56576
56577         getdate.y: disallow countable dayshifts like "4 yesterday ago"
56578         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
56579         exactly specified dayshifts.
56580         (dayshift): New rule.
56581         (rel): Add dayshift.
56582         (relative_time_table) [tomorrow, yesterday, today, now]:
56583         Use tDAY_SHIFT in place of tDAY_UNIT.
56584         * tests/test-getdate.c: Add tests for now-disallowed countable
56585         dayshifts, e.g., "4 yesterday ago".
56586
56587 2008-09-29  Bruno Haible  <bruno@clisp.org>
56588
56589         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
56590         * tests/test-posix_spawn1.in.sh: Renamed from
56591         tests/test-posix_spawn.in.sh.
56592         * tests/test-posix_spawn2.c: New file.
56593         * tests/test-posix_spawn2.in.sh: New file.
56594         * modules/posix_spawnp-tests (Files): Update.
56595         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
56596
56597 2008-09-29  Bruno Haible  <bruno@clisp.org>
56598
56599         Propagate effects of putenv/setenv/unsetenv to child processes.
56600         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
56601         * lib/pipe.c (create_pipe): Likewise.
56602
56603 2008-09-29  Bruno Haible  <bruno@clisp.org>
56604
56605         Enable use of shell scripts as executables in mingw.
56606         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
56607         run the program as a shell script.
56608         * lib/pipe.c (create_pipe): Likewise.
56609         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
56610         resulting array.
56611
56612 2008-09-29  Eric Blake  <ebb9@byu.net>
56613
56614         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
56615
56616 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
56617
56618         * doc/posix-functions/accept.texi: Update mingw problems.
56619         * doc/posix-functions/bind.texi: Update mingw problems.
56620         * doc/posix-functions/close.texi: Update mingw problems.
56621         * doc/posix-functions/connect.texi: Update mingw problems.
56622         * doc/posix-functions/getpeername.texi: Update mingw problems.
56623         * doc/posix-functions/getsockname.texi: Update mingw problems.
56624         * doc/posix-functions/getsockopt.texi: Update mingw problems.
56625         * doc/posix-functions/ioctl.texi: Update mingw problems.
56626         * doc/posix-functions/listen.texi: Update mingw problems.
56627         * doc/posix-functions/recv.texi: Update mingw problems.
56628         * doc/posix-functions/recvfrom.texi: Update mingw problems.
56629         * doc/posix-functions/select.texi: Update mingw problems.
56630         * doc/posix-functions/send.texi: Update mingw problems.
56631         * doc/posix-functions/sendto.texi: Update mingw problems.
56632         * doc/posix-functions/setsockopt.texi: Update mingw problems.
56633         * doc/posix-functions/socket.texi: Update mingw problems.
56634
56635 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
56636             Bruno Haible  <bruno@clisp.org>
56637
56638         * lib/sys_select.in.h: Include sys/time.h.
56639         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
56640         * modules/sys_select: Depend on sys_time.
56641         * tests/test-sys_select.c: Test that sys/select.h defines struct
56642         timeval fully.
56643
56644 2008-09-29  Bruno Haible  <bruno@clisp.org>
56645
56646         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
56647         * lib/sys_select.in.h: Likewise.
56648
56649 2008-09-29  Bruno Haible  <bruno@clisp.org>
56650
56651         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
56652
56653 2008-09-29  Bruno Haible  <bruno@clisp.org>
56654
56655         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
56656         Set LIBSOCKET instead of augmenting LIBS.
56657         * modules/sockets (Link): New section.
56658         * modules/sockets-tests (test_sockets_LDADD): New variable.
56659         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
56660         * modules/poll-tests (test_poll_LDADD): New variable.
56661         * NEWS: Document the change.
56662
56663 2008-09-29  Bruno Haible  <bruno@clisp.org>
56664
56665         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
56666         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
56667         ARPA_INET_H directly.
56668         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56669
56670 2008-09-28  Bruno Haible  <bruno@clisp.org>
56671
56672         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
56673         from gl_HEADER_SYS_SOCKET.
56674         (gl_HEADER_SYS_SOCKET): Invoke it.
56675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56676
56677 2008-09-28  Bruno Haible  <bruno@clisp.org>
56678
56679         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
56680         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
56681         Needed on OSF/1 4.0.
56682
56683 2008-09-28  Bruno Haible  <bruno@clisp.org>
56684
56685         Override open more carefully.
56686         * lib/open.c (orig_open): New function.
56687         (rpl_open): Use orig_open instead of open.
56688         * lib/fcntl.in.h: Add special invocation convention.
56689         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
56690         (gl_FUNC_OPEN): Invoke it.
56691
56692         Override freopen more carefully.
56693         * lib/freopen.c (orig_freopen): New function.
56694         (rpl_freopen): Use orig_freopen instead of freopen.
56695         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
56696         (gl_FUNC_FREOPEN): Invoke it.
56697
56698         Override fopen more carefully.
56699         * lib/fopen.c (orig_fopen): New function.
56700         (rpl_fopen): Use orig_fopen instead of fopen.
56701         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
56702         (gl_FUNC_FOPEN): Invoke it.
56703         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
56704
56705 2008-09-28  Bruno Haible  <bruno@clisp.org>
56706
56707         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
56708         SIGPIPE.
56709
56710 2008-09-28  Bruno Haible  <bruno@clisp.org>
56711
56712         * tests/test-sigaction.c (handler, main): Disable the check whether
56713         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
56714         glibc systems with LinuxThreads.
56715
56716 2008-09-28  Bruno Haible  <bruno@clisp.org>
56717
56718         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
56719
56720         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
56721         with AIX xlc.
56722         * lib/fcntl.in.h (open): Likewise.
56723         Reported by Rainer Tammer <tammer@tammer.net>.
56724
56725 2008-09-28  Bruno Haible  <bruno@clisp.org>
56726
56727         * modules/posix_spawnp-tests: New file.
56728         * tests/test-posix_spawn.c: New file.
56729         * tests/test-posix_spawn.in.sh: New file.
56730
56731         New module 'posix_spawnp'.
56732         * modules/posix_spawnp: New file.
56733         * lib/spawnp.c: New file, from GNU libc with modifications.
56734         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
56735
56736         New module 'posix_spawn'.
56737         * modules/posix_spawn: New file.
56738         * lib/spawn.c: New file, from GNU libc with modifications.
56739         * doc/posix-functions/posix_spawn.texi: Mention the new module.
56740
56741         New module 'posix_spawnattr_destroy'.
56742         * modules/posix_spawnattr_destroy: New file.
56743         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
56744         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
56745         module.
56746
56747         New module 'posix_spawnattr_setsigmask'.
56748         * modules/posix_spawnattr_setsigmask: New file.
56749         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
56750         modifications.
56751         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
56752         new module.
56753
56754         New module 'posix_spawnattr_getsigmask'.
56755         * modules/posix_spawnattr_getsigmask: New file.
56756         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
56757         modifications.
56758         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
56759         new module.
56760
56761         New module 'posix_spawnattr_setsigdefault'.
56762         * modules/posix_spawnattr_setsigdefault: New file.
56763         * lib/spawnattr_setdefault.c: New file, from GNU libc with
56764         modifications.
56765         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
56766         new module.
56767
56768         New module 'posix_spawnattr_getsigdefault'.
56769         * modules/posix_spawnattr_getsigdefault: New file.
56770         * lib/spawnattr_getdefault.c: New file, from GNU libc with
56771         modifications.
56772         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
56773         new module.
56774
56775         New module 'posix_spawnattr_setschedpolicy'.
56776         * modules/posix_spawnattr_setschedpolicy: New file.
56777         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
56778         modifications.
56779         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
56780         new module.
56781
56782         New module 'posix_spawnattr_getschedpolicy'.
56783         * modules/posix_spawnattr_getschedpolicy: New file.
56784         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
56785         modifications.
56786         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
56787         new module.
56788
56789         New module 'posix_spawnattr_setschedparam'.
56790         * modules/posix_spawnattr_setschedparam: New file.
56791         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
56792         modifications.
56793         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
56794         new module.
56795
56796         New module 'posix_spawnattr_getschedparam'.
56797         * modules/posix_spawnattr_getschedparam: New file.
56798         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
56799         modifications.
56800         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
56801         new module.
56802
56803         New module 'posix_spawnattr_setpgroup'.
56804         * modules/posix_spawnattr_setpgroup: New file.
56805         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
56806         modifications.
56807         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
56808         module.
56809
56810         New module 'posix_spawnattr_getpgroup'.
56811         * modules/posix_spawnattr_getpgroup: New file.
56812         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
56813         modifications.
56814         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
56815         module.
56816
56817         New module 'posix_spawnattr_setflags'.
56818         * modules/posix_spawnattr_setflags: New file.
56819         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
56820         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
56821         module.
56822
56823         New module 'posix_spawnattr_getflags'.
56824         * modules/posix_spawnattr_getflags: New file.
56825         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
56826         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
56827         module.
56828
56829         New module 'posix_spawnattr_init'.
56830         * modules/posix_spawnattr_init: New file.
56831         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56832         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56833         module.
56834
56835         New module 'posix_spawn_file_actions_destroy'.
56836         * modules/posix_spawn_file_actions_destroy: New file.
56837         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56838         modifications.
56839         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56840         the new module.
56841
56842         New module 'posix_spawn_file_actions_addopen'.
56843         * modules/posix_spawn_file_actions_addopen: New file.
56844         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56845         modifications.
56846         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56847         the new module.
56848
56849         New module 'posix_spawn_file_actions_adddup2'.
56850         * modules/posix_spawn_file_actions_adddup2: New file.
56851         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56852         modifications.
56853         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56854         the new module.
56855
56856         New module 'posix_spawn_file_actions_addclose'.
56857         * modules/posix_spawn_file_actions_addclose: New file.
56858         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56859         modifications.
56860         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56861         the new module.
56862
56863         New module 'posix_spawn_file_actions_init'.
56864         * modules/posix_spawn_file_actions_init: New file.
56865         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56866         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56867         new module.
56868
56869         New module 'posix_spawn-internal'.
56870         * modules/posix_spawn-internal: New file.
56871         * lib/spawn_int.h: New file, from GNU libc with modifications.
56872         * lib/spawni.c: New file, from GNU libc with modifications.
56873         * m4/posix_spawn.m4: New file.
56874
56875         New module 'spawn'.
56876         * modules/spawn: New file.
56877         * lib/spawn.in.h: New file, from GNU libc with modifications.
56878         * m4/spawn_h.m4: New file.
56879         * doc/posix-headers/spawn.texi: Mention the new module.
56880
56881 2008-09-28  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/sched-tests: New file.
56884         * tests/test-sched.c: New file.
56885
56886         New module 'sched'.
56887         * modules/sched: New file.
56888         * lib/sched.in.h: New file.
56889         * m4/sched_h.m4: New file.
56890         * doc/posix-headers/sched.texi: Mention the new module.
56891
56892 2008-09-27  Eric Blake  <ebb9@byu.net>
56893
56894         Fix previous patch, and tweak references to $0.
56895         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56896         (func_version, func_gnulib_dir): Don't call this program
56897         gnulib-tool.
56898         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56899         with using $0 in function.
56900         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56901         (func_fatal_error): Reuse the name the user invoked us with.
56902
56903 2008-09-27  Bruno Haible  <bruno@clisp.org>
56904
56905         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56906         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56907         (gl_ICONV_H): Not here.
56908         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56909         instead of assigning ICONV_H directly.
56910
56911         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56912         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56913         WCHAR_H directly.
56914
56915 2008-09-27  Bruno Haible  <bruno@clisp.org>
56916
56917         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56918         * modules/arpa_inet (Depends-on): Add link-warning.
56919         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56920         * modules/unistd (Makefile.am): Likewise.
56921
56922 2008-09-26  Bruno Haible  <bruno@clisp.org>
56923
56924         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56925         variables.
56926         (func_version): Essentially copied from gnulib-tool.
56927         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56928         func_readlink): Copied from gnulib-tool.
56929
56930 2008-09-26  Bruno Haible  <bruno@clisp.org>
56931
56932         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56933         invoking git-version-gen.
56934
56935 2008-09-26  Bruno Haible  <bruno@clisp.org>
56936
56937         * posix-modules: Update to directory names changed on 2008-01-19.
56938         Remove commas in output before splitting into words. No more need to
56939         avoid 'ftruncate' since 2007-02-19.
56940
56941 2008-09-26  Bruno Haible  <bruno@clisp.org>
56942
56943         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56944
56945 2008-09-26  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56948         * modules/fwriteerror (Depends-on): Add errno.
56949
56950 2008-09-26  Bruno Haible  <bruno@clisp.org>
56951
56952         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56953         * tests/test-vc-list-files-cvs.sh: Likewise.
56954
56955 2008-09-26  Bruno Haible  <bruno@clisp.org>
56956
56957         * doc/posix-headers/sys_resource.texi: Reorder items.
56958
56959 2008-09-26  Jim Meyering  <meyering@redhat.com>
56960
56961         fts: tweak inode comparison function
56962         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56963         inode numbers, as documented.
56964
56965         fts: sort dirent entries on inode number before traversing
56966         This avoids a quadratic, seek-related performance penalty when
56967         operating on a directory containing many entries (measurable at 10k;
56968         3.5 hours at 2 million entries with a cold cache) on certain types
56969         of file systems, including ext3 and ext4, but not tmpfs.
56970         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56971         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56972         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56973         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56974         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56975         (fts_build): Set the stat.st_ino member from D_INO.
56976         If it is likely to be useful, sort dirent entries on inode number.
56977
56978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56979         and the struct statfs.f_type member.
56980         * modules/fts (Depends-on): Add d-ino.
56981
56982 2008-09-26  Bruno Haible  <bruno@clisp.org>
56983
56984         * modules/sigpipe-die (Depends-on): Add sigpipe.
56985
56986         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56987         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56988         and GNULIB_STDIO_H_SIGPIPE are set.
56989         * lib/stdio-write.c: New file.
56990         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56991         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56992         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56993         REPLACE_STDIO_WRITE_FUNCS.
56994         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56995         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56996         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56997         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56998         * modules/stdio (Files): Add lib/stdio-write.c.
56999         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57000         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57001         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57002         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57003         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57004         REPLACE_FPRINTF_POSIX.
57005         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57006         REPLACE_PRINTF_POSIX.
57007         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57008         REPLACE_VFPRINTF_POSIX.
57009         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57010         REPLACE_VPRINTF_POSIX.
57011         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57012         SIGPIPE issue.
57013         * doc/posix-functions/fputc.texi: Likewise.
57014         * doc/posix-functions/fputs.texi: Likewise.
57015         * doc/posix-functions/fwrite.texi: Likewise.
57016         * doc/posix-functions/printf.texi: Likewise.
57017         * doc/posix-functions/putc.texi: Likewise.
57018         * doc/posix-functions/putchar.texi: Likewise.
57019         * doc/posix-functions/puts.texi: Likewise.
57020         * doc/posix-functions/vfprintf.texi: Likewise.
57021         * doc/posix-functions/vprintf.texi: Likewise.
57022
57023         * modules/safe-write (Depends-on): Add write.
57024
57025         * modules/sigpipe-tests: New file.
57026         * tests/test-sigpipe.c: New file.
57027         * tests/test-sigpipe.sh: New file.
57028
57029         * modules/write: New file.
57030         * lib/unistd.in.h: Include <sys/types.h>.
57031         (write): New declaration.
57032         * lib/write.c: New file.
57033         * m4/write.m4: New file.
57034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57035         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57036         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57037         GNULIB_WRITE, REPLACE_WRITE.
57038         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57039         and the SIGPIPE issue.
57040
57041         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57042         (raise): New declaration.
57043         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57044         (ext_signal): New function.
57045         (rpl_raise): New function.
57046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57047         GNULIB_SIGNAL_H_SIGPIPE.
57048         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57049         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57050
57051         * modules/sigpipe: New file.
57052         * m4/sigpipe.m4: New file.
57053
57054 2008-09-25  Derek Price  <derek@ximbiot.com>
57055             Bruno Haible  <bruno@clisp.org>
57056
57057         * gnulib-tool (func_import): Report all license incompatibilities, not
57058         just the first one.
57059
57060 2008-09-25  Bruno Haible  <bruno@clisp.org>
57061
57062         * gnulib-tool (func_import): When computing the edits, consider not
57063         only the Makefile.ams that exist but also those that will be generated.
57064
57065 2008-09-25  Simon Josefsson  <simon@josefsson.org>
57066
57067         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
57068         fixes gnulib-tool --test warning about duplicate dependency.
57069
57070 2008-09-25  Bruno Haible  <bruno@clisp.org>
57071
57072         * gnulib-tool: Don't ask the user to perform edits in the generated
57073         Makefile.ams.
57074         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
57075         apply to the Makefile.am being generated.
57076         (func_emit_tests_Makefile_am): Execute edits that apply to the
57077         Makefile.am being generated.
57078         (func_import): Setup list of Makefile.am edits before emitting the
57079         Makefile.ams, not at the end.
57080         (func_create_testdir): Update.
57081         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57082
57083 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57084
57085         * gnulib-tool (func_import): Store the --tests-base option in the
57086         comment in gnulib-cache.m4.
57087
57088 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
57089
57090         * NEWS: Document increased portability that sys_select now provides.
57091
57092         * lib/sys_select.in.h: Install select wrapper.
57093         * lib/sys_socket.in.h: Use more descriptive name when there is no
57094         select wrapper.
57095         * lib/winsock-select.c: New.
57096         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
57097         Require gl_HEADER_SYS_SOCKET.
57098         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
57099         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
57100         * tests/test-sys_select.c: Add functional tests.
57101
57102 2008-09-24  Eric Blake  <ebb9@byu.net>
57103
57104         open, fopen: close fd leak in last patch
57105         * lib/open.c (rpl_open): Close fd before returning error.
57106         * lib/fopen.c (rpl_fopen): Close fd before returning error.
57107         * doc/posix-functions/open.texi (open): Document that Irix also
57108         has the bug.
57109         * doc/posix-functions/fopen.texi (fopen): Likewise.
57110         Reported by Paolo Bonzini.
57111
57112 2008-09-24  Bruno Haible  <bruno@clisp.org>
57113
57114         Ensure that a filename ending in a slash cannot be used to access a
57115         non-directory.
57116         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
57117         to check whether it's really a directory.
57118         * lib/fopen.c: Include fcntl.h, unistd.h.
57119         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
57120         and fdopen().
57121         * modules/fopen (Depends-on): Add unistd.
57122         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
57123         * tests/test-fopen.c (main): Likewise.
57124         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
57125         * doc/posix-functions/fopen.texi: Likewise.
57126         Reported by Eric Blake.
57127
57128 2008-09-23  Eric Blake  <ebb9@byu.net>
57129
57130         c-stack: avoid compiler optimizations when provoking overflow
57131         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
57132         recursion harder to optimize, to ensure a stack overflow occurs.
57133         * tests/test-c-stack.c (recurse): Likewise.
57134         Borrowed from libsigsegv.
57135
57136         c-stack: work around Irix sigaltstack bug
57137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
57138         whether sigaltstack uses wrong end of stack_t (copied in part from
57139         libsigsegv).
57140         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
57141         Irix bug, without requiring an over-allocation.
57142         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
57143         bug.
57144
57145         fopen: document mingw bug on directories
57146         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
57147         not allowing a stream visiting a directory, even though reading
57148         from such a stream is not portable.
57149
57150 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57151
57152         * lib/poll.c: Rewrite.
57153         * modules/poll: Depend on alloca.
57154
57155 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57156
57157         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
57158         instead define prototypes for a full set of wrappers.  Ensure
57159         that Cygwin does not use the compatibility code, which is only
57160         for MinGW.
57161         * lib/winsock.c: New.
57162         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
57163         * modules/sys_socket: Add lib/winsock.c.
57164
57165         * modules/poll-tests: Add errno and perror.
57166         * tests/test-poll.c: Use ioctl, not ioctlsocket.
57167
57168 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
57169
57170         * tests/test-poll.c: Downgrade minimum needed Winsock version.
57171
57172 2008-09-23  Bruno Haible  <bruno@clisp.org>
57173
57174         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
57175         * doc/glibc-functions/*: Likewise.
57176
57177 2008-09-23  Simon Josefsson  <simon@josefsson.org>
57178
57179         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
57180         success.
57181
57182 2008-09-22  Eric Blake  <ebb9@byu.net>
57183             Bruno Haible  <bruno@clisp.org>
57184
57185         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
57186         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
57187         supply %A but mishandle pseudo-NaN.
57188         Reported by Simon Josefsson.
57189
57190 2008-09-21  Bruno Haible  <bruno@clisp.org>
57191
57192         * tests/test-lock.c (main): Tweak skip message.
57193         * tests/test-tls.c (main): Likewise.
57194
57195 2008-09-21  Bruno Haible  <bruno@clisp.org>
57196
57197         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
57198         whether 'struct sigaction' has sa_sigaction here...
57199         (gl_PREREQ_SIG_HANDLER_H): ... not here.
57200         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
57201
57202 2008-09-21  Bruno Haible  <bruno@clisp.org>
57203
57204         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
57205         section.
57206         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
57207         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
57208         the new section.
57209         (Support for obsolete systems lacking POSIX:2001): New section.
57210         (String handling <string.h>): Move strdup to the new section.
57211         Suggested by Simon Josefsson and Paolo Bonzini.
57212
57213 2008-09-21  Bruno Haible  <bruno@clisp.org>
57214
57215         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
57216         exponents in %e and %g results on 'long double'. Needed for mingw's
57217         improved *printf functions.
57218         * tests/test-vasprintf-posix.c (test_function): Likewise.
57219         * tests/test-snprintf-posix.h (test_function): Likewise.
57220         * tests/test-sprintf-posix.h (test_function): Likewise.
57221         Reported by Eric Blake.
57222
57223 2008-09-21  Bruno Haible  <bruno@clisp.org>
57224
57225         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
57226         * tests/test-sprintf-posix.h (test_function): Likewise.
57227
57228 2008-09-21  Bruno Haible  <bruno@clisp.org>
57229
57230         * modules/getpass (Depends-on): Add strdup-posix.
57231
57232         New module 'strdup-posix'.
57233         * modules/strdup-posix: New file.
57234         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
57235         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
57236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57237         REPLACE_STRDUP.
57238         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
57239         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
57240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57241         strdup-posix.
57242
57243         * modules/strdup (Depends-on): Remove malloc-posix.
57244
57245 2008-09-20  Bruno Haible  <bruno@clisp.org>
57246
57247         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
57248         Wildenhues.
57249
57250 2008-09-20  Bruno Haible  <bruno@clisp.org>
57251
57252         Ensure that wint_t gets defined on IRIX 5.3.
57253         * lib/wchar.in.h (wint_t): Define if not defined by the system.
57254         * lib/wctype.in.h (wint_t): Likewise.
57255         (__wctype_wint_t): Remove type.
57256         (isw*): Use wint_t instead of __wctype_wint_t.
57257         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
57258         * modules/wchar (Files): Add m4/wint_t.m4.
57259         (Makefile.am): Substitute HAVE_WINT_T.
57260         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
57261         * tests/test-wctype.c: Check that wint_t is defined.
57262         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
57263         * doc/posix-headers/wctype.texi: Likewise.
57264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57265
57266 2008-09-18  Bruno Haible  <bruno@clisp.org>
57267
57268         * gnulib-tool (func_exit): Update comment.
57269
57270 2008-09-18  Simon Josefsson  <simon@josefsson.org>
57271
57272         * modules/getaddrinfo (Depends-on): Remove strdup, this module
57273         assumes strdup exists and does not depend on strdup to return
57274         ENOMEM on out of memory conditions.
57275
57276 2008-09-18  Bruno Haible  <bruno@clisp.org>
57277
57278         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
57279         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
57280         digits for the exponent.
57281
57282 2008-09-18  Jim Meyering  <meyering@redhat.com>
57283             Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/vasnprintf.c (decimal_point_char): Define also if
57286         NEED_PRINTF_INFINITE_LONG_DOUBLE.
57287
57288 2008-09-16  Bruno Haible  <bruno@clisp.org>
57289         and Eric Blake  <ebb9@byu.net>
57290
57291         vasnprintf: support Irix 5.3
57292         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
57293         that mishandle long double infinity.
57294         Reported by Tom G. Christensen.
57295
57296 2008-09-16  Bruno Haible  <bruno@clisp.org>
57297
57298         * doc/glibc-functions/scandir.texi: Mention the function is missing on
57299         Solaris 9.
57300         * doc/glibc-functions/alphasort.texi: Likewise.
57301         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
57302
57303 2008-09-16  Jim Meyering  <meyering@redhat.com>
57304
57305         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
57306         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
57307         a umask modification leak out of a subshell.  Otherwise, the
57308         opensolaris /bin/sh would be accepted and thus cause unwarranted
57309         failures in the coreutils test suite.
57310
57311 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
57312
57313         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
57314         to succeed.
57315
57316 2008-09-16  Jim Meyering  <meyering@redhat.com>
57317
57318         avoid spurious test failure when library is built without ACL support
57319         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
57320         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
57321         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
57322         * tests/test-copy-acl.sh: Likewise.
57323
57324 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57325
57326         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
57327         based on character occurrence counts.
57328
57329 2008-09-15  Eric Blake  <ebb9@byu.net>
57330
57331         tests: avoid some compiler warnings
57332         * tests/test-memchr.c (main): Pass NULL indirectly.
57333         * tests/test-closein.c (main): Avoid unused variable.
57334
57335 2008-09-15  Bruno Haible  <bruno@clisp.org>
57336
57337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
57338         are missing on OpenBSD 4.0 individually.
57339         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57340
57341 2008-09-15  Bruno Haible  <bruno@clisp.org>
57342
57343         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
57344         * doc/posix-functions/strerror.texi: Mention also Cygwin.
57345         * doc/posix-functions/perror.texi: Likewise.
57346         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
57347         is missing.
57348         Reported by Eric Blake.
57349
57350         * lib/errno.in.h: Use replacement values >= 2000.
57351         Reported by Eric Blake.
57352
57353 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57354
57355         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
57356         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
57357         limit.
57358         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
57359         compareseq was aborted.
57360
57361 2008-09-14  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
57364         yvec_edit_count.
57365         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
57366         (fstrcmp_bounded): Simplify result computation accordingly.
57367
57368 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57369
57370         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
57371         (fstrcmp): Define in terms of fstrcmp_bounded.
57372         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
57373         lower_bound argument.
57374         Return quickly if the result is certainly < lower_bound.
57375         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
57376
57377 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57378
57379         * lib/diffseq.h (EARLY_ABORT): New macro.
57380         (compareseq): Change return type to bool. Return true when EARLY_ABORT
57381         evaluates to true.
57382
57383 2008-09-14  Bruno Haible  <bruno@clisp.org>
57384
57385         * modules/perror-tests: New file.
57386         * tests/test-perror.sh: New file.
57387         * tests/test-perror.c: New file.
57388
57389         New module 'perror'.
57390         * lib/stdio.in.h (perror): New declaration.
57391         * lib/perror.c: New file.
57392         * m4/perror.m4: New file.
57393         * modules/perror: New file.
57394         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
57395         * doc/posix-functions/perror.texi: Mention the perror module.
57396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
57397         REPLACE_PERROR.
57398         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
57399         REPLACE_PERROR.
57400
57401 2008-09-14  Bruno Haible  <bruno@clisp.org>
57402
57403         * modules/stdio (Makefile.am): Reorder to match the order in
57404         lib/stdio.in.h.
57405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57406
57407 2008-09-13  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
57410
57411 2008-09-13  Bruno Haible  <bruno@clisp.org>
57412
57413         Extend strerror to cover the added errno values.
57414         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
57415         (rpl_strerror): Provide error messages for the added errno values and
57416         for the WSA* values.
57417         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
57418         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
57419         strerror.
57420         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
57421         * modules/strerror (Depends-on): Add errno.
57422         * doc/posix-functions/strerror.texi: Document the change.
57423         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
57424         and EOVERFLOW.
57425
57426 2008-09-13  Bruno Haible  <bruno@clisp.org>
57427
57428         * modules/EOVERFLOW: Remove file.
57429         * m4/eoverflow.m4: Remove file.
57430         * modules/EOVERFLOW-tests: Remove file.
57431         * tests/test-EOVERFLOW.c: Remove file.
57432         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
57433         * modules/ftell (Depends-on): Likewise.
57434         * modules/getdelim (Depends-on): Likewise.
57435         * modules/getugroups (Depends-on): Likewise.
57436         * modules/poll (Depends-on): Likewise.
57437         * modules/snprintf (Depends-on): Likewise.
57438         * modules/sprintf-posix (Depends-on): Likewise.
57439         * modules/vasnprintf (Depends-on): Likewise.
57440         * modules/vasprintf (Depends-on): Likewise.
57441         * modules/vfprintf-posix (Depends-on): Likewise.
57442         * modules/vsnprintf (Depends-on): Likewise.
57443         * modules/vsprintf-posix (Depends-on): Likewise.
57444         * modules/xvasprintf (Depends-on): Likewise.
57445         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57446         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
57447         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
57448         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
57449         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57450         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
57451         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
57452         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
57453         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57454         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
57455         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
57456         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
57457         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57458         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
57459         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
57460         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
57461         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57462         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
57463         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
57464         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
57465         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57466         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
57467         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
57468         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
57469         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
57470         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57471         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
57472         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
57473         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
57474         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
57475         * MODULES.html.sh: Remove EOVERFLOW.
57476         * NEWS: Mention the change.
57477
57478 2008-09-13  Bruno Haible  <bruno@clisp.org>
57479
57480         * modules/errno-tests: New file.
57481         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
57482
57483         * lib/errno.in.h: New file.
57484         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
57485         * modules/errno: New file.
57486         * doc/posix-headers/errno.texi: Update documentation.
57487         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
57488
57489 2008-09-13  Bruno Haible  <bruno@clisp.org>
57490
57491         * tests/test-poll.c: Use #if for native Windows, rather than testing
57492         __MSVCRT__.
57493
57494 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57495             Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/glob.c: Don't include <pwd.h> on native Windows.
57498         (WINDOWS32): New macro.
57499         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
57500
57501 2008-09-13  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
57504         (ETIMEDOUT): Remove macro.
57505         (glthread_cond_timedwait_multithreaded): New declaration.
57506         (glthread_cond_timedwait): Use it.
57507         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
57508         (glthread_cond_timedwait_multithreaded): New function.
57509
57510 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57511
57512         * modules/poll-tests: Do not check for io.h.
57513         * tests/test-poll.c: Check for __MSVCRT__ instead.
57514
57515 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57516
57517         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
57518         * modules/poll-tests: Add inet_pton, stdbool, sockets.
57519         * tests/test-poll.c: Use them.  Use _pipe on Windows.
57520
57521 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
57522
57523         * modules/poll-tests: New.
57524         * tests/test-poll.c: New.
57525
57526 2008-09-12  Eric Blake  <ebb9@byu.net>
57527
57528         frexp: test for NetBSD failure on -0.0
57529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
57530         not all, bugs from NetBSD 3.0 have been fixed.
57531         * doc/posix-functions/frexp.texi (frexp): Document bug.
57532         Reported by Thomas Klausner.
57533
57534         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
57535         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
57536         literal -0.0.
57537         Reported by Jonathan C. Patschke <jp@centtech.com>.
57538
57539 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57540
57541         * lib/glthread/cond.h: Use dummy implementation also if
57542         USE_WIN32_THREADS.
57543
57544 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57545
57546         * modules/fnmatch-posix (License): Change to LGPLv2+.
57547         * modules/fnmatch-gnu (License): Likewise.
57548
57549 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57550
57551         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
57552
57553 2008-09-11  Jim Meyering  <meyering@redhat.com>
57554
57555         * users.txt: Add gtk-vnc.
57556
57557 2008-09-08  Simon Josefsson  <simon@josefsson.org>
57558
57559         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
57560         rotate amounts.
57561
57562         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
57563         required for 16-bit and 8-bit rotates.
57564         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
57565         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
57566         UINT8_MAX instead of hard-coded constants.
57567         Suggested by Paul Eggert.
57568
57569 2008-09-07  Bruno Haible  <bruno@clisp.org>
57570
57571         * tests/test-striconveh.c (main): Check behaviour when converting from
57572         UTF-7.
57573
57574         Make striconveh work better with stateful encodings.
57575         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
57576         that iconv does not increment the inptr when returning -1/EINVAL.
57577
57578 2008-09-07  Bruno Haible  <bruno@clisp.org>
57579
57580         * build-aux/config.rpath: Update according to libtool-2.2.6.
57581         * build-aux/config.libpath: Likewise.
57582
57583 2008-09-06  Bruno Haible  <bruno@clisp.org>
57584
57585         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
57586         * lib/freadptr.c (freadptr): Likewise.
57587         * lib/freadseek.c (freadptrinc): Likewise.
57588         Reported by Simon Josefsson.
57589
57590 2008-09-06  Bruno Haible  <bruno@clisp.org>
57591
57592         * modules/freadptr (License): Change to LGPLv2+.
57593         * modules/freadseek (License): Likewise.
57594         Suggested by Eric Blake.
57595
57596         * modules/memchr2 (License): Change to LGPLv2+.
57597         Approved by Eric Blake.
57598
57599 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57600             Bruno Haible  <bruno@clisp.org>
57601
57602         Make gnulib-tool work with native 'sed' on AIX.
57603         * gnulib-tool (sed_noop): New variable.
57604         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
57605         func_add_or_update, func_create_testdir): Use it to initialize sed
57606         script variables.
57607         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57608
57609 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
57610             Bruno Haible  <bruno@clisp.org>
57611
57612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
57613         also works after #include directives.
57614
57615 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
57616
57617         getdate.y: reject an out-of-range timezone value
57618         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
57619         the range [-24...+24].  When specified with only one or two digits,
57620         * tests/test-getdate.c: Tests for the fix.
57621         * doc/getdate.texi: Document this change.
57622
57623 2008-09-03  Bruno Haible  <bruno@clisp.org>
57624
57625         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
57626
57627 2008-09-02  Simon Josefsson  <simon@josefsson.org>
57628
57629         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
57630         <bruce.korb@gmail.com> with ideas from Ben Pfaff
57631         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
57632         Blake <ebb9@byu.net>.
57633
57634         * tests/test-bitrotate.c: Add more test vectors.
57635
57636 2008-09-02  Eric Blake  <ebb9@byu.net>
57637
57638         vasnprintf-posix: handle large precision via %.*d
57639         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
57640         when handling it ourselves.
57641         * tests/test-vasnprintf-posix.c (test_function): Add test.
57642         * tests/test-snprintf-posix.h (test_function): Likewise.
57643         * tests/test-sprintf-posix.h (test_function): Likewise.
57644         * tests/test-vasprintf-posix.c (test_function): Likewise.
57645         Reported by Alain Guibert.
57646
57647 2008-09-01  Eric Blake  <ebb9@byu.net>
57648
57649         c-stack: make configure-time check more robust
57650         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
57651         successful sigaction call.
57652         Reported by Tom G. Christensen.
57653
57654 2008-09-01  Bruno Haible  <bruno@clisp.org>
57655
57656         New module 'findprog-lgpl'.
57657         * modules/findprog-lgpl: New file.
57658         * lib/findprog-lgpl.c: New file.
57659         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
57660         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
57661         to decide whether to use strdup or xstrdup, concatenated_filename or
57662         xconcatenated_filename.
57663
57664 2008-09-01  Bruno Haible  <bruno@clisp.org>
57665
57666         Split module 'concat-filename' into 'concat-filename' (LGPL) and
57667         'xconcat-filename' (GPL).
57668         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
57669         (License): Change to LGPLv2+.
57670         * modules/xconcat-filename: New file.
57671         * lib/concat-filename.h (concatenated_filename): Change specification.
57672         (xconcatenated_filename): New declaration.
57673         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
57674         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
57675         memory situations.
57676         * lib/xconcat-filename.c: New file.
57677         * NEWS: Mention the change.
57678         * lib/findprog.c: Include concat-filename.h, not filename.h.
57679         (find_in_path): Use xconcatenated_filename instead of
57680         concatenated_filename.
57681         * lib/javacomp.c: Include concat-filename.h, not filename.h.
57682         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
57683         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
57684         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
57685         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
57686         instead of concatenated_filename.
57687         * lib/javaexec.c: Include concat-filename.h, not filename.h.
57688         (execute_java_class): Use xconcatenated_filename instead of
57689         concatenated_filename.
57690         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
57691         * modules/javacomp (Depends-on): Likewise.
57692         * modules/javaexec (Depends-on): Likewise.
57693
57694 2008-09-01  Bruno Haible  <bruno@clisp.org>
57695
57696         Split module 'filename' into 'filename' and 'concat-filename'.
57697         * modules/filename: Keep only lib/filename.h.
57698         (License): Change to LGPLv2+.
57699         * modules/concat-filename: New file, extracted from modules/filename.
57700         * lib/filename.h (concatenated_filename): Remove declaration.
57701         * lib/concat-filename.h: New file, extracted from lib/filename.h.
57702         * lib/concat-filename.c: Include concat-filename.h.
57703         * NEWS: Mention the change.
57704
57705 2008-09-01  Simon Josefsson  <simon@josefsson.org>
57706
57707         * lib/bitrotate.h (rotl8, rotr8): Add.
57708
57709         * modules/bitrotate (configure.ac): Need
57710         AC_REQUIRE([AC_C_INLINE]).
57711         (Description): Mention stdint.h.  Reported by Bruno Haible
57712         <bruno@clisp.org>.
57713
57714         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
57715         Paolo Bonzini <bonzini@gnu.org>.
57716
57717 2008-08-31  Bruno Haible  <bruno@clisp.org>
57718
57719         Assume Solaris specific bi-arch conventions on Solaris systems.
57720         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
57721         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
57722         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
57723         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
57724         like acl_libdirstem.
57725         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
57726         acl_libdirstem.
57727         * NEWS: Mention the change.
57728         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
57729
57730 2008-08-31  Jim Meyering  <meyering@redhat.com>
57731
57732         * lib/strftime.h: Add comments describing the two added arguments.
57733
57734         remove duplicate #include directives
57735         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
57736         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
57737
57738 2008-08-31  Bruno Haible  <bruno@clisp.org>
57739
57740         New module 'sigpipe-die'.
57741         * modules/sigpipe-die: New file.
57742         * lib/sigpipe-die.h: New file.
57743         * lib/sigpipe-die.c: New file.
57744         * MODULES.html.sh (Signal handling): Add sigpipe-die.
57745
57746 2008-08-31  Bruno Haible  <bruno@clisp.org>
57747
57748         Don't override previously installed signal handlers.
57749         * lib/fatal-signal.c (saved_sigactions): New variable.
57750         (uninstall_handlers): Reset the signal to the saved handler, not
57751         to SIG_DFL (except when ignored).
57752         (install_handlers): Save the previous handlers.
57753
57754 2008-08-30  Bruno Haible  <bruno@clisp.org>
57755
57756         * gnulib-tool (func_reset_sigpipe): New function.
57757         (func_get_automake_snippet, func_modules_transitive_closure,
57758         func_import): Invoke it before a join command that reads from stdin,
57759         to avoid "echo: write error: Broken pipe" error messages on stderr.
57760         Reported by Sam Steingold <sds@gnu.org>.
57761
57762 2008-08-30  Bruno Haible  <bruno@clisp.org>
57763
57764         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
57765         Code copied from m4/open.m4.
57766         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
57767         access and the filename ends in a slash. Code copied from lib/open.c.
57768         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
57769         * tests/test-fopen.c (main): Check against bug with trailing slash.
57770
57771 2008-08-29  Bruno Haible  <bruno@clisp.org>
57772
57773         Avoid some "gcc -pedantic" warnings.
57774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
57775         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
57776         * lib/dirent.in.h: Likewise.
57777         * lib/fcntl.in.h: Likewise.
57778         * lib/float.in.h: Likewise.
57779         * lib/iconv.in.h: Likewise.
57780         * lib/inttypes.in.h: Likewise.
57781         * lib/locale.in.h: Likewise.
57782         * lib/math.in.h: Likewise.
57783         * lib/netinet_in.in.h: Likewise.
57784         * lib/search.in.h: Likewise.
57785         * lib/signal.in.h: Likewise.
57786         * lib/stdarg.in.h: Likewise.
57787         * lib/stdint.in.h: Likewise.
57788         * lib/stdio.in.h: Likewise.
57789         * lib/stdlib.in.h: Likewise.
57790         * lib/string.in.h: Likewise.
57791         * lib/strings.in.h: Likewise.
57792         * lib/sys_select.in.h: Likewise.
57793         * lib/sys_socket.in.h: Likewise.
57794         * lib/sys_stat.in.h: Likewise.
57795         * lib/sys_time.in.h: Likewise.
57796         * lib/sysexits.in.h: Likewise.
57797         * lib/time.in.h: Likewise.
57798         * lib/unistd.in.h: Likewise.
57799         * lib/wchar.in.h: Likewise.
57800         * lib/wctype.in.h: Likewise.
57801         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
57802         * modules/fchdir (Makefile.am): Likewise.
57803         * modules/fcntl (Makefile.am): Likewise.
57804         * modules/float (Makefile.am): Likewise.
57805         * modules/iconv_open (Makefile.am): Likewise.
57806         * modules/inttypes (Makefile.am): Likewise.
57807         * modules/locale (Makefile.am): Likewise.
57808         * modules/math (Makefile.am): Likewise.
57809         * modules/netinet_in (Makefile.am): Likewise.
57810         * modules/search (Makefile.am): Likewise.
57811         * modules/signal (Makefile.am): Likewise.
57812         * modules/stdarg (Makefile.am): Likewise.
57813         * modules/stdint (Makefile.am): Likewise.
57814         * modules/stdio (Makefile.am): Likewise.
57815         * modules/stdlib (Makefile.am): Likewise.
57816         * modules/string (Makefile.am): Likewise.
57817         * modules/strings (Makefile.am): Likewise.
57818         * modules/sys_select (Makefile.am): Likewise.
57819         * modules/sys_socket (Makefile.am): Likewise.
57820         * modules/sys_stat (Makefile.am): Likewise.
57821         * modules/sys_time (Makefile.am): Likewise.
57822         * modules/sysexits (Makefile.am): Likewise.
57823         * modules/time (Makefile.am): Likewise.
57824         * modules/unistd (Makefile.am): Likewise.
57825         * modules/wchar (Makefile.am): Likewise.
57826         * modules/wctype (Makefile.am): Likewise.
57827         Reported by Reuben Thomas <rrt@sc3d.org>.
57828
57829 2008-08-29  Bruno Haible  <bruno@clisp.org>
57830
57831         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57832         any more.
57833
57834 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57835
57836         * MODULES.html.sh (Misc): Add bitrotate.
57837
57838         * modules/bitrotate: New file.
57839
57840         * lib/bitrotate.h: New file.
57841
57842         * modules/bitrotate-tests: New file.
57843
57844         * tests/test-bitrotate.c: New file.
57845
57846         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57847         on the bitrotate module.
57848
57849         * lib/arctwo.c: Use new bitrotate module.
57850
57851 2008-08-29  Jim Meyering  <meyering@redhat.com>
57852
57853         bootstrap: merge changes from coreutils
57854         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57855         of copied files.  Remove a kludge, now that this is fixed.
57856         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57857         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57858         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57859
57860 2008-08-29  Bruno Haible  <bruno@clisp.org>
57861
57862         * MODULES.html.sh: Remove --cvs-urls option.
57863
57864 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57865
57866         maint.mk: adjust to file name change
57867         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57868
57869 2008-08-28  Jim Meyering  <meyering@redhat.com>
57870
57871         * modules/getndelim2 (License): Relicense to LGPLv2+.
57872         Approved by Richard Stallman for the version of 1995, and by
57873         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57874
57875 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57876
57877         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57878         dummy if one is not available.  Do not touch them if
57879         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57880         (getc_maybe_unlocked): New.
57881         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57882
57883 2008-08-26  Eric Blake  <ebb9@byu.net>
57884
57885         doc/INSTALL: resync from autoconf
57886         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57887         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57888         moving...
57889         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57890         * INSTALL: Regenerate.
57891         * INSTALL.ISO: New file.
57892         * INSTALL.UTF-8: Likewise.
57893
57894 2008-08-26  Jim Meyering  <meyering@redhat.com>
57895
57896         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57897         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57898         these definitions conditional, so that they may be overridden, too.
57899
57900 2008-08-26  Bruno Haible  <bruno@clisp.org>
57901
57902         Generate INSTALL file variants with prettier quotes.
57903         * doc/Makefile (INSTALL_PRELUDE): New macro.
57904         (INSTALL): Use it.
57905         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57906
57907 2008-08-26  Bruno Haible  <bruno@clisp.org>
57908
57909         Run makeinfo in an English locale.
57910         * doc/Makefile (MAKEINFO): New variable.
57911
57912 2008-08-26  Bruno Haible  <bruno@clisp.org>
57913
57914         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57915         Suggested by Eric Blake.
57916
57917 2008-08-25  Bruno Haible  <bruno@clisp.org>
57918
57919         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57920
57921 2008-08-25  Eric Blake  <ebb9@byu.net>
57922
57923         c-stack: test that stack overflow can be caught
57924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57925         that platform allows handling stack overflow; at least OS/2 EMX
57926         has sigaltstack, but crashes before transferring control to
57927         handler on stack overflow.
57928         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57929         check for HAVE_STACK_OVERFLOW_HANDLING.
57930         Reported by Elbert Pol.
57931
57932 2008-08-25  Bruno Haible  <bruno@clisp.org>
57933
57934         * doc/posix-functions/strftime.texi: Fix description of strftime
57935         module.
57936
57937 2008-08-24  Bruno Haible  <bruno@clisp.org>
57938
57939         * tests/uniwidth/test-uc_width2.c: New file.
57940         * tests/uniwidth/test-uc_width2.sh: New file.
57941         * modules/uniwidth/width-tests (Files): Add the new files.
57942         (TESTS): Add uniwidth/test-uc_width2.sh.
57943         (TESTS_ENVIRONMENT): New variable.
57944         (check_PROGRAMS): Add test-uc_width2.
57945         (test_uc_width2_SOURCES): New variable.
57946
57947         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57948         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57949         not 0x00AB.
57950         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57951
57952 2008-08-22  Eric Blake  <ebb9@byu.net>
57953
57954         test-lock, test-tls: mention why a test is skipped
57955         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57956         skipped.
57957         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57958
57959         count-one-bits: relax license
57960         * modules/count-one-bits (License): Relicense to LGPLv2+.
57961         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57962
57963 2008-08-22  Andreas Schwab  <schwab@suse.de>
57964
57965         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57966         Remove spurious space in assignment.
57967
57968 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57969
57970         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57971         Paul Eggert <eggert@CS.UCLA.EDU>.
57972
57973 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57974
57975         * modules/gettext: Add m4/threadlib.m4.
57976
57977 2008-08-19  Eric Blake  <ebb9@byu.net>
57978
57979         test-c-stack: fix compilation failure on FreeBSD 5.0
57980         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57981         headers before <sys/resource.h>.
57982         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57983         the bug.
57984         Reported by Nelson H. F. Beebe.
57985
57986         strverscmp: migrate from "strverscmp.h" to <string.h>
57987         * modules/string (Makefile.am): Add new hooks.
57988         * modules/strverscmp (Files): Remove strverscmp.h.
57989         (Depends-on): Add string.
57990         (configure.ac): Add indicator.
57991         (Include): Mention new header.
57992         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57993         defaults.
57994         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57995         results.
57996         * lib/strverscmp.h: Delete.
57997         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57998         * tests/test-strverscmp.c (includes): Adjust client.
57999         * lib/check-version.c (includes): Likewise.
58000         * NEWS: Document the change.
58001
58002         strverscmp: add unit test
58003         * modules/strverscmp-tests: New file.
58004         * tests/test-strverscmp.c: Likewise.
58005
58006 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58007
58008         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58009         regarding Windows crypto stuff, from Mono.
58010
58011 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58012
58013         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58014         if present, for intel RND.  Return error on failures.
58015
58016 2008-08-18  Ben Pfaff  <blp@gnu.org>
58017
58018         gitlog-to-changelog: give better diagnostic for failed pipe-open
58019         * build-aux/gitlog-to-changelog: Improve error message: suggest
58020         that the version of Git may be too old.
58021
58022 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58023
58024         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58025         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58026
58027 2008-08-18  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58030         pthread_in_use().
58031
58032 2008-08-18  Bruno Haible  <bruno@clisp.org>
58033
58034         * lib/glthread/threadlib.c: Include <pthread.h>.
58035
58036 2008-08-18  Bruno Haible  <bruno@clisp.org>
58037
58038         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58039         glthread_recursive_lock_* macros.
58040         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58041         Fix syntax error.
58042
58043 2008-08-18  Bruno Haible  <bruno@clisp.org>
58044
58045         * lib/glthread/thread.c: Avoid forcing a context switch right after
58046         thread creation.
58047
58048 2008-08-17  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58051         * lib/glthread/thread.h: Provide Win32 specific implementation.
58052         * modules/thread (Files): Add lib/glthread/thread.c.
58053         (Depends-on): Add lock.
58054         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58055
58056 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58057
58058         New module 'yield'.
58059         * modules/yield: New file.
58060         * lib/glthread/yield.h: New file.
58061         * m4/yield.m4: New file.
58062         * MODULES.html.sh (Multithreading): Add yield.
58063
58064 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58065
58066         New module 'thread'.
58067         * modules/thread: New file.
58068         * lib/glthread/thread.h: New file.
58069         * m4/thread.m4: New file.
58070         * MODULES.html.sh (Multithreading): Add thread.
58071
58072 2008-08-17  Bruno Haible  <bruno@clisp.org>
58073
58074         * lib/glthread/lock.h: Include <stdlib.h> always.
58075         * lib/glthread/tls.h: Likewise.
58076         * lib/glthread/cond.h: Likewise.
58077
58078 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58079
58080         New module 'cond'.
58081         * modules/cond: New file.
58082         * lib/glthread/cond.h: New file.
58083         * lib/glthread/cond.c: New file.
58084         * m4/cond.m4: New file.
58085         * MODULES.html.sh (Multithreading): Add cond.
58086
58087 2008-08-16  Eric Blake  <ebb9@byu.net>
58088
58089         c-stack: fix regression on Irix 5.3 from 2008-06-21
58090         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
58091         sa_sigaction...
58092         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
58093         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
58094         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
58095         * modules/signal (Makefile.am): Use the value.
58096         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
58097         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
58098         * doc/posix-headers/signal.texi (signal.h): Document this
58099         portability issue.
58100         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
58101         Reported by Tom G. Christensen.
58102
58103 2008-08-17  Bruno Haible  <bruno@clisp.org>
58104
58105         New module 'threadlib'.
58106         * modules/threadlib: New file.
58107         * lib/glthread/threadlib.c: New file, extracted from
58108         lib/glthread/lock.c.
58109         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
58110         functions.
58111         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
58112         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
58113         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
58114         macros.
58115         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
58116         (gl_DISABLE_THREADS): Remove macro.
58117         * modules/lock (Files): Remove build-aux/config.rpath.
58118         (Depends-on): Remove havelib. Add threadlib.
58119         (configure.ac-early): Remove section.
58120         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
58121         * modules/tls (Depends-on): Remove lock. Add threadlib.
58122         (Link): New section, copied from threadlib.
58123         * MODULES.html.sh (Multithreading): Add threadlib.
58124
58125 2008-08-14  Bruno Haible  <bruno@clisp.org>
58126
58127         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
58128         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
58129         glthread_rwlock_unlock, glthread_rwlock_destroy,
58130         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
58131         glthread_recursive_lock_destroy): Define as macros always.
58132         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
58133         glthread_lock_lock.
58134         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
58135         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
58136         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
58137         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
58138         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
58139         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
58140         (glthread_recursive_lock_lock_func): Renamed from
58141         glthread_recursive_lock_lock.
58142         (glthread_recursive_lock_unlock_func): Renamed from
58143         glthread_recursive_lock_unlock.
58144         (glthread_recursive_lock_destroy_func): Renamed from
58145         glthread_recursive_lock_destroy.
58146
58147 2008-08-14  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/glthread/lock.h: Renamed from lib/lock.h.
58150         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
58151         * lib/glthread/tls.h: Renamed from lib/tls.h.
58152         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
58153         * lib/fstrcmp.c: Update includes.
58154         * lib/strsignal.c: Update includes.
58155         * modules/lock (Files, Makefile.am): Update.
58156         (Include): Change to "glthread/lock.h".
58157         * modules/tls (Files, Makefile.am): Update.
58158         (Include): Change to "glthread/tls.h".
58159         * tests/test-lock.c: Update includes.
58160         * tests/test-tls.c: Update includes.
58161         * NEWS: Mention the renamed header files.
58162
58163 2008-08-11  Jim Meyering  <meyering@redhat.com>
58164
58165         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
58166
58167 2008-08-11  Eric Blake  <ebb9@byu.net>
58168
58169         test-c-stack: avoid C99-ism
58170         * tests/test-c-stack.c (main): Fix whitespace, move declaration
58171         before statement.
58172         Reported by Alain Guibert.
58173
58174 2008-08-10  Jim Meyering  <meyering@redhat.com>
58175
58176         ensure that return value of uinttostr et al are not ignored
58177         * lib/inttostr.h (__GNUC_PREREQ): Define.
58178         (__attribute_warn_unused_result__): Define.
58179         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
58180
58181 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
58182
58183         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
58184         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
58185
58186 2008-08-07  Jim Meyering  <meyering@redhat.com>
58187
58188         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
58189
58190         * modules/mkstemp (License): Relicense under LGPLv2+.
58191         * modules/tempname (License): Likewise.
58192
58193 2008-08-06  Bruno Haible  <bruno@clisp.org>
58194
58195         * lib/poll.c (poll): Further micro-optimization.
58196
58197 2008-08-06  Jim Meyering  <meyering@redhat.com>
58198
58199         inet_pton.c: use locale-independent tolower
58200         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
58201         (inet_pton6): Use c_tolower rather than tolower.
58202         * modules/inet_pton (Depends-on): Add c-ctype.
58203
58204 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
58205
58206         * lib/poll.c (poll): Avoid division when timeout is 0, cache
58207         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
58208
58209 2008-08-06  Jim Meyering  <meyering@redhat.com>
58210
58211         * modules/inet_pton (License): Relicense under LGPLv2+.
58212
58213 2008-08-03  Bruno Haible  <bruno@clisp.org>
58214
58215         Additional non-aborting API for lock and tls.
58216         * lib/lock.h: Include <errno.h>.
58217         (glthread_lock_init): New macro/function.
58218         (gl_lock_init): Define as wrapper around glthread_lock_init.
58219         (glthread_lock_lock): New macro/function.
58220         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
58221         (glthread_lock_unlock): New macro/function.
58222         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
58223         (glthread_lock_destroy): New macro/function.
58224         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
58225         (glthread_rwlock_init): New macro/function.
58226         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
58227         (glthread_rwlock_rdlock): New macro/function.
58228         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
58229         (glthread_rwlock_wrlock): New macro/function.
58230         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
58231         (glthread_rwlock_unlock): New macro/function.
58232         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
58233         (glthread_rwlock_destroy): New macro/function.
58234         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
58235         (glthread_recursive_lock_init): New macro/function.
58236         (gl_recursive_lock_init): Define as wrapper around
58237         glthread_recursive_lock_init.
58238         (glthread_recursive_lock_lock): New macro/function.
58239         (gl_recursive_lock_lock): Define as wrapper around
58240         glthread_recursive_lock_lock.
58241         (glthread_recursive_lock_unlock): New macro/function.
58242         (gl_recursive_lock_unlock): Define as wrapper around
58243         glthread_recursive_lock_unlock.
58244         (glthread_recursive_lock_destroy): New macro/function.
58245         (gl_recursive_lock_destroy): Define as wrapper around
58246         glthread_recursive_lock_destroy.
58247         (glthread_once): New macro/function.
58248         (gl_once): Define as wrapper around glthread_once.
58249         Update function declarations.
58250         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
58251         glthread_rwlock_init. Return error code.
58252         (glthread_rwlock_rdlock_multithreaded): Renamed from
58253         glthread_rwlock_rdlock. Return error code.
58254         (glthread_rwlock_wrlock_multithreaded): Renamed from
58255         glthread_rwlock_wrlock. Return error code.
58256         (glthread_rwlock_unlock_multithreaded): Renamed from
58257         glthread_rwlock_unlock. Return error code.
58258         (glthread_rwlock_destroy_multithreaded): Renamed from
58259         glthread_rwlock_destroy. Return error code.
58260         (glthread_recursive_lock_init_multithreaded): Renamed from
58261         glthread_recursive_lock_init. Return error code.
58262         (glthread_recursive_lock_lock_multithreaded): Renamed from
58263         glthread_recursive_lock_lock. Return error code.
58264         (glthread_recursive_lock_unlock_multithreaded): Renamed from
58265         glthread_recursive_lock_unlock. Return error code.
58266         (glthread_recursive_lock_destroy_multithreaded): Renamed from
58267         glthread_recursive_lock_destroy. Return error code.
58268         (glthread_once_call): Make static.
58269         (glthread_once_multithreaded): Renamed from glthread_once.
58270         * lib/tls.h: Include <errno.h>.
58271         (glthread_tls_key_init): New macro/function.
58272         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
58273         (glthread_tls_set): New macro/function.
58274         (gl_tls_set): Define as wrapper around glthread_tls_set.
58275         (glthread_tls_key_destroy): New macro/function.
58276         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
58277         Update function declarations.
58278         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
58279         glthread_tls_get.
58280         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58281
58282 2008-08-04  Eric Blake  <ebb9@byu.net>
58283
58284         gnumakefile: use space, not TAB, outside of targets
58285         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
58286
58287 2008-08-02  Jim Meyering  <meyering@redhat.com>
58288
58289         getdate.y: avoid locale-dependent date parsing failure
58290         In Turkish locales, getdate would fail to recognize keywords
58291         containing a lowercase "i".  The solution is not to rely on
58292         locale-sensitive case-conversion.
58293         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
58294         (lookup_word): Use c_toupper in place of toupper.
58295         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
58296         Reported by Vefa Bicakci <bicave@superonline.com> in
58297         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
58298         * modules/getdate (Depends-on): Add c-ctype.
58299
58300 2008-08-02  Bruno Haible  <bruno@clisp.org>
58301
58302         * gnulib-tool (func_import): When updating or creating a .gitignore
58303         file, prepend each added line with a slash, and ignore leading slashes
58304         from the existing lines.
58305         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58306
58307 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58308
58309         Portability fix for GNU make 3.79.1.
58310         * top/GNUmakefile: Avoid 'else COND', which older GNU make
58311         versions do not understand.
58312
58313 2008-08-01  Bruno Haible  <bruno@clisp.org>
58314
58315         Work around bug of HP-UX 10.20 cc with -0.0 literal.
58316         * tests/test-isnanf.h (zero): New variable.
58317         (main): Avoid literal -0.0f.
58318         * tests/test-isnand.h (zero): New variable.
58319         (main): Avoid literal -0.0.
58320         * tests/test-isnanl.h (zero): New variable.
58321         (main): Avoid literal -0.0L.
58322         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
58323         (test_float, test_double, test_long_double): Avoid literals -0.0f,
58324         -0.0, -0.0L.
58325         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
58326         (test_signbitd): Avoid literal -0.0.
58327         (test_signbitl): Avoid literal -0.0L.
58328         * tests/test-ceilf1.c (zero): New variable.
58329         (main): Avoid literal -0.0f.
58330         * tests/test-ceill.c (zero): New variable.
58331         (main): Avoid literal -0.0L.
58332         * tests/test-floorf1.c (zero): New variable.
58333         (main): Avoid literal -0.0f.
58334         * tests/test-floorl.c (zero): New variable.
58335         (main): Avoid literal -0.0L.
58336         * tests/test-roundf1.c (zero): New variable.
58337         (main): Avoid literal -0.0f.
58338         * tests/test-round1.c (zero): New variable.
58339         (main): Avoid literal -0.0.
58340         * tests/test-roundl.c (zero): New variable.
58341         (main): Avoid literal -0.0L.
58342         * tests/test-truncf1.c (zero): New variable.
58343         (main): Avoid literal -0.0f.
58344         * tests/test-trunc1.c (zero): New variable.
58345         (main): Avoid literal -0.0.
58346         * tests/test-truncl.c (zero): New variable.
58347         (main): Avoid literal -0.0L.
58348         * tests/test-frexp.c (zero): New variable.
58349         (main): Avoid literal -0.0.
58350         * tests/test-frexpl.c (zero): New variable.
58351         (main): Avoid literal -0.0L.
58352         * tests/test-ldexpl.c (zero): New variable.
58353         (main): Avoid literal -0.0L.
58354         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58355         (zerod, zerol): New variables.
58356         (test_function): Avoid literals -0.0, -0.0L.
58357         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
58358         (zerod, zerol): New variables.
58359         (test_function): Avoid literals -0.0, -0.0L.
58360         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58361         (zerod, zerol): New variables.
58362         (test_function): Avoid literals -0.0, -0.0L.
58363         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
58364         (zerod, zerol): New variables.
58365         (test_function): Avoid literals -0.0, -0.0L.
58366         * tests/test-strtod.c (zero): New variable.
58367         (main): Avoid literal -0.0.
58368         Reported by Jonathan C. Patschke <jp@centtech.com>.
58369
58370 2008-07-31  Jim Meyering  <meyering@redhat.com>
58371
58372         sha256.h: correct definition of SHA224_DIGEST_SIZE
58373         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
58374         Reported by Paulie Pena IV <paulie4@gmail.com>.
58375         Define as 224 / 8, rather than as a literal.
58376         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
58377         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
58378         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
58379
58380 2008-07-31  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
58383         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
58384         Reported by Jonathan Patschke <jp@centtech.com>.
58385
58386 2008-07-31  Bruno Haible  <bruno@clisp.org>
58387
58388         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
58389         Reported by Paolo Bonzini <bonzini@gnu.org>.
58390
58391 2008-07-30  Eric Blake  <ebb9@byu.net>
58392
58393         test-strtod: allow compilation without -lm
58394         * tests/test-strtod.c (main): Avoid link dependence on fabs.
58395         Reported by Dennis Clarke <blastwave@gmail.com>.
58396
58397 2008-07-28  Jim Meyering  <meyering@redhat.com>
58398
58399         bootstrap: work also when there are no .po files in po/
58400         * build-aux/bootstrap (update_po_files): Complete the change
58401         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
58402
58403 2008-07-27  Jim Meyering  <meyering@redhat.com>
58404
58405         * users.txt: Add zile.
58406
58407 2008-07-26  Ben Pfaff  <blp@gnu.org>
58408
58409         Add missing dependencies on new m4/exponent[fdl].m4 files.
58410         * modules/isnanf-nolibm: Add m4/exponentf.m4.
58411         * modules/isnand-nolibm: Add m4/exponentd.m4.
58412         * modules/isnanl-nolibm: Add m4/exponentl.m4.
58413         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
58414         m4/isnan[fdl].m4, because the macros actually used moved.
58415         Reported by Jim Meyering.
58416
58417 2008-07-14  Ben Pfaff  <blp@gnu.org>
58418
58419         Add isinf module.
58420         * lib/isinf.c: New file.
58421         * lib/math.in.h: Define isinf macro if we have decided to replace
58422         it.
58423         * m4/isinf.m4: New file.
58424         * m4/math_h.m4: Initialize and substitute variables for isinf
58425         module.
58426         * modules/isinf: New file.
58427         * modules/isinf-tests: New file.
58428         * modules/math: Add substitutions for new module.
58429         * tests/test-isinf.c: New file.
58430         * doc/posix-functions/isinf.texi: Mention new module.
58431         * MODULES.html.sh: Mention new module.
58432
58433 2008-07-14  Ben Pfaff  <blp@gnu.org>
58434
58435         Factor out some macros for use by additional modules.
58436         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
58437         exponentf.m4.
58438         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
58439         exponentd.m4.
58440         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
58441         file exponentl.m4.
58442         * m4/exponentf.m4: New file.
58443         * m4/exponentd.m4: New file.
58444         * m4/exponentl.m4: New file.
58445         * modules/isnanf: Use new file m4/exponentf.m4.
58446         * modules/isnand: Use new file m4/exponentd.m4.
58447         * modules/isnanl: Use new file m4/exponentl.m4.
58448
58449 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
58450
58451         mktime.c: normalize tp->tm_isdst value to -1/0/1.
58452         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
58453         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
58454         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
58455
58456         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
58457         readlink on platforms without PATH_MAX.
58458
58459 2008-07-21  Eric Blake  <ebb9@byu.net>
58460
58461         Warn, not fail, on stale version.
58462         * top/GNUmakefile (_curr-ver): Tone down previous patch.
58463
58464         Don't allow installation with stale devel version number.
58465         * top/GNUmakefile (_is-install-target): New macro.
58466         (_curr-ver): Forbid installation with stale version number.
58467
58468 2008-07-20  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
58471         TESTS_ENVIRONMENT.
58472         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
58473
58474 2008-07-20  Bruno Haible  <bruno@clisp.org>
58475
58476         * lib/c-stack.h (c_stack_action): Add documentation.
58477         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
58478
58479 2008-07-20  Bruno Haible  <bruno@clisp.org>
58480
58481         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
58482         * modules/readlink (License): Likewise.
58483
58484 2008-07-17  Eric Blake  <ebb9@byu.net>
58485
58486         * modules/c-stack (Link): Fix typo.
58487
58488         Make c-stack use libsigsegv, when available.
58489         * modules/c-stack (Depends-on): Add libsigsegv.
58490         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
58491         needed.
58492         * lib/c-stack.c (SIGSTKSZ): Define fallback.
58493         (segv_handler, overflow_handler, c_stack_action)
58494         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
58495         implementation when libsigsegv is available, but only when using
58496         the library is necessary.
58497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
58498         comment, explaining why XSI check fails on Linux.
58499         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
58500         * tests/test-c-stack2.sh: Tweak skip message.
58501         * NEWS: Document new link-time requirements.
58502
58503 2008-07-16  Eric Blake  <ebb9@byu.net>
58504
58505         c-stack: Expose false positives when not using libsigsegv.
58506         * modules/c-stack-tests (Files): Expand test.
58507         * tests/test-c-stack.c (main): Add means to conditionally trigger
58508         non-overflow SIGSEGV.
58509         * tests/test-c-stack2.sh: New file.
58510
58511 2008-07-14  Bruno Haible  <bruno@clisp.org>
58512
58513         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
58514         Reported by Eric Blake.
58515
58516 2008-07-14  Sam Steingold  <sds@gnu.org>
58517             Bruno Haible  <bruno@clisp.org>
58518
58519         New module libsigsegv.
58520         * modules/libsigsegv: New file.
58521         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
58522         modifications.
58523         * MODULES.html.sh (Signal handling): New section.
58524
58525 2008-07-14  Bruno Haible  <bruno@clisp.org>
58526
58527         * modules/unictype/ctype-* (Description): Add the word "function".
58528         Improves the resulting doc in MODULES.html.
58529
58530 2008-07-12  Ben Pfaff  <blp@gnu.org>
58531
58532         Add longlong module.
58533         * modules/longlong: New file.
58534
58535 2008-07-12  Bruno Haible  <bruno@clisp.org>
58536
58537         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
58538         to empty.
58539
58540 2008-07-10  Ben Pfaff  <blp@gnu.org>
58541
58542         Add isnan module.
58543         * doc/posix-functions/isnan.texi: Mention new module.
58544         * lib/math.in.h: Define isnan macro if we have decided to replace
58545         it.
58546         * m4/isnan.m4: New file.
58547         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
58548         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
58549         also.
58550         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
58551         redundancy.
58552         * m4/math_h.m4: Initialize and substitute variables for isnan
58553         module.
58554         * modules/isnan: New file.
58555         * modules/isnan-tests: New file.
58556         * modules/math: Add substitutions for new module.
58557         * tests/test-isnan.c: New file.
58558         * MODULES.html.sh: Mention new module.
58559
58560 2008-07-10  Ben Pfaff  <blp@gnu.org>
58561
58562         Add isnanf module.
58563         * lib/isnanf.m4: New file.
58564         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
58565         (gl_HAVE_ISNANF_IN_LIBM): New macro.
58566         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
58567         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
58568         * modules/isnanf: New file.
58569         * modules/isnanf-tests: New file.
58570         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
58571         files.
58572         * tests/test-isnanf-nolibm.c: factored most of its contents into
58573         new file tests/test-isnanf.h.
58574         * tests/test-isnanf.h: New file.
58575         * tests/test-isnanf.c: New file.
58576         * MODULES.html.sh: Mention new module.
58577         * doc/glibc-functions/isnanf.texi: Mention new module.
58578
58579 2008-07-10  Ben Pfaff  <blp@gnu.org>
58580
58581         Add isnand module.
58582         * lib/isnand.h: New file.
58583         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
58584         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
58585         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
58586         functionality also.
58587         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
58588         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
58589         (gl_HAVE_ISNAND_IN_LIBM): New macro.
58590         * modules/isnand: New file.
58591         * modules/isnand-tests: New file.
58592         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
58593         files.
58594         * tests/test-isnand-nolibm.c: factored most of its contents into
58595         new file tests/test-isnand.h.
58596         * tests/test-isnand.h: New file.
58597         * tests/test-isnand.c: New file.
58598         * MODULES.html.sh: Mention new module.
58599
58600 2008-07-10  Ben Pfaff  <blp@gnu.org>
58601
58602         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
58603         * lib/isnand.h: Rename lib/isnand-nolibm.h.
58604         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
58605         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
58606         * modules/isnanf-nolibm: Update references to renamed files.
58607         * modules/isnand-nolibm: Likewise.
58608         * modules/isnanf-nolibm-tests: Likewise.
58609         * modules/isnand-nolibm-tests: Likewise.
58610         * lib/frexp.c: Likewise.
58611         * lib/isfinite.c: Likewise.
58612         * lib/signbitd.c: Likewise.
58613         * lib/signbitf.c: Likewise.
58614         * lib/vasnprintf.c: Likewise.
58615         * tests/test-ceilf1.c: Likewise.
58616         * tests/test-ceilf2.c: Likewise.
58617         * tests/test-floorf1.c: Likewise.
58618         * tests/test-floorf2.c: Likewise.
58619         * tests/test-frexp.c: Likewise.
58620         * tests/test-round1.c: Likewise.
58621         * tests/test-round2.c: Likewise.
58622         * tests/test-roundf1.c: Likewise.
58623         * tests/test-strtod.c: Likewise.
58624         * tests/test-trunc1.c: Likewise.
58625         * tests/test-trunc2.c: Likewise.
58626         * tests/test-truncf1.c: Likewise.
58627         * tests/test-truncf2.c: Likewise.
58628         * NEWS: Mention the renamed header files.
58629
58630 2008-07-11  Jim Meyering  <meyering@redhat.com>
58631
58632         vc-list-files: make the last-resort awk code more portable
58633         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
58634         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
58635         does not support it.
58636
58637 2008-07-10  Eric Blake  <ebb9@byu.net>
58638
58639         Work with tar's bootstrap.
58640         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
58641         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
58642         an m4 comment.
58643
58644 2008-07-09  Jim Meyering  <meyering@redhat.com>
58645
58646         posix-shell.m4: fix typo that made this test malfunction
58647         * m4/posix-shell.m4: Remove capitalization in variable name.
58648
58649 2008-07-08  Bruno Haible  <bruno@clisp.org>
58650
58651         * m4/onceonly.m4: Update comments.
58652         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58653
58654 2008-07-04  Jim Meyering  <meyering@redhat.com>
58655
58656         * users.txt: Add vc-dwim.
58657         (bison, coreutils): Use the gitweb URL.
58658
58659 2008-07-03  Jim Meyering  <meyering@redhat.com>
58660
58661         * users.txt: Add libffcall.  From Sam Steingold.
58662
58663 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
58664
58665         getdate.y: do not ignore TZ with relative day, month or year offset
58666         * lib/getdate.y (get_date): Move the tz-handling block to follow the
58667         relative-date-handling, since otherwise, the latter would clobber the
58668         sole output (an updated Start value) of the tz-handling block.
58669         * tests/test-getdate.c: Tests for the fix
58670
58671 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58672
58673         Recognize 'foo_LIBRARIES += libgnu.a'.
58674         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
58675         makefile snippet has already specified an installation location,
58676         also using '+='.
58677
58678 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
58679
58680         getdate.y: factor out common actions
58681         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
58682         Use them in place of open-coded actions.
58683
58684 2008-07-01  Simon Josefsson  <simon@josefsson.org>
58685
58686         Add self-test for getdate module.
58687         * modules/getdate-tests: New file.
58688         * tests/test-getdate.c: New file.
58689
58690 2008-06-29  Bruno Haible  <bruno@clisp.org>
58691
58692         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
58693         .gitignore.
58694         Reported by Sylvain Beucler <beuc@beuc.net>.
58695
58696 2008-06-29  Bruno Haible  <bruno@clisp.org>
58697
58698         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
58699         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
58700
58701 2008-06-29  Bruno Haible  <bruno@clisp.org>
58702
58703         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
58704         EXTRA_DIST.
58705         Reported by Sylvain Beucler <beuc@beuc.net>.
58706
58707 2008-06-26  Jim Meyering  <meyering@redhat.com>
58708
58709         make several modules depend on the "open" module
58710         This provides slightly increased consistency when opening-for-write
58711         the name of a non-directory spelled with a trailing slash.
58712         * modules/chdir-safer: Likewise.
58713         * modules/chown: Likewise.
58714         * modules/clean-temp: Likewise.
58715         * modules/copy-file: Likewise.
58716         * modules/fchdir: Likewise.
58717         * modules/fcntl-safer: Likewise.
58718         * modules/pipe: Likewise.
58719         * modules/utime: Likewise.
58720         Prompted by Eric Blake and Bruno Haible.
58721
58722 2008-06-24  Andreas Schwab  <schwab@suse.de>
58723
58724         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
58725         literals can be used as initializers for global variables.
58726
58727 2008-06-23  Eric Blake  <ebb9@byu.net>
58728
58729         Make gnulib-cache.m4 easier to diff.
58730         * gnulib-tool (func_import): Allow newlines when reading cached
58731         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
58732
58733 2008-06-23  Bruno Haible  <bruno@clisp.org>
58734
58735         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
58736         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
58737         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
58738         m4/signalblocking.m4.
58739         (gl_PREREQ_SIGACTION): Don't invoke it.
58740         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
58741         gl_PREREQ_SIG_HANDLER_H.
58742         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58743         Don't check for sigaction here.
58744
58745 2008-06-23  Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
58748         (install_handlers): Don't set the SA_RESETHAND flag.
58749
58750 2008-06-23  Bruno Haible  <bruno@clisp.org>
58751
58752         * m4/sigaction.m4: Comment fixes.
58753         * lib/signal.in.h: Likewise.
58754
58755 2008-06-23  Eric Blake  <ebb9@byu.net>
58756
58757         Fix typo.
58758         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
58759
58760         Avoid SA_ namespace.
58761         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
58762         Reported by Ralf Wildenhues.
58763
58764         Avoid test failure due to SA_RESTORER.
58765         * tests/test-sigaction.c (SA_MASK): New macro.
58766         (main): Avoid failing due to extension flags being set.
58767         Reported by Jim Meyering.
58768
58769         Revert use of sig-handler.h in sigprocmask.c.
58770         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
58771         it requires the existence of struct sigaction.
58772         * lib/sigprocmask.c (handler_t): Restore typedef.
58773         (rpl_signal, old_handlers): Use local type.
58774
58775 2008-06-22  Bruno Haible  <bruno@clisp.org>
58776
58777         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
58778         conditionally.
58779         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58780
58781 2008-06-22  Bruno Haible  <bruno@clisp.org>
58782
58783         * doc/posix-functions/siginterrupt.texi: Move note.
58784
58785         * lib/signal.in.h (SA_RESTART): New macro.
58786         * lib/sigaction.c: Update comment.
58787
58788         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
58789
58790         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
58791         (gl_PREREQ_SIGPROCMASK): Invoke it.
58792         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
58793
58794         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
58795
58796         * lib/sigprocmask.c: Update a comment.
58797
58798 2008-06-21  Eric Blake  <ebb9@byu.net>
58799
58800         Use sigaction module rather than signal().
58801         * modules/c-stack (Depends-on): Add sigaction.
58802         * modules/fatal-signal (Depends-on): Likewise.
58803         * modules/nanosleep (Depends-on): Likewise.
58804         * modules/sigprocmask (Files): Add sig-handler.h.
58805         * modules/sigaction (Files): Likewise.
58806         * lib/sig-handler.h (get_handler): New file, suggested by Paul
58807         Eggert.
58808         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
58809         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
58810         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
58811         (init_fatal_signals): Likewise.
58812         * lib/nanosleep.c (rpl_nanosleep): Likewise.
58813         (siginterrupt): Delete fallback.
58814         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
58815         instead.
58816         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
58817         siginterrupt.
58818
58819         New module sigaction, for mingw.
58820         * modules/sigaction: New module...
58821         * modules/sigaction-tests: ...and its test.
58822         * m4/sigaction.m4: New file.
58823         * lib/sigaction.c: Likewise.
58824         * tests/test-sigaction.c: Likewise.
58825         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
58826         * modules/signal (Makefile.am): Likewise.
58827         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
58828         needed.
58829         * doc/posix-headers/signal.texi (signal.h): Mention provided
58830         types.
58831         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58832         that sigaction is preferable.
58833         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58834         module.
58835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58836         sigaction.
58837
58838         Improve robustness of sigprocmask by overriding signal.
58839         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58840         is in use.
58841         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58842         (SIGKILL, SIGSTOP): Provide fallbacks.
58843         (rpl_signal): Implement.
58844         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58845         signal can be called inside handlers.
58846
58847         Fix nanosleep module on mingw.
58848         * modules/nanosleep (Depends-on): Add sys_select.
58849         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58850
58851         Fix licensing of sigprocmask.
58852         * modules/raise (License): Relicense as LGPL.
58853
58854 2008-06-21  Bruno Haible  <bruno@clisp.org>
58855
58856         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58857         result if it contains question marks.
58858         Reported by Michael Geng <linux@michaelgeng.de>.
58859
58860 2008-06-19  Bruno Haible  <bruno@clisp.org>
58861
58862         Fix CVS-ism.
58863         * doc/gnulib.texi: Include updated-stamp.texi.
58864         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58865         (updated-stamp.texi): New rule.
58866         (gnulib.info): Depend on it.
58867         * doc/.gitignore: Add updated-stamp.texi.
58868         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58869
58870 2008-06-19  Bruno Haible  <bruno@clisp.org>
58871
58872         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58873         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58874
58875 2008-06-19  Eric Blake  <ebb9@byu.net>
58876
58877         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58878         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58879         Reported by Stepan Kasal.
58880
58881 2008-06-18  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58884         Reported by Eric Blake.
58885
58886 2008-06-18  Eric Blake  <ebb9@byu.net>
58887
58888         Work around cygwin 1.5.25 strsignal bug.
58889         * tests/test-strsignal.c: Allow for const char *.
58890         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58891
58892 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58893
58894         * users.txt: Update URL to article and add author/date
58895         information.
58896
58897 2008-06-17  Bruno Haible  <bruno@clisp.org>
58898
58899         New macro gl_DISABLE_THREADS.
58900         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58901         if the user did not pass --enable-threads or --disable-threads option.
58902         (gl_DISABLE_THREADS): New macro.
58903         Reported by Eric Blake <ebb9@byu.net>.
58904
58905 2008-06-17  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58908         when the macro ignores it.
58909         Based on a patch by Eric Blake <ebb9@byu.net>.
58910
58911 2008-06-17  Bruno Haible  <bruno@clisp.org>
58912
58913         * modules/tls (License): Change to LGPLv2+.
58914         Reported by Eric Blake.
58915
58916 2008-06-17  Eric Blake  <ebb9@byu.net>
58917
58918         Simplify c-stack prerequisites.
58919         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58921         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58922         check.
58923         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58924         <sys/resource.h>.
58925
58926         Move c-stack test into testsuite.
58927         * modules/c-stack-tests: New file.
58928         * lib/c-stack.c [DEBUG]: Move test program...
58929         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58930         fail test if sigaltstack is lacking.
58931         * tests/test-c-stack.sh: New driver file.
58932
58933 2008-06-16  Eric Blake  <ebb9@byu.net>
58934
58935         Use raise module consistently.
58936         * modules/fatal-signal (Depends-on): Add raise.
58937         * modules/sigprocmask (Depends-on): Likewise.
58938         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58939         * lib/sigprocmask.c (sigprocmask): Likewise.
58940         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58941         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58942
58943         Fix compliance bug in sigpending.
58944         * lib/sigprocmask.c (sigpending): Return pending array via
58945         parameter, not return value.
58946
58947 2008-06-14  Eric Blake  <ebb9@byu.net>
58948
58949         Improve obstack-printf test code.
58950         * tests/test-obstack-printf.c (test_function): Fix comment, and
58951         simplify usage of obstack_* in macros.  Add a test for coverage.
58952         Reported by Bruno Haible.
58953
58954 2008-06-14  Bruno Haible  <bruno@clisp.org>
58955
58956         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58957         array size as a constant, not as a const variable.
58958         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58959         AC_USE_SYSTEM_EXTENSIONS.
58960         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58961         Test whether the obstack_printf function actually exists.
58962         * modules/obstack-printf (Depends-on): Add extensions.
58963         (Include): Remove obstack.h.
58964         * modules/obstack-printf-posix (Depends-on): Add extensions.
58965         (Include): Remove obstack.h.
58966
58967 2008-06-13  Eric Blake  <ebb9@byu.net>
58968
58969         Add obstack-printf and obstack-printf-posix modules.
58970         * modules/obstack-printf: New file.
58971         * modules/obstack-printf-posix: Likewise.
58972         * MODULES.html.sh (Misc): Mention them.
58973         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58974         Likewise.
58975         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58976         Likewise.
58977         * modules/stdio (Makefile.am): Accomodate new modules.
58978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58979         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58980         Declare.
58981         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58982         functions.
58983         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58984         (gl_REPLACE_OBSTACK_PRINTF): New macros
58985         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58986         * tests/test-obstack-printf.c: New file.
58987         * modules/obstack-printf-tests: Likewise.
58988         * modules/obstack-printf-posix-tests: Likewise.
58989
58990 2008-06-11  Bruno Haible  <bruno@clisp.org>
58991
58992         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58993         * lib/open.c: Include errno.h.
58994         (open): Fail when attempting to write to a file that has a trailing
58995         slash.
58996         * tests/test-open.c (main): Test against trailing slash bug.
58997         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58998
58999 2008-06-10  Bruno Haible  <bruno@clisp.org>
59000
59001         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59002         for $? to work inside the trap command, with various /bin/sh-s.
59003         * tests/test-vc-list-files-cvs.sh: Likewise.
59004
59005 2008-06-10  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/acl-internal.h: Don't include gettext.h here.
59008         * lib/set-mode-acl.c: Include gettext.h here.
59009         * lib/copy-acl.c: Likewise.
59010
59011 2008-06-10  Bruno Haible  <bruno@clisp.org>
59012
59013         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59014         * lib/wait-process.c (wait_subprocess): Likewise.
59015         * lib/execute.h (execute): Add termsigp argument.
59016         * lib/execute.c (execute): Likewise.
59017         * lib/csharpcomp.c (compile_csharp_using_pnet,
59018         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59019         * lib/csharpexec.c (execute_csharp_using_pnet,
59020         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59021         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59022         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59023         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59024         is_jikes_present): Update.
59025         * lib/javaexec.c (execute_java_class): Update.
59026         * lib/javaversion.c (execute_and_read_line): Update.
59027         * NEWS: Document the changes.
59028         Reported by Eric Blake.
59029
59030 2008-06-10  Eric Blake  <ebb9@byu.net>
59031
59032         Add missing include.
59033         * tests/test-strstr.c (includes): Add <signal.h>.
59034         * tests/test-strcasestr.c (includes): Likewise.
59035         * tests/test-memmem.c (includes): Likewise.
59036
59037 2008-06-10  Bruno Haible  <bruno@clisp.org>
59038
59039         * lib/wait-process.c (wait_subprocess): Add an assertion.
59040
59041 2008-06-10  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59044
59045 2008-06-10  Bruno Haible  <bruno@clisp.org>
59046
59047         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59048         using alarm().
59049         * tests/test-strcasestr.c (main): Likewise.
59050         * tests/test-strstr.c (main): Likewise.
59051
59052 2008-06-09  Bruno Haible  <bruno@clisp.org>
59053
59054         Work around the Solaris 10 ACE ACLs ABI change.
59055         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59056         declare if ACL_NO_TRIVIAL is present.
59057         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59058         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59059         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59060         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59061         define if ACL_NO_TRIVIAL is present.
59062         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
59063         and use the current ABI.
59064         (file_has_acl): Use same #if condition as elsewhere.
59065         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
59066         in use, and use the current ABI.
59067         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
59068         Reported by Jim Meyering.
59069
59070 2008-06-09  Eric Blake  <ebb9@byu.net>
59071
59072         Work around environments that (stupidly) ignore SIGALRM.
59073         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
59074         before using alarm().
59075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59077         Reported by Ian Beckwith <ianb@erislabs.net>.
59078
59079         Produce autobuild blurb earlier in log.
59080         * modules/autobuild (configure.ac-early): Move AB_INIT here.
59081
59082 2008-06-09  Jim Meyering  <meyering@redhat.com>
59083         and Ondřej Vašík  <ovasik@redhat.com>
59084
59085         utimens.c: correct kernel bug work-around
59086         Ondřej Vašík found that the invalid return value of 280 indicates
59087         failure, not success, and the kernel bug we're trying to work
59088         around affects not just the utimensat call, but also the fallback
59089         futimens call.
59090         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
59091         not success.
59092         [HAVE_FUTIMENS]: Use the same work-around, here.
59093
59094 2008-06-09  Jim Meyering  <meyering@redhat.com>
59095
59096         add more guards around definition of ACE_-related code
59097         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
59098         ALLOW and ACE_OWNER are also defined.
59099
59100 2008-06-08  Bruno Haible  <bruno@clisp.org>
59101
59102         * lib/acl-internal.h: Add me as co-author.
59103         * lib/file-has-acl.c: Likewise.
59104         * lib/set-mode-acl.c: Likewise.
59105         * lib/copy-acl.c: Likewise.
59106
59107 2008-06-08  Bruno Haible  <bruno@clisp.org>
59108
59109         Add support for AIX ACLs.
59110         * lib/acl-internal.h (acl_nontrivial): New declaration.
59111         * lib/file-has-acl.c (acl_nontrivial): New function.
59112         (file_has_acl): Add implementation using AIX 4 ACL API.
59113         * lib/set-mode-acl.c (qset_acl): Likewise.
59114         * lib/copy-acl.c (qcopy_acl): Likewise.
59115
59116 2008-06-08  Bruno Haible  <bruno@clisp.org>
59117
59118         Add support for HP-UX ACLs.
59119         * lib/acl-internal.h (acl_nontrivial): New declaration.
59120         * lib/file-has-acl.c (acl_nontrivial): New function.
59121         (file_has_acl): Add implementation using HP-UX 11 ACL API.
59122         * lib/set-mode-acl.c (qset_acl): Likewise.
59123         * lib/copy-acl.c (qcopy_acl): Likewise.
59124
59125 2008-06-08  Bruno Haible  <bruno@clisp.org>
59126
59127         Add support for Cygwin ACLs.
59128         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
59129         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
59130         the chmod_or_fchmod call.
59131         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
59132
59133 2008-06-08  Bruno Haible  <bruno@clisp.org>
59134
59135         Fix bug with setuid modes in Solaris 10+ code.
59136         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
59137         succeeded, when the mode contains some special bits.
59138
59139 2008-06-08  Bruno Haible  <bruno@clisp.org>
59140
59141         Add support for Solaris 7..10 ACLs.
59142         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
59143         declarations.
59144         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
59145         functions.
59146         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
59147         * lib/set-mode-acl.c (qset_acl): Likewise.
59148         * lib/copy-acl.c (qcopy_acl): Likewise.
59149
59150 2008-06-08  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
59153         declaration.
59154         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
59155         (acl_access_nontrivial): Remove MacOS X case.
59156         (file_has_acl): Use acl_extended_nontrivial.
59157         * lib/copy-acl.c (qcopy_acl): Likewise.
59158
59159 2008-06-08  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
59162
59163 2008-06-08  Jim Meyering  <meyering@redhat.com>
59164
59165         * modules/acl (Maintainer): Add Bruno Haible.
59166
59167 2008-06-07  Bruno Haible  <bruno@clisp.org>
59168
59169         Improve support for Tru64 ACLs.
59170         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
59171         ACL on OSF/1.
59172
59173 2008-06-07  Bruno Haible  <bruno@clisp.org>
59174
59175         Add support for MacOS X ACLs.
59176         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
59177         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
59178         * lib/set-mode-acl.c (qset_acl): Likewise.
59179         * lib/copy-acl.c (qcopy_acl): Likewise.
59180
59181 2008-06-07  Bruno Haible  <bruno@clisp.org>
59182
59183         Fix memory leak introduced on 2008-05-22.
59184         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
59185         use.
59186
59187 2008-06-07  Bruno Haible  <bruno@clisp.org>
59188
59189         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
59190         to construct an empty ACL.
59191
59192 2008-06-07  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
59195         precisely.
59196         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
59197
59198 2008-06-07  Bruno Haible  <bruno@clisp.org>
59199
59200         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
59201         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
59202
59203 2008-06-07  Bruno Haible  <bruno@clisp.org>
59204
59205         * doc/posix-functions/_setjmp.texi: Explain the use of this function
59206         regardless of POSIX.
59207         * doc/posix-functions/_longjmp.texi: Likewise.
59208         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
59209         SystemV platform in this case.
59210
59211 2008-06-06  Eric Blake  <ebb9@byu.net>
59212
59213         Document abort() bugs.
59214         * doc/posix-functions/abort.texi (abort): Mention anomalies.
59215
59216         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
59217         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
59218         sigsetjmp.
59219         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
59220         siglongjmp, but only as a macro.
59221         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
59222         is obsolete.
59223         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
59224
59225         Tweak documentation to cover cygwin argz bugs.
59226         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
59227         argz bug fix; no code change needed since no cygwin releases
59228         occurred between the last fix and the bug being tested.
59229         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
59230         module and recently fixed cygwin bugs.
59231         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
59232         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
59233         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
59234         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
59235         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
59236         Likewise.
59237         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
59238         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
59239         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
59240         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
59241         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
59242         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
59243         Likewise.
59244
59245         Avoid gcc warning on cygwin.
59246         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
59247         !ACL_NO_TRIVIAL]: Avoid unused variable.
59248
59249 2008-06-05  Eric Blake  <ebb9@byu.net>
59250
59251         Be tolerant of UNKNOWN version in gnulib-tool test dir.
59252         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
59253         git-version-gen fails to come up with a version.
59254         Reported by Simon Josefsson.
59255
59256 2008-06-05  Jim Meyering  <meyering@redhat.com>
59257             Paul Eggert  <eggert@cs.ucla.edu>
59258
59259         utimens.c: work around a probable Linux kernel bug
59260         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59261         appears to be a kernel bug that causes utimensat to return 280
59262         instead of 0, indicating success.
59263
59264 2008-06-04  Bruno Haible  <bruno@clisp.org>
59265
59266         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
59267         2008-06-01 commit.
59268
59269 2008-06-04  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
59272         * lib/file-has-acl.c (acl_access_nontrivial): New function.
59273         (file_has_acl): Use it. Save errno afterwards.
59274         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
59275
59276 2008-06-03  Bruno Haible  <bruno@clisp.org>
59277
59278         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
59279         draft code. Simplify #ifs.
59280         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
59281         Put Solaris code after POSIX-draft code. Fix comments regarding
59282         Solaris 10, HP-UX. Mention Cygwin.
59283         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
59284
59285 2008-06-03  Eric Blake  <ebb9@byu.net>
59286
59287         Provide fallback for older kernels.
59288         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
59289         Provide runtime fallback if kernel lacks support.
59290         Reported by Mike Frysinger.
59291
59292 2008-06-02  Bruno Haible  <bruno@clisp.org>
59293
59294         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
59295         it exists.
59296
59297 2008-06-02  Bruno Haible  <bruno@clisp.org>
59298
59299         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
59300         * lib/copy-acl.c (qcopy_acl): Update comment.
59301
59302 2008-06-02  Bruno Haible  <bruno@clisp.org>
59303
59304         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
59305         like ACL APIs.
59306
59307 2008-06-02  Bruno Haible  <bruno@clisp.org>
59308
59309         * tests/test-file-has-acl.sh: Use different code for Cygwin.
59310         * tests/test-set-mode-acl.sh: Likewise.
59311         * tests/test-copy-acl.sh: Likewise.
59312         * tests/test-copy-file.sh: Likewise.
59313
59314 2008-06-02  Bruno Haible  <bruno@clisp.org>
59315
59316         * tests/test-file-has-acl.sh: Remove unused code.
59317
59318 2008-06-01  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
59321         (copy_acl): Just a wrapper around qcopy_acl that emits the error
59322         messages.
59323         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
59324
59325 2008-06-01  Bruno Haible  <bruno@clisp.org>
59326
59327         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
59328         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
59329         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
59330         APIs.
59331         * modules/acl-tests (configure.ac): Remove tests now contained in
59332         m4/acl.m4.
59333
59334 2008-06-02  Jim Meyering  <meyering@redhat.com>
59335
59336         announce-gen: use a better key-server host name
59337         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
59338         it may be more consistently reliable.  Suggested by Werner Koch
59339         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
59340
59341 2008-06-01  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
59344         Reported by Voroskoi Andras <voroskoi@gmail.com>.
59345
59346 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
59347
59348         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
59349
59350 2008-06-01  Bruno Haible  <bruno@clisp.org>
59351
59352         New ACL tests.
59353         * tests/test-file-has-acl.sh: New file.
59354         * tests/test-file-has-acl.c: New file.
59355         * tests/test-set-mode-acl.sh: New file.
59356         * tests/test-set-mode-acl.c: New file.
59357         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
59358         * tests/test-copy-acl.c: New file.
59359         * modules/acl-tests: New file, based on modules/copy-file-tests.
59360         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
59361         (Depends-on): Add acl-tests.
59362         (configure.ac): Remove checks.
59363         (Makefile.am): Don't create test-sameacls program here any more.
59364
59365 2008-06-01  Bruno Haible  <bruno@clisp.org>
59366
59367         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
59368         * tests/test-sameacls.c: Include progname.h.
59369         (main): Invoke set_program_name. Portability fixes for MacOS X,
59370         Solaris, HP-UX.
59371
59372 2008-06-01  Bruno Haible  <bruno@clisp.org>
59373
59374         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
59375         function.
59376         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
59377
59378 2008-06-01  Bruno Haible  <bruno@clisp.org>
59379
59380         * modules/rpmatch (Depends-on): Add strdup.
59381
59382 2008-06-01  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/pipe.c: Include unistd-safer.h.
59385         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
59386         * modules/pipe (Depends-on): Add unistd-safer.
59387
59388 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59389
59390         * modules/autobuild (configure.ac): Call AB_INIT.
59391
59392 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59393
59394         * tests/test-getaddrinfo.c: Don't print debug messages by default.
59395         Suggested by Bruno Haible <bruno@clisp.org>.
59396
59397 2008-05-30  Simon Josefsson  <simon@josefsson.org>
59398
59399         * tests/test-base64.c: Cast size_t to unsigned long when invoking
59400         printf.  Use %lu instead of %d.  Reported by Bruno Haible
59401         <bruno@clisp.org>.
59402
59403 2008-05-29  Eric Blake  <ebb9@byu.net>
59404
59405         Prefer new POSIX 200x interfaces over futimesat.
59406         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
59407         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
59408         when available.
59409         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
59410
59411 2008-05-28  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/stpcpy (License): Change to LGPLv2+.
59414         Requested by David Lutterkort <dlutter@redhat.com>.
59415
59416 2008-05-27  Bruno Haible  <bruno@clisp.org>
59417
59418         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
59419         current mingw.
59420         Reported by Jose E. Marchesi <jemarch@gnu.org>.
59421
59422 2008-05-27  Bruno Haible  <bruno@clisp.org>
59423
59424         * modules/iconv_open (Link): New section, from module 'iconv'.
59425         * modules/striconv (Link): Likewise.
59426         * modules/striconveh (Link): Likewise.
59427         * modules/xstriconv (Link): Likewise.
59428         * modules/unicodeio (Link): Likewise.
59429         * modules/propername (Link): Likewise.
59430         Reported by Jim Meyering.
59431
59432 2008-05-26  Jim Meyering  <meyering@redhat.com>
59433
59434         sha256: do not artificially restrict buffer length to be < 2^32
59435         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
59436         uint32_t to size_t.
59437         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
59438         to match.
59439
59440         avoid unaligned access errors, e.g., on sparc
59441         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
59442         direct access through a possibly-unaligned uint64* pointer.
59443         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
59444         direct access through a possibly-unaligned uint32* pointer.
59445         Prompted by this patch from Tom "spot" Callaway:
59446         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
59447
59448         sha512.c: fix typo in comment
59449         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
59450
59451 2008-05-25  Bruno Haible  <bruno@clisp.org>
59452
59453         * lib/set-mode-acl.c: Renamed from lib/acl.c.
59454         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
59455         (Makefile.am): Update lib_SOURCES.
59456
59457 2008-05-25  Bruno Haible  <bruno@clisp.org>
59458
59459         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
59460
59461 2008-05-25  Jim Meyering  <meyering@redhat.com>
59462
59463         useless-if-before-free: freed expr may have white-space differences
59464         * build-aux/useless-if-before-free: Recognize cases in which the
59465         freed expression differs from the tested one in embedded white
59466         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
59467         $1 was used, so we can't make any regexp shy.  Improved tests now
59468         detect this.
59469
59470         useless-if-before-free: accept white space in the expression.
59471         * build-aux/useless-if-before-free: For now, any white space
59472         in the expression must be identical in the free argument.
59473
59474         useless-if-before-free: efficiency tweak
59475         * build-aux/useless-if-before-free: Make the expression-matching
59476         regexp "shy".
59477         Make the *outer* regexp shy, not the expr-matching one.
59478
59479         update code-in-comment to accept cast of free arg
59480         * build-aux/useless-if-before-free: Update regexp.
59481
59482 2008-05-25  Bruno Haible  <bruno@clisp.org>
59483
59484         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
59485         * modules/copy-file-tests (Files, Makefile.am): Update.
59486         * tests/test-copy-file.c (func_test_copy): Update.
59487
59488 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
59489
59490         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
59491
59492 2008-05-23  Bruno Haible  <bruno@clisp.org>
59493
59494         Improve support for ACLs on OSF/1.
59495         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
59496         Remove fallback for unknown flavors of ACLs.
59497
59498 2008-05-22  Bruno Haible  <bruno@clisp.org>
59499
59500         Add support for ACLs on OSF/1.
59501         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
59502         replacements.
59503         (acl_free_text): New macro fallback.
59504         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
59505         acl_free.
59506         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
59507         acl_free_text function. Require AC_C_INLINE.
59508
59509 2008-05-22  Bruno Haible  <bruno@clisp.org>
59510
59511         Make copy_acl work on MacOS X 10.5.
59512         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
59513         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
59514         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
59515         If MODE_INSIDE_ACL, don't assume that every system has the same text
59516         representation for ACLs as FreeBSD.
59517         * lib/copy-acl.c (copy_acl): Add support for platforms with
59518         !MODE_INSIDE_ACL.
59519         * lib/file-has-acl.c (file_has_acl): Likewise.
59520         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
59521         FreeBSD, MacOS X, or IRIX, respectively.
59522
59523 2008-05-22  Bruno Haible  <bruno@clisp.org>
59524
59525         * lib/acl.h: Don't include <sys/acl.h>.
59526         (GETACLCNT): Move fallback to lib/acl-internal.h.
59527         * lib/acl-internal.h: Include <sys/acl.h> here.
59528         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
59529
59530 2008-05-22  Bruno Haible  <bruno@clisp.org>
59531
59532         Split off copy_acl function to separate file.
59533         * lib/copy-acl.c: New file, extracted from lib/acl.c.
59534         * lib/acl.c (copy_acl): Moved function to separate file.
59535         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
59536         * modules/acl (Files): Add lib/copy-acl.c.
59537         (Makefiles.am): Augment lib_SOURCES.
59538
59539 2008-05-22  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/copy-file-tests: New file.
59542         * tests/test-copy-file.sh: New file.
59543         * tests/test-copy-file.c: New file.
59544         * tests/test-copy-file-sameacls.c: New file.
59545
59546 2008-05-22  Eric Blake  <ebb9@byu.net>
59547
59548         Avoid gcc warning.
59549         * tests/test-memcmp.c (main): Pass NULL indirectly.
59550
59551 2008-05-21  Bruno Haible  <bruno@clisp.org>
59552
59553         Add reference doc about ACLs.
59554         * doc/acl-resources.txt: New file.
59555         * doc/acl-cygwin.txt: New file.
59556
59557 2008-05-21  Bruno Haible  <bruno@clisp.org>
59558
59559         Avoid one more warning from gcc.
59560         * lib/vasnprintf.c (IF_LINT): Update comments.
59561         (VASNPRINTF): Use it also for the 'prefix' array initializer.
59562
59563 2008-05-21  Jim Meyering  <meyering@redhat.com>
59564
59565         avoid a warning from gcc
59566         * lib/vasnprintf.c (IF_LINT): Define.
59567         (scale10_round_decimal_long_double):
59568         Use it to avoid a "may be used uninitialized" warning.
59569         (scale10_round_decimal_double): Likewise.
59570
59571 2008-05-21  Simon Josefsson  <simon@josefsson.org>
59572
59573         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
59574         declared.
59575
59576 2008-05-20  Bruno Haible  <bruno@clisp.org>
59577
59578         * tests/test-memcmp.c (main): Test also the sign of the result. Test
59579         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
59580
59581 2008-05-20  Simon Josefsson  <simon@josefsson.org>
59582
59583         * modules/memcmp-tests: New file.
59584         * tests/test-memcmp.c: New file.
59585
59586 2008-05-19  Bruno Haible  <bruno@clisp.org>
59587
59588         * modules/propername (Notice, configure.ac): Put quoted "..." into
59589         --keyword option.
59590         * lib/propername.h: Update comments accordingly.
59591         Reported by Eric Blake.
59592
59593 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
59594
59595         * modules/getpass-gnu (Depends-on): Add fseeko.
59596
59597 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59598
59599         * modules/base64-tests: New file.
59600
59601 2008-05-19  Bo Borgerson <gigabo@gmail.com>
59602
59603         * lib/base64.c (base64_decode_ctx): If a decode context structure
59604         was passed in use it to ignore newlines.  If a context structure
59605         was _not_ passed in, continue to treat newlines as garbage (this
59606         is the historical behavior).  Formerly base64_decode.
59607         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59608         takes a decode context structure.
59609         * lib/base64.h (base64_decode): Macro for four-argument calls.
59610         (base64_decode_alloc): Likewise.
59611         * lib/base64.c (base64_decode_ctx): If a decode context structure
59612         was passed in use it to ignore newlines.  If a context structure
59613         was _not_ passed in, continue to treat newlines as garbage (this
59614         is the historical behavior).  Formerly base64_decode.
59615         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
59616         takes a decode context structure.
59617         * lib/base64.h (base64_decode): Macro for four-argument calls.
59618         (base64_decode_alloc): Likewise.
59619
59620 2008-05-19  Jim Meyering  <meyering@redhat.com>
59621
59622         avoid a warning from gcc
59623         * lib/trim.c (IF_LINT): Define.
59624         (trim2): Use it to avoid a "may be used uninitialized" warning.
59625
59626         Fix doc typo.
59627         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
59628
59629 2008-05-19  Bruno Haible  <bruno@clisp.org>
59630
59631         * doc/glibc-functions/getpass.texi: Document limits of other
59632         implementations.
59633
59634 2008-05-19  Simon Josefsson  <simon@josefsson.org>
59635             Bruno Haible <bruno@clisp.org>
59636
59637         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
59638
59639 2008-05-18  Bruno Haible  <bruno@clisp.org>
59640
59641         * modules/propername: New file, from GNU gettext.
59642         * lib/propername.h: New file, from GNU gettext.
59643         * lib/propername.c: New file, from GNU gettext.
59644         * MODULES.html.sh (Internationalization functions): Add propername.
59645
59646 2008-05-16  Jim Meyering  <meyering@redhat.com>
59647             Bruno Haible  <bruno@clisp.org>
59648
59649         Avoid some warnings from "gcc -Wshadow".
59650         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
59651
59652 2008-05-15  Eric Blake  <ebb9@byu.net>
59653
59654         Extend previous patch to cygwin 1.7.0.
59655         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
59656         fast implementation in cygwin >= 1.7.0.
59657         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59659
59660 2008-05-15  Bruno Haible  <bruno@clisp.org>
59661
59662         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
59663         implementation in glibc >= 2.9.
59664         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59665         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59666
59667 2008-05-15  Bruno Haible  <bruno@clisp.org>
59668
59669         * MODULES.html.sh (Internationalization functions): Remove linebreak.
59670         (Unicode string functions): Add unilbrk/*.
59671         Reported by Karl Berry.
59672
59673 2008-05-15  Eric Blake  <ebb9@byu.net>
59674
59675         Fix violation of <stdbool.h> replacement in regex.
59676         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
59677         * lib/regexec.c (re_search_internal): Likewise.
59678         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
59679
59680 2008-05-15  Jim Meyering  <meyering@redhat.com>
59681
59682         avoid distracting test output when git or cvs is not found
59683         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
59684         * tests/test-vc-list-files-git.sh: Likewise.
59685
59686 2008-05-15  Eric Blake  <ebb9@byu.net>
59687
59688         Glibc finally accepted the memmem speedup code, bugzilla #5514.
59689         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
59690         glibc version.
59691         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
59692         * doc/posix-functions/strstr.texi (strstr): Likewise.
59693         * lib/str-two-way.h (MAX): Sychronize with glibc.
59694
59695 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
59696
59697         * lib/regcomp.c (optimize_utf8): Add a note on why we test
59698         opr.ctx_type.
59699         (calc_first): Initialize constraint field.
59700         (duplicate_node_closure): Use it instead of special casing ANCHORS.
59701         Fix grammar.
59702         (duplicate_node): Merge constraint field for all node types.
59703         (calc_eclosure_iter): Look at constraint field for all node types.
59704         * lib/regex_internal.c (create_cd_newstate): Don't look at
59705         opr.ctx_type.
59706
59707 2008-05-14  Bruno Haible  <bruno@clisp.org>
59708
59709         Help GCC to do better code generation.
59710         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
59711         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
59712         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
59713         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
59714         Declare with attribute 'malloc' if supported.
59715
59716 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
59717
59718         use "echo STR|wc -c" rather than unportable "expr length STR"
59719         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
59720         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
59721
59722 2008-05-14  Jim Meyering  <meyering@redhat.com>
59723
59724         use dd ibs=$n count=1 ... rather than less-portable head -c$n
59725         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
59726         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
59727         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
59728         via Collin Lasse.
59729
59730 2008-05-14  Eric Blake  <ebb9@byu.net>
59731
59732         Avoid quadratic growth in gl_LIBSOURCES.
59733         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
59734         Suggested by Bruno Haible.
59735
59736         Test xmemdup0.
59737         * modules/xmemdup0-tests: New file.
59738         * tests/test-xmemdup0.c: Likewise.
59739
59740 2008-05-13  Eric Blake  <ebb9@byu.net>
59741
59742         Split xmemdup0 into its own module.
59743         * modules/xmemdup0: New file.
59744         * lib/xmemdup0.h: Likewise.
59745         * lib/xmemdup0.c: Likewise.
59746         * MODULES.html.sh (Memory management functions): Add xmemdup0.
59747         * lib/xalloc.h (xmemdup0): Remove.
59748         * lib/xmalloc.c (xmemdup0): Likewise.
59749
59750 2008-05-13  Eric Blake  <ebb9@byu.net>
59751             Bruno Haible  <bruno@clisp.org>
59752
59753         Reduce number of forks required during autoconf.
59754         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
59755         and gl_LIBSOURCES_DIR.
59756         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
59757         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
59758         m4_syscmd per file.
59759         <m4_foreach_w>: Move...
59760         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
59761
59762 2008-05-13  Eric Blake  <ebb9@byu.net>
59763
59764         * gnulib-tool: Fix various comment typos.
59765
59766 2008-05-12  Bruno Haible  <bruno@clisp.org>
59767
59768         Tailor the linebreaking algorithm.
59769         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
59770
59771 2008-05-12  Bruno Haible  <bruno@clisp.org>
59772
59773         Update to Unicode 5.0.0.
59774         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59775         LBP_JV, LBP_JT. Redistribute values.
59776         (unilbrk_table): Change size.
59777         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
59778         Unicode TR#14 rev. 22.
59779         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
59780         LBP_JV, LBP_JT. Redistribute values.
59781         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
59782         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
59783         Update.
59784         * lib/unilbrk/lbrkprop1.h: Regenerated.
59785         * lib/unilbrk/lbrkprop2.h: Regenerated.
59786         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
59787         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
59788         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
59789         Likewise.
59790         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
59791         Likewise.
59792         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
59793         result.
59794         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59795         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59796         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
59797         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
59798         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
59799         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
59800
59801 2008-05-11  Bruno Haible  <bruno@clisp.org>
59802
59803         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
59804
59805 2008-05-11  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
59808         * modules/unilbrk/gen-lbrk: New file.
59809
59810 2008-05-11  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
59813         * m4/sha512.m4 (gl_SHA512): Likewise.
59814
59815 2008-05-11  Jim Meyering  <meyering@redhat.com>
59816
59817         New modules: crypto/sha256, crypto/sha512 (from coreutils)
59818         * modules/crypto/sha256: New file.
59819         * modules/crypto/sha512: Likewise.
59820         * lib/sha256.c: Likewise.
59821         * lib/sha256.h: Likewise.
59822         * lib/sha512.c: Likewise.
59823         * lib/sha512.h: Likewise.
59824         * lib/u64.h: Likewise.
59825         * m4/sha256.m4: Likewise.
59826         * m4/sha512.m4: Likewise.
59827         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
59828
59829 2008-05-10  Bruno Haible  <bruno@clisp.org>
59830
59831         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59832         (Input/Output <stdio.h>): Add xprintf.
59833         (Signal handling <signal.h>): Add strsignal.
59834         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59835         (Core language properties): Add func.
59836         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59837         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59838         strings.
59839         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59840         (Input/output): New section.
59841         (File system functions): Add openat-die, stat-macros.
59842         (Networking functions): Add sockets.
59843         (Unicode string functions): Add unictype/*.
59844         (Support for building libraries and executables): Add gperf.
59845         (Support for building documentation): Add agpl-3.0.
59846         (Misc): Add nocrash.
59847
59848 2008-05-10  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/unictype/gen-ctype: New file.
59851
59852 2008-05-10  Jim Meyering  <meyering@redhat.com>
59853
59854         Make chdir-safer.c more efficient on a system with no symlinks.
59855         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59856         also if ELOOP is zero.  Suggested by Bruno Haible.
59857
59858         Make chdir-safer.c slightly safer.
59859         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59860         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59861
59862         Avoid compile failure on systems without ELOOP (like mingw).
59863         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59864         Reported by Bruno Haible.
59865
59866 2008-05-10  Bruno Haible  <bruno@clisp.org>
59867
59868         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59869         (is_utf8_encoding): Use a case-insensitive comparison.
59870         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59871         streq.
59872
59873 2008-05-10  Bruno Haible  <bruno@clisp.org>
59874
59875         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59876         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59877         * lib/unilbrk/ulc-common.h (iconv_string_length,
59878         iconv_string_keeping_offsets): Remove declarations.
59879         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59880         Don't include <iconv.h>, streq.h, xsize.h.
59881         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59882         conversion.
59883         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59884         <iconv.h>, streq.h, xsize.h.
59885         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59886         conversion.
59887         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59888         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59889         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59890         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59891
59892 2008-05-10  Bruno Haible  <bruno@clisp.org>
59893
59894         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59895         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59896
59897         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59898         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59899
59900         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59901         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59902
59903         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59904         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59905
59906         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59907         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59908
59909         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59910         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59911
59912         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59913         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59914
59915         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59916         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59917
59918 2008-05-10  Bruno Haible  <bruno@clisp.org>
59919
59920         Split up 'linebreak' module.
59921         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59922         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59923         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59924         modifications.
59925         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59926         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59927         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59928         lib/linebreak.c.
59929         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59930         lib/linebreak.c.
59931         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59932         lib/linebreak.c.
59933         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59934         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59935         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59936         lib/linebreak.c.
59937         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59938         lib/linebreak.c.
59939         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59940         lib/linebreak.c.
59941         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59942         lib/linebreak.c.
59943         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59944         lib/linebreak.c.
59945         * modules/unilbrk/base: New file.
59946         * modules/unilbrk/tables: New file.
59947         * modules/unilbrk/u8-possible-linebreaks: New file.
59948         * modules/unilbrk/u16-possible-linebreaks: New file.
59949         * modules/unilbrk/u32-possible-linebreaks: New file.
59950         * modules/unilbrk/ulc-common: New file.
59951         * modules/unilbrk/ulc-possible-linebreaks: New file.
59952         * modules/unilbrk/u8-width-linebreaks: New file.
59953         * modules/unilbrk/u16-width-linebreaks: New file.
59954         * modules/unilbrk/u32-width-linebreaks: New file.
59955         * modules/unilbrk/ulc-width-linebreaks: New file.
59956         * lib/linebreak.h: Remove file.
59957         * lib/linebreak.c: Remove file.
59958         * m4/linebreak.m4: Remove file.
59959         * modules/linebreak: Remove file.
59960         * NEWS: Mention the changes.
59961
59962 2008-05-09  Eric Blake  <ebb9@byu.net>
59963
59964         Add xmemdup0.
59965         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59966         implementation.
59967         * lib/xmalloc.c (xmemdup0): New C implementation.
59968
59969 2008-05-08  Bruno Haible  <bruno@clisp.org>
59970
59971         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59972
59973 2008-05-07  Eric Blake  <ebb9@byu.net>
59974
59975         Support cross-compilation of <wctype.h>.
59976         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59977         AC_CACHE_CHECK.
59978
59979 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59980
59981         * build-aux/vc-list-files: Add support for bzr.
59982
59983 2008-05-03  Jim Meyering  <meyering@redhat.com>
59984
59985         avoid failed assertion with tight malloc
59986         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59987
59988 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59989
59990         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59991         are needed from arpa/inet.h.
59992         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59993         Reported by Bruno Haible.
59994
59995 2008-05-02  Jim Meyering  <meyering@redhat.com>
59996
59997         avoid compilation error on FreeBSD 6
59998         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59999
60000 2008-05-01  Jim Meyering  <meyering@redhat.com>
60001
60002         useless-if-before-free: correct --help's exit status description
60003         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60004         for one or more matches, etc.  Reported by Bruno Haible.
60005
60006         vc-list-files: make the stand-alone gnulib test work
60007         * modules/vc-list-files-tests (configure.ac):
60008         Define and AC_SUBST abs_aux_dir.
60009         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60010         $(abs_top_srcdir) to each script and having each of them
60011         duplicate the work of setting PATH, set PATH here, using
60012         the new variable, abs_aux_dir instead.
60013         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60014         * tests/test-vc-list-files-git.sh: Likewise.
60015         Reported by Bruno Haible.
60016
60017 2008-05-01  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60020         reallocation. Rename 'done' to 'found_delimiter'.
60021
60022 2008-05-01  Jim Meyering  <meyering@redhat.com>
60023
60024         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60025         * build-aux/vc-list-files: Use `...`, not $(...).
60026
60027 2008-04-30  Jim Meyering  <meyering@redhat.com>
60028
60029         add tests for vc-list-files
60030         * modules/vc-list-files-tests: New module.
60031         * tests/test-vc-list-files-cvs.sh: New file.
60032         * tests/test-vc-list-files-git.sh: New file.
60033
60034         avoid a warning from gcc
60035         * lib/getndelim2.c (IF_LINT): Define.
60036         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60037
60038         vc-list-files: work properly with build-aux/cvsu, too
60039         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60040         to all cvs-based clauses.
60041
60042         vc-list-files: work properly in the CVS+awk case, too
60043         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60044
60045         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60046         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60047         take more than one file argument, so .  Add quotes, just in case $dir
60048         ever contains a shell meta-character.  Prompted by Soren Hansen in
60049         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60050
60051 2008-04-29  Eric Blake  <ebb9@byu.net>
60052
60053         Optimize getndelim2 to use block operations when possible.
60054         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60055         freadseek, and memchr2.
60056         * lib/getndelim2.c (getndelim2): Use them for block reads.
60057
60058 2008-04-29  Bruno Haible  <bruno@clisp.org>
60059
60060         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60061         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60062         * modules/inet_ntop (Depends-on): Add extensions.
60063         * modules/inet_pton (Depends-on): Likewise.
60064         Reported by Simon Josefsson.
60065
60066 2008-04-29  Jim Meyering  <meyering@redhat.com>
60067
60068         When the is more than one match in a block, match all of them.
60069         * build-aux/useless-if-before-free: Iterate through each block
60070         until there are no more matches.
60071
60072         Fix broken useless-if-before-free script.
60073         * build-aux/useless-if-before-free: Fix typo: missing "?" after
60074         the expression to match cast of argument to free-like function.
60075
60076 2008-04-29  Eric Blake  <ebb9@byu.net>
60077
60078         Use new header.
60079         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
60080
60081 2008-04-29  Jim Meyering  <meyering@redhat.com>
60082
60083         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
60084         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
60085         by gnulib to exist and to declare e.g., inet_ntop.
60086         Don't include "inet_ntop.h", now removed.
60087
60088         * m4/arpa_inet_h.m4: Remove trailing blanks.
60089
60090 2008-04-29  Eric Blake  <ebb9@byu.net>
60091
60092         Silence valgrind on safe reads beyond potential array bounds.
60093         * lib/rawmemchr.valgrind: New file.
60094         * lib/strchrnul.valgrind: Likewise.
60095         * modules/rawmemchr (Files): Distribute new file.
60096         * modules/strchrnul (Files): Likewise.
60097         Suggested by Bruno Haible.
60098
60099 2008-04-29  Bruno Haible  <bruno@clisp.org>
60100
60101         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
60102         (inet_ntop, inet_pton): Change portability warning's wording.
60103         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
60104         Invoke gl_CHECK_NEXT_HEADERS.
60105         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
60106         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
60107         set ARPA_INET_H.
60108         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60109         * modules/arpa_inet (Description): No longer only for systems that
60110         lack it.
60111         (Depends-on): Add include_next.
60112         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
60113         HAVE_ARPA_INET_H.
60114
60115 2008-04-29  Jim Meyering  <meyering@redhat.com>
60116
60117         * modules/mkdir (License): Re-license as LGPLv2+.
60118
60119 2008-04-29  Bruno Haible  <bruno@clisp.org>
60120
60121         * modules/rawmemchr (Maintainer): Set to Eric.
60122         * modules/strchrnul (Maintainer): Likewise.
60123
60124 2008-04-29  Simon Josefsson  <simon@josefsson.org>
60125
60126         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
60127         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
60128
60129         * modules/arpa_inet (arpa/inet.h): Use them.
60130
60131 2008-04-28  Eric Blake  <ebb9@byu.net>
60132
60133         Test getndelim2.
60134         * modules/getndelim2-tests: New file.
60135         * tests/test-getndelim2.c: Likewise.
60136         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
60137         stream.
60138         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
60139
60140         * MODULES.html.sh: Document new module.
60141
60142 2008-04-20  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/c-stack.c (die): Use raise.
60145         * modules/c-stack (Depends-on): Add raise.
60146
60147 2008-04-28  Bruno Haible  <bruno@clisp.org>
60148
60149         Expect rpmatch to be declared.
60150         * lib/yesno.c (rpmatch): Remove declaration.
60151
60152         Declare rpmatch.
60153         * lib/stdlib.in.h (rpmatch): New declaration.
60154         * lib/rpmatch.c: Include <stdlib.h> first.
60155         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
60156         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
60157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
60158         HAVE_RPMATCH.
60159         * modules/rpmatch (Depends-on): Add stdlib, extensions.
60160         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60161         (Include): Set to <stdlib.h>.
60162         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
60163         HAVE_RPMATCH.
60164         * NEWS: Document the change.
60165
60166 2008-04-28  Bruno Haible  <bruno@clisp.org>
60167
60168         Change rpmatch to use nl_langinfo when appropriate.
60169         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
60170         (N_): New macro.
60171         (localized_pattern): New function/macro.
60172         (try): Remove match, nomatch arguments. Copy the pattern into safe
60173         memory before caching it.
60174         (rpmatch): Use localized_pattern. Add translator comments.
60175         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
60176         Suggested by Eric Blake.
60177         * modules/rpmatch (Depends-on): Add stdbool.
60178
60179 2008-04-28  Eric Blake  <ebb9@byu.net>
60180
60181         Add rawmemchr module, matching glibc.
60182         * modules/string (Makefile.am): New indicator.
60183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
60184         * lib/string.in.h (rawmemchr): Declare when appropriate.
60185         * modules/rawmemchr: New file.
60186         * m4/rawmemchr.m4: Likewise.
60187         * lib/rawmemchr.c: Likewise.
60188         * modules/rawmemchr-tests: Likewise.
60189         * tests/test-rawmemchr.c: Likewise.
60190         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
60191         module.
60192         * modules/strchrnul (Depends-on): Add rawmemchr.
60193         * lib/strchrnul.c (strchrnul): Optimize a corner case.
60194
60195         Whitespace cleanup.
60196         * tests/test-strchrnul.c: Reindent.
60197         * lib/strchrnul.c: Likewise.
60198
60199         Optimize and test strchrnul.
60200         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
60201         * modules/strchrnul-tests: New file.
60202         * tests/test-strchrnul.c: Likewise.
60203
60204         Remove intprops dependency.
60205         * modules/memchr (Depends-on): Remove intprops.
60206         * modules/memrchr (Depends-on): Likewise.
60207         * modules/memchr2 (Depends-on): Likewise.
60208         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
60209         * lib/memrchr.c (__memrchr): Likewise.
60210         * lib/memrchr2.c (memchr2): Likewise.
60211         Reported by Simon Josefsson.
60212
60213 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60214
60215         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
60216         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60217
60218 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60219
60220         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
60221
60222         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
60223
60224         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
60225
60226         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
60227         declarations.
60228         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
60229
60230         * m4/inet_pton.m4: Don't check for header files.
60231
60232         * m4/inet_ntop.m4: Don't check for header files.
60233
60234 2008-04-28  Simon Josefsson  <simon@josefsson.org>
60235
60236         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
60237         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
60238         trigger for cygwin).
60239         Reported by Bruno Haible  <bruno@clisp.org>.
60240
60241 2008-04-28  Bruno Haible  <bruno@clisp.org>
60242
60243         * doc/posix-functions/strdup.texi: Mention mingw problem.
60244
60245 2008-04-27  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/stat-time-tests (Depends-on): Add sleep.
60248         * tests/test-stat-time.c (force_unlink): New function.
60249         (cleanup): Use it.
60250         (test_mtime): Remove the ctime related tests.
60251         (test_ctime): New function, containing the ctime related tests.
60252         (main): Call test_ctime, except on native Windows platforms.
60253
60254 2008-04-27  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/rpmatch.c (rpmatch): Add some comments.
60257         Reported by James Youngman <jay@gnu.org>.
60258
60259 2008-04-27  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
60262         quiet NaNs.
60263
60264 2008-04-27  Bruno Haible  <bruno@clisp.org>
60265
60266         Make test-yesno.sh work on mingw.
60267         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
60268         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
60269         (main): Set stdin to binary mode.
60270         * modules/yesno-tests (Depends-on): Add binary-io.
60271
60272 2008-04-27  Bruno Haible  <bruno@clisp.org>
60273
60274         Fix 'isfinite' on x86, x86_64, ia64 platforms.
60275         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
60276         argument that lie outside the IEEE 854 domain.
60277         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
60278         (gl_ISFINITE): Use it.
60279         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
60280
60281 2008-04-27  Bruno Haible  <bruno@clisp.org>
60282
60283         Allow local renaming in config.h.
60284         * lib/memrchr.c (memrchr): Don't undefine outside libc.
60285
60286 2008-04-27  Bruno Haible  <bruno@clisp.org>
60287
60288         * lib/memchr.c (__memchr): Change type of 'i'.
60289         * lib/memchr2.c (memchr2): Likewise.
60290
60291 2008-04-26  Eric Blake  <ebb9@byu.net>
60292         and Bruno Haible  <bruno@clisp.org>
60293
60294         Optimize and test memrchr.
60295         * modules/memrchr (Depends-on): Add intprops.
60296         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
60297         * modules/memrchr-tests: New file.
60298         * tests/test-memrchr.c: New file.
60299
60300 2008-04-26  Bruno Haible  <bruno@clisp.org>
60301
60302         Add tentative support for DragonFly BSD.
60303         * lib/stdio-impl.h: Add macros for DragonFly BSD.
60304         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
60305         fp.
60306         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60307         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
60308         * lib/fpurge.c (fpurge): Likewise.
60309         * lib/freadable.c (freaadable): Likewise.
60310         * lib/freadahead.c (freadahead): Likewise.
60311         * lib/freading.c (freading): Likewise.
60312         * lib/freadptr.c (freadptr): Likewise.
60313         * lib/freadseek.c (freadptrinc): Likewise.
60314         * lib/fseeko.c (fseeko): Likewise.
60315         * lib/fseterr.c (fseterr): Likewise.
60316         * lib/fwritable.c (fwritable): Likewise.
60317         * lib/fwriting.c (fwriting): Likewise.
60318
60319 2008-04-26  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/stdio-impl.h: New file.
60322         * lib/fbufmode.c: Include stdio-impl.h.
60323         (fbufmode): Use fp_, remove redundant #defines.
60324         * lib/fflush.c: Include stdio-impl.h.
60325         (clear_ungetc_buffer): Remove redundant #defines.
60326         * lib/fpurge.c: Include stdio-impl.h.
60327         (fpurge): Remove redundant #defines.
60328         * lib/freadable.c: Include stdio-impl.h.
60329         (freadable): Remove redundant #defines.
60330         * lib/freadahead.c: Include stdio-impl.h.
60331         (freadahead): Remove redundant #defines.
60332         * lib/freading.c: Include stdio-impl.h.
60333         (freading): Remove redundant #defines.
60334         * lib/freadptr.c: Include stdio-impl.h.
60335         (freadptr): Remove redundant #defines.
60336         * lib/freadseek.c: Include stdio-impl.h.
60337         (freadptrinc): Remove redundant #defines.
60338         * lib/fseeko.c: Include stdio-impl.h.
60339         (rpl_fseeko): Remove redundant #defines.
60340         * lib/fseterr.c: Include stdio-impl.h.
60341         (fseterr): Remove redundant #defines.
60342         * lib/fwritable.c: Include stdio-impl.h.
60343         (fwritable: Remove redundant #defines.
60344         * lib/fwriting.c: Include stdio-impl.h.
60345         (fwriting): Remove redundant #defines.
60346         * modules/fbufmode (Files): Add lib/stdio-impl.h.
60347         * modules/fflush (Files): Likewise.
60348         * modules/fpurge (Files): Likewise.
60349         * modules/freadable (Files): Likewise.
60350         * modules/freadahead (Files): Likewise.
60351         * modules/freading (Files): Likewise.
60352         * modules/freadptr (Files): Likewise.
60353         * modules/freadseek (Files): Likewise.
60354         * modules/fseeko (Files): Likewise.
60355         * modules/fseterr (Files): Likewise.
60356         * modules/fwritable (Files): Likewise.
60357         * modules/fwriting (Files): Likewise.
60358
60359 2008-04-26  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
60362         restore_seek_optimization, update_fpos_cache): New functions, extracted
60363         from rpl_fflush.
60364         (rpl_fflush): Use them.
60365         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
60366         (gl_REPLACE_FFLUSH): Use it.
60367
60368 2008-04-26  Bruno Haible  <bruno@clisp.org>
60369
60370         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
60371         on Solaris.
60372         * tests/test-xstrtoimax.sh: Likewise.
60373         * tests/test-xstrtoumax.sh: Likewise.
60374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60375
60376 2008-04-26  Bruno Haible  <bruno@clisp.org>
60377
60378         * modules/memchr-tests: New file.
60379         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
60380
60381 2008-04-26  Eric Blake  <ebb9@byu.net>
60382             Bruno Haible  <bruno@clisp.org>
60383
60384         * lib/memchr.c: Include intprops.h.
60385         (__memchr): Optimize parallel detection of matching bytes. Rename local
60386         variables. Add explanatory comments.
60387
60388 2008-04-26  Bruno Haible  <bruno@clisp.org>
60389
60390         Fix module 'memchr', broken since 2000-10-28.
60391         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
60392
60393 2008-04-26  Bruno Haible  <bruno@clisp.org>
60394
60395         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
60396         comments.
60397
60398 2008-04-25  Eric Blake  <ebb9@byu.net>
60399
60400         Use native fstatat on cygwin 1.7.0.
60401         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
60402         first.
60403
60404 2008-04-23  Eric Blake  <ebb9@byu.net>
60405
60406         Improve memchr2 performance.
60407         * lib/memchr2.c (memchr2): Further optimize parallel detection of
60408         NUL bytes.
60409         * modules/memchr2 (Depends-on): Use intprops.h.
60410
60411 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60412
60413         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
60414         an inline function instead of a CPP macro.  Patch by Ben Pfaff
60415         <blp@cs.stanford.edu>.
60416
60417 2008-04-23  Simon Josefsson  <simon@josefsson.org>
60418
60419         * lib/arpa_inet.in.h: New file.
60420
60421         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
60422         (Makefile.am): Sed in substitute header file.
60423
60424         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
60425         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
60426
60427         * modules/inet_ntop (configure.ac): Use
60428         gl_ARPA_INET_MODULE_INDICATOR.
60429
60430         * modules/inet_pton (configure.ac): Use
60431         gl_ARPA_INET_MODULE_INDICATOR.
60432
60433 2008-04-22  Jim Meyering  <meyering@redhat.com>
60434
60435         * modules/verify (License): Re-license as LGPLv2+.
60436
60437 2008-04-22  Simon Josefsson  <simon@josefsson.org>
60438
60439         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
60440         parameter to void* as per POSIX standard (MinGW uses char*).
60441
60442 2008-04-21  Bruno Haible  <bruno@clisp.org>
60443
60444         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60445         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60446         Define to replacements if REPLACE_ISWCNTRL is 1.
60447         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
60448         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
60449         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
60450         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
60451         what it fixes.
60452         * doc/posix-functions/iswalpha.texi: Likewise.
60453         * doc/posix-functions/iswblank.texi: Likewise.
60454         * doc/posix-functions/iswcntrl.texi: Likewise.
60455         * doc/posix-functions/iswdigit.texi: Likewise.
60456         * doc/posix-functions/iswgraph.texi: Likewise.
60457         * doc/posix-functions/iswlower.texi: Likewise.
60458         * doc/posix-functions/iswprint.texi: Likewise.
60459         * doc/posix-functions/iswpunct.texi: Likewise.
60460         * doc/posix-functions/iswspace.texi: Likewise.
60461         * doc/posix-functions/iswupper.texi: Likewise.
60462         * doc/posix-functions/iswxdigit.texi: Likewise.
60463         Reported by Alain Guibert.
60464
60465 2008-04-21  Bruno Haible  <bruno@clisp.org>
60466
60467         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
60468         Patch by Alain Guibert.
60469
60470 2008-04-21  Bruno Haible  <bruno@clisp.org>
60471
60472         Fix test failures on mingw.
60473         * tests/test-xstrtol.c (print_no_progname): New function.
60474         (main): Install it in error_print_progname hook.
60475         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
60476         * tests/test-xstrtoimax.sh: Likewise.
60477         * tests/test-xstrtoumax.sh: Likewise.
60478
60479 2008-04-21  Bruno Haible  <bruno@clisp.org>
60480
60481         Fix test failure on mingw.
60482         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
60483
60484 2008-04-21  Bruno Haible  <bruno@clisp.org>
60485
60486         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
60487         Actually assign a value.
60488
60489 2008-04-20  Bruno Haible  <bruno@clisp.org>
60490
60491         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
60492         take 2.
60493         * lib/canonicalize.c (canonicalize_file_name): Elide if the
60494         'canonicalize-lgpl' module is also used.
60495         * lib/canonicalize-lgpl.c: Undo last change.
60496         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
60497
60498 2008-04-20  Bruno Haible  <bruno@clisp.org>
60499
60500         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
60501         config.h. Provide _mkdir based fallback for mingw.
60502         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
60503         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
60504         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
60505         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
60506         rather than defining mkdir in config.h.
60507         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
60508         (gl_SYS_STAT_H_DEFAULTS): New macro.
60509         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
60510         HAVE_IO_H any more.
60511         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
60512         HAVE_DECL_MKDIR and HAVE_IO_H.
60513
60514 2008-04-20  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/isapipe.c: Port to native Windows platforms.
60517
60518 2008-04-20  Bruno Haible  <bruno@clisp.org>
60519
60520         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
60521
60522 2008-04-21  Eric Blake  <ebb9@byu.net>
60523
60524         Work around preprocessors that don't handle UINTMAX_MAX.
60525         * lib/memchr2.c (memchr2): Avoid embedded #if.
60526         Reported by Alain Guibert, fix suggested by Bruno Haible.
60527
60528 2008-04-21  Simon Josefsson  <simon@josefsson.org>
60529
60530         * doc/posix-functions/strftime.texi (strftime): Explain better
60531         Windows incompatibility.  Suggested by Micah Cowan
60532         <micah@cowan.name>.
60533
60534 2008-04-20  Bruno Haible  <bruno@clisp.org>
60535
60536         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
60537         unistr/u8-mblen.
60538
60539 2008-04-20  Bruno Haible  <bruno@clisp.org>
60540
60541         Fix test failure on platforms with non-GNU iconv.
60542         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
60543         (U_TO_U8): Use it, rather than u16_to_u8.
60544         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
60545         units at the end of the input string.
60546         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
60547
60548 2008-04-20  Bruno Haible  <bruno@clisp.org>
60549
60550         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
60551         when the resulting length is 0.
60552         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
60553
60554 2008-04-20  Bruno Haible  <bruno@clisp.org>
60555
60556         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
60557         works.
60558         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
60559
60560 2008-04-20  Bruno Haible  <bruno@clisp.org>
60561
60562         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
60563         * modules/tsearch-tests (configure.ac): Test for initstate function.
60564
60565 2008-04-20  Bruno Haible  <bruno@clisp.org>
60566
60567         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
60568         for nlink_t if missing.
60569         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
60570
60571 2008-04-19  Bruno Haible  <bruno@clisp.org>
60572
60573         Work around snprintf bug on Linux libc5.
60574         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
60575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60576         gl_SNPRINTF_SIZE1.
60577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60578         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
60579         that test failed.
60580         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
60581         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
60582         * modules/snprintf (Files): Add m4/printf.m4.
60583         * modules/vsnprintf (Files): Likewise.
60584         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
60585         * doc/posix-functions/vsnprintf.texi: Likewise.
60586
60587 2008-04-19  Bruno Haible  <bruno@clisp.org>
60588
60589         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
60590         from 0.0058 to less than 10^-7.
60591
60592 2008-04-19  Bruno Haible  <bruno@clisp.org>
60593
60594         Fix rounding when a precision is given.
60595         * lib/vasnprintf.c (is_borderline): New function.
60596         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
60597         9...9x.
60598         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
60599         %e, %g.
60600         * tests/test-vasprintf-posix.c (test_function): Likewise.
60601         * tests/test-snprintf-posix.h (test_function): Likewise.
60602         * tests/test-sprintf-posix.h (test_function): Likewise.
60603         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
60604         * tests/test-printf-posix.h (test_function): Likewise.
60605         * tests/test-printf-posix.output: Update.
60606         Reported by John Darrington <john@darrington.wattle.id.au> via
60607         Ben Pfaff <blp@cs.stanford.edu>.
60608
60609 2008-04-18  Simon Josefsson  <simon@josefsson.org>
60610
60611         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
60612         Suggested by Bruno Haible <bruno@clisp.org>.
60613
60614 2008-04-17  Bruno Haible  <bruno@clisp.org>
60615
60616         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
60617         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
60618         implementation.
60619         Patch by Bruce Merry <bmerry@gmail.com>.
60620
60621 2008-04-17  Simon Josefsson  <simon@josefsson.org>
60622
60623         * doc/posix-functions/strftime.texi (strftime): Mention that %e
60624         doesn't work under Windows.
60625
60626 2008-04-16  Bruno Haible  <bruno@clisp.org>
60627
60628         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
60629         New macros.
60630         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
60631         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
60632         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
60633         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
60634         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
60635         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
60636         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
60637         macros.
60638         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
60639         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
60640         Northern Sotho, Uighur.
60641
60642 2008-04-16  Bruno Haible  <bruno@clisp.org>
60643
60644         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
60645         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
60646         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
60647         Reported by Daniel Bergström <daniel@octocode.com>.
60648
60649 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
60650             Bruno Haible  <bruno@clisp.org>
60651
60652         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
60653         function.
60654         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
60655         New functions, mostly extracted from gl_locale_name_default.
60656         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
60657
60658 2008-04-16  Eric Blake  <ebb9@byu.net>
60659
60660         Adjust strtod detection to catch glibc 2.7 bug.
60661         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
60662         Reported by John Gatewood Ham.
60663
60664 2008-04-16  Bruno Haible  <bruno@clisp.org>
60665
60666         Add tentative support for Linux libc5.
60667         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
60668         * lib/fpurge.c (fpurge): Likewise.
60669         * lib/freadable.c (freadable): Likewise.
60670         * lib/freadahead.c (freadahead): Likewise.
60671         * lib/freading.c (freading): Likewise.
60672         * lib/freadptr.c (freadptr): Likewise.
60673         * lib/freadseek.c (freadptrinc): Likewise.
60674         * lib/fseeko.c (rpl_fseeko): Likewise.
60675         * lib/fseterr.c (fseterr): Likewise.
60676         * lib/fwritable.c (fwritable): Likewise.
60677         * lib/fwriting.c (fwriting): Likewise.
60678         Reported by Alain Guibert <alguibert+bts@free.fr>.
60679
60680 2008-04-15  Bruno Haible  <bruno@clisp.org>
60681
60682         * modules/mathl (configure.ac): Define module indicator.
60683
60684 2008-04-15  Bruno Haible  <bruno@clisp.org>
60685
60686         * lib/logl.c (logl): Remove unused variables.
60687
60688 2008-04-15  Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
60691         fails.
60692
60693 2008-04-15  Bruno Haible  <bruno@clisp.org>
60694
60695         * lib/trim.c (trim2): Fix argument of isspace() macro.
60696
60697 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
60698
60699         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
60700         to 0.
60701         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
60702
60703 2008-04-14  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
60706         AC_LANG_PROGRAM argument.
60707         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
60708         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
60709         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
60710         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60711         * m4/math_h.m4 (gl_MATH_H): Likewise.
60712         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
60713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60714         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60715         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
60716         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
60717         * m4/regex.m4 (gl_REGEX): Likewise.
60718         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
60719         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
60720         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60721         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
60722         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60723         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60724         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60725         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60726
60727 2008-04-14  Jim Meyering  <meyering@redhat.com>
60728
60729         test-strtod: fix typos: s/abs/fabs/
60730         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
60731
60732 2008-04-13  Bruno Haible  <bruno@clisp.org>
60733
60734         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
60735         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
60736         module is also used and while not building the reloc-wrapper.
60737
60738 2008-04-13  Bruno Haible  <bruno@clisp.org>
60739
60740         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
60741
60742 2008-04-13  Bruno Haible  <bruno@clisp.org>
60743
60744         Fix AIX compilation failure introduced on 2008-04-02.
60745         * tests/test-frexp.c (exp): Undefine before redefining.
60746         * tests/test-frexpl.c (exp): Likewise.
60747
60748 2008-04-13  Bruno Haible  <bruno@clisp.org>
60749
60750         Work around a HP-UX stdio bug.
60751         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
60752         * tests/test-ftello.c (main): Likewise.
60753         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
60754         * doc/posix-functions/ftello.texi: Likewise.
60755
60756 2008-04-13  Bruno Haible  <bruno@clisp.org>
60757
60758         Make test-signbit pass on HP-UX/hppa.
60759         * tests/test-signbit.c (minus_zerol): New variable.
60760         (test_signbitl): Use it.
60761
60762 2008-04-13  Bruno Haible  <bruno@clisp.org>
60763
60764         Make truncl work on OSF/1 4.0.
60765         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
60766         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60767         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
60768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
60769         HAVE_DECL_TRUNCL.
60770         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
60771         HAVE_DECL_TRUNCL.
60772         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
60773
60774 2008-04-13  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/unictype.h: Remove trailing comma from enumeration definitions.
60777
60778 2008-04-13  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
60781         expression, so as to avoid HP-UX 11 cc compiler bug.
60782
60783 2008-04-13  Bruno Haible  <bruno@clisp.org>
60784
60785         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
60786
60787 2008-04-13  Bruno Haible  <bruno@clisp.org>
60788
60789         * lib/git-merge-changelog.c: Remove empty declaration outside of
60790         functions.
60791
60792 2008-04-13  Bruno Haible  <bruno@clisp.org>
60793
60794         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
60795
60796 2008-04-13  Bruno Haible  <bruno@clisp.org>
60797
60798         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
60799         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
60800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
60801         also if it exists but lacks definitions of the SHUT_* macros.
60802         * modules/sys_socket (Description): Update.
60803         Reported by Elbert Pol <e.pol@chello.nl>.
60804
60805 2008-04-13  Bruno Haible  <bruno@clisp.org>
60806
60807         * lib/localcharset.c (OS2): Don't redefine if already defined.
60808         Reported by Elbert Pol <e.pol@chello.nl>.
60809
60810 2008-04-13  Bruno Haible  <bruno@clisp.org>
60811
60812         * lib/binary-io.h [__EMX__]: Include <io.h>.
60813         Reported by Elbert Pol <e.pol@chello.nl>.
60814
60815 2008-04-12  Bruno Haible  <bruno@clisp.org>
60816
60817         * lib/fpucw.h: Enable the definitions also for x86_64.
60818         Needed for NetBSD/x86_64.
60819         Reported by Thomas Klausner <tk@giga.or.at>.
60820
60821 2008-04-12  Bruno Haible  <bruno@clisp.org>
60822
60823         * tests/test-strtod.c: Include isnand.h.
60824         (main): Use isnand instead of isnan.
60825         Reported by Jim Meyering.
60826
60827 2008-04-12  Bruno Haible  <bruno@clisp.org>
60828
60829         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
60830         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
60831
60832 2008-04-12  Jim Meyering  <meyering@redhat.com>
60833
60834         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60835
60836 2008-04-12  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60839         Reported by Elbert Pol <e.pol@chello.nl>.
60840
60841 2008-04-12  Eric Blake  <ebb9@byu.net>
60842
60843         Work around Solaris 10 math.h bug.
60844         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60845         (gl_MATH_H_DEFAULTS): Set up default.
60846         * modules/math (Makefile.am): Replace new indicators.
60847         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60848         * tests/test-math.c (main): Test this.
60849         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60850         * doc/posix-headers/math.texi (math.h): Mention bug.
60851         Reported by Nelson H. F. Beebe and Jim Meyering.
60852
60853 2008-04-11  Bruno Haible  <bruno@clisp.org>
60854
60855         Adapt to future versions of Apple GCC.
60856         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60857         Reported by Peter O'Gorman <peter@pogma.com>.
60858
60859 2008-04-11  Bruno Haible  <bruno@clisp.org>
60860
60861         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60862
60863 2008-04-11  Bruno Haible  <bruno@clisp.org>
60864
60865         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60866
60867         * modules/getaddrinfo-tests (Makefile.am): Define
60868         test_getaddrinfo_LDADD.
60869
60870 2008-04-11  Bruno Haible  <bruno@clisp.org>
60871
60872         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60873         (init): Fix syntax error.
60874         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60875         is declared.
60876
60877 2008-04-11  Bruno Haible  <bruno@clisp.org>
60878
60879         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60880         * modules/glob (Depends-on): Add stdbool.
60881
60882 2008-04-11  Bruno Haible  <bruno@clisp.org>
60883
60884         * lib/trim.c: Include <string.h>.
60885
60886 2008-04-11  Eric Blake  <ebb9@byu.net>
60887
60888         Avoid compile failure on OS/2.
60889         * lib/regex_internal.h (internal_function): Disable optimization
60890         on OS/2 (__EMX__), where it caused compiler error.
60891         Reported by Elbert Pol.
60892
60893 2008-04-11  Bruno Haible  <bruno@clisp.org>
60894
60895         Flush the standard error stream before aborting. Needed on mingw.
60896         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60897         * tests/test-array_list.c (ASSERT): Likewise.
60898         * tests/test-array_oset.c (ASSERT): Likewise.
60899         * tests/test-avltree_list.c (ASSERT): Likewise.
60900         * tests/test-avltree_oset.c (ASSERT): Likewise.
60901         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60902         * tests/test-binary-io.c (ASSERT): Likewise.
60903         * tests/test-byteswap.c (ASSERT): Likewise.
60904         * tests/test-c-ctype.c (ASSERT): Likewise.
60905         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60906         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60907         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60908         * tests/test-c-strstr.c (ASSERT): Likewise.
60909         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60910         * tests/test-canonicalize.c (ASSERT): Likewise.
60911         * tests/test-carray_list.c (ASSERT): Likewise.
60912         * tests/test-ceilf1.c (ASSERT): Likewise.
60913         * tests/test-ceilf2.c (ASSERT): Likewise.
60914         * tests/test-ceill.c (ASSERT): Likewise.
60915         * tests/test-count-one-bits.c (ASSERT): Likewise.
60916         * tests/test-fbufmode.c (ASSERT): Likewise.
60917         * tests/test-fflush2.c (ASSERT): Likewise.
60918         * tests/test-floorf1.c (ASSERT): Likewise.
60919         * tests/test-floorf2.c (ASSERT): Likewise.
60920         * tests/test-floorl.c (ASSERT): Likewise.
60921         * tests/test-fopen.c (ASSERT): Likewise.
60922         * tests/test-fpending.c (ASSERT): Likewise.
60923         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60924         * tests/test-fpurge.c (ASSERT): Likewise.
60925         * tests/test-freadable.c (ASSERT): Likewise.
60926         * tests/test-freadahead.c (ASSERT): Likewise.
60927         * tests/test-freading.c (ASSERT): Likewise.
60928         * tests/test-freadptr.c (ASSERT): Likewise.
60929         * tests/test-freadptr2.c (ASSERT): Likewise.
60930         * tests/test-freadseek.c (ASSERT): Likewise.
60931         * tests/test-freopen.c (ASSERT): Likewise.
60932         * tests/test-frexp.c (ASSERT): Likewise.
60933         * tests/test-frexpl.c (ASSERT): Likewise.
60934         * tests/test-fseek.c (ASSERT): Likewise.
60935         * tests/test-fseeko.c (ASSERT): Likewise.
60936         * tests/test-fstrcmp.c (ASSERT): Likewise.
60937         * tests/test-ftell.c (ASSERT): Likewise.
60938         * tests/test-ftello.c (ASSERT): Likewise.
60939         * tests/test-func.c (ASSERT): Likewise.
60940         * tests/test-fwritable.c (ASSERT): Likewise.
60941         * tests/test-fwriting.c (ASSERT): Likewise.
60942         * tests/test-getdelim.c (ASSERT): Likewise.
60943         * tests/test-getline.c (ASSERT): Likewise.
60944         * tests/test-i-ring.c (ASSERT): Likewise.
60945         * tests/test-iconv-utf.c (ASSERT): Likewise.
60946         * tests/test-iconv.c (ASSERT): Likewise.
60947         * tests/test-isfinite.c (ASSERT): Likewise.
60948         * tests/test-isnand.c (ASSERT): Likewise.
60949         * tests/test-isnanf.c (ASSERT): Likewise.
60950         * tests/test-isnanl.h (ASSERT): Likewise.
60951         * tests/test-ldexpl.c (ASSERT): Likewise.
60952         * tests/test-linked_list.c (ASSERT): Likewise.
60953         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60954         * tests/test-localename.c (ASSERT): Likewise.
60955         * tests/test-lseek.c (ASSERT): Likewise.
60956         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60957         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60958         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60959         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60960         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60961         * tests/test-mbschr.c (ASSERT): Likewise.
60962         * tests/test-mbscspn.c (ASSERT): Likewise.
60963         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60964         * tests/test-mbspbrk.c (ASSERT): Likewise.
60965         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60966         * tests/test-mbsrchr.c (ASSERT): Likewise.
60967         * tests/test-mbsspn.c (ASSERT): Likewise.
60968         * tests/test-mbsstr1.c (ASSERT): Likewise.
60969         * tests/test-mbsstr2.c (ASSERT): Likewise.
60970         * tests/test-mbsstr3.c (ASSERT): Likewise.
60971         * tests/test-memchr2.c (ASSERT): Likewise.
60972         * tests/test-memmem.c (ASSERT): Likewise.
60973         * tests/test-open.c (ASSERT): Likewise.
60974         * tests/test-printf-frexp.c (ASSERT): Likewise.
60975         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60976         * tests/test-printf-posix.c (ASSERT): Likewise.
60977         * tests/test-quotearg.c (ASSERT): Likewise.
60978         * tests/test-rbtree_list.c (ASSERT): Likewise.
60979         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60980         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60981         * tests/test-round1.c (ASSERT): Likewise.
60982         * tests/test-roundf1.c (ASSERT): Likewise.
60983         * tests/test-roundl.c (ASSERT): Likewise.
60984         * tests/test-signbit.c (ASSERT): Likewise.
60985         * tests/test-sleep.c (ASSERT): Likewise.
60986         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60987         * tests/test-snprintf.c (ASSERT): Likewise.
60988         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60989         * tests/test-stat-time.c (ASSERT): Likewise.
60990         * tests/test-strcasestr.c (ASSERT): Likewise.
60991         * tests/test-strerror.c (ASSERT): Likewise.
60992         * tests/test-striconv.c (ASSERT): Likewise.
60993         * tests/test-striconveh.c (ASSERT): Likewise.
60994         * tests/test-striconveha.c (ASSERT): Likewise.
60995         * tests/test-strsignal.c (ASSERT): Likewise.
60996         * tests/test-strstr.c (ASSERT): Likewise.
60997         * tests/test-strtod.c (ASSERT): Likewise.
60998         * tests/test-trunc1.c (ASSERT): Likewise.
60999         * tests/test-trunc2.c (ASSERT): Likewise.
61000         * tests/test-truncf1.c (ASSERT): Likewise.
61001         * tests/test-truncf2.c (ASSERT): Likewise.
61002         * tests/test-truncl.c (ASSERT): Likewise.
61003         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61004         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61005         * tests/test-vasnprintf.c (ASSERT): Likewise.
61006         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61007         * tests/test-vasprintf.c (ASSERT): Likewise.
61008         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61009         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61010         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61011         * tests/test-vsnprintf.c (ASSERT): Likewise.
61012         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61013         * tests/test-wcwidth.c (ASSERT): Likewise.
61014         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61015         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61016         * tests/test-xvasprintf.c (ASSERT): Likewise.
61017         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61018         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61019         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61020         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61021         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61022         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61023         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61024         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61025         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61026         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61027         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61028         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61029         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61030         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61031         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61032         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61033         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61034         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61035         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61036         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61037         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61038         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61039         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61040         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61041         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61042         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61043         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61044         * tests/unictype/test-combining.c (ASSERT): Likewise.
61045         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61046         * tests/unictype/test-digit.c (ASSERT): Likewise.
61047         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61048         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61049         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61050         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61051         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61052         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61053         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61054         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61055         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61056         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61057         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61058         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61059         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61060         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61061         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61062         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
61063         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
61064         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
61065         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
61066         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
61067         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
61068         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
61069         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
61070         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
61071         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
61072         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
61073         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
61074         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
61075         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
61076         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
61077         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
61078         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
61079         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
61080         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
61081         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
61082         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
61083         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
61084         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
61085         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
61086         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
61087         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
61088         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
61089         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
61090         Reported by Eric Blake.
61091
61092 2008-04-11  Bruno Haible  <bruno@clisp.org>
61093
61094         * lib/wchar.in.h: Tweak comment.
61095
61096 2008-04-11  Bruno Haible  <bruno@clisp.org>
61097
61098         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
61099         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
61100         gl_COMMON.
61101         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
61102
61103 2008-04-11  Bruno Haible  <bruno@clisp.org>
61104
61105         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
61106
61107 2008-04-11  Simon Josefsson  <simon@josefsson.org>
61108
61109         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
61110         of attempting to use non-existing /dev/*random.  Based on patch
61111         from Adam Strzelecki <ono@java.pl> in
61112         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
61113
61114 2008-04-08  Bruno Haible  <bruno@clisp.org>
61115
61116         Add tentative support for emx+gcc.
61117         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
61118         * lib/fpurge.c (fpurge): Likewise.
61119         * lib/freadable.c (freadable): Likewise.
61120         * lib/freadahead.c (freadahead): Likewise.
61121         * lib/freading.c (freading): Likewise.
61122         * lib/freadptr.c (freadptr): Likewise.
61123         * lib/freadseek.c (freadptrinc): Likewise.
61124         * lib/fseeko.c (rpl_fseeko): Likewise.
61125         * lib/fseterr.c (fseterr): Likewise.
61126         * lib/fwritable.c (fwritable): Likewise.
61127         * lib/fwriting.c (fwriting): Likewise.
61128         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
61129
61130 2008-04-09  Eric Blake  <ebb9@byu.net>
61131
61132         Avoid some autoconf warnings.
61133         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
61134         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
61135         * m4/afs.m4 (gl_AFS): Likewise.
61136         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
61137         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
61138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61139         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
61140         (gl_INTEGER_TYPE_SUFFIX): Likewise.
61141         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
61142         (AC_CHECK_DECLS_ONCE): Likewise.
61143         Rename file...
61144         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
61145         gnulib-tool requires autoconf 2.59 or better.
61146         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
61147
61148 2008-04-08  Eric Blake  <ebb9@byu.net>
61149
61150         Use 'git describe --match' if present (added in git 1.5.5).
61151         * build-aux/git-version-gen: Limit result to tags that match 'v*'
61152         if possible.
61153
61154 2008-04-08  Bruno Haible  <bruno@clisp.org>
61155
61156         Add tentative support for OpenServer.
61157         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
61158         _ptr, _cnt.
61159         * lib/fpurge.c (fpurge): Likewise.
61160         * lib/freadable.c (freadable): Likewise.
61161         * lib/freadahead.c (freadahead): Likewise.
61162         * lib/freading.c (freading): Likewise.
61163         * lib/freadptr.c (freadptr): Likewise.
61164         * lib/freadseek.c (freadptrinc): Likewise.
61165         * lib/fseeko.c (rpl_fseeko): Likewise.
61166         * lib/fseterr.c (fseterr): Likewise.
61167         * lib/fwritable.c (fwritable): Likewise.
61168         * lib/fwriting.c (fwriting): Likewise.
61169         Reported by Roger Cornelius <rac@tenzing.org> and
61170         Brian K. White <brian@aljex.com>.
61171
61172 2008-04-06  Jim Meyering  <meyering@redhat.com>
61173
61174         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
61175
61176 2008-04-06  Bruno Haible  <bruno@clisp.org>
61177
61178         Avoid possible error with non-ASCII bytes in UTF-8 locales.
61179         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
61180         * tests/test-printf-posix.sh: Likewise.
61181         * tests/test-vfprintf-posix.sh: Likewise.
61182         * tests/test-vprintf-posix.sh: Likewise.
61183         * tests/test-xprintf-posix.sh: Likewise.
61184
61185 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61186
61187         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
61188         hide error from 'ls', needed on OS/2.
61189         Report by Elbert Pol <elbert.pol@gmail.com>.
61190
61191 2008-04-04  Eric Blake  <ebb9@byu.net>
61192
61193         Make test-fseeko.c failures meaningful.
61194         * tests/test-fseeko.c: Print line number on failure.
61195         * tests/test-fseek.c: Likewise.
61196         Reported by Nelson H. F. Beebe.
61197
61198         Improve strtod bug detection check.
61199         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
61200         required for Solaris 10.
61201         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
61202
61203 2008-04-04  Bruno Haible  <bruno@clisp.org>
61204
61205         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
61206         by m4/setenv.m4.
61207
61208 2008-04-03  Eric Blake  <ebb9@byu.net>
61209
61210         Ensure sane .version contents.
61211         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
61212         version string.
61213         * build-aux/git-version-gen: Improve documentation.
61214
61215         Make GNU make output nicer.
61216         * top/GNUmakefile [!_have-Makefile]: Add dependency on
61217         MAKECMDGOALS to enforce message for all command line targets.  Set
61218         srcdir for use in maint.mk.
61219
61220         Another maintainer tweak.
61221         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
61222         a target that regenerates version.
61223
61224 2008-04-03  Jim Meyering  <meyering@redhat.com>
61225
61226         vc-list-files: don't cause coreutils "make po-check" failure
61227         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
61228
61229 2008-04-03  Eric Blake  <ebb9@byu.net>
61230
61231         Allow VPATH usage of vc-list-files.
61232         * build-aux/vc-list-files (scriptversion): Add timestamp.
61233         (options): Add --help, --version, -C.
61234         (CVS): Support installed cvsu.
61235
61236 2008-04-02  Bruno Haible  <bruno@clisp.org>
61237
61238         Avoid some "statement with no effect" warnings from gcc.
61239         * tests/test-wctype.c (main): Explicitly ignore unused values.
61240         Reported by Jim Meyering.
61241
61242 2008-04-02  Jim Meyering  <meyering@redhat.com>
61243
61244         Avoid some warnings from "gcc -Wshadow".
61245         * tests/test-frexp.c (exp): Define to a different identifier.
61246         * tests/test-frexpl.c (exp): Likewise.
61247
61248 2008-04-03  Jim Meyering  <meyering@redhat.com>
61249
61250         bootstrap: remove dangling *.[ch] symlinks from lib
61251         * build-aux/bootstrap [dangling symlink removal]: Move find's
61252         -depth option to precede all others, to avoid a warning.
61253         Remove *.[ch] files too, and from "$source_base" (usually lib/).
61254
61255 2008-04-02  Bruno Haible  <bruno@clisp.org>
61256
61257         Avoid some warnings from "gcc -Wshadow".
61258         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
61259         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
61260         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
61261         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
61262         Reported by Jim Meyering.
61263
61264 2008-04-01  Bruno Haible  <bruno@clisp.org>
61265
61266         Fix test to work on IRIX 6.5 with cc.
61267         * tests/test-math.c (numeric_equal): New function.
61268         (main): Use it.
61269
61270 2008-04-01  Bruno Haible  <bruno@clisp.org>
61271
61272         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
61273
61274 2008-04-01  Bruno Haible  <bruno@clisp.org>
61275
61276         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
61277         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61278         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
61279         (Depends-on): Remove math.
61280
61281         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
61282         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61283         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
61284         (Depends-on): Remove math.
61285
61286         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
61287         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61288         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
61289         (Depends-on): Remove math.
61290         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
61291         (Depends-on): Remove math.
61292
61293         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
61294         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
61295         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
61296         (Depends-on): Remove math.
61297         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
61298         (Depends-on): Remove math.
61299
61300         * tests/test-round1.c: Include nan.h.
61301         (main): Use NaNd instead of NAN.
61302         * modules/round-tests (Files): Add tests/nan.h.
61303
61304         * tests/test-trunc1.c: Include nan.h.
61305         (main): Use NaNd instead of NAN.
61306         * modules/trunc-tests (Files): Add tests/nan.h.
61307
61308         * tests/test-roundf1.c: Include nan.h.
61309         (main): Use NaNf instead of NAN.
61310         * modules/roundf-tests (Files): Add tests/nan.h.
61311
61312         * tests/test-truncf1.c: Include nan.h.
61313         (main): Use NaNf instead of NAN.
61314         * modules/truncf-tests (Files): Add tests/nan.h.
61315
61316         * tests/test-ceilf1.c: Include nan.h.
61317         (main): Use NaNf instead of NAN.
61318         * modules/ceilf-tests (Files): Add tests/nan.h.
61319
61320         * tests/test-floorf1.c: Include nan.h.
61321         (main): Use NaNf instead of NAN.
61322         * modules/floorf-tests (Files): Add tests/nan.h.
61323
61324         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
61325         (main): Use NaNf instead of NAN.
61326         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
61327
61328         * tests/test-isnand.c: Include nan.h instead of <math.h>.
61329         (main): Use NaNd instead of NAN.
61330         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
61331
61332         * tests/test-frexp.c: Include nan.h.
61333         (main): Use NaNd instead of NAN.
61334         * modules/frexp-tests (Files): Add tests/nan.h.
61335
61336         * lib/isnan.c: Don't include <math.h>.
61337         (FUNC): Don't use NAN macro.
61338         * modules/isnand-nolibm (Depends-on): Remove math.
61339         * modules/isnanf-nolibm (Depends-on): Remove math.
61340         * modules/isnanl (Depends-on): Remove math.
61341         * modules/isnanl-nolibm (Depends-on): Remove math.
61342
61343         * tests/nan.h: New file.
61344
61345 2008-04-01  Eric Blake  <ebb9@byu.net>
61346
61347         Fix typos.
61348         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
61349         values to be the right type.
61350
61351         For now, cater to gnulib strtod inaccuracies.
61352         * tests/test-strtod.c (main): Allow 1-ulp error on expected
61353         fractional results.  While not as nice from a QoI perspective, it
61354         is a quicker patch than correctly implementing decimal to binary
61355         rounding.
61356
61357 2008-03-31  Eric Blake  <ebb9@byu.net>
61358
61359         Guarantee a definition of NAN.
61360         * lib/math.in.h (NAN): Define if missing.
61361         * tests/test-math.c (main): Test it.
61362         * doc/posix-headers/math.texi (math.h): Document this.
61363         * lib/isnan.c (rpl_isnand): Use it.
61364         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
61365         * tests/test-floorf1.c (NaN): Likewise.
61366         * tests/test-frexp.c (NaN): Likewise.
61367         * tests/test-isnand.c (NaN): Likewise.
61368         * tests/test-isnanf.c (NaN): Likewise.
61369         * tests/test-round1.c (NaN): Likewise.
61370         * tests/test-roundf1.c (NaN): Likewise.
61371         * tests/test-snprintf-posix.h (NaN): Likewise.
61372         * tests/test-sprintf-posix.h (NaN): Likewise.
61373         * tests/test-trunc1.c (NaN): Likewise.
61374         * tests/test-truncf1.c (NaN): Likewise.
61375         * tests/test-vasnprintf-posix.c (NaN): Likewise.
61376         * tests/test-vasprintf-posix.c (NaN): Likewise.
61377         * modules/isnand-nolibm (Depends-on): Add math.
61378         * modules/isnanf-nolibm (Depends-on): Likewise.
61379         * modules/isnanl (Depends-on): Likewise.
61380         * modules/isnanl-nolibm (Depends-on): Likewise.
61381         * modules/snprintf-posix-tests (Depends-on): Likewise.
61382         * modules/sprintf-posix-tests (Depends-on): Likewise.
61383         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
61384         * modules/vsprintf-posix-tests (Depends-on): Likewise.
61385         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
61386         * modules/vasprintf-posix-tests (Depends-on): Likewise.
61387
61388 2008-03-31  Bruno Haible  <bruno@clisp.org>
61389
61390         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
61391         * doc/posix-functions/strtod.texi: Likewise.
61392
61393 2008-03-31  Bruno Haible  <bruno@clisp.org>
61394
61395         * tests/test-strtod.c (main): Don't use C99 syntax.
61396
61397 2008-03-31  Bruno Haible  <bruno@clisp.org>
61398
61399         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
61400         Reported by Eric Blake.
61401
61402 2008-03-31  Jim Meyering  <meyering@redhat.com>
61403
61404         Don't compare actual signbit return values.
61405         * tests/test-strtod.c (main): Rather, compare only their
61406         zero/non-zero nature.
61407
61408 2008-03-31  Eric Blake  <ebb9@byu.net>
61409
61410         More strtod documentation.
61411         * doc/posix-functions/strtod.texi (strtod): Interpret more test
61412         failures as distinct bugs.
61413
61414 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
61417         Problem reported by Erik Benada in
61418         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
61419
61420 2008-03-30  Bruno Haible  <bruno@clisp.org>
61421
61422         * tests/test-strtod.c: Add comments about which assertion fails on which
61423         platform.
61424         * doc/posix-functions/strtod.texi: Add info about many more platforms.
61425
61426 2008-03-30  Eric Blake  <ebb9@byu.net>
61427
61428         Test signbit behavior on zeros.
61429         * tests/test-signbit.c (test_signbitf): Add tests for zero.
61430         (test_signbitd, test_signbitl): Likewise.
61431
61432         More strtod touchups.
61433         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
61434         sign of negative underflow, for now.  Use .5, not .1.
61435         * doc/posix-functions/strtod.texi (strtod): Mention these
61436         limitations.
61437         Reported by Jim Meyering.
61438
61439 2008-03-30  Bruno Haible  <bruno@clisp.org>
61440
61441         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
61442         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
61443
61444 2008-03-30  Bruno Haible  <bruno@clisp.org>
61445
61446         Avoid failure when attempting to return empty iconv results on some
61447         platforms.
61448         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
61449         allocation, don't report ENOMEM when the resulting string is empty.
61450
61451 2008-03-30  Bruno Haible  <bruno@clisp.org>
61452
61453         Fix buffer overrun.
61454         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
61455         Don't consider the width for tmp_length. Check count against tmp_length
61456         before doing the padding. Ensure enough allocation during padding.
61457
61458 2008-03-30  Eric Blake  <ebb9@byu.net>
61459
61460         strtod touchups.
61461         * lib/strtod.c (strtod): Avoid compiler warnings.
61462         Reported by Jim Meyering.
61463
61464 2008-03-30  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
61467         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
61468         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
61469         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
61470         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
61471         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
61472         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
61473         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
61474
61475         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
61476         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
61477         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
61478         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
61479         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
61480         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
61481         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
61482         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
61483
61484         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
61485         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
61486         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
61487         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
61488         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
61489         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
61490         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
61491         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
61492
61493         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
61494         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
61495
61496         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
61497         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
61498
61499         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
61500         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
61501
61502         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
61503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
61504         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
61505
61506         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
61507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
61508         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
61509
61510         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
61511         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
61512         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
61513
61514         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
61515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
61516         * modules/vasprintf (Depends-on): Add EOVERFLOW.
61517
61518         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
61519         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
61520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
61521         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
61522         (Depends-on): Add EOVERFLOW.
61523         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
61524         (Depends-on): Add EOVERFLOW.
61525         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61526         (Depends-on): Add EOVERFLOW.
61527         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
61528         (Depends-on): Add EOVERFLOW.
61529         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61530         (Depends-on): Add EOVERFLOW.
61531         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
61532         (Depends-on): Add EOVERFLOW.
61533         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61534         (Depends-on): Add EOVERFLOW.
61535         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
61536         (Depends-on): Add EOVERFLOW.
61537
61538         * lib/sprintf.c (EOVERFLOW): Remove fallback.
61539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
61540         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
61541
61542         * lib/snprintf.c (EOVERFLOW): Remove fallback.
61543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
61544         * modules/snprintf (Depends-on): Add EOVERFLOW.
61545
61546         * lib/poll.c (EOVERFLOW): Remove fallback.
61547         * modules/poll (Depends-on): Add EOVERFLOW.
61548
61549         * lib/getugroups.c (EOVERFLOW): Remove fallback.
61550         * modules/getugroups (Depends-on): Add EOVERFLOW.
61551
61552         * lib/getdelim.c (EOVERFLOW): Remove fallback.
61553         * modules/getdelim (Depends-on): Add EOVERFLOW.
61554
61555         * lib/ftell.c (EOVERFLOW): Remove fallback.
61556         * modules/ftell (Depends-on): Add EOVERFLOW.
61557
61558         * lib/fprintf.c (EOVERFLOW): Remove fallback.
61559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
61560         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
61561
61562         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
61563
61564         * modules/EOVERFLOW-tests: New file.
61565         * tests/test-EOVERFLOW.c: New file.
61566
61567         * modules/EOVERFLOW: New file.
61568         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
61569
61570 2008-03-30  Bruno Haible  <bruno@clisp.org>
61571
61572         Fix bug introduced on 2007-06-10.
61573         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
61574         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
61575
61576 2008-03-30  Bruno Haible  <bruno@clisp.org>
61577
61578         Improve freadseek's efficiency after ungetc.
61579         * lib/freadseek.c: Include freadahead.h.
61580         (freadptrinc): New function, extracted from freadseek.
61581         (freadseek): Use it in a loop. Use freadahead to determine the number
61582         of loop iterations.
61583         * modules/freadseek (Depends-on): Add freadahead.
61584         (configure.ac): Require AC_C_INLINE.
61585
61586 2008-03-30  Bruno Haible  <bruno@clisp.org>
61587
61588         * lib/freadseek.c (freadseek): Don't ignore the return value of
61589         freadptr.
61590
61591 2008-03-29  Eric Blake  <ebb9@byu.net>
61592
61593         Add hex float support.
61594         * modules/strtod (Depends-on): Add c-ctype.
61595         (Link): Mention POW_LIB.
61596         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
61597         whitespace between 'e' and exponent.
61598         * tests/test-strtod.c (main): Enable hex float tests.
61599         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
61600         now provides.
61601
61602         Document various strtod bugs, with some fixes.
61603         * doc/posix-functions/strtod.texi (strtod): Document bugs with
61604         "-0x", "inf", "nan", and hex constants.
61605         * doc/posix-functions/atof.texi (atof): Likewise.
61606         * modules/stdlib (Makefile.am): Support strtod.
61607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
61608         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
61609         detect additional strtod bugs.
61610         * lib/stdlib.in.h (rpl_strtod): Add declarations.
61611         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
61612         bool where appropriate.  Parse 'inf' and 'nan'.
61613         * tests/test-strtod.c: New file.
61614         * modules/strtod (Depends-on): Add stdbool, stdlib.
61615         (configure.ac): Turn on module indicator.
61616         * modules/strtod-tests: New module.
61617
61618 2008-03-29  Eric Blake  <ebb9@byu.net>
61619
61620         Fix ftell on mingw.
61621         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
61622         * modules/ftell-tests (Depends-on): Add binary-io.
61623         * modules/ftello-tests (Depends-on): Likewise.
61624         * tests/test-ftell.c (main): Enhance test to cover behavior after
61625         ungetc.  Enforce binary mode.
61626         * tests/test-ftello.c (main): Likewise.
61627
61628         Pass test-freadseek on cygwin.
61629         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
61630         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
61631         ungetc buffer.
61632
61633         * tests/test-fflush2.c (main): Fix typo.
61634
61635 2008-03-29  Bruno Haible  <bruno@clisp.org>
61636
61637         * tests/test-fflush2.c (main): Temporarily disable the contents of
61638         this test.
61639         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
61640         Reported by Eric Blake.
61641
61642 2008-03-28  Simon Josefsson  <simon@josefsson.org>
61643
61644         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
61645         (GC_SHA224_DIGEST_SIZE): Add.
61646
61647         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
61648         (gc_hash_digest_length): Likewise.
61649         (gc_hash_buffer): Likewise.
61650
61651 2008-03-25  Bruno Haible  <bruno@clisp.org>
61652
61653         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
61654         detail which gettext release to use.
61655         Reported by Simon Josefsson.
61656
61657 2008-03-26  Jim Meyering  <meyering@redhat.com>
61658
61659         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
61660         * modules/gnumakefile (clean-GNUmakefile): Also, use
61661         test ... && ... || : syntax rather than if-then ... fi.
61662
61663         gnumakefile: Don't double-quote-expand $(VPATH) value.
61664         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
61665
61666 2008-03-24  Eric Blake  <ebb9@byu.net>
61667
61668         Alter GNUmakefile to install into top directory.
61669         * modules/maintainer-makefile: Split, and add dependency...
61670         * modules/gnumakefile: to this new module.
61671         * build-aux/GNUmakefile: Move...
61672         * top/GNUmakefile: ...here.
61673         * build-aux/maint.mk: Move...
61674         * top/maint.mk: ...here.
61675         * MODULES.html.sh (Support for maintaining...): Document new
61676         module.
61677
61678 2008-03-23  Bruno Haible  <bruno@clisp.org>
61679
61680         * gnulib-tool: New options --vc-files, --no-vc-files.
61681         (func_usage): Document them.
61682         (vc_files): New variable.
61683         (func_import): Consider vc_files.
61684         (func_create_testdir): Set vc_files to empty.
61685         Suggested by Jim Meyering and Karl Berry.
61686
61687 2008-03-23  Bruno Haible  <bruno@clisp.org>
61688
61689         Fix regex compilation error on HP-UX 11.
61690         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
61691         * modules/regex (Files): Add m4/mbstate_t.m4.
61692         Reported by Ton Voon <ton.voon@altinity.com>.
61693
61694 2008-03-23  Bruno Haible  <bruno@clisp.org>
61695
61696         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
61697
61698 2008-03-23  Eric Blake  <ebb9@byu.net>
61699             Bruno Haible  <bruno@clisp.org>
61700
61701         Install files from top/ in the destination directory.
61702         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61703         augmentation also for the files from top/.
61704         (func_import, func_create_testdir): Rewrite file names:
61705         top/filename -> filename.
61706
61707 2008-03-23  Bruno Haible  <bruno@clisp.org>
61708
61709         Tweak "gnulib --version" output.
61710         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
61711
61712 2008-03-23  Bruno Haible  <bruno@clisp.org>
61713
61714         Tweak "gnulib --version" output.
61715         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
61716         rather than contents of ChangeLog, when possible.
61717
61718 2008-03-21  Eric Blake  <ebb9@byu.net>
61719
61720         More --version tweaks.
61721         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
61722         date of last ChangeLog entry.
61723
61724 2008-03-21  Jim Meyering  <meyering@redhat.com>
61725
61726         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
61727
61728 2008-03-20  Eric Blake  <ebb9@byu.net>
61729
61730         VPATH fix.
61731         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
61732
61733 2008-03-20  Simon Josefsson  <simon@josefsson.org>
61734
61735         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
61736         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
61737
61738 2008-03-20  Eric Blake  <ebb9@byu.net>
61739
61740         Sync GNUmakefile with coreutils.
61741         * build-aux/GNUmakefile (have-Makefile): Rename...
61742         (_have-Makefile): ...to this, for namespace consideration.
61743         (GNUmakefile.cfg): Include, if present.
61744         (_autoreconf): Define a default.
61745         (_is-dist-target): New rule for rebuilds to pick up intra-release
61746         version.
61747         (maint-cfg.mk): Rename...
61748         (cfg.mk): ...to this.
61749
61750 2008-03-18  Jim Meyering  <meyering@redhat.com>
61751
61752         New script and module: mktempd
61753         * MODULES.html.sh (maint+release support): Add mktempd.
61754         * build-aux/mktempd: New file.
61755         * modules/mktempd: New file.
61756
61757 2008-03-15  Jim Meyering  <meyering@redhat.com>
61758
61759         Undo last change.
61760         * lib/sha1.c, lib/md5.c: 63 != ~63.
61761         Reported by Andreas Schwab.
61762
61763         sha1.c, md5.c: Hoist a redundant expression.
61764         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
61765         "ctx->buflen" only once, before calling *_process_block.
61766         * lib/md5.c (md5_process_bytes): Likewise.
61767
61768 2008-03-14  Eric Blake  <ebb9@byu.net>
61769
61770         Bump copyright year in files generated by gnulib-tool.
61771         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
61772         gnulib-tool, rather than hard-coding it.
61773
61774         Fix 'gnulib-tool --version' output to work with git.
61775         * gnulib-tool (func_gnulib_dir): New function, extracted from...
61776         (startup): ...here.
61777         (func_version): Use it to invoke git-version-gen, rather than
61778         relying on CVS keyword expansion.  Modernize wording.
61779         (cvsdatestamp, last_checkin_date, version): Kill unused
61780         variables.
61781
61782 2008-03-12  Jim Meyering  <meyering@redhat.com>
61783
61784         Recognize optional cast of the argument to free.
61785         * build-aux/useless-if-before-free: Update regexps.
61786
61787         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
61788
61789 2008-03-11  Bruno Haible  <bruno@clisp.org>
61790
61791         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
61792         by a single package.
61793         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
61794         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
61795         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
61796         Reported by Sam Steingold <sds@gnu.org>.
61797
61798 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61799
61800         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
61801         repositories.
61802
61803 2008-03-11  Bruno Haible  <bruno@clisp.org>
61804
61805         Avoid conflicts between local macro definitions.
61806         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61807         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
61808
61809 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
61810             Bruno Haible  <bruno@clisp.org>
61811
61812         Make va_copy work with some version of xlc on AIX 5.1.
61813         * lib/stdarg.in.h: New file.
61814         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
61815         On AIX, use a <stdarg.h> file substitute.
61816         * modules/stdarg (Files): Add lib/stdarg.in.h.
61817         (Depends-on): Add include_next.
61818         (Makefile.am): Build a stdarg.h substitute if requested.
61819         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
61820
61821 2008-03-10  Bruno Haible  <bruno@clisp.org>
61822
61823         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
61824         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
61825         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61826
61827 2008-03-10  Bruno Haible  <bruno@clisp.org>
61828
61829         * modules/stdlib (Depends-on): Add include_next, remove
61830         absolute-header.
61831
61832 2008-03-09  Bruno Haible  <bruno@clisp.org>
61833
61834         * lib/freadahead.h (freadahead): Document more precisely.
61835         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61836         the sum of both buffer sizes.
61837         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61838         * NEWS: Document the change.
61839
61840 2008-03-09  Bruno Haible  <bruno@clisp.org>
61841
61842         Extend freadptr to return also the buffer size.
61843         * lib/freadptr.h (freadptr): Add sizep argument.
61844         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61845         (freadptr): Add sizep argument. Determine buffer size like freadahead
61846         does.
61847         * tests/test-freadptr.c: Don't include freadahead.h.
61848         (main): Adapt for new calling convention of freadptr.
61849         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61850         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61851         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61852         tests/test-freadptr2.sh.
61853         (Depends): Remove freadahead.
61854         (TESTS): Add test-freadptr2.sh.
61855         (check_PROGRAMS): Add test-freadptr2.
61856
61857 2008-03-09  Bruno Haible  <bruno@clisp.org>
61858
61859         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61860         Report and solution by Simon Josefsson.
61861
61862 2008-03-06  Bruno Haible  <bruno@clisp.org>
61863
61864         Make fflush after ungetc work on BSD platforms.
61865         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61866         * tests/test-fflush2.c: New file.
61867         * tests/test-fflush2.sh: New file.
61868         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61869         tests/test-fflush2.c.
61870         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61871         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61872
61873 2008-03-06  Eric Blake  <ebb9@byu.net>
61874
61875         Likewise for ftello.
61876         * modules/ftello (Dependencies): Add extensions.
61877         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61878
61879 2008-03-06  Bruno Haible  <bruno@clisp.org>
61880
61881         * modules/fseeko (Dependencies): Add extensions.
61882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61883         Needed on glibc systems.
61884
61885 2008-03-06  Bruno Haible  <bruno@clisp.org>
61886
61887         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61888         email address.
61889         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61890
61891 2008-03-06  Bruno Haible  <bruno@clisp.org>
61892
61893         * users.txt: Add libgnupdf.
61894
61895 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61896
61897         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61898         (Header File Substitutes, Function Substitutes,
61899         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61900         (Build robot for gnulib): Fix typo.
61901
61902 2008-03-06  Bruno Haible  <bruno@clisp.org>
61903
61904         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61905         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61906
61907 2008-03-06  Bruno Haible  <bruno@clisp.org>
61908
61909         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61910         * doc/gnulib.texi: Include it.
61911
61912 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61913
61914         * modules/func (License): Change license to unlimited; there was
61915         no LGPL parts in the module anyway.
61916
61917 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61918
61919         * modules/__func__: Renamed to modules/func.
61920         * modules/__func__-tests: Renamed to modules/func-tests.
61921         * tests/test-__func__.c: Renamed to tests/test-func.c.
61922         * m4/__func__.m4: Renamed to m4/func.m4.
61923         * doc/gnulib.texi (__func__): Section renamed to func.
61924         Suggested by Eric Blake <ebb9@byu.net>.
61925
61926 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61927
61928         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61929         about __func__.  Make example self-contained.  Suggested by Eric
61930         Blake <ebb9@byu.net>.
61931
61932         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61933         Suggested by Eric Blake <ebb9@byu.net>.
61934
61935 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61936
61937         * modules/__func__: New file.
61938         * modules/__func__-tests: New file.
61939         * tests/test-__func__.c: New file.
61940         * m4/__func__.m4: New file.
61941         * doc/gnulib.texi (__func__): Document __func__ module.
61942
61943 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61944
61945         * modules/byteswap (License): Re-license as LGPLv2+.
61946
61947 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61948
61949         * doc/Makefile: Add pdf target.
61950
61951 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61952
61953         * modules/inline (License): Use 'unlimited', since there are only
61954         *.m4 files in this module.
61955
61956 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61957             Bruno Haible  <bruno@clisp.org>
61958
61959         Add support for HP C 7.1 on OpenVMS 8.3.
61960         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61961
61962 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61963
61964         Update VMS specifics.
61965         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61966
61967 2008-03-02  Jim Meyering  <meyering@redhat.com>
61968
61969         Remove the last dependency on the "free" module.
61970         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61971         Reported by Bob Proulx.
61972
61973         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61974
61975         Remove useless "if" tests before free.  Deprecate "free" module.
61976         * doc/posix-functions/free.texi: Mention that this
61977         module is no longer useful.
61978         * modules/free (Notice): Say this module is obsolete.
61979         * modules/readutmp (Depends-on): Remove free.
61980         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61981         * lib/putenv.c (putenv): Likewise.
61982         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61983         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61984         * tests/test-c-strcasestr.c (main): Likewise.
61985         * tests/test-c-strstr.c (main): Likewise.
61986         * tests/test-mbscasestr1.c (main): Likewise.
61987         * tests/test-mbscasestr2.c (main): Likewise.
61988         * tests/test-mbsstr1.c (main): Likewise.
61989         * tests/test-mbsstr2.c (main): Likewise.
61990         * tests/test-memmem.c (main): Likewise.
61991         * tests/test-strcasestr.c (main): Likewise.
61992         * tests/test-striconv.c (main): Likewise.
61993         * tests/test-striconveh.c (main): Likewise.
61994         * tests/test-striconveha.c (main): Likewise.
61995         * tests/test-strstr.c (main): Likewise.
61996
61997         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61998
61999         bootstrap: sync from coreutils again
62000         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62001
62002 2008-03-01  Jim Meyering  <meyering@redhat.com>
62003
62004         bootstrap: sync from coreutils
62005         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62006         also when the target doesn't exist.
62007
62008 2008-03-01  Eric Blake  <ebb9@byu.net>
62009
62010         Fix bugs in last patch.
62011         * lib/memchr2.c (memchr2): Fix typo.
62012         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62013         extension.
62014         Reported by Bruce Korb.
62015
62016         New module 'memchr2'.
62017         * modules/memchr2: New file.
62018         * modules/memchr2-tests: Likewise.
62019         * lib/memchr2.h: Likewise.
62020         * lib/memchr2.c: Likewise, based on memchr.c.
62021         * tests/test-memchr2.c: New test.
62022         * MODULES.html.sh (String handling): Add memchr2.
62023
62024 2008-02-29  Bruno Haible  <bruno@clisp.org>
62025
62026         * modules/freadseek-tests: New file.
62027         * tests/test-freadseek.sh: New file.
62028         * tests/test-freadseek.c: New file.
62029
62030         New module 'freadseek'.
62031         * modules/freadseek: New file.
62032         * lib/freadseek.h: New file.
62033         * lib/freadseek.c: New file.
62034         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62035
62036 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62037
62038         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62039         wydawca.
62040
62041         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62042         program_invocation_name and program_invocation_short_name are
62043         present.
62044
62045 2008-02-28  Bruno Haible  <bruno@clisp.org>
62046
62047         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62048         * tests/test-freadptr.sh: Also test non-seekable stdin.
62049
62050 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62051
62052         * build-aux/bootstrap (source_base, m4_base)
62053         (doc_base, tests_base): New variables.
62054         (gnulib_tool_options): Do not hardcode base directories, use
62055         the above variables instead.
62056
62057 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62058
62059         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62060
62061 2008-02-28  Bruno Haible  <bruno@clisp.org>
62062
62063         * modules/freadptr-tests: New file.
62064         * tests/test-freadptr.sh: New file.
62065         * tests/test-freadptr.c: New file.
62066
62067         New module 'freadptr'.
62068         * modules/freadptr: New file.
62069         * lib/freadptr.h: New file.
62070         * lib/freadptr.c: New file.
62071         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
62072
62073 2008-02-26  Karl Berry  <karl@freefriends.org>
62074
62075         Sync from Libtool:
62076         * libltdl/argz.c (argz_add, argz_count): New functions.
62077         * libltdl/argz.in.h: Declare them.
62078         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
62079
62080 2008-02-22  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
62083         is a pointer type.  Needed for HP-UX 10.
62084         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
62085         * doc/posix-functions/gmtime_r.texi: Likewise.
62086         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62087
62088 2008-02-24  Bruno Haible  <bruno@clisp.org>
62089
62090         * modules/environ-tests: New file.
62091         * tests/test-environ.c: New file.
62092
62093         New module 'environ'.
62094         * modules/environ: New file.
62095         * lib/unistd.in.h (environ): New declaration.
62096         * m4/environ.m4: New file.
62097         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
62098         after use.
62099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
62100         HAVE_DECL_ENVIRON.
62101         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
62102         HAVE_DECL_ENVIRON.
62103         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
62104         wrong claim that 'environ' is missing on some systems.
62105         * modules/execute (Depends-on): Add environ.
62106         * lib/execute.c (environ): Remove fallback declaration.
62107         * modules/pipe (Depends-on): Add environ.
62108         * lib/pipe.c (environ): Remove fallback declaration.
62109         * modules/setenv (Depends-on): Add environ.
62110         * lib/setenv.c (environ): Remove fallback declaration.
62111         * modules/unsetenv (Depends-on): Add environ.
62112         * lib/unsetenv.c (environ): Remove fallback declaration.
62113         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
62114         m4/environ.m4.
62115         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
62116         (gl_PREREQ_UNSETENV): Likewise.
62117
62118 2008-02-24  Bruno Haible  <bruno@clisp.org>
62119
62120         * doc/posix-functions/environ.texi: Document the MacOS X problem.
62121
62122 2008-02-20  Bob Proulx  <bob@proulx.com>
62123
62124         Enable use of older two part flavor 'git describe'.
62125         * build-aux/git-version-gen: If using the older two part flavor of
62126         git version then recreate the third part now present in the
62127         newer three part flavor of git describe.
62128
62129 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
62130
62131         * lib/fts.c (fts_build): Typo correction to comment.
62132
62133 2008-02-17  Bruno Haible  <bruno@clisp.org>
62134
62135         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
62136         generating no-op conflicts.
62137
62138 2008-02-17  Bruno Haible  <bruno@clisp.org>
62139
62140         Speed up by 10%.
62141         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
62142         result_entries, rather than an index-based loop.
62143
62144 2008-02-17  Bruno Haible  <bruno@clisp.org>
62145
62146         Speed up by 25%.
62147         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
62148         'hashcode_cached'.
62149         (entry_create): New function.
62150         (entry_hashcode): Use the cached hashcode if possible.
62151         (read_changelog_file, try_split_merged_entry): Use entry_create.
62152
62153 2008-02-17  Bruno Haible  <bruno@clisp.org>
62154
62155         Speed up from O(n^2) to O(n) for long ChangeLog files.
62156         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
62157         (read_changelog_file): Change implementation of entries_reversed list
62158         to rbtreehash.
62159         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
62160
62161 2008-02-17  Bruno Haible  <bruno@clisp.org>
62162
62163         New option --split-merged-entry.
62164         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
62165         (find_paragraph_end, try_split_merged_entry): New functions.
62166         (long_options): Add option --split-merged-entry.
62167         (usage): Document option --split-merged-entry.
62168         (main): Implement option --split-merged-entry.
62169         Reported by Eric Blake.
62170
62171 2008-02-17  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/git-merge-changelog.c: Include c-strstr.h.
62174         (main): Support the "git pull --rebase" situation.
62175         * modules/git-merge-changelog (Depends-on): Add c-strstr.
62176         Reported by Eric Blake.
62177
62178 2008-02-16  Eric Blake  <ebb9@byu.net>
62179
62180         Avoid doubling \ in common case of "c-maybe" quoting style.
62181         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
62182         eliding outer quotes.
62183         * lib/quotearg.h: Document this.
62184         * tests/test-quotearg.c (result_strings, inputs, results_g)
62185         (flag_results, locale_results): Test it by adding a new string to
62186         each test group.
62187         (compare_strings): Test new string.
62188
62189 2008-02-13  Eric Blake  <ebb9@byu.net>
62190
62191         Avoid trigraph quoting in default output.
62192         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
62193         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
62194         unless explicitly requested.
62195         * tests/test-quotearg.c (flag_results, main): Add additional tests.
62196
62197 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
62198
62199         Don't rely on signed integer overflowing to negative value.
62200         * lib/getugroups.c (getugroups): Include <limits.h>.
62201         Instead, compare against INT_MAX, and increment only if the test passes.
62202
62203 2008-02-13  Jim Meyering  <meyering@redhat.com>
62204         and Eric Blake  <ebb9@byu.net>
62205
62206         Avoid shadowing warning and compile errors on Linux.
62207         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
62208         forwarding macros on Linux.
62209         (dcgettext): Define a stub, for Linux.
62210         (results_g, main): Avoid warnings.
62211
62212 2008-02-12  Eric Blake  <ebb9@byu.net>
62213
62214         Silence warning in last patch.
62215         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
62216
62217         Quotearg part 4: add tests, fix c-maybe colon quoting.
62218         * lib/quotearg.h: Improve documentation.
62219         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
62220         escapes when adding outer quotes.  When quoting trigraphs, use
62221         valid C notation.  When quoting NUL, omit extra characters if next
62222         character is not digit.  Alter prototype.
62223         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
62224         callers.
62225         * modules/quotearg-tests: New module.
62226         * tests/test-quotearg.c: New test.
62227
62228 2008-02-07  Eric Blake  <ebb9@byu.net>
62229
62230         Quotearg part 3: add flag to control outer quote elision.
62231         * lib/quotearg.h (c_maybe_quoting_style): New style.
62232         (enum quoting_flags): Better documentation of flags.
62233         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
62234         c-maybe style.
62235         (quotearg_buffer_restyled): Handle new flag to elide outer
62236         quotes.
62237
62238         Quotearg part 2: add flag that can control NUL elision.
62239         * lib/quotearg.h (set_quoting_flags): New prototype.
62240         * lib/quotearg.c (struct quoting_options): Add flag field.
62241         (set_quoting_flags): New function.
62242         (quotearg_buffer_restyled): Add flags parameter.
62243         (quotearg_alloc_mem): Set the flag if length cannot be returned.
62244         (quotearg_n_options): Set the flag, since length cannot be
62245         returned.
62246         (quoting_options_from_style): Default flags correctly.
62247
62248         Quotearg part 1: more wrappers, restore quotearg_char state.
62249         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
62250         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
62251         (quotearg_colon_mem): New wrappers.
62252         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
62253         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
62254         functions.
62255         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
62256         (quotearg_colon_mem): New functions.
62257
62258 2008-02-11  Bruno Haible  <bruno@clisp.org>
62259
62260         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
62261         library in the current directory: it does not work with parallel make.
62262         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62263
62264 2008-02-11  Bruno Haible  <bruno@clisp.org>
62265
62266         * .gitattributes: New file.
62267
62268 2008-02-11  Jim Meyering  <meyering@redhat.com>
62269
62270         useless-if-before-free: Fix reversed exit values.
62271         * build-aux/useless-if-before-free: Use correct values
62272         for EXIT_MATCH and EXIT_NO_MATCH.
62273
62274         * build-aux/useless-if-before-free: Close stdout carefully.
62275
62276 2008-02-10  Bruno Haible  <bruno@clisp.org>
62277
62278         New module 'git-merge-changelog'.
62279         * modules/git-merge-changelog: New file.
62280         * lib/git-merge-changelog.c: New file.
62281
62282 2008-02-10  Jim Meyering  <meyering@redhat.com>
62283
62284         useless-if-before-free: New option: --list (-l).
62285
62286         useless-if-before-free: Don't exit immediately upon open failure.
62287         * build-aux/useless-if-before-free: Exit 2 for errors.
62288         Upon failure to open a file, don't exit immediately.
62289         Rather, just warn and continue with any remaining files.
62290
62291 2008-02-10  Bruno Haible  <bruno@clisp.org>
62292
62293         New abstract list operation 'node_set_value'.
62294         * lib/gl_list.h (gl_list_node_set_value): New function.
62295         (struct gl_list_implementation): New field node_set_value.
62296         * lib/gl_list.c (gl_list_node_set_value): New function.
62297         * lib/gl_array_list.c (gl_array_node_set_value): New function.
62298         (gl_array_list_implementation): Update.
62299         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
62300         (gl_carray_list_implementation): Update.
62301         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
62302         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
62303         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
62304         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
62305         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
62306         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
62307         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
62308         Update.
62309         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
62310         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
62311         (gl_sublist_list_implementation): Update.
62312
62313 2008-02-10  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
62316         Needed when ELEMENT is #defined to 'some_type *'.
62317
62318 2008-02-10  Jim Meyering  <meyering@redhat.com>
62319
62320         New script and module: useless-if-before-free
62321         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
62322         * build-aux/useless-if-before-free: New file.
62323         * modules/useless-if-before-free: New file.
62324
62325         * build-aux/gitlog-to-changelog: Use committer date, not author date.
62326
62327         xstrtol_error: Fix typo.
62328         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
62329         s/exit_failure/exit_status/.
62330
62331 2008-02-09  Jim Meyering  <meyering@redhat.com>
62332
62333         New script and module: gitlog-to-changelog
62334         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
62335         * modules/gitlog-to-changelog: New file.
62336         * build-aux/gitlog-to-changelog: New file.
62337
62338 2008-02-08  Jim Meyering  <meyering@redhat.com>
62339
62340         Avoid two "parameter unused" warnings.
62341         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
62342         Mark "st" as used.
62343
62344         Use "git COMMAND", not "git-COMMAND".
62345         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
62346         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
62347         * build-aux/git-version-gen: Use "git status", not "git-status".
62348
62349 2008-02-07  Bruno Haible  <bruno@clisp.org>
62350
62351         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
62352         Avoids a crash on Windows Vista.
62353         Reported by Adam Strzelecki <ono@java.pl> via
62354         Simon Josefsson <simon@josefsson.org>.
62355
62356 2008-02-06  Bruno Haible  <bruno@clisp.org>
62357
62358         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
62359         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
62360         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
62361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
62362         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62364         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
62365         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
62366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62373         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
62374         left-adjust flag.
62375         * tests/test-snprintf-posix.h (test_function): Likewise.
62376         * tests/test-sprintf-posix.h (test_function): Likewise.
62377         * tests/test-vasprintf-posix.c (test_function): Likewise.
62378         * doc/posix-functions/fprintf.texi: Update.
62379         * doc/posix-functions/printf.texi: Update.
62380         * doc/posix-functions/snprintf.texi: Update.
62381         * doc/posix-functions/sprintf.texi: Update.
62382         * doc/posix-functions/vfprintf.texi: Update.
62383         * doc/posix-functions/vprintf.texi: Update.
62384         * doc/posix-functions/vsnprintf.texi: Update.
62385         * doc/posix-functions/vsprintf.texi: Update.
62386         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62387
62388 2008-02-06  Bruno Haible  <bruno@clisp.org>
62389
62390         Fix bug introduced on 2008-01-26.
62391         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
62392
62393 2008-02-06  Bruno Haible  <bruno@clisp.org>
62394
62395         Fix bug introduced on 2007-06-10.
62396         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
62397         !NEED_PRINTF_FLAG_ZERO.
62398
62399 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
62400
62401         getloadavg: use libperfstat on AIX5
62402         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
62403
62404 2008-02-03  Bruno Haible  <bruno@clisp.org>
62405
62406         * lib/diffseq.h: Add comments about required #includes.
62407         Reported by Michael Biggs <gnulib@doubleplum.net>.
62408
62409 2008-02-01  Bruno Haible  <bruno@clisp.org>
62410
62411         * users.txt: Add gnuit.
62412
62413 2008-01-31  Bruno Haible  <bruno@clisp.org>
62414
62415         * lib/md4.c (set_uint32): Mark as inline.
62416         * lib/md5.c (set_uint32): Likewise.
62417         * lib/sha1.c (set_uint32): Likewise.
62418         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
62419         * m4/md5.m4 (gl_MD5): Likewise.
62420         * m4/sha1.m4 (gl_SHA1): Likewise.
62421
62422 2008-01-31  Jim Meyering  <meyering@redhat.com>
62423
62424         Use "sizeof VAR", rather than a literal "4".
62425         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
62426         * lib/md4.c (md4_read_ctx): Likewise.
62427         * lib/sha1.c (sha1_read_ctx): Likewise.
62428
62429 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62430
62431         * tests/test-sha1.c: New file, based on test-md5.c.
62432
62433         * modules/crypto/sha1-tests: New file.
62434
62435 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62436
62437         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
62438
62439 2008-01-31  Jim Meyering  <meyering@redhat.com>
62440
62441         Prefer "sizeof v" over the equivalent "4".
62442         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
62443         * lib/md5.c (set_uint32): Likewise.
62444         * lib/sha1.c (set_uint32): Likewise.
62445
62446 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62447
62448         * lib/sha1.c (set_uint32): Mark function as static.
62449
62450 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62451
62452         md2: clarify comments to say that alignment is not required.
62453         * lib/md2.h: Remove warning about alignment in comment.
62454         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
62455         never been required.
62456
62457 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62458
62459         md4: adapt alignment constraint fix from sha1.
62460         * lib/md4.c (set_uint32): New function, from sha1.c
62461         (md4_read_ctx): Use it.
62462         (md4_finish_ctx): Doc fix.
62463         * lib/md4.h: Doc fix.
62464
62465 2008-01-31  Simon Josefsson  <simon@josefsson.org>
62466
62467         md5: adapt alignment constraint fix from sha1.
62468         * lib/md5.c (set_uint32): New function, from sha1.c
62469         (md5_read_ctx): Use it.
62470         (md5_finish_ctx): Doc fix.
62471         * lib/md5.h: Doc fix.
62472
62473 2008-01-30  Peter Palfrader  <weasel@debian.org>
62474
62475         sha1: remove the result buffer alignment constraint
62476         * lib/sha1.c (set_uint32): New function.
62477         (sha1_read_ctx): Rewrite to remove the result buffer alignment
62478         constraint.
62479         (sha1_finish_ctx): Remove comment warning about alignment constraint.
62480         * lib/sha1.h: Likewise.
62481
62482 2008-01-30  Andreas Schwab  <schwab@suse.de>
62483             Bruno Haible  <bruno@clisp.org>
62484
62485         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
62486         correct definition of LDBL_MIN_EXP.
62487
62488 2008-01-30  Karl Berry  <karl@gnu.org>
62489
62490         * config/srclist-update: try to preserve x bit on updates.
62491         * config/srclistvars.sh: update for karl.
62492
62493 2008-01-29  Jim Meyering  <meyering@redhat.com>
62494
62495         vasnprintf.c: Avoid warning about unused label
62496         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
62497         "overflow" label definition and associated code with the
62498         same cpp condition that guards the sole use of that label.
62499
62500 2008-01-26  Bruno Haible  <bruno@clisp.org>
62501
62502         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
62503         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
62504         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
62505         * lib/isnanl-nolibm.h (isnanl): Likewise.
62506         Reported by Paul Eggert <eggert@cs.ucla.edu>.
62507
62508 2008-01-26  Bruno Haible  <bruno@clisp.org>
62509
62510         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
62511         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
62512
62513 2008-01-26  Bruno Haible  <bruno@clisp.org>
62514
62515         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
62516         GCC >= 4.0 built-in.
62517         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
62518
62519 2008-01-26  Bruno Haible  <bruno@clisp.org>
62520
62521         Rename isnan, applicable to 'double' only, to isnand.
62522         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
62523         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
62524         (configure.ac): Update.
62525         (Include): Replace "isnan.h" with "isnand.h".
62526         * m4/isnand.m4: Renamed from m4/isnan.m4.
62527         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
62528         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
62529         instead of isnan.c.
62530         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
62531         instead of HAVE_ISNAN_IN_LIBC.
62532         (isnand): Renamed from isnan.
62533         * lib/isnand.c: New file.
62534         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
62535         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
62536         (Makefile.am): Update.
62537         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
62538         Include isnand.h instead of isnan.h.
62539         (main): Test isnand instead of isnan.
62540         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
62541         isnan-nolibm.
62542         * modules/frexp (Depends-on): Likewise.
62543         * modules/frexp-tests (Depends-on): Likewise.
62544         * modules/frexp-nolibm (Depends-on): Likewise.
62545         * modules/frexp-nolibm-tests (Depends-on): Likewise.
62546         * modules/isfinite (Depends-on): Likewise.
62547         * modules/round-tests (Depends-on): Likewise.
62548         * modules/signbit (Depends-on): Likewise.
62549         * modules/signbit-tests (Depends-on): Likewise.
62550         * modules/snprintf-posix (Depends-on): Likewise.
62551         * modules/sprintf-posix (Depends-on): Likewise.
62552         * modules/trunc-tests (Depends-on): Likewise.
62553         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62554         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62555         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62556         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62558         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62559         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62560         * modules/vasnprintf-posix (Depends-on): Likewise.
62561         * modules/vasprintf-posix (Depends-on): Likewise.
62562         * modules/vfprintf-posix (Depends-on): Likewise.
62563         * modules/vsnprintf-posix (Depends-on): Likewise.
62564         * modules/vsprintf-posix (Depends-on): Likewise.
62565         * lib/frexp.c: Include isnand.h instead of isnan.h.
62566         (ISNAN): Set to isnand instead of isnan.
62567         * lib/isfinite.c: Include isnand.h instead of isnan.h.
62568         (gl_isfinited): Use isnand instead of isnan.
62569         * lib/signbitd.c: Include isnand.h instead of isnan.h.
62570         (gl_signbitd): Use isnand instead of isnan.
62571         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
62572         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
62573         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
62574         (main): Use isnand instead of isnan.
62575         * tests/test-round1.c: Include isnand.h.
62576         (main): Use isnand instead of isnan.
62577         * tests/test-round2.c: Include isnand.h instead of isnan.h.
62578         (ISNAN): Set to isnand instead of isnan.
62579         * tests/test-trunc1.c: Include isnand.h.
62580         (main): Use isnand instead of isnan.
62581         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
62582         (equal): Use isnand instead of isnan.
62583         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
62584         isnand-nolibm.
62585         * NEWS: Mention the change.
62586
62587 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62588             Bruno Haible  <bruno@clisp.org>
62589
62590         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
62591         the GCC builtins for signbits are present and set
62592         REPLACE_SIGNBIT_USING_GCC if so.
62593         * lib/math.in.h (signbit): Define using GCC builtins if
62594         REPLACE_SIGNBIT_USING_GCC is set.
62595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
62596         REPLACE_SIGNBIT_USING_GCC.
62597         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
62598
62599 2008-01-25  Jim Meyering  <meyering@redhat.com>
62600
62601         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
62602         * lib/poll.c: Include <config.h>, not "config.h".
62603         * tests/test-getaddrinfo.c: Likewise.
62604
62605 2008-01-25  Simon Josefsson  <simon@josefsson.org>
62606
62607         * modules/sockets-tests: New file.
62608
62609 2008-01-24  Simon Josefsson  <simon@josefsson.org>
62610
62611         * modules/sockets: New module, can be used to call WSA_Startup and
62612         WSA_Cleanup when needed.
62613
62614         * lib/sockets.h, lib/sockets.c: New files.
62615
62616         * m4/sockets.m4: New file.
62617
62618         * tests/test-sockets.c: New file.
62619
62620 2008-01-19  Bruno Haible  <bruno@clisp.org>
62621
62622         * doc/posix-headers: Renamed from doc/headers.
62623         * doc/posix-functions: Renamed from doc/functions.
62624         * doc/gnulib.texi: Update.
62625
62626 2008-01-19  Bruno Haible  <bruno@clisp.org>
62627
62628         * doc/glibc-functions/strcasestr.texi: Include contents of
62629         doc/functions/strcasestr.texi, fixing the list of platforms.
62630         * doc/functions/strcasestr.texi: Remove file.
62631
62632 2008-01-19  Bruno Haible  <bruno@clisp.org>
62633
62634         * doc/glibc-functions/memmem.texi: Include contents of
62635         doc/functions/memmem.texi.
62636         * doc/functions/memmem.texi: Remove file.
62637
62638 2008-01-18  Bruno Haible  <bruno@clisp.org>
62639
62640         * doc/glibc-functions/*.texi: New files.
62641         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
62642         to use the new files.
62643
62644 2008-01-17  Bruno Haible  <bruno@clisp.org>
62645
62646         * tests/test-gethostname.c (main): Fix printf statement.
62647
62648 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62649
62650         * modules/gethostname-tests: New file.
62651
62652         * tests/test-gethostname.c: New file.
62653
62654 2008-01-17  Simon Josefsson  <simon@josefsson.org>
62655
62656         * lib/gethostname.c: Include string.h unconditionally, strncpy is
62657         used by the UNAME case.  Reported by Bruno Haible
62658         <bruno@clisp.org>.
62659
62660 2008-01-17  Eric Blake  <ebb9@byu.net>
62661
62662         Convert c-strcasestr to be more efficient.
62663         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
62664         (Depends-on): Add c-strcase, remove malloca, strnlen.
62665         * tests/test-c-strcasestr.c (main): Enhance test.
62666         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
62667
62668 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62669
62670         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
62671         Use it in creating po/Makevars.
62672
62673 2008-01-15  Simon Josefsson  <simon@josefsson.org>
62674
62675         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
62676         Applications that requires it should initialize libgcrypt
62677         manually.
62678
62679 2008-01-16  Simon Josefsson  <simon@josefsson.org>
62680
62681         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
62682
62683 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         Fix problem with getdate on mingw32 reported by Simon Josefsson
62686         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
62687         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
62688         tzname", when deciding whether to declare tzname.
62689         * lib/strftime.c (tzname): Likewise.
62690
62691 2008-01-15  Bruno Haible  <bruno@clisp.org>
62692
62693         Work around a MacOS X 10.5 bug in frexpl().
62694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
62695         * doc/functions/frexpl.texi: Document the bug.
62696         Reported by Elias Pipping <pipping@gentoo.org>.
62697
62698 2008-01-14  Eric Blake  <ebb9@byu.net>
62699
62700         Touch up previous patch.
62701         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
62702         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
62703
62704         Convert strcasestr module to use Two-Way algorithm.
62705         * modules/strcasestr-simple: New module, based on the old
62706         strcasestr, but with Two-Way rather than KMP.
62707         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
62708         * lib/string.in.h (rpl_strcasestr): Declare.
62709         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
62710         performance.
62711         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
62712         * modules/string (Makefile.am): Support strcasestr.
62713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62714         * modules/strcasestr-tests (Depends-on): Check for alarm.
62715         * tests/test-strcasestr.c: Augment test.
62716         * lib/str-two-way.h: Clean up stray macro.
62717         * NEWS: Document new module.
62718         * MODULES.html.sh (string handling): Likewise.
62719         * doc/functions/strcasestr.texi: New file.
62720         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
62721         here, since it is not a POSIX function.
62722
62723 2008-01-14  Colin Watson  <cjwatson@debian.org>
62724             Bruno Haible  <bruno@clisp.org>
62725
62726         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
62727         works fine; if not, set REPLACE_STRSIGNAL.
62728         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
62729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62730         REPLACE_STRSIGNAL.
62731         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
62732         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
62733         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
62734
62735 2008-01-14  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/strsignal (Include): Change to <string.h>.
62738
62739 2008-01-14  Colin Watson  <cjwatson@debian.org>
62740
62741         * modules/argp (Notice): Add a notice recommending to change
62742         XGETTEXT_OPTIONS.
62743         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
62744
62745 2008-01-13  Colin Watson  <cjwatson@debian.org>
62746
62747         * modules/strsignal-tests: New file.
62748         * tests/test-strsignal.c: New file.
62749
62750         * lib/strsignal.c: New file, from glibc with modifications.
62751         * lib/siglist.h: New file, from glibc with modifications.
62752         * lib/string.in.h (strsignal): New declaration.
62753         * m4/strsignal.m4: New file.
62754         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62755         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
62756         * modules/strsignal: New file.
62757         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
62758         HAVE_DECL_STRSIGNAL.
62759
62760 2008-01-13  Bruno Haible  <bruno@clisp.org>
62761
62762         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
62763         locale encoding is not ASCII. Needed for OpenBSD 4.0.
62764         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62765         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62766
62767 2008-01-13  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
62770         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
62771         * lib/argp.h (__attribute__): Likewise.
62772         * lib/c-stack.c (__attribute__): Likewise.
62773         * lib/error.h (__attribute__): Likewise.
62774         * lib/fts.c (__attribute__): Likewise.
62775         * lib/openat.h (__attribute__): Likewise.
62776         * lib/stdio.in.h (__attribute__): Likewise.
62777         * lib/string.in.h (__attribute__): Likewise.
62778         * lib/utimens.c (__attribute__): Likewise.
62779         * lib/vasnprintf.h (__attribute__): Likewise.
62780         * lib/xalloc.h (__attribute__): Likewise.
62781         * lib/xprintf.h (__attribute__): Likewise.
62782         * lib/xstrtol.h (__attribute__): Likewise.
62783         * lib/xvasprintf.h (__attribute__): Likewise.
62784
62785 2008-01-12  Bruno Haible  <bruno@clisp.org>
62786
62787         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
62788         * doc/glibc-headers/a.out.texi: New file.
62789         * doc/glibc-headers/aliases.texi: New file.
62790         * doc/glibc-headers/alloca.texi: New file.
62791         * doc/glibc-headers/ar.texi: New file.
62792         * doc/glibc-headers/argp.texi: New file.
62793         * doc/glibc-headers/argz.texi: New file.
62794         * doc/glibc-headers/byteswap.texi: New file.
62795         * doc/glibc-headers/crypt.texi: New file.
62796         * doc/glibc-headers/endian.texi: New file.
62797         * doc/glibc-headers/envz.texi: New file.
62798         * doc/glibc-headers/err.texi: New file.
62799         * doc/glibc-headers/error.texi: New file.
62800         * doc/glibc-headers/execinfo.texi: New file.
62801         * doc/glibc-headers/fpu_control.texi: New file.
62802         * doc/glibc-headers/fstab.texi: New file.
62803         * doc/glibc-headers/fts.texi: New file.
62804         * doc/glibc-headers/getopt.texi: New file.
62805         * doc/glibc-headers/ieee754.texi: New file.
62806         * doc/glibc-headers/ifaddrs.texi: New file.
62807         * doc/glibc-headers/libintl.texi: New file.
62808         * doc/glibc-headers/mcheck.texi: New file.
62809         * doc/glibc-headers/mntent.texi: New file.
62810         * doc/glibc-headers/obstack.texi: New file.
62811         * doc/glibc-headers/paths.texi: New file.
62812         * doc/glibc-headers/printf.texi: New file.
62813         * doc/glibc-headers/pty.texi: New file.
62814         * doc/glibc-headers/resolv.texi: New file.
62815         * doc/glibc-headers/shadow.texi: New file.
62816         * doc/glibc-headers/sysexits.texi: New file.
62817         * doc/glibc-headers/ttyent.texi: New file.
62818
62819 2008-01-12  Jim Meyering  <meyering@redhat.com>
62820
62821         announce-gen: emit Gnulib's git-based version string.
62822         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
62823         New option --gnulib-version=V, where V is expected to be
62824         the output of running git describe in the gnulib directory.
62825         (get_tool_versions): Request feedback on xdelta.  I suspect it's
62826         not useful, and plan to stop publishing an xdelta file with each
62827         coreutils release.
62828
62829         * build-aux/announce-gen: Also check for lzma-compressed files.
62830
62831 2008-01-11  Bruno Haible  <bruno@clisp.org>
62832
62833         * tests/test-memmem.c (main): Increase maximum allowed time.
62834         * tests/test-strstr.c (main): Likewise.
62835
62836 2008-01-11  Bruno Haible  <bruno@clisp.org>
62837
62838         * doc/functions/memmem.texi: Add more precisions about platforms.
62839         * doc/functions/strstr.texi: Likewise.
62840
62841 2008-01-10  Eric Blake  <ebb9@byu.net>
62842
62843         * m4/strstr.m4: Delete cruft from copy-n-paste.
62844         Reported by Bruno Haible.
62845
62846 2008-01-10  Bruno Haible  <bruno@clisp.org>
62847
62848         Make c-strstr rely on strstr.
62849         * lib/c-strstr.c: Don't include str-kmp.h.
62850         (c_strstr): Define in terms of strstr.
62851         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62852         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62853
62854 2008-01-10  Bruno Haible  <bruno@clisp.org>
62855
62856         * doc/gnulib.texi (String Functions in C Locale): New section.
62857         * doc/c-ctype.texi: New file.
62858         * doc/c-strcase.texi: New file.
62859         * doc/c-strcaseeq.texi: New file.
62860         * doc/c-strcasestr.texi: New file.
62861         * doc/c-strstr.texi: New file.
62862         * doc/c-strtod.texi: New file.
62863         * doc/c-strtold.texi: New file.
62864
62865 2008-01-10  Eric Blake  <ebb9@byu.net>
62866
62867         * lib/relocatable.h: Fix a comment.
62868
62869 2008-01-10  Eric Blake  <ebb9@byu.net>
62870
62871         Share two-way algorithm.
62872         * lib/str-two-way.h: New file, merged from...
62873         * lib/memmem.c: ...here...
62874         * lib/strstr.c: ...and here.
62875         * modules/memmem (Files): Use it.
62876         * modules/strstr (Files): Likewise.
62877
62878         Avoid quadratic strstr implementations.
62879         * lib/strstr.c: New file.
62880         * m4/strstr.m4: Likewise.
62881         * modules/strstr: Likewise.
62882         * modules/strstr-tests: Likewise.
62883         * tests/test-strstr.c: Likewise.
62884         * lib/string.in.h (rpl_strstr): Declare.
62885         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62887         * modules/string (Makefile.am): Likewise.
62888         * MODULES.html.sh (string handling): Mention new module.
62889         * doc/functions/strstr.texi (strstr): Document the bug.
62890
62891 2008-01-10  Bruno Haible  <bruno@clisp.org>
62892
62893         * lib/relocatable.h (relocate): State whether result is freshly
62894         allocated or not.
62895         * lib/relocatable.c (relocate): Return a freshly allocated string
62896         instead of a pointer to a privately held string.
62897         Reported by Sylvain Beucler <beuc@gnu.org>.
62898
62899 2008-01-10  Colin Watson  <cjwatson@debian.org>
62900
62901         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62902         s/S_ISNLK/S_ISLNK/.
62903
62904 2008-01-09  Bruno Haible  <bruno@clisp.org>
62905
62906         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62907         and other files.
62908         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62909         if it's only a guess.
62910         * modules/memmem: Simplify by depending on memmem-simple.
62911
62912 2008-01-09  Bruno Haible  <bruno@clisp.org>
62913
62914         Work around OpenBSD 4.0 tdelete() bug.
62915         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62916         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62917         macros and don't redefine the enum values.
62918         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62919         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62920         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62921
62922 2008-01-09  Bruno Haible  <bruno@clisp.org>
62923
62924         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62925         (main): Don't perform the tests if setlocale did not install a UTF-8
62926         locale. Needed on OpenBSD 4.0.
62927         * modules/wcwidth-tests (Depends-on): Add localcharset.
62928
62929 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62930
62931         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62932         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62933         * NEWS: announce this.
62934         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62935
62936 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62937         and Eric Blake  <ebb9@byu.net>
62938
62939         Add memmem-simple module.
62940         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62941         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62942         * modules/memmem-simple: New file.
62943         * modules/memmem (Description): Tweak.
62944         * MODULES.html.sh (string handling): Mention new module.
62945         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62946         addressed by memmem-simple.
62947         * NEWS: Document the difference.
62948
62949 2008-01-09  Eric Blake  <ebb9@byu.net>
62950
62951         Give gcc some memmem optimization hints.
62952         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62953         (strcasestr): Declare as pure.
62954         * modules/memmem (Maintainer): Claim my implementation.
62955
62956 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62957
62958         Support AIX 6.1 and higher.
62959         * build-aux/config.libpath: Likewise.
62960         * build-aux/config.rpath: Likewise.
62961
62962 2008-01-08  Jim Meyering  <meyering@redhat.com>
62963             Bruno Haible  <bruno@clisp.org>
62964
62965         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62966         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62967         Reported by Peter Fales in
62968         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62969
62970 2008-01-08  Bruno Haible  <bruno@clisp.org>
62971
62972         * modules/unictype/category-of (Depends-on): Add
62973         unictype/category-none.
62974         * modules/unictype/category-and-tests (Depends-on): Add
62975         unictype/category-{L,N,Lu,Nd}.
62976         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62977         * modules/unictype/category-or-tests (Depends-on): Add
62978         unictype/category-{L,N}.
62979         * modules/unictype/category-name-tests (Depends-on): Add
62980         unictype/category-{Z,Nl}.
62981         Reported by Simon Josefsson.
62982
62983 2008-01-08  Bruno Haible  <bruno@clisp.org>
62984
62985         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62986         convention better.
62987         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62988         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62989         Reported by Peter Miller <millerp@canb.auug.org.au>.
62990
62991 2008-01-08  Eric Blake  <ebb9@byu.net>
62992
62993         Rewrite memmem to guarantee linear complexity without malloc.
62994         * lib/memmem.c (memmem): Use Two-Way rather than
62995         Knuth-Morris-Pratt, to allow O(1) space usage.
62996         (critical_factorization, two_way_short_needle)
62997         (two_way_long_needle): New functions.
62998         (knuth_morris_pratt): Delete.
62999         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63000         Add stdint.
63001         * tests/test-memmem.c (main): Add tests for periodic needle and
63002         sublinear performance.
63003         * doc/functions/memmem.texi (memmem): Document other deficiencies
63004         in cygwin and older glibc.
63005
63006 2008-01-08  Bruno Haible  <bruno@clisp.org>
63007
63008         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63009         augmentation.
63010
63011 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63012
63013         Add a configure time option: --disable-acl.
63014         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63015         AC_ARG_ENABLE(acl).
63016
63017 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63018
63019         * tests/test-localename.c: Don't include obsolete "setenv.h".
63020
63021         * modules/localename-tests (Depends-on): Need unsetenv.
63022
63023 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63024
63025         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63026
63027 2008-01-06  Colin Watson  <cjwatson@debian.org>
63028
63029         * users.txt: Add man-db.
63030
63031 2008-01-07  Bruno Haible  <bruno@clisp.org>
63032
63033         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63034         previous section name.
63035
63036 2008-01-07  Bruno Haible  <bruno@clisp.org>
63037
63038         * lib/progname.c (set_program_name): Don't strip off a leading
63039         "lt-" prefix outside a .libs directory.
63040         Suggested by Paul Eggert.
63041
63042 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63043             Bruno Haible  <bruno@clisp.org>
63044
63045         Improve memory cleanup in 'relocatable' module.
63046         * lib/relocatable.h (compute_curr_prefix): Change return type to
63047         'char *'.
63048         * lib/relocatable.c (compute_curr_prefix): Change return type to
63049         'char *'. Free curr_installdir after use.
63050         (relocate): Free curr_prefix_better after use.
63051         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63052
63053 2008-01-01  Bruno Haible  <bruno@clisp.org>
63054
63055         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63056         failure on older glibc systems.
63057         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63058
63059 2008-01-05  Eric Blake  <ebb9@byu.net>
63060
63061         Avoid quadratic system memmem.
63062         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
63063         Reported by Ralf Wildenhues.
63064
63065         Fix memmem test for mingw.
63066         * modules/memmem-tests (configure.ac): Check for alarm.
63067         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
63068         it.
63069         * doc/functions/memmem.texi: New file.
63070         * doc/gnulib.texi (Function Substitutes): Add memmem.
63071         Reported by Bruno Haible.
63072
63073 2008-01-04  Bruno Haible  <bruno@clisp.org>
63074
63075         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
63076         Require gl_HEADER_STRINGS_H_DEFAULTS, not
63077         gl_HEADER_STRING_H_DEFAULTS.
63078
63079 2008-01-04  Eric Blake  <ebb9@byu.net>
63080
63081         Shorten duration of memmem test.
63082         * tests/test-memmem.c (main): Use alarm to declare failure if test
63083         is taking too long.
63084         Reported by Ralf Wildenhues.
63085
63086 2007-12-21  Simon Josefsson  <simon@josefsson.org>
63087
63088         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
63089         string, needed by strerror.
63090
63091 2008-01-03  Colin Watson  <cjwatson@debian.org>
63092             Bruno Haible  <bruno@clisp.org>
63093
63094         * doc/gnulib-tool.texi (Localization): New section.
63095
63096 2008-01-02  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
63099         variables to 'unsigned char *' type.
63100         Reported by Paul Eggert.
63101
63102 2008-01-02  Jim Meyering  <jim@meyering.net>
63103
63104         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
63105
63106 2007-12-31  Jim Meyering  <jim@meyering.net>
63107
63108         Avoid use of private FTS type name.
63109         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
63110
63111 2007-12-30  Karl Berry  <karl@gnu.org>
63112
63113         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
63114         work around defect in Texinfo and/or the standalone Info browser.
63115
63116 2007-12-30  Bruno Haible  <bruno@clisp.org>
63117
63118         Unify 5 copies of the KMP code.
63119         * lib/str-kmp.h: New file.
63120         * lib/c-strcasestr.c: Include str-kmp.h.
63121         (knuth_morris_pratt): Remove function.
63122         (c_strcasestr): Update.
63123         * lib/c-strstr.c: Include str-kmp.h.
63124         (knuth_morris_pratt): Remove function.
63125         (c_strcasestr): Update.
63126         * lib/mbscasestr.c: Include str-kmp.h.
63127         (knuth_morris_pratt_unibyte): Remove function.
63128         * lib/mbsstr.c: Include str-kmp.h.
63129         (knuth_morris_pratt_unibyte): Remove function.
63130         * lib/strcasestr.c: Include str-kmp.h.
63131         (knuth_morris_pratt): Remove function.
63132         (strcasestr): Update.
63133         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
63134         * modules/c-strstr (Files): Likewise.
63135         * modules/mbscasestr (Files): Likewise.
63136         * modules/mbsstr (Files): Likewise.
63137         * modules/strcasestr (Files): Likewise.
63138         Suggested by Paul Eggert.
63139
63140 2007-12-30  Bruno Haible  <bruno@clisp.org>
63141
63142         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
63143         defined.
63144
63145 2007-12-30  Bruno Haible  <bruno@clisp.org>
63146
63147         * lib/xmalloca.h: Include xalloc.h.
63148         (xnmalloca): New macro.
63149
63150 2007-12-30  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/malloca.h (nmalloca): New macro.
63153         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
63154         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
63155         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
63156         knuth_morris_pratt_multibyte): Likewise.
63157         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
63158         knuth_morris_pratt_multibyte): Likewise.
63159         * lib/memmem.c (knuth_morris_pratt): Likewise.
63160         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
63161
63162 2007-12-25  Bruno Haible  <bruno@clisp.org>
63163
63164         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
63165         * lib/glob.c: Don't include openat.h.
63166         (link_exists2_p): Add back the code that deals with the
63167         !GLOB_ALTDIRFUNC case.
63168         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
63169         let it do the filename concatenation.
63170         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
63171         * modules/glob (Depends-on): Remove openat.
63172
63173 2007-12-31  Bruno Haible  <bruno@clisp.org>
63174
63175         * modules/dirfd (License): Change to LGPLv2+.
63176         Approved by Jim Meyering.
63177
63178 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
63181         when multiplying M by sizeof (size_t).
63182
63183 2007-12-10  Martin Lambers  <marlam@marlam.de>
63184
63185         Override getpagesize on mingw.
63186         * lib/getpagesize.c: New file.
63187         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
63188         * modules/getpagesize (Files): Add lib/getpagesize.c.
63189         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
63190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63191         REPLACE_GETPAGESIZE.
63192         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
63193
63194 2007-12-25  Bruno Haible  <bruno@clisp.org>
63195
63196         * modules/localcharset (Notice): New field.
63197         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
63198         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
63199
63200 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63201             Bruno Haible  <bruno@clisp.org>
63202
63203         Avoid using the syntax symbol() in formatted documentation.
63204         * MODULES.html.sh (func_module): When replacing symbol() with a
63205         hyperlink, remove the parentheses. Show an error if some remain.
63206         Recognize and render the '...' syntax.
63207         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
63208         Rework. Add paragraph about GCC's inlining.
63209         * doc/alloca.texi: Likewise.
63210         * doc/error.texi: Remove parentheses from symbol reference.
63211         * doc/gnulib-intro.texi: Likewise.
63212         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
63213         * modules/fnmatch (Description): Reword to say "the ... function".
63214         * modules/full-read (Description): Likewise.
63215         * modules/full-write (Description): Likewise.
63216         * modules/safe-read (Description): Likewise.
63217         * modules/safe-write (Description): Likewise.
63218         * modules/strchrnul (Description): Likewise.
63219         * modules/trim (Description): Likewise.
63220         * modules/error (Description): Remove parentheses from symbol
63221         references.
63222         * modules/verror (Description): Likewise.
63223         Reported by Karl Berry.
63224
63225 2007-12-25  Bruno Haible  <bruno@clisp.org>
63226
63227         Fixup after 2007-10-16 commit.
63228         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
63229
63230 2007-12-24  Bruno Haible  <bruno@clisp.org>
63231
63232         Make --enable-relocatable work with DESTDIR.
63233         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
63234         to compute installdir from destprog.
63235         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
63236         also set the RELOC_DESTDIR variable.
63237         Reported by Левашев Иван <octagram@bluebottle.com>.
63238
63239 2007-12-24  Bruno Haible  <bruno@clisp.org>
63240
63241         Fix link error due to xalloc_die().
63242         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
63243         of xreadlink.
63244         * lib/relocwrapper.c: Update comments.
63245         * build-aux/install-reloc: Remove xreadlink.c from file list.
63246         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
63247         xreadlink.c.
63248         Reported by Левашев Иван <octagram@bluebottle.com>.
63249
63250 2007-12-24  Bruno Haible  <bruno@clisp.org>
63251
63252         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
63253         * lib/setenv.h: Remove file.
63254         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
63255         lib/setenv.h.
63256         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
63257         (Depends-on): Add stdlib.
63258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
63259         gl_FUNC_UNSETENV.
63260         (Include): Replace setenv.h with <stdlib.h>.
63261         * modules/unsetenv: New file.
63262         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
63263         * lib/unsetenv.c: Include <stdlib.h> first.
63264         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
63265         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
63266         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
63267         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
63268         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
63269         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
63271         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
63272         * doc/functions/unsetenv.texi: Update.
63273         * modules/xsetenv (Depends-on): Add unsetenv.
63274         * modules/getdate (Depends-on): Likewise.
63275         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
63276         * lib/xsetenv.c: Don't include setenv.h.
63277         * lib/getdate.y: Likewise.
63278         * lib/relocwrapper.c: Likewise.
63279         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
63280         (Depends-on): Add stdlib.
63281         * NEWS: Mention the changes.
63282         Reported by Левашев Иван <octagram@bluebottle.com>.
63283
63284 2007-12-23  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/memmem.c (memmem): Use lowercase variable names. Tab
63287         indentation.
63288
63289 2007-12-23  Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/c-strcasestr.c: Add more comments.
63292         * lib/c-strstr.c: Likewise.
63293         * lib/mbscasestr.c: Likewise.
63294         * lib/mbsstr.c: Likewise.
63295         * lib/strcasestr.c: Likewise.
63296         * lib/memmem.c: Likewise.
63297
63298 2007-12-23  Bruno Haible  <bruno@clisp.org>
63299
63300         * tests/test-memmem.c: Include <string.h> first.
63301
63302 2007-12-22  Bruno Haible  <bruno@clisp.org>
63303
63304         * gnulib-tool (func_create_testdir): Change $auxdir while generating
63305         the contents of $testsbase.
63306         Reported by Ralf Wildenhues.
63307
63308 2007-12-22  Bruno Haible  <bruno@clisp.org>
63309
63310         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
63311         two variables local_ldadd_before, local_ldadd_last.
63312
63313 2007-12-20  Eric Blake  <ebb9@byu.net>
63314
63315         Work around circular library issue when cross-compiling.
63316         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
63317         that progname.o does not need to pull in rpl_memcmp.
63318
63319 2007-12-19  Eric Blake  <ebb9@byu.net>
63320
63321         Fix memmem to avoid O(n^2) worst-case complexity.
63322         * lib/memmem.c (knuth_morris_pratt): New function.
63323         (memmem): Use it if first few naive iterations fail.
63324         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
63325         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
63326         * modules/memchr (License): Likewise.
63327         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
63328         malloca.
63329         * tests/test-memmem.c: Rewrite, borrowing ideas from
63330         test-mbsstr1.c; the old version wouldn't even compile!
63331         * modules/memmem-tests: New file.
63332         * lib/string.in.h (rpl_memmem): Add declaration.
63333         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
63334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
63335         REPLACE_MEMMEM.
63336
63337 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63338
63339         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
63340         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
63341         before any system include files, and undef after them all.  This
63342         should fix a problem on VMS reported by John E. Malmberg in
63343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
63344
63345 2007-12-17  Eric Blake  <ebb9@byu.net>
63346
63347         Revert addition of verify, for BSD/OS.
63348         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
63349         can't handle large files, for the sake of obsolete platforms.
63350         * modules/fseeko (Depends-on): Remove verify.
63351         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
63352         * doc/functions/ftello.texi (ftello): Likewise.
63353         * doc/functions/fgetpos.texi (fgetpos): Likewise.
63354         Reported by Larry Jones.
63355
63356 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
63357
63358         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
63359         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
63360
63361 2007-12-17  Jim Meyering  <meyering@redhat.com>
63362
63363         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
63364         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
63365         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
63366         * modules/getcwd (Depends-on): Add openat.
63367         Reported by Petr Salinger.
63368
63369 2007-12-17  Bruno Haible  <bruno@clisp.org>
63370
63371         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
63372         avoid a segmentation fault of the configure test on x86_64 systems.
63373
63374 2007-12-15  Jim Meyering  <meyering@redhat.com>
63375
63376         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
63377
63378 2007-12-13  Eric Blake  <ebb9@byu.net>
63379
63380         Another fseek test.
63381         * tests/test-fseek.c (main): Also test ungetc handling.
63382         * tests/test-fseeko.c (main): Likewise.
63383         * modules/fseeko (Depends-on): Add verify.
63384         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
63385         large.
63386         Reported by Larry Jones.
63387
63388         Fix fseeko on mingw.
63389         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
63390         seek.
63391
63392         Beef up fseek tests.
63393         * tests/test-fseek.c (main): Also test eof handling.
63394         * tests/test-fseeko.c (main): Likewise.
63395         Reported by Larry Jones.
63396
63397 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
63398
63399         Fix fseeko on BSD-based platforms.
63400         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
63401         successful seek.
63402
63403 2007-12-12  Eric Blake  <ebb9@byu.net>
63404
63405         Allow circular dependency of separate libtests.a
63406         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
63407         when use_libtests.
63408
63409 2007-12-11  Eric Blake  <ebb9@byu.net>
63410
63411         Fix bug with -0.0L in previous patch.
63412         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
63413         * tests/test-isnan.c (main): Also test on zeroes.
63414         * tests/test-isnanf.c (main): Likewise.
63415         * tests/test-isnanl.h (main): Likewise.
63416
63417         Detect pseudo-denormals on x86 even when cross-compiling.
63418         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
63419         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
63420         invalid bit patterns that happen to satisfy ==.
63421
63422         Avoid link failures with separate libtests.a.
63423         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
63424         last, to satisfy circular dependencies.
63425
63426 2007-12-11  Eric Blake  <ebb9@byu.net>
63427         and Bruno Haible  <bruno@clisp.org>
63428
63429         Fix OpenBSD 4.0 <float.h> handling of long double.
63430         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
63431         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
63432         * doc/headers/float.texi (float.h): Document OpenBSD bug.
63433
63434 2007-12-11  Jim Meyering  <meyering@redhat.com>
63435
63436         * users.txt: Add libvirt.
63437
63438         Support versions of autoconf prior to 2.59c.
63439         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
63440         if it is not already defined.
63441
63442 2007-12-09  Bruno Haible  <bruno@clisp.org>
63443
63444         Let 'gnulib-tool --import' collect sources needed for the tests in
63445         tests/ rather than in lib/.
63446         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
63447         argument. If true, add rules to generate libtests.a, and put libtests.a
63448         into $(LDADD). Consider source files in subdirectories and set
63449         uses_subdirs.
63450         (func_emit_initmacro_start, func_emit_initmacro_end,
63451         func_emit_initmacro_done): Pass all arguments explicitly.
63452         (func_import): Determine two module lists main_modules,
63453         testsrelated_modules. Determine use_libtests. Determine two variables
63454         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
63455         instead of just sed_transform_lib_file. Determine two variables
63456         main_files and testsrelated_files. Compute 'files' as the union of
63457         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
63458         func_add_or_update. In the generated gnulib-comp.m4, collect the
63459         object files for tests/ in different variables than those for lib/.
63460         Substitute LIBTESTS_LIBDEPS.
63461         (func_create_testdir): Combine the uses_subdirs results from
63462         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
63463
63464 2007-12-09  Bruno Haible  <bruno@clisp.org>
63465
63466         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
63467         the build-aux directory.
63468
63469 2007-12-09  Bruno Haible  <bruno@clisp.org>
63470
63471         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
63472         introduced on 2006-09-09.
63473
63474 2007-12-07  Jim Meyering  <meyering@redhat.com>
63475
63476         Let these macros work also with autoconf-2.59.
63477         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
63478         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
63479         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63480
63481 2007-12-06  Jim Meyering  <meyering@redhat.com>
63482
63483         Avoid a configure-time syntax error in gl_FUNC_ACL.
63484         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
63485         function in each branch, before testing the cache variable.
63486
63487 2007-12-04  Eric Blake  <ebb9@byu.net>
63488
63489         Make scripts executable.
63490         * build-aux/config.guess: Add execute permissions.
63491         * build-aux/config.sub: Likewise.
63492         * build-aux/gendocs.sh: Likewise.
63493
63494         Fix frexp on mingw.
63495         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
63496         cross-compiling.
63497         * doc/functions/frexp.texi (frexp): Document the bug.
63498
63499         Make cygwin fseeko check more reliable.
63500         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
63501         version numbers, rather than unrelated feature check.
63502         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
63503         * doc/functions/ftello.texi (ftello): Likewise.
63504         Reported by Bruno Haible.
63505
63506         * m4/strerror.m4: Bump version number.
63507
63508 2007-12-03  Bruno Haible  <bruno@clisp.org>
63509
63510         * doc/functions/mprotect.texi: Mention the mingw problem.
63511
63512 2007-12-03  Eric Blake  <ebb9@byu.net>
63513
63514         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
63515         REPLACE_STRERROR is initialized before this macro.
63516
63517 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63518
63519         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
63520         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
63521         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
63522         put -lsec in even for programs other than 'ls'.  This fixes a problem
63523         for gettext reported by Bruno Haible in
63524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
63525         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
63526         Add support for Solaris 10.  This isn't efficient, but should get the
63527         job done for now.
63528
63529 2007-12-03  James Youngman  <jay@gnu.org>
63530
63531         * doc/regexprops-generic.texi: change "an close-group" to "a
63532         close-group" and "illegal" to "not allowed".
63533
63534 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63535
63536         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
63537         pr_byname.h. Needed for the rare case when the maintainer has done
63538         "make maintainer-clean" in the source directory and then attempts a
63539         build outside the source directory.
63540         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
63541         scripts_byname.h.
63542
63543 2007-12-02  Martin Lambers <marlam@marlam.de>
63544             Bruno Haible  <bruno@clisp.org>
63545
63546         * lib/getpagesize.h: Remove file.
63547         * lib/unistd.in.h: Include declaration of getpagesize here.
63548         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
63549         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
63550         HAVE_SYS_PARAM_H.
63551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
63552         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63553         * modules/getpagesize (Files): Remove lib/getpagesize.h.
63554         (Depends-on): Add unistd.
63555         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63556         (Include): Use <unistd.h> instead of getpagesize.h.
63557         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
63558         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
63559         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
63560         gl_GETPAGESIZE invocation, already handled by module dependency.
63561         * lib/pagealign_alloc.c: Don't include getpagesize.h.
63562
63563 2007-12-02  Bruno Haible  <bruno@clisp.org>
63564
63565         * modules/strings-tests: New file.
63566         * tests/test-strings.c: New file.
63567
63568         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
63569         * lib/strings.in.h: New file.
63570         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
63571         * m4/strings_h.m4: New file.
63572         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
63573         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
63574         * modules/strings: New file.
63575         * modules/string (Makefile.am): Update.
63576         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
63577         Reported by Karl Berry.
63578
63579 2007-12-01  Eric Blake  <ebb9@byu.net>
63580
63581         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
63582         accommodate fix in cygwin 1.5.25.
63583
63584 2007-12-01  Jim Meyering  <meyering@redhat.com>
63585
63586         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
63587         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
63588         that would inhibit utf8-optimization of a regexp containing line-
63589         or buffer-anchors, e.g., `^', `$'.
63590
63591 2007-11-30  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
63594         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
63595         glthread_recursive_lock_init.
63596         * lib/lock.c (glthread_recursive_lock_init)
63597         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
63598         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
63599
63600 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
63601
63602         New function qset_acl, like set_acl but with syscall semantics.
63603         * lib/acl.h (qset_acl): New decl.
63604         * lib/acl.c (qset_acl): New function.
63605         (set_acl): Use new function.  Use more-consistent diagnostics.
63606
63607 2007-11-28  Jim Meyering  <meyering@redhat.com>
63608
63609         * modules/physmem (License): Change from GPL to LGPLv2+.
63610
63611 2007-11-26  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/vasnprintf.c (decode_long_double): Don't abort if the
63614         'long double' type has excess precision.
63615         Reported by Jim Meyering in
63616         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
63617
63618 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63619
63620         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
63621         Sync from <http://gnu.org/licenses>.
63622         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
63623         with license text from same location.
63624         * doc/maintain.texi, doc/standards.texi:  Sync from
63625         <http://savannah.gnu.org/projects/gnustandards>.
63626
63627 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
63628         and Jim Meyering  <meyering@redhat.com>
63629
63630         Adjust getdate' grammar to accept a slightly more regular language.
63631         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
63632         Before, the former was rejected.
63633         * lib/getdate.y (digits_to_date_time): New function, factored
63634         out of ...
63635         (number): ...here.  Just call digits_to_date_time.
63636         (hybrid): New non-terminal to handle an <unsigned number,
63637         signed relative offset> sequence consistently.
63638
63639 2007-11-18  Jim Meyering  <meyering@redhat.com>
63640
63641         Pull my changes from coreutils:
63642         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
63643         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
63644         use of $gnulib_tool_option_extras, so that it's separated from the
63645         preceding argument.
63646
63647         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
63648         * build-aux/bootstrap (cp_mark_as_generated): Create any required
63649         parent destination directories before copying a file into place.
63650
63651 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63652
63653         bootstrap: work also with 4-argument variant of AC_INIT
63654         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
63655
63656 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         Port test-getaddrinfo to Solaris.
63659         Problem reported by Bruno Haible in
63660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
63661         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
63662         explanation of setting 'hints'.
63663         Don't reject an implementation merely because it returns EAI_SERVICE.
63664         (EAI_SERVICE): Define to 0 if not defined.
63665
63666 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63667
63668         The license of gnu-make and posix-shell is now "GPLed build tool".
63669         * modules/gnu-make (License): Likewise.
63670         * modules/posix-shell (License): Likewise.
63671
63672         New module posix-shell, for determining a POSIX shell
63673         or perhaps something that is close enough to a POSIX shell.
63674         * m4/posix-shell.m4: New file.
63675         * modules/posix-shell: New file.
63676
63677         * MODULES.html.sh: Mention new module.
63678
63679         New module gnu-make, for determining whether we're using GNU Make.
63680         * m4/gnu-make.m4: New file.
63681         * modules/gnu-make: New file.
63682         * MODULES.html.sh: Mention new module.
63683
63684 2007-11-14  Jim Meyering  <meyering@redhat.com>
63685
63686         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
63687         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
63688         use this macro to create a function _definition_.
63689         Remove useless "#undef ARGMATCH_DIE".
63690
63691 2007-11-14  Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/config.charset: Update for OpenBSD 4.1.
63694         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
63695
63696 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
63697
63698         Document 64-bit #if problems in stdint.texi.
63699         * doc/headers/stdint.texi (stdint.h): Mention problems with
63700         64-bit-#if, and how to work around them.
63701
63702         Don't insist on 'long long int' support in the preprocessor.  It
63703         breaks too many things.  For example, PRIdMAX still uses a 'long
63704         long int' format with the latest Sun compiler, even though
63705         HAVE_LONG_LONG_INT isn't defined due to that compiler's
63706         preprocessor problem.  This causes the latest coreutils to dump
63707         core on Solaris 10 sparc with the Sun C compiler.
63708         Instead, fix the 2007-10-16 problem in a different way, by evaluating
63709         the troublesome expressions at configure-time, not at #if-time.
63710         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
63711         preprocessor.
63712         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
63713         compile-time C checks, done at 'configure'-time.
63714         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
63715         * modules/inttypes (Makefile): Substitute the new symbols that
63716         gl_INTTYPES_H now generates.
63717         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
63718
63719 2007-11-12  Bruno Haible  <bruno@clisp.org>
63720
63721         Tests for Unicode character classification functions.
63722
63723         * modules/unictype/bidicategory-byname-tests: New file.
63724         * modules/unictype/bidicategory-name-tests: New file.
63725         * modules/unictype/bidicategory-of-tests: New file.
63726         * modules/unictype/bidicategory-test-tests: New file.
63727         * modules/unictype/block-list-tests: New file.
63728         * modules/unictype/block-of-tests: New file.
63729         * modules/unictype/block-test-tests: New file.
63730         * modules/unictype/category-C-tests: New file.
63731         * modules/unictype/category-Cc-tests: New file.
63732         * modules/unictype/category-Cf-tests: New file.
63733         * modules/unictype/category-Cn-tests: New file.
63734         * modules/unictype/category-Co-tests: New file.
63735         * modules/unictype/category-Cs-tests: New file.
63736         * modules/unictype/category-L-tests: New file.
63737         * modules/unictype/category-Ll-tests: New file.
63738         * modules/unictype/category-Lm-tests: New file.
63739         * modules/unictype/category-Lo-tests: New file.
63740         * modules/unictype/category-Lt-tests: New file.
63741         * modules/unictype/category-Lu-tests: New file.
63742         * modules/unictype/category-M-tests: New file.
63743         * modules/unictype/category-Mc-tests: New file.
63744         * modules/unictype/category-Me-tests: New file.
63745         * modules/unictype/category-Mn-tests: New file.
63746         * modules/unictype/category-N-tests: New file.
63747         * modules/unictype/category-Nd-tests: New file.
63748         * modules/unictype/category-Nl-tests: New file.
63749         * modules/unictype/category-No-tests: New file.
63750         * modules/unictype/category-P-tests: New file.
63751         * modules/unictype/category-Pc-tests: New file.
63752         * modules/unictype/category-Pd-tests: New file.
63753         * modules/unictype/category-Pe-tests: New file.
63754         * modules/unictype/category-Pf-tests: New file.
63755         * modules/unictype/category-Pi-tests: New file.
63756         * modules/unictype/category-Po-tests: New file.
63757         * modules/unictype/category-Ps-tests: New file.
63758         * modules/unictype/category-S-tests: New file.
63759         * modules/unictype/category-Sc-tests: New file.
63760         * modules/unictype/category-Sk-tests: New file.
63761         * modules/unictype/category-Sm-tests: New file.
63762         * modules/unictype/category-So-tests: New file.
63763         * modules/unictype/category-Z-tests: New file.
63764         * modules/unictype/category-Zl-tests: New file.
63765         * modules/unictype/category-Zp-tests: New file.
63766         * modules/unictype/category-Zs-tests: New file.
63767         * modules/unictype/category-and-not-tests: New file.
63768         * modules/unictype/category-and-tests: New file.
63769         * modules/unictype/category-byname-tests: New file.
63770         * modules/unictype/category-name-tests: New file.
63771         * modules/unictype/category-none-tests: New file.
63772         * modules/unictype/category-of-tests: New file.
63773         * modules/unictype/category-or-tests: New file.
63774         * modules/unictype/category-test-withtable-tests: New file.
63775         * modules/unictype/combining-class-tests: New file.
63776         * modules/unictype/ctype-alnum-tests: New file.
63777         * modules/unictype/ctype-alpha-tests: New file.
63778         * modules/unictype/ctype-blank-tests: New file.
63779         * modules/unictype/ctype-cntrl-tests: New file.
63780         * modules/unictype/ctype-digit-tests: New file.
63781         * modules/unictype/ctype-graph-tests: New file.
63782         * modules/unictype/ctype-lower-tests: New file.
63783         * modules/unictype/ctype-print-tests: New file.
63784         * modules/unictype/ctype-punct-tests: New file.
63785         * modules/unictype/ctype-space-tests: New file.
63786         * modules/unictype/ctype-upper-tests: New file.
63787         * modules/unictype/ctype-xdigit-tests: New file.
63788         * modules/unictype/decimal-digit-tests: New file.
63789         * modules/unictype/digit-tests: New file.
63790         * modules/unictype/mirror-tests: New file.
63791         * modules/unictype/numeric-tests: New file.
63792         * modules/unictype/property-alphabetic-tests: New file.
63793         * modules/unictype/property-ascii-hex-digit-tests: New file.
63794         * modules/unictype/property-bidi-arabic-digit-tests: New file.
63795         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
63796         * modules/unictype/property-bidi-block-separator-tests: New file.
63797         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
63798         * modules/unictype/property-bidi-common-separator-tests: New file.
63799         * modules/unictype/property-bidi-control-tests: New file.
63800         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
63801         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
63802         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
63803         * modules/unictype/property-bidi-european-digit-tests: New file.
63804         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
63805         * modules/unictype/property-bidi-left-to-right-tests: New file.
63806         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
63807         * modules/unictype/property-bidi-other-neutral-tests: New file.
63808         * modules/unictype/property-bidi-pdf-tests: New file.
63809         * modules/unictype/property-bidi-segment-separator-tests: New file.
63810         * modules/unictype/property-bidi-whitespace-tests: New file.
63811         * modules/unictype/property-byname-tests: New file.
63812         * modules/unictype/property-combining-tests: New file.
63813         * modules/unictype/property-composite-tests: New file.
63814         * modules/unictype/property-currency-symbol-tests: New file.
63815         * modules/unictype/property-dash-tests: New file.
63816         * modules/unictype/property-decimal-digit-tests: New file.
63817         * modules/unictype/property-default-ignorable-code-point-tests: New file.
63818         * modules/unictype/property-deprecated-tests: New file.
63819         * modules/unictype/property-diacritic-tests: New file.
63820         * modules/unictype/property-extender-tests: New file.
63821         * modules/unictype/property-format-control-tests: New file.
63822         * modules/unictype/property-grapheme-base-tests: New file.
63823         * modules/unictype/property-grapheme-extend-tests: New file.
63824         * modules/unictype/property-grapheme-link-tests: New file.
63825         * modules/unictype/property-hex-digit-tests: New file.
63826         * modules/unictype/property-hyphen-tests: New file.
63827         * modules/unictype/property-id-continue-tests: New file.
63828         * modules/unictype/property-id-start-tests: New file.
63829         * modules/unictype/property-ideographic-tests: New file.
63830         * modules/unictype/property-ids-binary-operator-tests: New file.
63831         * modules/unictype/property-ids-trinary-operator-tests: New file.
63832         * modules/unictype/property-ignorable-control-tests: New file.
63833         * modules/unictype/property-iso-control-tests: New file.
63834         * modules/unictype/property-join-control-tests: New file.
63835         * modules/unictype/property-left-of-pair-tests: New file.
63836         * modules/unictype/property-line-separator-tests: New file.
63837         * modules/unictype/property-logical-order-exception-tests: New file.
63838         * modules/unictype/property-lowercase-tests: New file.
63839         * modules/unictype/property-math-tests: New file.
63840         * modules/unictype/property-non-break-tests: New file.
63841         * modules/unictype/property-not-a-character-tests: New file.
63842         * modules/unictype/property-numeric-tests: New file.
63843         * modules/unictype/property-other-alphabetic-tests: New file.
63844         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63845         * modules/unictype/property-other-grapheme-extend-tests: New file.
63846         * modules/unictype/property-other-id-continue-tests: New file.
63847         * modules/unictype/property-other-id-start-tests: New file.
63848         * modules/unictype/property-other-lowercase-tests: New file.
63849         * modules/unictype/property-other-math-tests: New file.
63850         * modules/unictype/property-other-uppercase-tests: New file.
63851         * modules/unictype/property-paired-punctuation-tests: New file.
63852         * modules/unictype/property-paragraph-separator-tests: New file.
63853         * modules/unictype/property-pattern-syntax-tests: New file.
63854         * modules/unictype/property-pattern-white-space-tests: New file.
63855         * modules/unictype/property-private-use-tests: New file.
63856         * modules/unictype/property-punctuation-tests: New file.
63857         * modules/unictype/property-quotation-mark-tests: New file.
63858         * modules/unictype/property-radical-tests: New file.
63859         * modules/unictype/property-sentence-terminal-tests: New file.
63860         * modules/unictype/property-soft-dotted-tests: New file.
63861         * modules/unictype/property-space-tests: New file.
63862         * modules/unictype/property-terminal-punctuation-tests: New file.
63863         * modules/unictype/property-test-tests: New file.
63864         * modules/unictype/property-titlecase-tests: New file.
63865         * modules/unictype/property-unassigned-code-value-tests: New file.
63866         * modules/unictype/property-unified-ideograph-tests: New file.
63867         * modules/unictype/property-uppercase-tests: New file.
63868         * modules/unictype/property-variation-selector-tests: New file.
63869         * modules/unictype/property-white-space-tests: New file.
63870         * modules/unictype/property-xid-continue-tests: New file.
63871         * modules/unictype/property-xid-start-tests: New file.
63872         * modules/unictype/property-zero-width-tests: New file.
63873         * modules/unictype/scripts-tests: New file.
63874         * modules/unictype/syntax-c-ident-tests: New file.
63875         * modules/unictype/syntax-c-whitespace-tests: New file.
63876         * modules/unictype/syntax-java-ident-tests: New file.
63877         * modules/unictype/syntax-java-whitespace-tests: New file.
63878         * tests/unictype/test-bidi_byname.c: New file.
63879         * tests/unictype/test-bidi_name.c: New file.
63880         * tests/unictype/test-bidi_of.c: New file.
63881         * tests/unictype/test-bidi_test.c: New file.
63882         * tests/unictype/test-block_list.c: New file.
63883         * tests/unictype/test-block_of.c: New file.
63884         * tests/unictype/test-block_test.c: New file.
63885         * tests/unictype/test-categ_and.c: New file.
63886         * tests/unictype/test-categ_and_not.c: New file.
63887         * tests/unictype/test-categ_byname.c: New file.
63888         * tests/unictype/test-categ_name.c: New file.
63889         * tests/unictype/test-categ_none.c: New file.
63890         * tests/unictype/test-categ_of.c: New file.
63891         * tests/unictype/test-categ_or.c: New file.
63892         * tests/unictype/test-categ_test_withtable.c: New file.
63893         * tests/unictype/test-combining.c: New file.
63894         * tests/unictype/test-decdigit.c: New file.
63895         * tests/unictype/test-digit.c: New file.
63896         * tests/unictype/test-mirror.c: New file.
63897         * tests/unictype/test-numeric.c: New file.
63898         * tests/unictype/test-pr_byname.c: New file.
63899         * tests/unictype/test-pr_test.c: New file.
63900         * tests/unictype/test-predicate-part1.h: New file.
63901         * tests/unictype/test-predicate-part2.h: New file.
63902         * tests/unictype/test-scripts.c: New file.
63903         * tests/unictype/test-sy_c_ident.c: New file.
63904         * tests/unictype/test-sy_java_ident.c: New file.
63905
63906         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63907         for Unicode 5.0.0.
63908         * tests/unictype/test-categ_Cc.c: Likewise.
63909         * tests/unictype/test-categ_Cf.c: Likewise.
63910         * tests/unictype/test-categ_Cn.c: Likewise.
63911         * tests/unictype/test-categ_Co.c: Likewise.
63912         * tests/unictype/test-categ_Cs.c: Likewise.
63913         * tests/unictype/test-categ_L.c: Likewise.
63914         * tests/unictype/test-categ_Ll.c: Likewise.
63915         * tests/unictype/test-categ_Lm.c: Likewise.
63916         * tests/unictype/test-categ_Lo.c: Likewise.
63917         * tests/unictype/test-categ_Lt.c: Likewise.
63918         * tests/unictype/test-categ_Lu.c: Likewise.
63919         * tests/unictype/test-categ_M.c: Likewise.
63920         * tests/unictype/test-categ_Mc.c: Likewise.
63921         * tests/unictype/test-categ_Me.c: Likewise.
63922         * tests/unictype/test-categ_Mn.c: Likewise.
63923         * tests/unictype/test-categ_N.c: Likewise.
63924         * tests/unictype/test-categ_Nd.c: Likewise.
63925         * tests/unictype/test-categ_Nl.c: Likewise.
63926         * tests/unictype/test-categ_No.c: Likewise.
63927         * tests/unictype/test-categ_P.c: Likewise.
63928         * tests/unictype/test-categ_Pc.c: Likewise.
63929         * tests/unictype/test-categ_Pd.c: Likewise.
63930         * tests/unictype/test-categ_Pe.c: Likewise.
63931         * tests/unictype/test-categ_Pf.c: Likewise.
63932         * tests/unictype/test-categ_Pi.c: Likewise.
63933         * tests/unictype/test-categ_Po.c: Likewise.
63934         * tests/unictype/test-categ_Ps.c: Likewise.
63935         * tests/unictype/test-categ_S.c: Likewise.
63936         * tests/unictype/test-categ_Sc.c: Likewise.
63937         * tests/unictype/test-categ_Sk.c: Likewise.
63938         * tests/unictype/test-categ_Sm.c: Likewise.
63939         * tests/unictype/test-categ_So.c: Likewise.
63940         * tests/unictype/test-categ_Z.c: Likewise.
63941         * tests/unictype/test-categ_Zl.c: Likewise.
63942         * tests/unictype/test-categ_Zp.c: Likewise.
63943         * tests/unictype/test-categ_Zs.c: Likewise.
63944         * tests/unictype/test-ctype_alnum.c: Likewise.
63945         * tests/unictype/test-ctype_alpha.c: Likewise.
63946         * tests/unictype/test-ctype_blank.c: Likewise.
63947         * tests/unictype/test-ctype_cntrl.c: Likewise.
63948         * tests/unictype/test-ctype_digit.c: Likewise.
63949         * tests/unictype/test-ctype_graph.c: Likewise.
63950         * tests/unictype/test-ctype_lower.c: Likewise.
63951         * tests/unictype/test-ctype_print.c: Likewise.
63952         * tests/unictype/test-ctype_punct.c: Likewise.
63953         * tests/unictype/test-ctype_space.c: Likewise.
63954         * tests/unictype/test-ctype_upper.c: Likewise.
63955         * tests/unictype/test-ctype_xdigit.c: Likewise.
63956         * tests/unictype/test-decdigit.h: Likewise.
63957         * tests/unictype/test-digit.h: Likewise.
63958         * tests/unictype/test-numeric.h: Likewise.
63959         * tests/unictype/test-pr_alphabetic.c: Likewise.
63960         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63961         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63962         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63963         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63964         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63965         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63966         * tests/unictype/test-pr_bidi_control.c: Likewise.
63967         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63968         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63969         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63970         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63971         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63972         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63973         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63974         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63975         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63976         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63977         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63978         * tests/unictype/test-pr_combining.c: Likewise.
63979         * tests/unictype/test-pr_composite.c: Likewise.
63980         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63981         * tests/unictype/test-pr_dash.c: Likewise.
63982         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63983         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63984         * tests/unictype/test-pr_deprecated.c: Likewise.
63985         * tests/unictype/test-pr_diacritic.c: Likewise.
63986         * tests/unictype/test-pr_extender.c: Likewise.
63987         * tests/unictype/test-pr_format_control.c: Likewise.
63988         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63989         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63990         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63991         * tests/unictype/test-pr_hex_digit.c: Likewise.
63992         * tests/unictype/test-pr_hyphen.c: Likewise.
63993         * tests/unictype/test-pr_id_continue.c: Likewise.
63994         * tests/unictype/test-pr_id_start.c: Likewise.
63995         * tests/unictype/test-pr_ideographic.c: Likewise.
63996         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63997         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63998         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63999         * tests/unictype/test-pr_iso_control.c: Likewise.
64000         * tests/unictype/test-pr_join_control.c: Likewise.
64001         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64002         * tests/unictype/test-pr_line_separator.c: Likewise.
64003         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64004         * tests/unictype/test-pr_lowercase.c: Likewise.
64005         * tests/unictype/test-pr_math.c: Likewise.
64006         * tests/unictype/test-pr_non_break.c: Likewise.
64007         * tests/unictype/test-pr_not_a_character.c: Likewise.
64008         * tests/unictype/test-pr_numeric.c: Likewise.
64009         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64010         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64011         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64012         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64013         * tests/unictype/test-pr_other_id_start.c: Likewise.
64014         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64015         * tests/unictype/test-pr_other_math.c: Likewise.
64016         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64017         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64018         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64019         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64020         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64021         * tests/unictype/test-pr_private_use.c: Likewise.
64022         * tests/unictype/test-pr_punctuation.c: Likewise.
64023         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64024         * tests/unictype/test-pr_radical.c: Likewise.
64025         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64026         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64027         * tests/unictype/test-pr_space.c: Likewise.
64028         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64029         * tests/unictype/test-pr_titlecase.c: Likewise.
64030         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64031         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64032         * tests/unictype/test-pr_uppercase.c: Likewise.
64033         * tests/unictype/test-pr_variation_selector.c: Likewise.
64034         * tests/unictype/test-pr_white_space.c: Likewise.
64035         * tests/unictype/test-pr_xid_continue.c: Likewise.
64036         * tests/unictype/test-pr_xid_start.c: Likewise.
64037         * tests/unictype/test-pr_zero_width.c: Likewise.
64038         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64039         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64040
64041 2007-11-12  Bruno Haible  <bruno@clisp.org>
64042
64043         Unicode character classification functions.
64044         * lib/unictype.h: New file.
64045         * modules/unictype/base: New file.
64046         * modules/unictype/category-L: New file.
64047         * modules/unictype/category-Lu: New file.
64048         * modules/unictype/category-Ll: New file.
64049         * modules/unictype/category-Lt: New file.
64050         * modules/unictype/category-Lm: New file.
64051         * modules/unictype/category-Lo: New file.
64052         * modules/unictype/category-M: New file.
64053         * modules/unictype/category-Mn: New file.
64054         * modules/unictype/category-Mc: New file.
64055         * modules/unictype/category-Me: New file.
64056         * modules/unictype/category-N: New file.
64057         * modules/unictype/category-Nd: New file.
64058         * modules/unictype/category-Nl: New file.
64059         * modules/unictype/category-No: New file.
64060         * modules/unictype/category-P: New file.
64061         * modules/unictype/category-Pc: New file.
64062         * modules/unictype/category-Pd: New file.
64063         * modules/unictype/category-Ps: New file.
64064         * modules/unictype/category-Pe: New file.
64065         * modules/unictype/category-Pi: New file.
64066         * modules/unictype/category-Pf: New file.
64067         * modules/unictype/category-Po: New file.
64068         * modules/unictype/category-S: New file.
64069         * modules/unictype/category-Sm: New file.
64070         * modules/unictype/category-Sc: New file.
64071         * modules/unictype/category-Sk: New file.
64072         * modules/unictype/category-So: New file.
64073         * modules/unictype/category-Z: New file.
64074         * modules/unictype/category-Zs: New file.
64075         * modules/unictype/category-Zl: New file.
64076         * modules/unictype/category-Zp: New file.
64077         * modules/unictype/category-C: New file.
64078         * modules/unictype/category-Cc: New file.
64079         * modules/unictype/category-Cf: New file.
64080         * modules/unictype/category-Cs: New file.
64081         * modules/unictype/category-Co: New file.
64082         * modules/unictype/category-Cn: New file.
64083         * modules/unictype/category-or: New file.
64084         * modules/unictype/category-of: New file.
64085         * modules/unictype/category-test: New file.
64086         * modules/unictype/category-test-withtable: New file.
64087         * modules/unictype/category-byname: New file.
64088         * modules/unictype/category-none: New file.
64089         * modules/unictype/category-and: New file.
64090         * modules/unictype/category-and-not: New file.
64091         * modules/unictype/category-name: New file.
64092         * modules/unictype/combining-class: New file.
64093         * modules/unictype/category-all: New file.
64094         * modules/unictype/bidicategory-all: New file.
64095         * modules/unictype/bidicategory-byname: New file.
64096         * modules/unictype/bidicategory-name: New file.
64097         * modules/unictype/bidicategory-of: New file.
64098         * modules/unictype/bidicategory-test: New file.
64099         * modules/unictype/decimal-digit: New file.
64100         * modules/unictype/digit: New file.
64101         * modules/unictype/numeric: New file.
64102         * modules/unictype/mirror: New file.
64103         * modules/unictype/property-white-space: New file.
64104         * modules/unictype/property-alphabetic: New file.
64105         * modules/unictype/property-other-alphabetic: New file.
64106         * modules/unictype/property-not-a-character: New file.
64107         * modules/unictype/property-default-ignorable-code-point: New file.
64108         * modules/unictype/property-other-default-ignorable-code-point: New
64109         file.
64110         * modules/unictype/property-deprecated: New file.
64111         * modules/unictype/property-logical-order-exception: New file.
64112         * modules/unictype/property-variation-selector: New file.
64113         * modules/unictype/property-private-use: New file.
64114         * modules/unictype/property-unassigned-code-value: New file.
64115         * modules/unictype/property-uppercase: New file.
64116         * modules/unictype/property-other-uppercase: New file.
64117         * modules/unictype/property-lowercase: New file.
64118         * modules/unictype/property-other-lowercase: New file.
64119         * modules/unictype/property-titlecase: New file.
64120         * modules/unictype/property-soft-dotted: New file.
64121         * modules/unictype/property-id-start: New file.
64122         * modules/unictype/property-other-id-start: New file.
64123         * modules/unictype/property-id-continue: New file.
64124         * modules/unictype/property-other-id-continue: New file.
64125         * modules/unictype/property-xid-start: New file.
64126         * modules/unictype/property-xid-continue: New file.
64127         * modules/unictype/property-pattern-white-space: New file.
64128         * modules/unictype/property-pattern-syntax: New file.
64129         * modules/unictype/property-join-control: New file.
64130         * modules/unictype/property-grapheme-base: New file.
64131         * modules/unictype/property-grapheme-extend: New file.
64132         * modules/unictype/property-other-grapheme-extend: New file.
64133         * modules/unictype/property-grapheme-link: New file.
64134         * modules/unictype/property-bidi-control: New file.
64135         * modules/unictype/property-bidi-left-to-right: New file.
64136         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
64137         * modules/unictype/property-bidi-arabic-right-to-left: New file.
64138         * modules/unictype/property-bidi-european-digit: New file.
64139         * modules/unictype/property-bidi-eur-num-separator: New file.
64140         * modules/unictype/property-bidi-eur-num-terminator: New file.
64141         * modules/unictype/property-bidi-arabic-digit: New file.
64142         * modules/unictype/property-bidi-common-separator: New file.
64143         * modules/unictype/property-bidi-block-separator: New file.
64144         * modules/unictype/property-bidi-segment-separator: New file.
64145         * modules/unictype/property-bidi-whitespace: New file.
64146         * modules/unictype/property-bidi-non-spacing-mark: New file.
64147         * modules/unictype/property-bidi-boundary-neutral: New file.
64148         * modules/unictype/property-bidi-pdf: New file.
64149         * modules/unictype/property-bidi-embedding-or-override: New file.
64150         * modules/unictype/property-bidi-other-neutral: New file.
64151         * modules/unictype/property-hex-digit: New file.
64152         * modules/unictype/property-ascii-hex-digit: New file.
64153         * modules/unictype/property-ideographic: New file.
64154         * modules/unictype/property-unified-ideograph: New file.
64155         * modules/unictype/property-radical: New file.
64156         * modules/unictype/property-ids-binary-operator: New file.
64157         * modules/unictype/property-ids-trinary-operator: New file.
64158         * modules/unictype/property-zero-width: New file.
64159         * modules/unictype/property-space: New file.
64160         * modules/unictype/property-non-break: New file.
64161         * modules/unictype/property-iso-control: New file.
64162         * modules/unictype/property-format-control: New file.
64163         * modules/unictype/property-dash: New file.
64164         * modules/unictype/property-hyphen: New file.
64165         * modules/unictype/property-punctuation: New file.
64166         * modules/unictype/property-line-separator: New file.
64167         * modules/unictype/property-paragraph-separator: New file.
64168         * modules/unictype/property-quotation-mark: New file.
64169         * modules/unictype/property-sentence-terminal: New file.
64170         * modules/unictype/property-terminal-punctuation: New file.
64171         * modules/unictype/property-currency-symbol: New file.
64172         * modules/unictype/property-math: New file.
64173         * modules/unictype/property-other-math: New file.
64174         * modules/unictype/property-paired-punctuation: New file.
64175         * modules/unictype/property-left-of-pair: New file.
64176         * modules/unictype/property-combining: New file.
64177         * modules/unictype/property-composite: New file.
64178         * modules/unictype/property-decimal-digit: New file.
64179         * modules/unictype/property-numeric: New file.
64180         * modules/unictype/property-diacritic: New file.
64181         * modules/unictype/property-extender: New file.
64182         * modules/unictype/property-ignorable-control: New file.
64183         * modules/unictype/property-test: New file.
64184         * modules/unictype/property-byname: New file.
64185         * modules/unictype/property-all: New file.
64186         * modules/unictype/scripts: New file.
64187         * modules/unictype/scripts-all: New file.
64188         * modules/unictype/block-of: New file.
64189         * modules/unictype/block-test: New file.
64190         * modules/unictype/block-list: New file.
64191         * modules/unictype/block-all: New file.
64192         * modules/unictype/syntax-c-whitespace: New file.
64193         * modules/unictype/syntax-java-whitespace: New file.
64194         * modules/unictype/syntax-c-ident: New file.
64195         * modules/unictype/syntax-java-ident: New file.
64196         * modules/unictype/ctype-alnum: New file.
64197         * modules/unictype/ctype-alpha: New file.
64198         * modules/unictype/ctype-cntrl: New file.
64199         * modules/unictype/ctype-digit: New file.
64200         * modules/unictype/ctype-graph: New file.
64201         * modules/unictype/ctype-lower: New file.
64202         * modules/unictype/ctype-print: New file.
64203         * modules/unictype/ctype-punct: New file.
64204         * modules/unictype/ctype-space: New file.
64205         * modules/unictype/ctype-upper: New file.
64206         * modules/unictype/ctype-xdigit: New file.
64207         * modules/unictype/ctype-blank: New file.
64208         * lib/unictype/bidi_byname.c: New file.
64209         * lib/unictype/bidi_name.c: New file.
64210         * lib/unictype/bidi_of.c: New file.
64211         * lib/unictype/bidi_test.c: New file.
64212         * lib/unictype/bitmap.h: New file.
64213         * lib/unictype/block_test.c: New file.
64214         * lib/unictype/blocks.c: New file.
64215         * lib/unictype/categ_C.c: New file.
64216         * lib/unictype/categ_Cc.c: New file.
64217         * lib/unictype/categ_Cf.c: New file.
64218         * lib/unictype/categ_Cn.c: New file.
64219         * lib/unictype/categ_Co.c: New file.
64220         * lib/unictype/categ_Cs.c: New file.
64221         * lib/unictype/categ_L.c: New file.
64222         * lib/unictype/categ_Ll.c: New file.
64223         * lib/unictype/categ_Lm.c: New file.
64224         * lib/unictype/categ_Lo.c: New file.
64225         * lib/unictype/categ_Lt.c: New file.
64226         * lib/unictype/categ_Lu.c: New file.
64227         * lib/unictype/categ_M.c: New file.
64228         * lib/unictype/categ_Mc.c: New file.
64229         * lib/unictype/categ_Me.c: New file.
64230         * lib/unictype/categ_Mn.c: New file.
64231         * lib/unictype/categ_N.c: New file.
64232         * lib/unictype/categ_Nd.c: New file.
64233         * lib/unictype/categ_Nl.c: New file.
64234         * lib/unictype/categ_No.c: New file.
64235         * lib/unictype/categ_P.c: New file.
64236         * lib/unictype/categ_Pc.c: New file.
64237         * lib/unictype/categ_Pd.c: New file.
64238         * lib/unictype/categ_Pe.c: New file.
64239         * lib/unictype/categ_Pf.c: New file.
64240         * lib/unictype/categ_Pi.c: New file.
64241         * lib/unictype/categ_Po.c: New file.
64242         * lib/unictype/categ_Ps.c: New file.
64243         * lib/unictype/categ_S.c: New file.
64244         * lib/unictype/categ_Sc.c: New file.
64245         * lib/unictype/categ_Sk.c: New file.
64246         * lib/unictype/categ_Sm.c: New file.
64247         * lib/unictype/categ_So.c: New file.
64248         * lib/unictype/categ_Z.c: New file.
64249         * lib/unictype/categ_Zl.c: New file.
64250         * lib/unictype/categ_Zp.c: New file.
64251         * lib/unictype/categ_Zs.c: New file.
64252         * lib/unictype/categ_and.c: New file.
64253         * lib/unictype/categ_and_not.c: New file.
64254         * lib/unictype/categ_byname.c: New file.
64255         * lib/unictype/categ_name.c: New file.
64256         * lib/unictype/categ_none.c: New file.
64257         * lib/unictype/categ_of.c: New file.
64258         * lib/unictype/categ_or.c: New file.
64259         * lib/unictype/categ_test.c: New file.
64260         * lib/unictype/combining.c: New file.
64261         * lib/unictype/ctype_alnum.c: New file.
64262         * lib/unictype/ctype_alpha.c: New file.
64263         * lib/unictype/ctype_blank.c: New file.
64264         * lib/unictype/ctype_cntrl.c: New file.
64265         * lib/unictype/ctype_digit.c: New file.
64266         * lib/unictype/ctype_graph.c: New file.
64267         * lib/unictype/ctype_lower.c: New file.
64268         * lib/unictype/ctype_print.c: New file.
64269         * lib/unictype/ctype_punct.c: New file.
64270         * lib/unictype/ctype_space.c: New file.
64271         * lib/unictype/ctype_upper.c: New file.
64272         * lib/unictype/ctype_xdigit.c: New file.
64273         * lib/unictype/decdigit.c: New file.
64274         * lib/unictype/digit.c: New file.
64275         * lib/unictype/identsyntaxmap.h: New file.
64276         * lib/unictype/mirror.c: New file.
64277         * lib/unictype/numeric.c: New file.
64278         * lib/unictype/pr_alphabetic.c: New file.
64279         * lib/unictype/pr_ascii_hex_digit.c: New file.
64280         * lib/unictype/pr_bidi_arabic_digit.c: New file.
64281         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
64282         * lib/unictype/pr_bidi_block_separator.c: New file.
64283         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
64284         * lib/unictype/pr_bidi_common_separator.c: New file.
64285         * lib/unictype/pr_bidi_control.c: New file.
64286         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
64287         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
64288         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
64289         * lib/unictype/pr_bidi_european_digit.c: New file.
64290         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
64291         * lib/unictype/pr_bidi_left_to_right.c: New file.
64292         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
64293         * lib/unictype/pr_bidi_other_neutral.c: New file.
64294         * lib/unictype/pr_bidi_pdf.c: New file.
64295         * lib/unictype/pr_bidi_segment_separator.c: New file.
64296         * lib/unictype/pr_bidi_whitespace.c: New file.
64297         * lib/unictype/pr_byname.c: New file.
64298         * lib/unictype/pr_byname.gperf: New file.
64299         * lib/unictype/pr_combining.c: New file.
64300         * lib/unictype/pr_composite.c: New file.
64301         * lib/unictype/pr_currency_symbol.c: New file.
64302         * lib/unictype/pr_dash.c: New file.
64303         * lib/unictype/pr_decimal_digit.c: New file.
64304         * lib/unictype/pr_default_ignorable_code_point.c: New file.
64305         * lib/unictype/pr_deprecated.c: New file.
64306         * lib/unictype/pr_diacritic.c: New file.
64307         * lib/unictype/pr_extender.c: New file.
64308         * lib/unictype/pr_format_control.c: New file.
64309         * lib/unictype/pr_grapheme_base.c: New file.
64310         * lib/unictype/pr_grapheme_extend.c: New file.
64311         * lib/unictype/pr_grapheme_link.c: New file.
64312         * lib/unictype/pr_hex_digit.c: New file.
64313         * lib/unictype/pr_hyphen.c: New file.
64314         * lib/unictype/pr_id_continue.c: New file.
64315         * lib/unictype/pr_id_start.c: New file.
64316         * lib/unictype/pr_ideographic.c: New file.
64317         * lib/unictype/pr_ids_binary_operator.c: New file.
64318         * lib/unictype/pr_ids_trinary_operator.c: New file.
64319         * lib/unictype/pr_ignorable_control.c: New file.
64320         * lib/unictype/pr_iso_control.c: New file.
64321         * lib/unictype/pr_join_control.c: New file.
64322         * lib/unictype/pr_left_of_pair.c: New file.
64323         * lib/unictype/pr_line_separator.c: New file.
64324         * lib/unictype/pr_logical_order_exception.c: New file.
64325         * lib/unictype/pr_lowercase.c: New file.
64326         * lib/unictype/pr_math.c: New file.
64327         * lib/unictype/pr_non_break.c: New file.
64328         * lib/unictype/pr_not_a_character.c: New file.
64329         * lib/unictype/pr_numeric.c: New file.
64330         * lib/unictype/pr_other_alphabetic.c: New file.
64331         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
64332         * lib/unictype/pr_other_grapheme_extend.c: New file.
64333         * lib/unictype/pr_other_id_continue.c: New file.
64334         * lib/unictype/pr_other_id_start.c: New file.
64335         * lib/unictype/pr_other_lowercase.c: New file.
64336         * lib/unictype/pr_other_math.c: New file.
64337         * lib/unictype/pr_other_uppercase.c: New file.
64338         * lib/unictype/pr_paired_punctuation.c: New file.
64339         * lib/unictype/pr_paragraph_separator.c: New file.
64340         * lib/unictype/pr_pattern_syntax.c: New file.
64341         * lib/unictype/pr_pattern_white_space.c: New file.
64342         * lib/unictype/pr_private_use.c: New file.
64343         * lib/unictype/pr_punctuation.c: New file.
64344         * lib/unictype/pr_quotation_mark.c: New file.
64345         * lib/unictype/pr_radical.c: New file.
64346         * lib/unictype/pr_sentence_terminal.c: New file.
64347         * lib/unictype/pr_soft_dotted.c: New file.
64348         * lib/unictype/pr_space.c: New file.
64349         * lib/unictype/pr_terminal_punctuation.c: New file.
64350         * lib/unictype/pr_test.c: New file.
64351         * lib/unictype/pr_titlecase.c: New file.
64352         * lib/unictype/pr_unassigned_code_value.c: New file.
64353         * lib/unictype/pr_unified_ideograph.c: New file.
64354         * lib/unictype/pr_uppercase.c: New file.
64355         * lib/unictype/pr_variation_selector.c: New file.
64356         * lib/unictype/pr_white_space.c: New file.
64357         * lib/unictype/pr_xid_continue.c: New file.
64358         * lib/unictype/pr_xid_start.c: New file.
64359         * lib/unictype/pr_zero_width.c: New file.
64360         * lib/unictype/scripts.c: New file.
64361         * lib/unictype/sy_c_ident.c: New file.
64362         * lib/unictype/sy_c_whitespace.c: New file.
64363         * lib/unictype/sy_java_ident.c: New file.
64364         * lib/unictype/sy_java_whitespace.c: New file.
64365
64366         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
64367         Unicode 5.0.0.
64368         * lib/unictype/blocks.h: Likewise.
64369         * lib/unictype/categ_C.h: Likewise.
64370         * lib/unictype/categ_Cc.h: Likewise.
64371         * lib/unictype/categ_Cf.h: Likewise.
64372         * lib/unictype/categ_Cn.h: Likewise.
64373         * lib/unictype/categ_Co.h: Likewise.
64374         * lib/unictype/categ_Cs.h: Likewise.
64375         * lib/unictype/categ_L.h: Likewise.
64376         * lib/unictype/categ_Ll.h: Likewise.
64377         * lib/unictype/categ_Lm.h: Likewise.
64378         * lib/unictype/categ_Lo.h: Likewise.
64379         * lib/unictype/categ_Lt.h: Likewise.
64380         * lib/unictype/categ_Lu.h: Likewise.
64381         * lib/unictype/categ_M.h: Likewise.
64382         * lib/unictype/categ_Mc.h: Likewise.
64383         * lib/unictype/categ_Me.h: Likewise.
64384         * lib/unictype/categ_Mn.h: Likewise.
64385         * lib/unictype/categ_N.h: Likewise.
64386         * lib/unictype/categ_Nd.h: Likewise.
64387         * lib/unictype/categ_Nl.h: Likewise.
64388         * lib/unictype/categ_No.h: Likewise.
64389         * lib/unictype/categ_P.h: Likewise.
64390         * lib/unictype/categ_Pc.h: Likewise.
64391         * lib/unictype/categ_Pd.h: Likewise.
64392         * lib/unictype/categ_Pe.h: Likewise.
64393         * lib/unictype/categ_Pf.h: Likewise.
64394         * lib/unictype/categ_Pi.h: Likewise.
64395         * lib/unictype/categ_Po.h: Likewise.
64396         * lib/unictype/categ_Ps.h: Likewise.
64397         * lib/unictype/categ_S.h: Likewise.
64398         * lib/unictype/categ_Sc.h: Likewise.
64399         * lib/unictype/categ_Sk.h: Likewise.
64400         * lib/unictype/categ_Sm.h: Likewise.
64401         * lib/unictype/categ_So.h: Likewise.
64402         * lib/unictype/categ_Z.h: Likewise.
64403         * lib/unictype/categ_Zl.h: Likewise.
64404         * lib/unictype/categ_Zp.h: Likewise.
64405         * lib/unictype/categ_Zs.h: Likewise.
64406         * lib/unictype/categ_of.h: Likewise.
64407         * lib/unictype/combining.h: Likewise.
64408         * lib/unictype/ctype_alnum.h: Likewise.
64409         * lib/unictype/ctype_alpha.h: Likewise.
64410         * lib/unictype/ctype_blank.h: Likewise.
64411         * lib/unictype/ctype_cntrl.h: Likewise.
64412         * lib/unictype/ctype_digit.h: Likewise.
64413         * lib/unictype/ctype_graph.h: Likewise.
64414         * lib/unictype/ctype_lower.h: Likewise.
64415         * lib/unictype/ctype_print.h: Likewise.
64416         * lib/unictype/ctype_punct.h: Likewise.
64417         * lib/unictype/ctype_space.h: Likewise.
64418         * lib/unictype/ctype_upper.h: Likewise.
64419         * lib/unictype/ctype_xdigit.h: Likewise.
64420         * lib/unictype/decdigit.h: Likewise.
64421         * lib/unictype/digit.h: Likewise.
64422         * lib/unictype/mirror.h: Likewise.
64423         * lib/unictype/numeric.h: Likewise.
64424         * lib/unictype/pr_alphabetic.h: Likewise.
64425         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
64426         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
64427         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
64428         * lib/unictype/pr_bidi_block_separator.h: Likewise.
64429         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
64430         * lib/unictype/pr_bidi_common_separator.h: Likewise.
64431         * lib/unictype/pr_bidi_control.h: Likewise.
64432         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
64433         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
64434         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
64435         * lib/unictype/pr_bidi_european_digit.h: Likewise.
64436         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
64437         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
64438         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
64439         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
64440         * lib/unictype/pr_bidi_pdf.h: Likewise.
64441         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
64442         * lib/unictype/pr_bidi_whitespace.h: Likewise.
64443         * lib/unictype/pr_combining.h: Likewise.
64444         * lib/unictype/pr_composite.h: Likewise.
64445         * lib/unictype/pr_currency_symbol.h: Likewise.
64446         * lib/unictype/pr_dash.h: Likewise.
64447         * lib/unictype/pr_decimal_digit.h: Likewise.
64448         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
64449         * lib/unictype/pr_deprecated.h: Likewise.
64450         * lib/unictype/pr_diacritic.h: Likewise.
64451         * lib/unictype/pr_extender.h: Likewise.
64452         * lib/unictype/pr_format_control.h: Likewise.
64453         * lib/unictype/pr_grapheme_base.h: Likewise.
64454         * lib/unictype/pr_grapheme_extend.h: Likewise.
64455         * lib/unictype/pr_grapheme_link.h: Likewise.
64456         * lib/unictype/pr_hex_digit.h: Likewise.
64457         * lib/unictype/pr_hyphen.h: Likewise.
64458         * lib/unictype/pr_id_continue.h: Likewise.
64459         * lib/unictype/pr_id_start.h: Likewise.
64460         * lib/unictype/pr_ideographic.h: Likewise.
64461         * lib/unictype/pr_ids_binary_operator.h: Likewise.
64462         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
64463         * lib/unictype/pr_ignorable_control.h: Likewise.
64464         * lib/unictype/pr_iso_control.h: Likewise.
64465         * lib/unictype/pr_join_control.h: Likewise.
64466         * lib/unictype/pr_left_of_pair.h: Likewise.
64467         * lib/unictype/pr_line_separator.h: Likewise.
64468         * lib/unictype/pr_logical_order_exception.h: Likewise.
64469         * lib/unictype/pr_lowercase.h: Likewise.
64470         * lib/unictype/pr_math.h: Likewise.
64471         * lib/unictype/pr_non_break.h: Likewise.
64472         * lib/unictype/pr_not_a_character.h: Likewise.
64473         * lib/unictype/pr_numeric.h: Likewise.
64474         * lib/unictype/pr_other_alphabetic.h: Likewise.
64475         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
64476         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
64477         * lib/unictype/pr_other_id_continue.h: Likewise.
64478         * lib/unictype/pr_other_id_start.h: Likewise.
64479         * lib/unictype/pr_other_lowercase.h: Likewise.
64480         * lib/unictype/pr_other_math.h: Likewise.
64481         * lib/unictype/pr_other_uppercase.h: Likewise.
64482         * lib/unictype/pr_paired_punctuation.h: Likewise.
64483         * lib/unictype/pr_paragraph_separator.h: Likewise.
64484         * lib/unictype/pr_pattern_syntax.h: Likewise.
64485         * lib/unictype/pr_pattern_white_space.h: Likewise.
64486         * lib/unictype/pr_private_use.h: Likewise.
64487         * lib/unictype/pr_punctuation.h: Likewise.
64488         * lib/unictype/pr_quotation_mark.h: Likewise.
64489         * lib/unictype/pr_radical.h: Likewise.
64490         * lib/unictype/pr_sentence_terminal.h: Likewise.
64491         * lib/unictype/pr_soft_dotted.h: Likewise.
64492         * lib/unictype/pr_space.h: Likewise.
64493         * lib/unictype/pr_terminal_punctuation.h: Likewise.
64494         * lib/unictype/pr_titlecase.h: Likewise.
64495         * lib/unictype/pr_unassigned_code_value.h: Likewise.
64496         * lib/unictype/pr_unified_ideograph.h: Likewise.
64497         * lib/unictype/pr_uppercase.h: Likewise.
64498         * lib/unictype/pr_variation_selector.h: Likewise.
64499         * lib/unictype/pr_white_space.h: Likewise.
64500         * lib/unictype/pr_xid_continue.h: Likewise.
64501         * lib/unictype/pr_xid_start.h: Likewise.
64502         * lib/unictype/pr_zero_width.h: Likewise.
64503         * lib/unictype/scripts.h: Likewise.
64504         * lib/unictype/scripts_byname.gperf: Likewise.
64505         * lib/unictype/sy_c_ident.h: Likewise.
64506         * lib/unictype/sy_c_whitespace.h: Likewise.
64507         * lib/unictype/sy_java_ident.h: Likewise.
64508         * lib/unictype/sy_java_whitespace.h: Likewise.
64509
64510         * lib/unictype/Makefile: New file.
64511         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
64512         glibc.
64513         * lib/unictype/3level.h: New file, copied from glibc.
64514         * lib/unictype/3levelbit.h: New file.
64515
64516 2007-11-11  Bruno Haible  <bruno@clisp.org>
64517
64518         * modules/gperf: New file.
64519         * modules/iconv_open (Depends-on): Add it.
64520         (Makefile.am): Remove the GPERF definition.
64521
64522 2007-11-11  Bruno Haible  <bruno@clisp.org>
64523
64524         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
64525         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
64526
64527 2007-11-11  Bruno Haible  <bruno@clisp.org>
64528
64529         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
64530         (usage): Remove function.
64531
64532 2007-11-11  Bruno Haible  <bruno@clisp.org>
64533
64534         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
64535         gl_FUNC_CEILF_LIBS.
64536         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
64537         gl_FUNC_CEIL_LIBS.
64538         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
64539         gl_FUNC_CEILL_LIBS.
64540         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
64541         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
64542         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
64543
64544 2007-11-11  Bruno Haible  <bruno@clisp.org>
64545
64546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
64547         roundf were declared but do not exist on functions.
64548         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
64549         roundl were declared but do not exist on functions.
64550         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
64551         HAVE_FLOORL_AND_CEILL, respectively.
64552         Needed for Sun C on Solaris 10.
64553
64554 2007-11-11  Bruno Haible  <bruno@clisp.org>
64555
64556         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
64557         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
64558         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
64559         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
64560         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
64561         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
64562         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
64563         HAVE_DECL_ROUNDF.
64564         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
64565         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
64566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
64567         of HAVE_DECL_ROUND*.
64568         * modules/math (Makefile.am): Update.
64569
64570 2007-11-10  Bruno Haible  <bruno@clisp.org>
64571
64572         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
64573         ptrdiff_t as m4/intl.m4.
64574
64575 2007-11-10  Jim Meyering  <meyering@redhat.com>
64576
64577         Avoid link failure for the argmatch test.
64578         * tests/test-argmatch.c (usage): Define function to avoid a link
64579         failure: argmatch_die requires a usage function.
64580
64581 2007-11-09  Bruno Haible  <bruno@clisp.org>
64582
64583         * doc/functions/snprintf.texi: Mention BeOS deficiency.
64584         * doc/functions/vsnprintf.texi: Likewise.
64585         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
64586         with a size argument < 2.
64587
64588 2007-11-09  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
64591         buffer. Fixes an inefficiency introduced on 2007-11-03.
64592
64593 2007-11-09  Bruno Haible  <bruno@clisp.org>
64594
64595         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
64596         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
64597
64598 2007-11-08  Jim Meyering  <meyering@redhat.com>
64599
64600         Change cache variable name prefix "jm_" to "gl_" everywhere.
64601         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
64602         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
64603         * m4/uptime.m4: s/gl_/jm_/
64604
64605 2007-11-07  Bruno Haible  <bruno@clisp.org>
64606
64607         Update to GNU gettext 0.17.
64608         * m4/intl.m4: Update to GNU gettext 0.17.
64609         * m4/po.m4: Likewise.
64610         * modules/gettext (Files): Remove m4/ulonglong.m4.
64611         (configure.ac): Require gettext infrastructure from version 0.17.
64612
64613 2007-11-06  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
64616         symbolic values are not defined in a public header.
64617         * lib/freadable.c (freadable) [QNX]: Likewise.
64618         * lib/freadahead.c (freadahead) [QNX]: Likewise.
64619         * lib/freading.c (freading) [QNX]: Likewise.
64620         * lib/fseterr.c (fseterr) [QNX]: Likewise.
64621         * lib/fwritable.c (fwritable) [QNX]: Likewise.
64622         * lib/fwriting.c (fwriting) [QNX]: Likewise.
64623         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
64624         Reported by Alain Magloire.
64625
64626         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
64627
64628 2007-11-05  Bruno Haible  <bruno@clisp.org>
64629
64630         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
64631         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
64632         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
64633         Reported by Eric Blake.
64634
64635 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64636             Bruno Haible  <bruno@clisp.org>
64637
64638         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
64639         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
64640         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
64641         (malloc): Undefine also before including <stdlib.h>.
64642         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
64643         Needed on OSF/1 4.0.
64644
64645 2007-11-05  Jim Meyering  <meyering@redhat.com>
64646
64647         git-version-gen: sync from coreutils.
64648         * build-aux/git-version-gen: Add comments.
64649         Change the first '-' to '.' in the snapshot version string,
64650         e.g., 6.9-377-08144 -> 6.9.377-08144
64651         Remove first parameter.
64652         Don't declare a version "-dirty" merely because a time
64653         stamp has changed.
64654
64655 2007-11-04  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/lock.h: Protect all macro definitions containing an 'if'
64658         statement through a "do { ... } while (0)".
64659         * lib/tls.h: Likewise.
64660
64661 2007-11-04  Bruno Haible  <bruno@clisp.org>
64662
64663         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
64664
64665 2007-11-04  Bruno Haible  <bruno@clisp.org>
64666
64667         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
64668         * modules/fprintf-posix (Depends-on): Add nocrash.
64669         * modules/snprintf-posix (Depends-on): Likewise.
64670         * modules/sprintf-posix (Depends-on): Likewise.
64671         * modules/vasnprintf-posix (Depends-on): Likewise.
64672         * modules/vasprintf-posix (Depends-on): Likewise.
64673         * modules/vfprintf-posix (Depends-on): Likewise.
64674         * modules/vsnprintf-posix (Depends-on): Likewise.
64675         * modules/vsprintf-posix (Depends-on): Likewise.
64676         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64677         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64678         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64679         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64680         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64681         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64682         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64683
64684 2007-11-04  Bruno Haible  <bruno@clisp.org>
64685
64686         * modules/nocrash: New file.
64687         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
64688         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
64689
64690 2007-11-04  Bruno Haible  <bruno@clisp.org>
64691
64692         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
64693         precision handling.
64694         * tests/test-vasprintf-posix.c (test_function): Likewise.
64695         * tests/test-snprintf-posix.h (test_function): Likewise.
64696         * tests/test-sprintf-posix.h (test_function): Likewise.
64697
64698         Fix *printf behaviour for large precisions on mingw and BeOS.
64699         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
64700         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
64701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
64702         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64703         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64704         gl_PRINTF_PRECISION and test its result. Invoke
64705         gl_PREREQ_VASNPRINTF_PRECISION.
64706         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64710         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64712         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64713         * doc/functions/fprintf.texi: Update.
64714         * doc/functions/printf.texi: Update.
64715         * doc/functions/snprintf.texi: Update.
64716         * doc/functions/sprintf.texi: Update.
64717         * doc/functions/vfprintf.texi: Update.
64718         * doc/functions/vprintf.texi: Update.
64719         * doc/functions/vsnprintf.texi: Update.
64720         * doc/functions/vsprintf.texi: Update.
64721
64722 2007-11-04  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
64725
64726 2007-11-04  Bruno Haible  <bruno@clisp.org>
64727
64728         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
64729         Reported by Sylvain Beucler <beuc@gnu.org>.
64730
64731 2007-11-03  Bruno Haible  <bruno@clisp.org>
64732
64733         * tests/test-fprintf-posix2.sh: New file.
64734         * tests/test-fprintf-posix2.c: New file.
64735         * modules/fprintf-posix-tests (Files): Add them.
64736         (TESTS): Add test-fprintf-posix2.sh.
64737         (configure.ac): Check for getrlimit and setrlimit.
64738         (check_PROGRAMS): Add test-fprintf-posix2.
64739
64740         * tests/test-printf-posix2.sh: New file.
64741         * tests/test-printf-posix2.c: New file.
64742         * modules/printf-posix-tests (Files): Add them.
64743         (TESTS): Add test-printf-posix2.sh.
64744         (configure.ac): Check for getrlimit and setrlimit.
64745         (check_PROGRAMS): Add test-printf-posix2.
64746
64747         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
64748         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
64749         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
64750         (decode_double): New function, copied from decode_long_double.
64751         (scale10_round_decimal_decoded): New function, extracted from
64752         scale10_round_decimal_long_double.
64753         (scale10_round_decimal_long_double): Use it.
64754         (scale10_round_decimal_double): New function.
64755         (floorlog10): New function.
64756         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
64757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
64758         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
64759         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64760         gl_PRINTF_ENOMEM and test its result. Invoke
64761         gl_PREREQ_VASNPRINTF_ENOMEM.
64762         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64763         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64764         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64765         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64766         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64768         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64769         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
64770         * modules/snprintf-posix (Depends-on): Likewise.
64771         * modules/sprintf-posix (Depends-on): Likewise.
64772         * modules/vasnprintf-posix (Depends-on): Likewise.
64773         * modules/vasprintf-posix (Depends-on): Likewise.
64774         * modules/vfprintf-posix (Depends-on): Likewise.
64775         * modules/vsnprintf-posix (Depends-on): Likewise.
64776         * modules/vsprintf-posix (Depends-on): Likewise.
64777         * doc/functions/fprintf.texi: Update.
64778         * doc/functions/printf.texi: Update.
64779         * doc/functions/snprintf.texi: Update.
64780         * doc/functions/sprintf.texi: Update.
64781         * doc/functions/vfprintf.texi: Update.
64782         * doc/functions/vprintf.texi: Update.
64783         * doc/functions/vsnprintf.texi: Update.
64784         * doc/functions/vsprintf.texi: Update.
64785
64786 2007-11-03  Bruno Haible  <bruno@clisp.org>
64787
64788         * modules/frexp-nolibm-tests: New file.
64789
64790         * modules/frexp-nolibm: New file.
64791         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
64792
64793 2007-11-03  Bruno Haible  <bruno@clisp.org>
64794
64795         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
64796         value is C99 compliant.
64797         Needed for OSF/1 5.1.
64798
64799 2007-11-03  Bruno Haible  <bruno@clisp.org>
64800
64801         Fix out-of-memory handling of vasnprintf.
64802         * lib/printf-parse.c: Include <errno.h>.
64803         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
64804         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
64805         is already set.
64806
64807 2007-11-02  Eric Blake  <ebb9@byu.net>
64808
64809         Fix tests on cygwin.
64810         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
64811
64812 2007-11-01  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
64815         warning.
64816         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
64817         needed for POSIX compatibility.
64818
64819 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
64822         for compatibility with GNU.
64823
64824 2007-11-01  Bruno Haible  <bruno@clisp.org>
64825
64826         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
64827         (putenv): Renamed from rpl_putenv. Change argument type from
64828         'const char *' to 'char *'.
64829         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
64830         of defining putenv in config.h, just set REPLACE_PUTENV.
64831         * modules/putenv (Depends-on): Add stdlib.
64832         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64833         (Include): Use <stdlib.h>.
64834         * lib/stdlib.in.h (putenv): New declaration.
64835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64836         REPLACE_PUTENV.
64837         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64838         REPLACE_PUTENV.
64839         Needed for MacOS X 10.5.0.
64840         Reported by Peter O'Gorman <peter@pogma.com>.
64841
64842 2007-11-01  Jim Meyering  <meyering@redhat.com>
64843
64844         Treat an empty date string exactly like "0".
64845         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64846         if the remaining date string (to be parsed) is empty, use "0".
64847         Reported by Mischa Molhoek and discussed in this thread:
64848         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64849
64850 2007-10-31  Bruno Haible  <bruno@clisp.org>
64851
64852         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64853         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64854         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64855         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64856         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64857         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64858
64859 2007-10-31  Bruno Haible  <bruno@clisp.org>
64860
64861         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64862         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64863         (AC_TYPE_LONG_LONG_INT): Use it.
64864         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64865         it as well.
64866         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64867         to m4/longlong.m4.
64868         * modules/stdint (Files): Remove m4/ulonglong.m4.
64869         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64870         m4/ulonglong.m4.
64871         * modules/strtoumax (Files): Likewise.
64872
64873 2007-10-30  Bruno Haible  <bruno@clisp.org>
64874
64875         * modules/xvasprintf-posix: New file.
64876         Suggested by Eric Blake.
64877
64878 2007-10-30  Bruno Haible  <bruno@clisp.org>
64879
64880         * modules/xprintf-posix-tests: New file.
64881         * tests/test-xprintf-posix.sh: New file.
64882         * tests/test-xprintf-posix.c: New file.
64883         * tests/test-xfprintf-posix.c: New file.
64884
64885         * modules/xprintf-posix: New file.
64886
64887 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64888
64889         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64890         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64891         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64892
64893 2007-10-29  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64896         contain the special marker '_cv_'.
64897         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64898         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64899         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64900         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64901         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64902         Reported by Ralf Wildenhues.
64903
64904 2007-10-29  Bruno Haible  <bruno@clisp.org>
64905
64906         * gnulib-tool (func_import): When --lgpl is not specified, set
64907         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64908         GPLv3.
64909         Reported by Simon Josefsson.
64910
64911 2007-10-28  Bruno Haible  <bruno@clisp.org>
64912
64913         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64914         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64915         HAVE_DECL_ISFINITE.
64916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64917         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64918         HAVE_DECL_ISFINITE.
64919
64920 2007-10-28  Bruno Haible  <bruno@clisp.org>
64921
64922         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64923         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64924
64925 2007-10-28  Bruno Haible  <bruno@clisp.org>
64926
64927         Fix link errors with Sun C 5.0 on Solaris 10.
64928         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64929         function is declared but not present in the compiler's libm.
64930         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64931         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64932         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64933         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64934         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64935         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64936         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64938         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64939         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64940         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64941         HAVE_DECL_FLOORL.
64942
64943 2007-10-28  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64946         gl_FUNC_FLOORL. Cache the result.
64947         (gl_FUNC_FLOORL): Use it.
64948         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64949         gl_FUNC_CEILL. Cache the result.
64950         (gl_FUNC_CEILL): Use it.
64951
64952         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64953         gl_FUNC_FLOOR. Cache the result.
64954         (gl_FUNC_FLOOR): Use it.
64955         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64956         gl_FUNC_CEIL. Cache the result.
64957         (gl_FUNC_CEIL): Use it.
64958
64959         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64960         gl_FUNC_FLOORF. Cache the result.
64961         (gl_FUNC_FLOORF): Use it.
64962         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64963         gl_FUNC_CEILF. Cache the result.
64964         (gl_FUNC_CEILF): Use it.
64965
64966 2007-10-28  Bruno Haible  <bruno@clisp.org>
64967
64968         * gnulib-tool: Allow specifying the LGPL version number through
64969         --lgpl=2 or --lgpl=3.
64970         (func_usage): Document --lgpl with argument.
64971         Handle --lgpl=... arguments.
64972         (func_import): Recognize also gl_LGPL calls with an argument. When
64973         --lgpl=2 is used and the module's license is just LGPL, report an
64974         error. Set sed_transform_lib_file according to the lgpl variable. In
64975         the generated files, use --lgpl or gl_LGPL invocations with argument,
64976         if necessary.
64977         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64978         an LGPv2+ license.
64979         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64980         gl_LGPL macro.
64981
64982 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64983             Bruno Haible  <bruno@clisp.org>
64984
64985         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64986         (u16_uctomb_aux): Likewise.
64987         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64988         !HAVE_INLINE.
64989         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64990
64991 2007-10-28  Bruno Haible  <bruno@clisp.org>
64992
64993         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64994         Invoke AM_GETTEXT_OPTION if it exists.
64995         * modules/vasprintf: Likewise.
64996         * modules/verror: Likewise.
64997         * modules/xprintf: Likewise.
64998         * modules/xvasprintf: Likewise.
64999
65000 2007-10-27  Ben Pfaff  <blp@gnu.org>
65001
65002         * lib/math.in.h: Define isfinite macro and prototypes for
65003         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65004         implementations.
65005         * m4/math_h.m4: New substitutions for isfinite module.
65006         * lib/isfinite.c: New file.
65007         * m4/isfinite.m4: New file.
65008         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65009         * modules/isfinite: New file.
65010         * modules/isfinite-tests: New file.
65011         * tests/tests-isfinite.c: New file.
65012         * doc/functions/isfinite.texi: Mention isfinite module.
65013         * MODULES.html.sh: Mention new module.
65014
65015 2007-10-27  Ben Pfaff  <blp@gnu.org>
65016
65017         Ralf Wildenhues reported that Tru64 4.0D declares the round
65018         functions but does not have definitions.
65019         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65020         cannot be found in any library, set the output variable to
65021         "missing" instead of "".
65022         * m4/round.m4: Also use our substitute if we cannot find round in
65023         any library, even if it is declared.
65024         * m4/roundf.m4: Likewise for roundf.
65025         * m4/roundl.m4: Likewise for roundl.
65026         * lib/math.in.h: Undefine roundf, round, roundl before defining
65027         their replacements, to allow for hypothetical systems where these
65028         may be defined as macros but not available in libraries.
65029
65030 2007-10-27  Bruno Haible  <bruno@clisp.org>
65031
65032         * doc/gnulib.texi: Invoke @firstparagraphindent.
65033         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65034         changes in gnulib.
65035         (Source changes): New section.
65036
65037 2007-10-26  Bruno Haible  <bruno@clisp.org>
65038
65039         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65040         borrowed from autoconf.
65041
65042 2007-10-26  Bruno Haible  <bruno@clisp.org>
65043
65044         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65045         strerror returned the empty string. Needed on HP-UX 11.00.
65046
65047 2007-10-24  Micah Cowan  <micah@cowan.name>
65048
65049         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65050         * build-aux/bootstrap: Remove support for now-unnecessary option,
65051         --cvs-user, and envvars CVS_USER, CVS_RSH.
65052
65053 2007-10-24  Jim Meyering  <meyering@redhat.com>
65054
65055         Avoid diagnostics from sha1sum when there is no cached checksum.
65056         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65057         if the po.s1 file hasn't been created yet.
65058
65059         * build-aux/bootstrap: Sync from coreutils:
65060         2007-10-24  Jim Meyering  <meyering@redhat.com>
65061         Get gnulib from the git repository, not from an obsolete cvs one.
65062         * build-aux/bootstrap: Suggestion from Micah Cowan.
65063         2007-10-04  Jim Meyering  <jim@meyering.net>
65064         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
65065         (update_po_files): Work also when there are no .po files in po/.
65066
65067 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         * README: Append ".git" to git and cg examples.
65070         Problem reported by Benoit Sigoure.
65071
65072 2007-10-23  Micah Cowan  <micah@cowan.name>
65073
65074         * users.txt: Add wget.
65075
65076 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65077
65078         Fix linking of some unistdio tests on FreeBSD.
65079         * modules/unistdio/u16-vsnprintf-tests
65080         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
65081         * modules/unistdio/u16-vsprintf-tests
65082         (test_u16_vsnprintf1_LDADD): Likewise.
65083         * modules/unistdio/u32-vsnprintf-tests
65084         (test_u32_vsnprintf1_LDADD): Likewise.
65085         * modules/unistdio/u32-vsprintf-tests
65086         (test_u32_vsprintf1_LDADD): Likewise.
65087         * modules/unistdio/u8-vsnprintf-tests
65088         (test_u8_vsnprintf1_LDADD): Likewise.
65089         * modules/unistdio/u8-vsprintf-tests
65090         (test_u8_vsprintf1_LDADD): Likewise.
65091         * modules/unistdio/ulc-vsnprintf-tests
65092         (test_ulc_vsnprintf1_LDADD): Likewise.
65093         * modules/unistdio/ulc-vsprintf-tests
65094         (test_ulc_vsprintf1_LDADD): Likewise.
65095
65096         Fix linking of some uniconv tests on FreeBSD.
65097         * modules/uniconv/u16-conv-from-enc-tests
65098         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
65099         * modules/uniconv/u16-conv-to-enc-tests
65100         (test_u16_conv_to_enc_LDADD): Likewise.
65101         * modules/uniconv/u16-strconv-from-enc-tests
65102         (test_u16_strconv_from_enc_LDADD): Likewise.
65103         * modules/uniconv/u16-strconv-to-enc-tests
65104         (test_u16_strconv_to_enc_LDADD): Likewise.
65105         * modules/uniconv/u32-conv-from-enc-tests
65106         (test_u32_conv_from_enc_LDADD): Likewise.
65107         * modules/uniconv/u32-conv-to-enc-tests
65108         (test_u32_conv_to_enc_LDADD): Likewise.
65109         * modules/uniconv/u32-strconv-from-enc-tests
65110         (test_u32_strconv_from_enc_LDADD): Likewise.
65111         * modules/uniconv/u32-strconv-to-enc-tests
65112         (test_u32_strconv_to_enc_LDADD): Likewise.
65113         * modules/uniconv/u8-conv-from-enc-tests
65114         (test_u8_conv_from_enc_LDADD): Likewise.
65115         * modules/uniconv/u8-conv-to-enc-tests
65116         (test_u8_conv_to_enc_LDADD): Likewise.
65117         * modules/uniconv/u8-strconv-from-enc-tests
65118         (test_u8_strconv_from_enc_LDADD): Likewise.
65119         * modules/uniconv/u8-strconv-to-enc-tests
65120         (test_u8_strconv_to_enc_LDADD): Likewise.
65121
65122 2007-10-22  Bruno Haible  <bruno@clisp.org>
65123
65124         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
65125         size.
65126
65127 2007-10-22  Eric Blake  <ebb9@byu.net>
65128
65129         Tweak x*printf documentation.
65130         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
65131         variable name and comments.
65132         Suggested by Bruno Haible.
65133
65134 2007-10-22  Bruno Haible  <bruno@clisp.org>
65135
65136         * lib/acl.c (copy_acl): Fix file name in comment.
65137
65138 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65139
65140         Fix Tru64 problem with stdbool.h.
65141         * lib/stdbool.in.h (false, true):
65142         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
65143         Don't declare as an enum in this situation; it runs afoul of Tru64.
65144         Problem reported by Steven M. Schweda in
65145         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
65146
65147 2007-10-22  Eric Blake  <ebb9@byu.net>
65148
65149         Also wrap vf?printf.
65150         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
65151         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
65152         (xvprintf, xvfprintf): New functions.
65153
65154 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65155
65156         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
65157         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
65158
65159         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
65160         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
65161
65162 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
65163
65164         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
65165         by Bruno Haible.
65166
65167 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65168
65169         * lib/getloadavg.c
65170         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
65171         Undef `sys' after including sys/table.h, for Tru64 4.0D.
65172
65173         * tests/test-i-ring.c: Work for C89.
65174
65175 2007-10-22  Bruno Haible  <bruno@clisp.org>
65176
65177         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
65178         -1u, in preprocessor expression, so that we don't test for the bug
65179         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
65180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
65181
65182 2007-10-22  Eric Blake  <ebb9@byu.net>
65183
65184         * tests/test-yesno.sh: Silence stderr during test.
65185
65186 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65187
65188         * modules/crypto/gc-camellia: New file.
65189
65190         * m4/gc-camellia.m4: New file.
65191
65192         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
65193
65194         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
65195
65196 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65197
65198         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
65199         --help to stdout.  Reported by sms@antinode.org (Steven
65200         M. Schweda).
65201
65202 2007-10-22  Simon Josefsson  <simon@josefsson.org>
65203
65204         * users.txt: Fix link to libksba.
65205
65206 2007-10-21  Ben Pfaff  <blp@gnu.org>
65207
65208         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
65209         round.c roundf implementation that depends on floorf and ceilf to
65210         be tested unconditionally.
65211
65212 2007-10-21  Ben Pfaff  <blp@gnu.org>
65213
65214         * m4/check-libm-func.m4: Removed.
65215         * m4/check-math-lib.m4: New file.
65216         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
65217         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
65218         definition and lack of AC_LIBOBJ([roundf]).
65219         * m4/roundl.m4: Ditto, and similarly for roundl.
65220         * modules/round: Reference new m4 file.
65221         * modules/roundf: Ditto.
65222         * modules/roundl: Ditto.
65223         * tests/test-round2.c (main): Use ROUND instead of round.
65224         Bug report from Bruno Haible.
65225
65226 2007-10-21  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
65229         context.
65230
65231 2007-10-21  Bruno Haible  <bruno@clisp.org>
65232
65233         * tests/test-wcwidth.c (main): Allow negative result for some control
65234         characters.
65235
65236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
65237         Needed on OSF/1 5.1.
65238
65239 2007-10-21  Bruno Haible  <bruno@clisp.org>
65240
65241         * tests/test-floorf1.c: Include isnanf.h.
65242         (main): Use isnanf() instead of isnan().
65243         * tests/test-ceilf1.c: Include isnanf.h.
65244         (main): Use isnanf() instead of isnan().
65245         * tests/test-truncf1.c: Include isnanf.h.
65246         (main): Use isnanf() instead of isnan().
65247         * tests/test-roundf1.c: Include isnanf.h.
65248         (main): Use isnanf() instead of isnan().
65249
65250 2007-10-21  Eric Blake  <ebb9@byu.net>
65251
65252         * users.txt: Update URL for m4.
65253
65254 2007-10-21  Bruno Haible  <bruno@clisp.org>
65255
65256         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
65257
65258 2007-10-21  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
65261         Git's management files if the CVS files are not present.
65262
65263 2007-10-20  Bruno Haible  <bruno@clisp.org>
65264
65265         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
65266         gcc-3.4.x.
65267
65268 2007-10-20  Ben Pfaff  <blp@gnu.org>
65269
65270         * lib/math.in.h: Declare round, roundf, roundl if we are providing
65271         implementations.
65272         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
65273         * lib/round.c: New file.
65274         * lib/roundf.c: New file.
65275         * lib/roundl.c: New file.
65276         * m4/round.m4: New file.
65277         * m4/roundf.m4: New file.
65278         * m4/roundl.m4: New file.
65279         * m4/check-libm-func-m4: New file.
65280         * modules/math: Replace round, roundf, roundl related @VARS@ in
65281         math.in.h.
65282         * modules/round: New file.
65283         * modules/round-tests: New file.
65284         * modules/roundf: New file.
65285         * modules/roundf-tests: New file.
65286         * modules/roundl: New file.
65287         * modules/roundl-tests: New file.
65288         * tests/test-round1.c: New file.
65289         * tests/test-round2.c: New file.
65290         * tests/test-roundf1.c: New file.
65291         * tests/test-roundf2.c: New file.
65292         * tests/test-roundl.c: New file.
65293         * doc/functions/round.texi: Mention round module.
65294         * doc/functions/roundf.texi: Mention roundf module.
65295         * doc/functions/roundl.texi: Mention roundl module.
65296         * MODULES.html.sh: Mention new modules.
65297         Thanks to Bruno Haible for suggestions.
65298
65299 2007-10-20  Jim Meyering  <meyering@redhat.com>
65300
65301         * lib/xprintf.c: Include <config.h> unconditionally.
65302
65303         Change xprintf's license to GPL.
65304         * modules/xprintf (License): s/LGPL/GPL/, since this module
65305         depends on modules (exit and exitfail) which are GPL.
65306         Suggestion from Bruno Haible.
65307
65308         xprintf fixes.
65309         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
65310         Use a clearer diagnostic.
65311         Patch from Bruno Haible.
65312
65313 2007-10-20  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
65316         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
65317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65318
65319 2007-10-20  Bruno Haible  <bruno@clisp.org>
65320
65321         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
65322         precision in the comparison result > x - 1 or similar.
65323         * tests/test-ceilf2.c (correct_result_p): Likewise.
65324         * tests/test-truncf2.c (correct_result_p): Likewise.
65325         * tests/test-trunc2.c (correct_result_p): Likewise.
65326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65327
65328 2007-10-20  Bruno Haible  <bruno@clisp.org>
65329
65330         * modules/ceil: New file.
65331         * m4/ceil.m4: New file.
65332         * doc/functions/ceil.texi: Mention the 'ceil' module.
65333
65334 2007-10-20  Bruno Haible  <bruno@clisp.org>
65335
65336         * modules/floor: New file.
65337         * m4/floor.m4: New file.
65338         * doc/functions/floor.texi: Mention the 'floor' module.
65339
65340 2007-10-20  Bruno Haible  <bruno@clisp.org>
65341
65342         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
65343         of %a.
65344         * modules/floorf-tests (Depends-on): Likewise.
65345         * modules/truncf-tests (Depends-on): Likewise.
65346         * modules/trunc-tests (Depends-on): Likewise.
65347         Reported by Ben Pfaff.
65348
65349 2007-10-19  Jim Meyering  <meyering@redhat.com>
65350
65351         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
65352         Don't bother testing specific errno values.  Just test ferror.
65353
65354         New module: xprintf
65355         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
65356
65357 2007-10-19  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
65360         syntax.
65361         * modules/javaexec (Makefile.am): Likewise.
65362         * modules/relocatable-prog (Makefile.am): Likewise.
65363         Suggested by Jim Meyering.
65364
65365 2007-10-18  Bruno Haible  <bruno@clisp.org>
65366
65367         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
65368         Reported by Jim Meyering.
65369
65370 2007-10-18  Eric Blake  <ebb9@byu.net>
65371
65372         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
65373
65374 2007-10-18  Bruno Haible  <bruno@clisp.org>
65375
65376         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
65377         the format string into writable memory. Needed in Fortify conditions.
65378
65379 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
65380             Bruno Haible  <bruno@clisp.org>
65381
65382         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
65383         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
65384         * modules/trim (Depends-on): Add mbchar.
65385         (configure.ac): Add gl_FUNC_MBRTOWC.
65386         (Makefile.am): Augment lib_SOURCES.
65387
65388 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         Modify glob.c to use fstatat and dirfd, to simplify it.
65391         Suggested by Eric Blake.
65392         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
65393         Don't include <stdbool.h>; not used.
65394         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
65395         (link_exists_p): Simplify implementation, since we can now assume
65396         dirfd and fstatat.
65397         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
65398
65399 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65400
65401         * gnulib-tool (func_get_dependencies): Fix sed script to
65402         match only tests.
65403
65404 2007-10-17  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
65407         allow locale names without encoding suffix.
65408         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
65409         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65410
65411 2007-10-16  Bruno Haible  <bruno@clisp.org>
65412
65413         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
65414         * lib/getgroups.c (getgroups): Likewise.
65415         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
65416
65417 2007-10-16  Bruno Haible  <bruno@clisp.org>
65418
65419         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
65420         * modules/malloc-posix (License): Likewise.
65421         * modules/realloc-posix (License): Likewise.
65422         * modules/calloc-posix (License): Likewise.
65423         * modules/intprops (License): Change from GPL to LGPL, with
65424         Paul Eggert's approval.
65425
65426 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65427
65428         Merge glibc changes into lib/glob.c.
65429
65430         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
65431         2007-10-15 04:59:03 UTC.  Here are the changes:
65432
65433         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
65434
65435         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
65436
65437         * lib/glob.c: Add some branch prediction throughout.
65438
65439         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
65440
65441         [BZ #5103]
65442         * lib/glob.c (glob): Recognize patterns starting \/.
65443
65444         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
65445
65446         [BZ #3996]
65447         * lib/glob.c (attribute_hidden): Define if not defined.
65448         (glob): Unescape dirname, filename or username when needed and not
65449         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
65450         is NULL.  Handle unescaped [ in pattern without closing ].
65451         Don't pass GLOB_CHECK down to recursive glob for directories.
65452         (__glob_pattern_type): New function.
65453         (__glob_pattern_p): Implement using __glob_pattern_type.
65454         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
65455         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
65456         Remove unreachable code.
65457
65458         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
65459
65460         * lib/glob.c (glob_in_dir): Add some comments and asserts to
65461         explain why there are no leaks.
65462
65463         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
65464
65465         [BZ #3253]
65466         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
65467         time, rather allocate increasingly bigger arrays of pointers, if
65468         possible with alloca, if too large with malloc.
65469
65470 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65471
65472         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
65473         Problem reported by H.Merijn Brand in
65474         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
65475         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
65476         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
65477
65478 2007-10-15  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
65481         with explicit rpl_ prefix.
65482         * lib/fopen.c (fopen): Likewise.
65483         * lib/freopen.c (freopen): Likewise.
65484         * lib/iconv.c (iconv): Likewise.
65485         * lib/iconv_close.c (iconv_close): Likewise.
65486
65487 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65488
65489         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
65490
65491 2007-10-15  Bruno Haible  <bruno@clisp.org>
65492
65493         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
65494         <stddef.h> instead of <stdlib.h> since we only need NULL.
65495         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65496
65497 2007-10-15  Bruno Haible  <bruno@clisp.org>
65498
65499         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
65500         Replace paragraph talking about LIBOBJS.
65501         Reported by Colin Watson <cjwatson@debian.org>.
65502
65503 2007-10-15  Bruno Haible  <bruno@clisp.org>
65504
65505         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
65506         <stdlib.h> before using NULL.
65507
65508 2007-10-15  Simon Josefsson  <simon@josefsson.org>
65509
65510         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
65511         Reported by Albert Chin <china@thewrittenword.com>.
65512
65513 2007-10-14  Bruno Haible  <bruno@clisp.org>
65514
65515         * modules/iconv_open-utf-tests: New file.
65516         * tests/test-iconv-utf.c: New file.
65517
65518         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
65519         * modules/iconv_open-utf: New file.
65520         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
65521         (iconv, iconv_close): New declarations.
65522         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
65523         be defined.
65524         (iconv_open): Add special handling of conversion between UTF-8 and
65525         UTF-{16,32}{BE,LE}.
65526         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
65527         * lib/iconv_close.c: New file.
65528         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
65529         gl_FUNC_ICONV_OPEN.
65530         (gl_FUNC_ICONV_OPEN): Use it.
65531         (gl_FUNC_ICONV_OPEN_UTF): New macro.
65532         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
65533         and REPLACE_ICONV_UTF.
65534         * modules/iconv_open (Depends-on): Add c-strcase.
65535         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
65536         ICONV_CONST.
65537         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
65538
65539 2007-10-13  Albert Chin  <china@thewrittenword.com>
65540             Bruno Haible  <bruno@clisp.org>
65541
65542         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
65543         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
65544
65545 2007-10-13  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
65548         defined, use the ISO C99 inline semantics.
65549         * lib/argp.h (ARGP_EI): Likewise.
65550
65551 2007-10-13  Bruno Haible  <bruno@clisp.org>
65552
65553         Handle 'inline' change in gcc 4.3.0.
65554         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
65555         argp_fmtstream_write, argp_fmtstream_set_lmargin,
65556         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
65557         argp_fmtstream_point): Disable 'extern' declaration if the function
65558         definition is going to be provided inline.
65559         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
65560         semantics, not the ISO C99 inline semantics.
65561         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
65562         'extern' declaration if the function definition is going to be provided
65563         inline.
65564         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
65565         the GNU C inline semantics, not the ISO C99 inline semantics. With
65566         GCC 4.2, avoid a warning.
65567
65568 2007-10-13  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/freading.h (freading): Enable the use of __freading for
65571         glibc >= 2.7.
65572         * lib/freading.c (freading): Likewise.
65573
65574 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65575
65576         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
65577         "warning: C99 inline functions are not supported; using GNU89".
65578
65579 2007-10-12  Bruno Haible  <bruno@clisp.org>
65580
65581         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
65582         of 2.
65583         * tests/test-ceilf2.c: New file.
65584         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
65585
65586         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
65587         * modules/ceilf-tests: Update.
65588
65589 2007-10-12  Bruno Haible  <bruno@clisp.org>
65590
65591         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
65592         of 2.
65593         * tests/test-floorf2.c: New file.
65594         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
65595
65596         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
65597         * modules/floorf-tests: Update.
65598
65599 2007-10-12  Bruno Haible  <bruno@clisp.org>
65600
65601         * tests/test-trunc2.c: New file.
65602         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
65603
65604         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
65605         * modules/trunc-tests: Update.
65606
65607 2007-10-12  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
65610         of 2.
65611         * tests/test-truncf2.c: New file.
65612         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
65613
65614         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
65615         * modules/truncf-tests: Update.
65616
65617 2007-10-11  Eric Blake  <ebb9@byu.net>
65618
65619         Don't claim strerror is broken on Interix.
65620         * doc/functions/strerror.texi (strerror): Known broken systems are
65621         now Solaris 8, and not Interix.
65622         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
65623         Interix on cross-compile.
65624         Reported by Martin Koeppe in
65625         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
65626
65627 2007-10-11  Bruno Haible  <bruno@clisp.org>
65628
65629         * modules/i-ring-tests: New file.
65630         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
65631         instead of assert.
65632
65633 2007-10-11  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/filenamecat-tests: New file.
65636         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
65637         * lib/filenamecat.c: Remove test code.
65638
65639 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
65642
65643         * lib/strerror.c: Include <string.h> always, to test interface,
65644         and to remove the need for the dummy.
65645         Include intprops.h to compute width instead of doing it ourselves
65646         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
65647         (strerror): Define it to return NULL if there's no system strerror.
65648         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
65649         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
65650         ancient pre-strerror Unix systems well any more.  Saying "unknown
65651         system error" is enough.
65652         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
65653         simpler strerror.c implementation.
65654         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
65655         Simplify the tests to reflect the simpler strerror implementation.
65656         * modules/strerror (Depends-on): Add intprops.
65657
65658 2007-10-09  Eric Blake  <ebb9@byu.net>
65659
65660         Silence test-fpending.
65661         * modules/fpending-tests (Files): Add wrapper script.
65662         * tests/test-fpending.sh: New file.
65663
65664 2007-10-09  Bruno Haible  <bruno@clisp.org>
65665
65666         * MODULES.html.sh (func_module): Don't create a hyperlink for
65667         function names like 'printf_frexp'.
65668         (Misc): Add crc, memxor.
65669         (Characteristics of floating types): New section.
65670         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
65671         isnanf-nolibm, signbit, trunc, truncf, truncl.
65672         (Enhancements for ISO C 99 functions): New subsection Input/output.
65673         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
65674         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
65675         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
65676         (Compatibility checks for POSIX:2001 functions): Add clock-time.
65677         (Enhancements for POSIX:2001 functions): Add chdir-long.
65678         (File system functions): Add areadlink, chdir-safer, read-file.
65679         Remove cycle-check.
65680         (File system as inode set): New section.
65681         (Date and time): Add gethrxtime.
65682         (Multithreading): Add openmp.
65683         (Internationalization functions): Add localename.
65684         (Unicode string functions): Add unistr/u*-mbsnlen.
65685         (Support for maintaining and releasing projects): Add git-version-gen.
65686         (Lone files): Remove directories.
65687
65688 2007-10-08  Ben Pfaff  <blp@gnu.org>
65689
65690         * lib/xmalloca.h: Fix typo in comment.
65691
65692 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65693
65694         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
65695         when avoiding problems with integer overflow.  Use a portable test
65696         instead.
65697
65698 2007-10-08  Simon Josefsson  <simon@josefsson.org>
65699
65700         * modules/dummy (License): Change to LGPLv2+.
65701         * modules/float (License): Likewise
65702         * modules/realloc (License): Likewise
65703         * modules/stdlib (License): Likewise
65704
65705 2007-10-07  Bruno Haible  <bruno@clisp.org>
65706
65707         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
65708         * floor.c (TWO_MANT_DIG): Likewise.
65709         * ceil.c (TWO_MANT_DIG): Likewise.
65710         Reported by Ben Pfaff.
65711
65712 2007-10-07  Bruno Haible  <bruno@clisp.org>
65713
65714         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
65715         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
65716         * lib/frexp.c (FUNC): Likewise.
65717         * lib/printf-frexp.h (printf_frexp): Likewise.
65718         * lib/printf-frexpl.h (printf_frexpl): Likewise.
65719         * lib/printf-frexp.c (FUNC): Likewise.
65720         Suggested by Jim Meyering.
65721
65722 2007-10-07  Jim Meyering  <meyering@redhat.com>
65723
65724         Make xnanosleep's integer overflow test more robust.
65725         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
65726         so that gcc-4.3.0 doesn't optimize away this test for overflow.
65727
65728 2007-10-07  Bruno Haible  <bruno@clisp.org>
65729
65730         * NEWS: Mention the license change.
65731
65732         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
65733         abbreviations in the modules files.
65734
65735         Change copyright notice from GPLv2+ to GPLv3+.
65736         * README: Change copyright notice.
65737         * MODULES.html.sh: Likewise.
65738         * build-aux/bootstrap.conf: Likewise.
65739         * build-aux/config.libpath: Likewise.
65740         * build-aux/csharpcomp.sh.in: Likewise.
65741         * build-aux/csharpexec.sh.in: Likewise.
65742         * build-aux/install-reloc: Likewise.
65743         * build-aux/javacomp.sh.in: Likewise.
65744         * build-aux/javaexec.sh.in: Likewise.
65745         * build-aux/ldd.sh.in: Likewise.
65746         * build-aux/reloc-ldflags: Likewise.
65747         * build-aux/relocatable.sh.in: Likewise.
65748         * build-aux/x-to-1.in: Likewise.
65749         * check-module: Likewise.
65750         * config/srclistvars.sh: Likewise.
65751         * gnulib-tool: Likewise.
65752         * lib/acl-internal.h: Likewise.
65753         * lib/acl.c: Likewise.
65754         * lib/acl.h: Likewise.
65755         * lib/acl_entries.c: Likewise.
65756         * lib/areadlink-with-size.c: Likewise.
65757         * lib/areadlink.c: Likewise.
65758         * lib/areadlink.h: Likewise.
65759         * lib/argmatch.c: Likewise.
65760         * lib/argmatch.h: Likewise.
65761         * lib/argp-ba.c: Likewise.
65762         * lib/argp-eexst.c: Likewise.
65763         * lib/argp-fmtstream.c: Likewise.
65764         * lib/argp-fmtstream.h: Likewise.
65765         * lib/argp-fs-xinl.c: Likewise.
65766         * lib/argp-help.c: Likewise.
65767         * lib/argp-namefrob.h: Likewise.
65768         * lib/argp-parse.c: Likewise.
65769         * lib/argp-pin.c: Likewise.
65770         * lib/argp-pv.c: Likewise.
65771         * lib/argp-pvh.c: Likewise.
65772         * lib/argp-xinl.c: Likewise.
65773         * lib/argp.h: Likewise.
65774         * lib/at-func.c: Likewise.
65775         * lib/atanl.c: Likewise.
65776         * lib/backupfile.c: Likewise.
65777         * lib/backupfile.h: Likewise.
65778         * lib/basename.c: Likewise.
65779         * lib/binary-io.h: Likewise.
65780         * lib/byteswap.in.h: Likewise.
65781         * lib/c-stack.c: Likewise.
65782         * lib/c-stack.h: Likewise.
65783         * lib/c-strcasestr.c: Likewise.
65784         * lib/c-strcasestr.h: Likewise.
65785         * lib/c-strstr.c: Likewise.
65786         * lib/c-strstr.h: Likewise.
65787         * lib/c-strtod.c: Likewise.
65788         * lib/calloc.c: Likewise.
65789         * lib/canon-host.c: Likewise.
65790         * lib/canon-host.h: Likewise.
65791         * lib/canonicalize-lgpl.c: Likewise.
65792         * lib/canonicalize.c: Likewise.
65793         * lib/canonicalize.h: Likewise.
65794         * lib/ceil.c: Likewise.
65795         * lib/ceilf.c: Likewise.
65796         * lib/ceill.c: Likewise.
65797         * lib/chdir-long.c: Likewise.
65798         * lib/chdir-long.h: Likewise.
65799         * lib/chdir-safer.c: Likewise.
65800         * lib/chdir-safer.h: Likewise.
65801         * lib/chown.c: Likewise.
65802         * lib/classpath.c: Likewise.
65803         * lib/classpath.h: Likewise.
65804         * lib/clean-temp.c: Likewise.
65805         * lib/clean-temp.h: Likewise.
65806         * lib/cloexec.c: Likewise.
65807         * lib/close-stream.c: Likewise.
65808         * lib/closein.c: Likewise.
65809         * lib/closein.h: Likewise.
65810         * lib/closeout.c: Likewise.
65811         * lib/closeout.h: Likewise.
65812         * lib/concat-filename.c: Likewise.
65813         * lib/copy-file.c: Likewise.
65814         * lib/copy-file.h: Likewise.
65815         * lib/count-one-bits.h: Likewise.
65816         * lib/crc.c: Likewise.
65817         * lib/crc.h: Likewise.
65818         * lib/creat-safer.c: Likewise.
65819         * lib/csharpcomp.c: Likewise.
65820         * lib/csharpcomp.h: Likewise.
65821         * lib/csharpexec.c: Likewise.
65822         * lib/csharpexec.h: Likewise.
65823         * lib/cycle-check.c: Likewise.
65824         * lib/cycle-check.h: Likewise.
65825         * lib/diacrit.c: Likewise.
65826         * lib/diacrit.h: Likewise.
65827         * lib/diffseq.h: Likewise.
65828         * lib/dirchownmod.c: Likewise.
65829         * lib/dirent.in.h: Likewise.
65830         * lib/dirfd.c: Likewise.
65831         * lib/dirfd.h: Likewise.
65832         * lib/dirname.c: Likewise.
65833         * lib/dirname.h: Likewise.
65834         * lib/dummy.c: Likewise.
65835         * lib/dup-safer.c: Likewise.
65836         * lib/dup2.c: Likewise.
65837         * lib/eealloc.h: Likewise.
65838         * lib/error.c: Likewise.
65839         * lib/error.h: Likewise.
65840         * lib/euidaccess.c: Likewise.
65841         * lib/exclude.c: Likewise.
65842         * lib/exclude.h: Likewise.
65843         * lib/execute.c: Likewise.
65844         * lib/execute.h: Likewise.
65845         * lib/exitfail.c: Likewise.
65846         * lib/exitfail.h: Likewise.
65847         * lib/expl.c: Likewise.
65848         * lib/fatal-signal.c: Likewise.
65849         * lib/fatal-signal.h: Likewise.
65850         * lib/fbufmode.c: Likewise.
65851         * lib/fbufmode.h: Likewise.
65852         * lib/fchdir.c: Likewise.
65853         * lib/fchmodat.c: Likewise.
65854         * lib/fchownat.c: Likewise.
65855         * lib/fcntl--.h: Likewise.
65856         * lib/fcntl-safer.h: Likewise.
65857         * lib/fcntl.in.h: Likewise.
65858         * lib/fd-safer.c: Likewise.
65859         * lib/fflush.c: Likewise.
65860         * lib/file-has-acl.c: Likewise.
65861         * lib/file-set.c: Likewise.
65862         * lib/file-type.c: Likewise.
65863         * lib/file-type.h: Likewise.
65864         * lib/fileblocks.c: Likewise.
65865         * lib/filemode.c: Likewise.
65866         * lib/filemode.h: Likewise.
65867         * lib/filename.h: Likewise.
65868         * lib/filenamecat.c: Likewise.
65869         * lib/filenamecat.h: Likewise.
65870         * lib/findprog.c: Likewise.
65871         * lib/findprog.h: Likewise.
65872         * lib/float.in.h: Likewise.
65873         * lib/floor.c: Likewise.
65874         * lib/floorf.c: Likewise.
65875         * lib/floorl.c: Likewise.
65876         * lib/fopen-safer.c: Likewise.
65877         * lib/fopen.c: Likewise.
65878         * lib/fpending.c: Likewise.
65879         * lib/fpending.h: Likewise.
65880         * lib/fprintf.c: Likewise.
65881         * lib/fprintftime.h: Likewise.
65882         * lib/fpucw.h: Likewise.
65883         * lib/fpurge.c: Likewise.
65884         * lib/fpurge.h: Likewise.
65885         * lib/freadable.c: Likewise.
65886         * lib/freadable.h: Likewise.
65887         * lib/freadahead.c: Likewise.
65888         * lib/freadahead.h: Likewise.
65889         * lib/freading.c: Likewise.
65890         * lib/freading.h: Likewise.
65891         * lib/free.c: Likewise.
65892         * lib/freopen.c: Likewise.
65893         * lib/frexp.c: Likewise.
65894         * lib/frexpl.c: Likewise.
65895         * lib/fseek.c: Likewise.
65896         * lib/fseterr.c: Likewise.
65897         * lib/fseterr.h: Likewise.
65898         * lib/fstatat.c: Likewise.
65899         * lib/fstrcmp.c: Likewise.
65900         * lib/fstrcmp.h: Likewise.
65901         * lib/fsusage.c: Likewise.
65902         * lib/fsusage.h: Likewise.
65903         * lib/ftell.c: Likewise.
65904         * lib/ftello.c: Likewise.
65905         * lib/fts-cycle.c: Likewise.
65906         * lib/fts.c: Likewise.
65907         * lib/fts_.h: Likewise.
65908         * lib/full-read.c: Likewise.
65909         * lib/full-read.h: Likewise.
65910         * lib/full-write.c: Likewise.
65911         * lib/full-write.h: Likewise.
65912         * lib/fwritable.c: Likewise.
65913         * lib/fwritable.h: Likewise.
65914         * lib/fwriteerror.c: Likewise.
65915         * lib/fwriteerror.h: Likewise.
65916         * lib/fwriting.c: Likewise.
65917         * lib/fwriting.h: Likewise.
65918         * lib/gcd.c: Likewise.
65919         * lib/gcd.h: Likewise.
65920         * lib/getcwd.c: Likewise.
65921         * lib/getdate.h: Likewise.
65922         * lib/getdate.y: Likewise.
65923         * lib/getdomainname.c: Likewise.
65924         * lib/getdomainname.h: Likewise.
65925         * lib/getgroups.c: Likewise.
65926         * lib/gethostname.c: Likewise.
65927         * lib/gethrxtime.c: Likewise.
65928         * lib/gethrxtime.h: Likewise.
65929         * lib/getloadavg.c: Likewise.
65930         * lib/getndelim2.c: Likewise.
65931         * lib/getndelim2.h: Likewise.
65932         * lib/getnline.c: Likewise.
65933         * lib/getnline.h: Likewise.
65934         * lib/getopt.c: Likewise.
65935         * lib/getopt.in.h: Likewise.
65936         * lib/getopt1.c: Likewise.
65937         * lib/getopt_int.h: Likewise.
65938         * lib/getpagesize.h: Likewise.
65939         * lib/getsubopt.c: Likewise.
65940         * lib/gettime.c: Likewise.
65941         * lib/getugroups.c: Likewise.
65942         * lib/getugroups.h: Likewise.
65943         * lib/getusershell.c: Likewise.
65944         * lib/gl_anyavltree_list1.h: Likewise.
65945         * lib/gl_anyavltree_list2.h: Likewise.
65946         * lib/gl_anyhash_list1.h: Likewise.
65947         * lib/gl_anyhash_list2.h: Likewise.
65948         * lib/gl_anylinked_list1.h: Likewise.
65949         * lib/gl_anylinked_list2.h: Likewise.
65950         * lib/gl_anyrbtree_list1.h: Likewise.
65951         * lib/gl_anyrbtree_list2.h: Likewise.
65952         * lib/gl_anytree_list1.h: Likewise.
65953         * lib/gl_anytree_list2.h: Likewise.
65954         * lib/gl_anytree_oset.h: Likewise.
65955         * lib/gl_anytreehash_list1.h: Likewise.
65956         * lib/gl_anytreehash_list2.h: Likewise.
65957         * lib/gl_array_list.c: Likewise.
65958         * lib/gl_array_list.h: Likewise.
65959         * lib/gl_array_oset.c: Likewise.
65960         * lib/gl_array_oset.h: Likewise.
65961         * lib/gl_avltree_list.c: Likewise.
65962         * lib/gl_avltree_list.h: Likewise.
65963         * lib/gl_avltree_oset.c: Likewise.
65964         * lib/gl_avltree_oset.h: Likewise.
65965         * lib/gl_avltreehash_list.c: Likewise.
65966         * lib/gl_avltreehash_list.h: Likewise.
65967         * lib/gl_carray_list.c: Likewise.
65968         * lib/gl_carray_list.h: Likewise.
65969         * lib/gl_linked_list.c: Likewise.
65970         * lib/gl_linked_list.h: Likewise.
65971         * lib/gl_linkedhash_list.c: Likewise.
65972         * lib/gl_linkedhash_list.h: Likewise.
65973         * lib/gl_list.c: Likewise.
65974         * lib/gl_list.h: Likewise.
65975         * lib/gl_oset.c: Likewise.
65976         * lib/gl_oset.h: Likewise.
65977         * lib/gl_rbtree_list.c: Likewise.
65978         * lib/gl_rbtree_list.h: Likewise.
65979         * lib/gl_rbtree_oset.c: Likewise.
65980         * lib/gl_rbtree_oset.h: Likewise.
65981         * lib/gl_rbtreehash_list.c: Likewise.
65982         * lib/gl_rbtreehash_list.h: Likewise.
65983         * lib/gl_sublist.c: Likewise.
65984         * lib/gl_sublist.h: Likewise.
65985         * lib/group-member.c: Likewise.
65986         * lib/group-member.h: Likewise.
65987         * lib/hard-locale.c: Likewise.
65988         * lib/hard-locale.h: Likewise.
65989         * lib/hash-pjw.c: Likewise.
65990         * lib/hash-pjw.h: Likewise.
65991         * lib/hash-triple.c: Likewise.
65992         * lib/hash.c: Likewise.
65993         * lib/hash.h: Likewise.
65994         * lib/human.c: Likewise.
65995         * lib/human.h: Likewise.
65996         * lib/i-ring.c: Likewise.
65997         * lib/i-ring.h: Likewise.
65998         * lib/idcache.c: Likewise.
65999         * lib/imaxabs.c: Likewise.
66000         * lib/imaxdiv.c: Likewise.
66001         * lib/inet_pton.c: Likewise.
66002         * lib/inet_pton.h: Likewise.
66003         * lib/intprops.h: Likewise.
66004         * lib/inttostr.c: Likewise.
66005         * lib/inttostr.h: Likewise.
66006         * lib/inttypes.in.h: Likewise.
66007         * lib/isapipe.c: Likewise.
66008         * lib/isdir.c: Likewise.
66009         * lib/isnan.c: Likewise.
66010         * lib/isnan.h: Likewise.
66011         * lib/isnanf.c: Likewise.
66012         * lib/isnanf.h: Likewise.
66013         * lib/isnanl-nolibm.h: Likewise.
66014         * lib/isnanl.c: Likewise.
66015         * lib/isnanl.h: Likewise.
66016         * lib/javacomp.c: Likewise.
66017         * lib/javacomp.h: Likewise.
66018         * lib/javaexec.c: Likewise.
66019         * lib/javaexec.h: Likewise.
66020         * lib/javaversion.c: Likewise.
66021         * lib/javaversion.h: Likewise.
66022         * lib/javaversion.java: Likewise.
66023         * lib/lbrkprop.h: Likewise.
66024         * lib/lchmod.h: Likewise.
66025         * lib/lchown.c: Likewise.
66026         * lib/ldexpl.c: Likewise.
66027         * lib/linebreak.c: Likewise.
66028         * lib/linebreak.h: Likewise.
66029         * lib/linebuffer.c: Likewise.
66030         * lib/linebuffer.h: Likewise.
66031         * lib/locale.in.h: Likewise.
66032         * lib/logl.c: Likewise.
66033         * lib/long-options.c: Likewise.
66034         * lib/long-options.h: Likewise.
66035         * lib/lstat.c: Likewise.
66036         * lib/lstat.h: Likewise.
66037         * lib/math.in.h: Likewise.
66038         * lib/mbchar.c: Likewise.
66039         * lib/mbchar.h: Likewise.
66040         * lib/mbfile.h: Likewise.
66041         * lib/mbiter.h: Likewise.
66042         * lib/mbscasecmp.c: Likewise.
66043         * lib/mbscasestr.c: Likewise.
66044         * lib/mbschr.c: Likewise.
66045         * lib/mbscspn.c: Likewise.
66046         * lib/mbslen.c: Likewise.
66047         * lib/mbsncasecmp.c: Likewise.
66048         * lib/mbsnlen.c: Likewise.
66049         * lib/mbspbrk.c: Likewise.
66050         * lib/mbspcasecmp.c: Likewise.
66051         * lib/mbsrchr.c: Likewise.
66052         * lib/mbssep.c: Likewise.
66053         * lib/mbsspn.c: Likewise.
66054         * lib/mbsstr.c: Likewise.
66055         * lib/mbstok_r.c: Likewise.
66056         * lib/mbswidth.c: Likewise.
66057         * lib/mbswidth.h: Likewise.
66058         * lib/mbuiter.h: Likewise.
66059         * lib/memcasecmp.c: Likewise.
66060         * lib/memcasecmp.h: Likewise.
66061         * lib/memchr.c: Likewise.
66062         * lib/memcmp.c: Likewise.
66063         * lib/memcoll.c: Likewise.
66064         * lib/memcoll.h: Likewise.
66065         * lib/memcpy.c: Likewise.
66066         * lib/memrchr.c: Likewise.
66067         * lib/mkancesdirs.c: Likewise.
66068         * lib/mkdir-p.c: Likewise.
66069         * lib/mkdir-p.h: Likewise.
66070         * lib/mkdir.c: Likewise.
66071         * lib/mkdirat.c: Likewise.
66072         * lib/mkdtemp.c: Likewise.
66073         * lib/mkstemp-safer.c: Likewise.
66074         * lib/mkstemp.c: Likewise.
66075         * lib/modechange.c: Likewise.
66076         * lib/modechange.h: Likewise.
66077         * lib/mountlist.c: Likewise.
66078         * lib/mountlist.h: Likewise.
66079         * lib/mpsort.c: Likewise.
66080         * lib/nanosleep.c: Likewise.
66081         * lib/obstack.c: Likewise.
66082         * lib/obstack.h: Likewise.
66083         * lib/open-safer.c: Likewise.
66084         * lib/open.c: Likewise.
66085         * lib/openat-die.c: Likewise.
66086         * lib/openat-priv.h: Likewise.
66087         * lib/openat-proc.c: Likewise.
66088         * lib/openat.c: Likewise.
66089         * lib/openat.h: Likewise.
66090         * lib/pagealign_alloc.c: Likewise.
66091         * lib/pagealign_alloc.h: Likewise.
66092         * lib/physmem.c: Likewise.
66093         * lib/physmem.h: Likewise.
66094         * lib/pipe-safer.c: Likewise.
66095         * lib/pipe.c: Likewise.
66096         * lib/pipe.h: Likewise.
66097         * lib/posixtm.c: Likewise.
66098         * lib/posixtm.h: Likewise.
66099         * lib/posixver.c: Likewise.
66100         * lib/printf-frexp.c: Likewise.
66101         * lib/printf-frexp.h: Likewise.
66102         * lib/printf-frexpl.c: Likewise.
66103         * lib/printf-frexpl.h: Likewise.
66104         * lib/printf.c: Likewise.
66105         * lib/progname.c: Likewise.
66106         * lib/progname.h: Likewise.
66107         * lib/progreloc.c: Likewise.
66108         * lib/putenv.c: Likewise.
66109         * lib/quote.c: Likewise.
66110         * lib/quote.h: Likewise.
66111         * lib/quotearg.c: Likewise.
66112         * lib/quotearg.h: Likewise.
66113         * lib/raise.c: Likewise.
66114         * lib/readline.c: Likewise.
66115         * lib/readline.h: Likewise.
66116         * lib/readlink.c: Likewise.
66117         * lib/readtokens.c: Likewise.
66118         * lib/readtokens.h: Likewise.
66119         * lib/readtokens0.c: Likewise.
66120         * lib/readtokens0.h: Likewise.
66121         * lib/readutmp.c: Likewise.
66122         * lib/readutmp.h: Likewise.
66123         * lib/realloc.c: Likewise.
66124         * lib/relocwrapper.c: Likewise.
66125         * lib/rename-dest-slash.c: Likewise.
66126         * lib/rename.c: Likewise.
66127         * lib/rmdir.c: Likewise.
66128         * lib/rpmatch.c: Likewise.
66129         * lib/safe-read.c: Likewise.
66130         * lib/safe-read.h: Likewise.
66131         * lib/safe-write.c: Likewise.
66132         * lib/safe-write.h: Likewise.
66133         * lib/same-inode.h: Likewise.
66134         * lib/same.c: Likewise.
66135         * lib/same.h: Likewise.
66136         * lib/save-cwd.c: Likewise.
66137         * lib/save-cwd.h: Likewise.
66138         * lib/savedir.c: Likewise.
66139         * lib/savedir.h: Likewise.
66140         * lib/savewd.c: Likewise.
66141         * lib/savewd.h: Likewise.
66142         * lib/search.in.h: Likewise.
66143         * lib/setenv.c: Likewise.
66144         * lib/setenv.h: Likewise.
66145         * lib/settime.c: Likewise.
66146         * lib/sh-quote.c: Likewise.
66147         * lib/sh-quote.h: Likewise.
66148         * lib/sig2str.c: Likewise.
66149         * lib/sig2str.h: Likewise.
66150         * lib/signal.in.h: Likewise.
66151         * lib/signbitd.c: Likewise.
66152         * lib/signbitf.c: Likewise.
66153         * lib/signbitl.c: Likewise.
66154         * lib/sigprocmask.c: Likewise.
66155         * lib/sincosl.c: Likewise.
66156         * lib/sleep.c: Likewise.
66157         * lib/sprintf.c: Likewise.
66158         * lib/sqrtl.c: Likewise.
66159         * lib/stat-time.h: Likewise.
66160         * lib/stdio--.h: Likewise.
66161         * lib/stdio-safer.h: Likewise.
66162         * lib/stdlib--.h: Likewise.
66163         * lib/stdlib-safer.h: Likewise.
66164         * lib/stdlib.in.h: Likewise.
66165         * lib/stpcpy.c: Likewise.
66166         * lib/stpncpy.c: Likewise.
66167         * lib/strchrnul.c: Likewise.
66168         * lib/strcspn.c: Likewise.
66169         * lib/strerror.c: Likewise.
66170         * lib/strftime.c: Likewise.
66171         * lib/strftime.h: Likewise.
66172         * lib/striconveh.c: Likewise.
66173         * lib/striconveh.h: Likewise.
66174         * lib/striconveha.c: Likewise.
66175         * lib/striconveha.h: Likewise.
66176         * lib/stripslash.c: Likewise.
66177         * lib/strnlen1.c: Likewise.
66178         * lib/strnlen1.h: Likewise.
66179         * lib/strtod.c: Likewise.
66180         * lib/strtoimax.c: Likewise.
66181         * lib/strtok_r.c: Likewise.
66182         * lib/strtol.c: Likewise.
66183         * lib/strtoll.c: Likewise.
66184         * lib/strtoul.c: Likewise.
66185         * lib/strtoull.c: Likewise.
66186         * lib/sysexits.in.h: Likewise.
66187         * lib/tempname.c: Likewise.
66188         * lib/tempname.h: Likewise.
66189         * lib/timespec.h: Likewise.
66190         * lib/tls.c: Likewise.
66191         * lib/tls.h: Likewise.
66192         * lib/tmpdir.c: Likewise.
66193         * lib/tmpdir.h: Likewise.
66194         * lib/tmpfile-safer.c: Likewise.
66195         * lib/tmpfile.c: Likewise.
66196         * lib/trigl.c: Likewise.
66197         * lib/trigl.h: Likewise.
66198         * lib/trim.c: Likewise.
66199         * lib/trim.h: Likewise.
66200         * lib/trunc.c: Likewise.
66201         * lib/truncf.c: Likewise.
66202         * lib/truncl.c: Likewise.
66203         * lib/tsearch.c: Likewise.
66204         * lib/unicodeio.c: Likewise.
66205         * lib/unicodeio.h: Likewise.
66206         * lib/unistd--.h: Likewise.
66207         * lib/unistd-safer.h: Likewise.
66208         * lib/unistdio/ulc-fprintf.c: Likewise.
66209         * lib/unistdio/ulc-vfprintf.c: Likewise.
66210         * lib/unlinkdir.c: Likewise.
66211         * lib/unlinkdir.h: Likewise.
66212         * lib/unlocked-io.h: Likewise.
66213         * lib/unsetenv.c: Likewise.
66214         * lib/userspec.c: Likewise.
66215         * lib/utime.c: Likewise.
66216         * lib/utimecmp.c: Likewise.
66217         * lib/utimecmp.h: Likewise.
66218         * lib/utimens.c: Likewise.
66219         * lib/verify.h: Likewise.
66220         * lib/verror.c: Likewise.
66221         * lib/verror.h: Likewise.
66222         * lib/version-etc-fsf.c: Likewise.
66223         * lib/version-etc.c: Likewise.
66224         * lib/version-etc.h: Likewise.
66225         * lib/vfprintf.c: Likewise.
66226         * lib/vprintf.c: Likewise.
66227         * lib/vsprintf.c: Likewise.
66228         * lib/w32spawn.h: Likewise.
66229         * lib/wait-process.c: Likewise.
66230         * lib/wait-process.h: Likewise.
66231         * lib/wcwidth.c: Likewise.
66232         * lib/write-any-file.c: Likewise.
66233         * lib/xalloc-die.c: Likewise.
66234         * lib/xalloc.h: Likewise.
66235         * lib/xasprintf.c: Likewise.
66236         * lib/xgetcwd.c: Likewise.
66237         * lib/xgetcwd.h: Likewise.
66238         * lib/xgetdomainname.c: Likewise.
66239         * lib/xgetdomainname.h: Likewise.
66240         * lib/xgethostname.c: Likewise.
66241         * lib/xmalloc.c: Likewise.
66242         * lib/xmalloca.c: Likewise.
66243         * lib/xmalloca.h: Likewise.
66244         * lib/xmemcoll.c: Likewise.
66245         * lib/xnanosleep.c: Likewise.
66246         * lib/xreadlink.c: Likewise.
66247         * lib/xreadlink.h: Likewise.
66248         * lib/xsetenv.c: Likewise.
66249         * lib/xsetenv.h: Likewise.
66250         * lib/xstriconv.c: Likewise.
66251         * lib/xstriconv.h: Likewise.
66252         * lib/xstrndup.c: Likewise.
66253         * lib/xstrndup.h: Likewise.
66254         * lib/xstrtod.c: Likewise.
66255         * lib/xstrtod.h: Likewise.
66256         * lib/xstrtol-error.c: Likewise.
66257         * lib/xstrtol.c: Likewise.
66258         * lib/xstrtol.h: Likewise.
66259         * lib/xtime.h: Likewise.
66260         * lib/xvasprintf.c: Likewise.
66261         * lib/xvasprintf.h: Likewise.
66262         * lib/yesno.c: Likewise.
66263         * lib/yesno.h: Likewise.
66264         * posix-modules: Likewise.
66265         * tests/test-alloca-opt.c: Likewise.
66266         * tests/test-arcfour.c: Likewise.
66267         * tests/test-arctwo.c: Likewise.
66268         * tests/test-argmatch.c: Likewise.
66269         * tests/test-argp-2.sh: Likewise.
66270         * tests/test-argp.c: Likewise.
66271         * tests/test-arpa_inet.c: Likewise.
66272         * tests/test-array_list.c: Likewise.
66273         * tests/test-array_oset.c: Likewise.
66274         * tests/test-atexit.c: Likewise.
66275         * tests/test-avltree_list.c: Likewise.
66276         * tests/test-avltree_oset.c: Likewise.
66277         * tests/test-avltreehash_list.c: Likewise.
66278         * tests/test-base64.c: Likewise.
66279         * tests/test-binary-io.c: Likewise.
66280         * tests/test-byteswap.c: Likewise.
66281         * tests/test-c-ctype.c: Likewise.
66282         * tests/test-c-strcasecmp.c: Likewise.
66283         * tests/test-c-strcasestr.c: Likewise.
66284         * tests/test-c-strncasecmp.c: Likewise.
66285         * tests/test-c-strstr.c: Likewise.
66286         * tests/test-canonicalize-lgpl.c: Likewise.
66287         * tests/test-canonicalize.c: Likewise.
66288         * tests/test-carray_list.c: Likewise.
66289         * tests/test-ceilf.c: Likewise.
66290         * tests/test-ceill.c: Likewise.
66291         * tests/test-count-one-bits.c: Likewise.
66292         * tests/test-crc.c: Likewise.
66293         * tests/test-dirname.c: Likewise.
66294         * tests/test-fbufmode.c: Likewise.
66295         * tests/test-fcntl.c: Likewise.
66296         * tests/test-fflush.c: Likewise.
66297         * tests/test-floorf.c: Likewise.
66298         * tests/test-floorl.c: Likewise.
66299         * tests/test-fopen.c: Likewise.
66300         * tests/test-fprintf-posix.c: Likewise.
66301         * tests/test-fprintf-posix.h: Likewise.
66302         * tests/test-fpurge.c: Likewise.
66303         * tests/test-freadable.c: Likewise.
66304         * tests/test-freadahead.c: Likewise.
66305         * tests/test-freading.c: Likewise.
66306         * tests/test-freopen.c: Likewise.
66307         * tests/test-frexp.c: Likewise.
66308         * tests/test-frexpl.c: Likewise.
66309         * tests/test-fseek.c: Likewise.
66310         * tests/test-fseeko.c: Likewise.
66311         * tests/test-fseterr.c: Likewise.
66312         * tests/test-fstrcmp.c: Likewise.
66313         * tests/test-ftell.c: Likewise.
66314         * tests/test-ftello.c: Likewise.
66315         * tests/test-fwritable.c: Likewise.
66316         * tests/test-fwriting.c: Likewise.
66317         * tests/test-getaddrinfo.c: Likewise.
66318         * tests/test-getpass.c: Likewise.
66319         * tests/test-gettimeofday.c: Likewise.
66320         * tests/test-hmac-md5.c: Likewise.
66321         * tests/test-hmac-sha1.c: Likewise.
66322         * tests/test-iconv.c: Likewise.
66323         * tests/test-iconvme.c: Likewise.
66324         * tests/test-inttypes.c: Likewise.
66325         * tests/test-isnan.c: Likewise.
66326         * tests/test-isnanf.c: Likewise.
66327         * tests/test-isnanl-nolibm.c: Likewise.
66328         * tests/test-isnanl.c: Likewise.
66329         * tests/test-isnanl.h: Likewise.
66330         * tests/test-ldexpl.c: Likewise.
66331         * tests/test-linked_list.c: Likewise.
66332         * tests/test-linkedhash_list.c: Likewise.
66333         * tests/test-locale.c: Likewise.
66334         * tests/test-localename.c: Likewise.
66335         * tests/test-lock.c: Likewise.
66336         * tests/test-lseek.c: Likewise.
66337         * tests/test-malloca.c: Likewise.
66338         * tests/test-math.c: Likewise.
66339         * tests/test-mbscasecmp.c: Likewise.
66340         * tests/test-mbscasestr1.c: Likewise.
66341         * tests/test-mbscasestr2.c: Likewise.
66342         * tests/test-mbscasestr3.c: Likewise.
66343         * tests/test-mbscasestr4.c: Likewise.
66344         * tests/test-mbschr.c: Likewise.
66345         * tests/test-mbscspn.c: Likewise.
66346         * tests/test-mbsncasecmp.c: Likewise.
66347         * tests/test-mbspbrk.c: Likewise.
66348         * tests/test-mbspcasecmp.c: Likewise.
66349         * tests/test-mbsrchr.c: Likewise.
66350         * tests/test-mbsspn.c: Likewise.
66351         * tests/test-mbsstr1.c: Likewise.
66352         * tests/test-mbsstr2.c: Likewise.
66353         * tests/test-mbsstr3.c: Likewise.
66354         * tests/test-md5.c: Likewise.
66355         * tests/test-memmem.c: Likewise.
66356         * tests/test-netinet_in.c: Likewise.
66357         * tests/test-open.c: Likewise.
66358         * tests/test-printf-frexp.c: Likewise.
66359         * tests/test-printf-frexpl.c: Likewise.
66360         * tests/test-printf-posix.c: Likewise.
66361         * tests/test-printf-posix.h: Likewise.
66362         * tests/test-rbtree_list.c: Likewise.
66363         * tests/test-rbtree_oset.c: Likewise.
66364         * tests/test-rbtreehash_list.c: Likewise.
66365         * tests/test-read-file.c: Likewise.
66366         * tests/test-rijndael.c: Likewise.
66367         * tests/test-search.c: Likewise.
66368         * tests/test-signbit.c: Likewise.
66369         * tests/test-sleep.c: Likewise.
66370         * tests/test-snprintf-posix.c: Likewise.
66371         * tests/test-snprintf-posix.h: Likewise.
66372         * tests/test-snprintf.c: Likewise.
66373         * tests/test-sprintf-posix.c: Likewise.
66374         * tests/test-sprintf-posix.h: Likewise.
66375         * tests/test-stat-time.c: Likewise.
66376         * tests/test-stdbool.c: Likewise.
66377         * tests/test-stdint.c: Likewise.
66378         * tests/test-stdio.c: Likewise.
66379         * tests/test-stdlib.c: Likewise.
66380         * tests/test-stpncpy.c: Likewise.
66381         * tests/test-strcasestr.c: Likewise.
66382         * tests/test-striconv.c: Likewise.
66383         * tests/test-striconveh.c: Likewise.
66384         * tests/test-striconveha.c: Likewise.
66385         * tests/test-string.c: Likewise.
66386         * tests/test-sys_select.c: Likewise.
66387         * tests/test-sys_socket.c: Likewise.
66388         * tests/test-sys_stat.c: Likewise.
66389         * tests/test-sys_time.c: Likewise.
66390         * tests/test-sysexits.c: Likewise.
66391         * tests/test-time.c: Likewise.
66392         * tests/test-tls.c: Likewise.
66393         * tests/test-trunc.c: Likewise.
66394         * tests/test-truncf.c: Likewise.
66395         * tests/test-truncl.c: Likewise.
66396         * tests/test-unistd.c: Likewise.
66397         * tests/test-vasnprintf-posix.c: Likewise.
66398         * tests/test-vasnprintf-posix2.c: Likewise.
66399         * tests/test-vasnprintf.c: Likewise.
66400         * tests/test-vasprintf-posix.c: Likewise.
66401         * tests/test-vasprintf.c: Likewise.
66402         * tests/test-verify.c: Likewise.
66403         * tests/test-vfprintf-posix.c: Likewise.
66404         * tests/test-vprintf-posix.c: Likewise.
66405         * tests/test-vsnprintf-posix.c: Likewise.
66406         * tests/test-vsnprintf.c: Likewise.
66407         * tests/test-vsprintf-posix.c: Likewise.
66408         * tests/test-wchar.c: Likewise.
66409         * tests/test-wctype.c: Likewise.
66410         * tests/test-wcwidth.c: Likewise.
66411         * tests/test-xstrtol.c: Likewise.
66412         * tests/test-xvasprintf.c: Likewise.
66413         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
66414         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
66415         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66416         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66417         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66418         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
66419         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66420         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66421         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66422         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
66423         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66424         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66425         * tests/uniname/test-uninames.c: Likewise.
66426         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
66427         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
66428         * tests/unistdio/test-u16-printf1.h: Likewise.
66429         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
66430         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
66431         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
66432         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
66433         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
66434         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
66435         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
66436         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
66437         * tests/unistdio/test-u32-printf1.h: Likewise.
66438         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
66439         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
66440         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
66441         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
66442         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
66443         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
66444         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
66445         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
66446         * tests/unistdio/test-u8-printf1.h: Likewise.
66447         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
66448         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
66449         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
66450         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
66451         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
66452         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
66453         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
66454         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
66455         * tests/unistdio/test-ulc-printf1.h: Likewise.
66456         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
66457         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
66458         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
66459         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
66460         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
66461         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
66462         * tests/uniwidth/test-u16-strwidth.c: Likewise.
66463         * tests/uniwidth/test-u16-width.c: Likewise.
66464         * tests/uniwidth/test-u32-strwidth.c: Likewise.
66465         * tests/uniwidth/test-u32-width.c: Likewise.
66466         * tests/uniwidth/test-u8-strwidth.c: Likewise.
66467         * tests/uniwidth/test-u8-width.c: Likewise.
66468         * tests/uniwidth/test-uc_width.c: Likewise.
66469         * config/srclist-update: Likewise.
66470         (fixlicense): Update to GPLv3+.
66471
66472         Change copyright notice from LGPLv2.1+ to LGPLv3+.
66473         * tests/test-tsearch.c: Change copyright notice.
66474
66475         Change copyright notice from LGPLv2.0+ to LGPLv3+.
66476         * lib/c-strcaseeq.h: Change copyright notice.
66477         * lib/streq.h: Likewise.
66478         * lib/uniconv.h: Likewise.
66479         * lib/uniconv/u-conv-from-enc.h: Likewise.
66480         * lib/uniconv/u-conv-to-enc.h: Likewise.
66481         * lib/uniconv/u-strconv-from-enc.h: Likewise.
66482         * lib/uniconv/u-strconv-to-enc.h: Likewise.
66483         * lib/uniconv/u16-conv-from-enc.c: Likewise.
66484         * lib/uniconv/u16-conv-to-enc.c: Likewise.
66485         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
66486         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
66487         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
66488         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
66489         * lib/uniconv/u32-conv-from-enc.c: Likewise.
66490         * lib/uniconv/u32-conv-to-enc.c: Likewise.
66491         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
66492         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
66493         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
66494         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
66495         * lib/uniconv/u8-conv-from-enc.c: Likewise.
66496         * lib/uniconv/u8-conv-to-enc.c: Likewise.
66497         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
66498         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
66499         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
66500         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
66501         * lib/uniname.h: Likewise.
66502         * lib/uniname/uniname.c: Likewise.
66503         * lib/unistdio.h: Likewise.
66504         * lib/unistdio/u-asnprintf.h: Likewise.
66505         * lib/unistdio/u-asprintf.h: Likewise.
66506         * lib/unistdio/u-printf-args.c: Likewise.
66507         * lib/unistdio/u-printf-args.h: Likewise.
66508         * lib/unistdio/u-printf-parse.h: Likewise.
66509         * lib/unistdio/u-snprintf.h: Likewise.
66510         * lib/unistdio/u-sprintf.h: Likewise.
66511         * lib/unistdio/u-vasprintf.h: Likewise.
66512         * lib/unistdio/u-vsnprintf.h: Likewise.
66513         * lib/unistdio/u-vsprintf.h: Likewise.
66514         * lib/unistdio/u16-asnprintf.c: Likewise.
66515         * lib/unistdio/u16-asprintf.c: Likewise.
66516         * lib/unistdio/u16-printf-parse.c: Likewise.
66517         * lib/unistdio/u16-snprintf.c: Likewise.
66518         * lib/unistdio/u16-sprintf.c: Likewise.
66519         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
66520         * lib/unistdio/u16-u16-asprintf.c: Likewise.
66521         * lib/unistdio/u16-u16-snprintf.c: Likewise.
66522         * lib/unistdio/u16-u16-sprintf.c: Likewise.
66523         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
66524         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
66525         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
66526         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
66527         * lib/unistdio/u16-vasnprintf.c: Likewise.
66528         * lib/unistdio/u16-vasprintf.c: Likewise.
66529         * lib/unistdio/u16-vsnprintf.c: Likewise.
66530         * lib/unistdio/u16-vsprintf.c: Likewise.
66531         * lib/unistdio/u32-asnprintf.c: Likewise.
66532         * lib/unistdio/u32-asprintf.c: Likewise.
66533         * lib/unistdio/u32-printf-parse.c: Likewise.
66534         * lib/unistdio/u32-snprintf.c: Likewise.
66535         * lib/unistdio/u32-sprintf.c: Likewise.
66536         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
66537         * lib/unistdio/u32-u32-asprintf.c: Likewise.
66538         * lib/unistdio/u32-u32-snprintf.c: Likewise.
66539         * lib/unistdio/u32-u32-sprintf.c: Likewise.
66540         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
66541         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
66542         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
66543         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
66544         * lib/unistdio/u32-vasnprintf.c: Likewise.
66545         * lib/unistdio/u32-vasprintf.c: Likewise.
66546         * lib/unistdio/u32-vsnprintf.c: Likewise.
66547         * lib/unistdio/u32-vsprintf.c: Likewise.
66548         * lib/unistdio/u8-asnprintf.c: Likewise.
66549         * lib/unistdio/u8-asprintf.c: Likewise.
66550         * lib/unistdio/u8-printf-parse.c: Likewise.
66551         * lib/unistdio/u8-snprintf.c: Likewise.
66552         * lib/unistdio/u8-sprintf.c: Likewise.
66553         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
66554         * lib/unistdio/u8-u8-asprintf.c: Likewise.
66555         * lib/unistdio/u8-u8-snprintf.c: Likewise.
66556         * lib/unistdio/u8-u8-sprintf.c: Likewise.
66557         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
66558         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
66559         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
66560         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
66561         * lib/unistdio/u8-vasnprintf.c: Likewise.
66562         * lib/unistdio/u8-vasprintf.c: Likewise.
66563         * lib/unistdio/u8-vsnprintf.c: Likewise.
66564         * lib/unistdio/u8-vsprintf.c: Likewise.
66565         * lib/unistdio/ulc-asnprintf.c: Likewise.
66566         * lib/unistdio/ulc-asprintf.c: Likewise.
66567         * lib/unistdio/ulc-printf-parse.c: Likewise.
66568         * lib/unistdio/ulc-snprintf.c: Likewise.
66569         * lib/unistdio/ulc-sprintf.c: Likewise.
66570         * lib/unistdio/ulc-vasnprintf.c: Likewise.
66571         * lib/unistdio/ulc-vasprintf.c: Likewise.
66572         * lib/unistdio/ulc-vsnprintf.c: Likewise.
66573         * lib/unistdio/ulc-vsprintf.c: Likewise.
66574         * lib/unistr.h: Likewise.
66575         * lib/unistr/u-cpy-alloc.h: Likewise.
66576         * lib/unistr/u-cpy.h: Likewise.
66577         * lib/unistr/u-endswith.h: Likewise.
66578         * lib/unistr/u-move.h: Likewise.
66579         * lib/unistr/u-set.h: Likewise.
66580         * lib/unistr/u-startswith.h: Likewise.
66581         * lib/unistr/u-stpcpy.h: Likewise.
66582         * lib/unistr/u-stpncpy.h: Likewise.
66583         * lib/unistr/u-strcat.h: Likewise.
66584         * lib/unistr/u-strcpy.h: Likewise.
66585         * lib/unistr/u-strcspn.h: Likewise.
66586         * lib/unistr/u-strdup.h: Likewise.
66587         * lib/unistr/u-strlen.h: Likewise.
66588         * lib/unistr/u-strncat.h: Likewise.
66589         * lib/unistr/u-strncpy.h: Likewise.
66590         * lib/unistr/u-strnlen.h: Likewise.
66591         * lib/unistr/u-strpbrk.h: Likewise.
66592         * lib/unistr/u-strspn.h: Likewise.
66593         * lib/unistr/u-strstr.h: Likewise.
66594         * lib/unistr/u-strtok.h: Likewise.
66595         * lib/unistr/u16-check.c: Likewise.
66596         * lib/unistr/u16-chr.c: Likewise.
66597         * lib/unistr/u16-cmp.c: Likewise.
66598         * lib/unistr/u16-cpy-alloc.c: Likewise.
66599         * lib/unistr/u16-cpy.c: Likewise.
66600         * lib/unistr/u16-endswith.c: Likewise.
66601         * lib/unistr/u16-mblen.c: Likewise.
66602         * lib/unistr/u16-mbsnlen.c: Likewise.
66603         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66604         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66605         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66606         * lib/unistr/u16-mbtouc.c: Likewise.
66607         * lib/unistr/u16-mbtoucr.c: Likewise.
66608         * lib/unistr/u16-move.c: Likewise.
66609         * lib/unistr/u16-next.c: Likewise.
66610         * lib/unistr/u16-prev.c: Likewise.
66611         * lib/unistr/u16-set.c: Likewise.
66612         * lib/unistr/u16-startswith.c: Likewise.
66613         * lib/unistr/u16-stpcpy.c: Likewise.
66614         * lib/unistr/u16-stpncpy.c: Likewise.
66615         * lib/unistr/u16-strcat.c: Likewise.
66616         * lib/unistr/u16-strchr.c: Likewise.
66617         * lib/unistr/u16-strcmp.c: Likewise.
66618         * lib/unistr/u16-strcpy.c: Likewise.
66619         * lib/unistr/u16-strcspn.c: Likewise.
66620         * lib/unistr/u16-strdup.c: Likewise.
66621         * lib/unistr/u16-strlen.c: Likewise.
66622         * lib/unistr/u16-strmblen.c: Likewise.
66623         * lib/unistr/u16-strmbtouc.c: Likewise.
66624         * lib/unistr/u16-strncat.c: Likewise.
66625         * lib/unistr/u16-strncmp.c: Likewise.
66626         * lib/unistr/u16-strncpy.c: Likewise.
66627         * lib/unistr/u16-strnlen.c: Likewise.
66628         * lib/unistr/u16-strpbrk.c: Likewise.
66629         * lib/unistr/u16-strrchr.c: Likewise.
66630         * lib/unistr/u16-strspn.c: Likewise.
66631         * lib/unistr/u16-strstr.c: Likewise.
66632         * lib/unistr/u16-strtok.c: Likewise.
66633         * lib/unistr/u16-to-u32.c: Likewise.
66634         * lib/unistr/u16-to-u8.c: Likewise.
66635         * lib/unistr/u16-uctomb-aux.c: Likewise.
66636         * lib/unistr/u16-uctomb.c: Likewise.
66637         * lib/unistr/u32-check.c: Likewise.
66638         * lib/unistr/u32-chr.c: Likewise.
66639         * lib/unistr/u32-cmp.c: Likewise.
66640         * lib/unistr/u32-cpy-alloc.c: Likewise.
66641         * lib/unistr/u32-cpy.c: Likewise.
66642         * lib/unistr/u32-endswith.c: Likewise.
66643         * lib/unistr/u32-mblen.c: Likewise.
66644         * lib/unistr/u32-mbsnlen.c: Likewise.
66645         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66646         * lib/unistr/u32-mbtouc.c: Likewise.
66647         * lib/unistr/u32-mbtoucr.c: Likewise.
66648         * lib/unistr/u32-move.c: Likewise.
66649         * lib/unistr/u32-next.c: Likewise.
66650         * lib/unistr/u32-prev.c: Likewise.
66651         * lib/unistr/u32-set.c: Likewise.
66652         * lib/unistr/u32-startswith.c: Likewise.
66653         * lib/unistr/u32-stpcpy.c: Likewise.
66654         * lib/unistr/u32-stpncpy.c: Likewise.
66655         * lib/unistr/u32-strcat.c: Likewise.
66656         * lib/unistr/u32-strchr.c: Likewise.
66657         * lib/unistr/u32-strcmp.c: Likewise.
66658         * lib/unistr/u32-strcpy.c: Likewise.
66659         * lib/unistr/u32-strcspn.c: Likewise.
66660         * lib/unistr/u32-strdup.c: Likewise.
66661         * lib/unistr/u32-strlen.c: Likewise.
66662         * lib/unistr/u32-strmblen.c: Likewise.
66663         * lib/unistr/u32-strmbtouc.c: Likewise.
66664         * lib/unistr/u32-strncat.c: Likewise.
66665         * lib/unistr/u32-strncmp.c: Likewise.
66666         * lib/unistr/u32-strncpy.c: Likewise.
66667         * lib/unistr/u32-strnlen.c: Likewise.
66668         * lib/unistr/u32-strpbrk.c: Likewise.
66669         * lib/unistr/u32-strrchr.c: Likewise.
66670         * lib/unistr/u32-strspn.c: Likewise.
66671         * lib/unistr/u32-strstr.c: Likewise.
66672         * lib/unistr/u32-strtok.c: Likewise.
66673         * lib/unistr/u32-to-u16.c: Likewise.
66674         * lib/unistr/u32-to-u8.c: Likewise.
66675         * lib/unistr/u32-uctomb.c: Likewise.
66676         * lib/unistr/u8-check.c: Likewise.
66677         * lib/unistr/u8-chr.c: Likewise.
66678         * lib/unistr/u8-cmp.c: Likewise.
66679         * lib/unistr/u8-cpy-alloc.c: Likewise.
66680         * lib/unistr/u8-cpy.c: Likewise.
66681         * lib/unistr/u8-endswith.c: Likewise.
66682         * lib/unistr/u8-mblen.c: Likewise.
66683         * lib/unistr/u8-mbsnlen.c: Likewise.
66684         * lib/unistr/u8-mbtouc-aux.c: Likewise.
66685         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66686         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66687         * lib/unistr/u8-mbtouc.c: Likewise.
66688         * lib/unistr/u8-mbtoucr.c: Likewise.
66689         * lib/unistr/u8-move.c: Likewise.
66690         * lib/unistr/u8-next.c: Likewise.
66691         * lib/unistr/u8-prev.c: Likewise.
66692         * lib/unistr/u8-set.c: Likewise.
66693         * lib/unistr/u8-startswith.c: Likewise.
66694         * lib/unistr/u8-stpcpy.c: Likewise.
66695         * lib/unistr/u8-stpncpy.c: Likewise.
66696         * lib/unistr/u8-strcat.c: Likewise.
66697         * lib/unistr/u8-strchr.c: Likewise.
66698         * lib/unistr/u8-strcmp.c: Likewise.
66699         * lib/unistr/u8-strcpy.c: Likewise.
66700         * lib/unistr/u8-strcspn.c: Likewise.
66701         * lib/unistr/u8-strdup.c: Likewise.
66702         * lib/unistr/u8-strlen.c: Likewise.
66703         * lib/unistr/u8-strmblen.c: Likewise.
66704         * lib/unistr/u8-strmbtouc.c: Likewise.
66705         * lib/unistr/u8-strncat.c: Likewise.
66706         * lib/unistr/u8-strncmp.c: Likewise.
66707         * lib/unistr/u8-strncpy.c: Likewise.
66708         * lib/unistr/u8-strnlen.c: Likewise.
66709         * lib/unistr/u8-strpbrk.c: Likewise.
66710         * lib/unistr/u8-strrchr.c: Likewise.
66711         * lib/unistr/u8-strspn.c: Likewise.
66712         * lib/unistr/u8-strstr.c: Likewise.
66713         * lib/unistr/u8-strtok.c: Likewise.
66714         * lib/unistr/u8-to-u16.c: Likewise.
66715         * lib/unistr/u8-to-u32.c: Likewise.
66716         * lib/unistr/u8-uctomb-aux.c: Likewise.
66717         * lib/unistr/u8-uctomb.c: Likewise.
66718         * lib/unitypes.h: Likewise.
66719         * lib/uniwidth.h: Likewise.
66720         * lib/uniwidth/cjk.h: Likewise.
66721         * lib/uniwidth/u16-strwidth.c: Likewise.
66722         * lib/uniwidth/u16-width.c: Likewise.
66723         * lib/uniwidth/u32-strwidth.c: Likewise.
66724         * lib/uniwidth/u32-width.c: Likewise.
66725         * lib/uniwidth/u8-strwidth.c: Likewise.
66726         * lib/uniwidth/u8-width.c: Likewise.
66727         * lib/uniwidth/width.c: Likewise.
66728
66729 2007-10-07  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
66732         The file is still under LGPL (see modules/inttypes).
66733
66734 2007-10-06  Bruno Haible  <bruno@clisp.org>
66735
66736         * modules/trunc (Dependencies): Add 'extensions'.
66737         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
66738         Reported by Ben Pfaff <blp@gnu.org>.
66739
66740 2007-10-06  Bruno Haible  <bruno@clisp.org>
66741
66742         * modules/freopen-tests: New file.
66743         * tests/test-freopen.c: New file.
66744
66745         * modules/fopen-tests: New file.
66746         * tests/test-fopen.c: New file.
66747
66748         * modules/fopen: New file.
66749         * lib/fopen.c: New file.
66750         * m4/fopen.m4: New file.
66751         * modules/freopen: New file.
66752         * lib/freopen.c: New file.
66753         * m4/freopen.m4: New file.
66754         * lib/stdio.in.h (fopen, freopen): New declarations.
66755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
66756         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66757         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
66758         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
66759         * doc/functions/fopen.texi: Mention the 'fopen' module.
66760         * doc/functions/freopen.texi: Mention the 'freopen' module.
66761
66762 2007-10-06  Bruno Haible  <bruno@clisp.org>
66763
66764         * modules/open-tests: New file.
66765         * tests/test-open.c: New file.
66766
66767         * modules/open: New file.
66768         * lib/open.c: New file.
66769         * m4/open.m4: New file.
66770         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
66771         lib/open.c does.
66772         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
66773         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
66774         macros.
66775         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
66776         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
66777         REPLACE_OPEN.
66778         * doc/functions/open.texi: Mention the 'open' module.
66779
66780 2007-10-04  Bruno Haible  <bruno@clisp.org>
66781
66782         * modules/ceill-tests: New file.
66783         * tests/test-ceill.c: New file.
66784
66785         * modules/ceill: New file.
66786         * lib/ceill.c: Replace entire file.
66787         * m4/ceill.m4: New file.
66788         * lib/math.in.h (ceill): Replace declaration.
66789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
66790         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
66791         * doc/functions/ceill.texi: Mention the 'ceill' module.
66792         * modules/mathl (Files): Remove lib/ceill.c.
66793         (Depends-on): Add ceill.
66794
66795 2007-10-04  Bruno Haible  <bruno@clisp.org>
66796
66797         * modules/ceilf-tests: New file.
66798         * tests/test-ceilf.c: New file.
66799
66800         * modules/ceilf: New file.
66801         * lib/ceil.c: New file.
66802         * lib/ceilf.c: New file.
66803         * m4/ceilf.m4: New file.
66804         * lib/math.in.h (ceilf): New declaration.
66805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
66806         HAVE_DECL_CEILF.
66807         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
66808         HAVE_DECL_CEILF.
66809         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
66810
66811 2007-10-04  Bruno Haible  <bruno@clisp.org>
66812
66813         * modules/floorl-tests: New file.
66814         * tests/test-floorl.c: New file.
66815
66816         * modules/floorl: New file.
66817         * lib/floorl.c: Replace entire file.
66818         * m4/floorl.m4: New file.
66819         * lib/math.in.h (floorl): Replace declaration.
66820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
66821         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
66822         * doc/functions/floorl.texi: Mention the 'floorl' module.
66823         * modules/mathl (Files): Remove lib/floorl.c.
66824         (Depends-on): Add floorl.
66825
66826 2007-10-04  Bruno Haible  <bruno@clisp.org>
66827
66828         * modules/floorf-tests: New file.
66829         * tests/test-floorf.c: New file.
66830
66831         * modules/floorf: New file.
66832         * lib/floor.c: New file.
66833         * lib/floorf.c: New file.
66834         * m4/floorf.m4: New file.
66835         * lib/math.in.h (floorf): New declaration.
66836         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66837         HAVE_DECL_FLOORF.
66838         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66839         HAVE_DECL_FLOORF.
66840         * doc/functions/floorf.texi: Mention the 'floorf' module.
66841
66842 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66843             Bruno Haible  <bruno@clisp.org>
66844
66845         Advertise for the Git server instead of the CVS server.
66846         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66847         repository instead of the CVS one.
66848         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66849         about all VCS systems generically.
66850         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66851
66852 2007-10-04  Bruno Haible  <bruno@clisp.org>
66853
66854         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66855         means.
66856         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66857
66858 2007-10-04  Bruno Haible  <bruno@clisp.org>
66859
66860         * modules/truncl-tests: New file.
66861         * tests/test-truncl.c: New file.
66862
66863         * modules/truncl: New file.
66864         * lib/truncl.c: New file.
66865         * m4/truncl.m4: New file.
66866         * lib/math.in.h (truncl): New declaration.
66867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66868         HAVE_DECL_TRUNCL.
66869         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66870         HAVE_DECL_TRUNCL.
66871         * doc/functions/truncl.texi: Mention the 'truncl' module.
66872
66873 2007-10-04  Bruno Haible  <bruno@clisp.org>
66874
66875         * modules/truncf-tests: New file.
66876         * tests/test-truncf.c: New file.
66877
66878         * modules/truncf: New file.
66879         * lib/trunc.c: Make paramerizable through USE_* macros.
66880         * lib/truncf.c: New file.
66881         * m4/truncf.m4: New file.
66882         * lib/math.in.h (truncf): New declaration.
66883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66884         HAVE_DECL_TRUNCF.
66885         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66886         HAVE_DECL_TRUNCF.
66887         * doc/functions/truncf.texi: Mention the 'truncf' module.
66888
66889 2007-10-03  Bruno Haible  <bruno@clisp.org>
66890
66891         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66892         augmentation also for tests modules.
66893         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66894         * modules/atexit-tests (Makefile.am): Likewise.
66895         * modules/binary-io-tests (Makefile.am): Likewise.
66896         * modules/c-strcase-tests (Makefile.am): Likewise.
66897         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66898         * modules/canonicalize-tests (Makefile.am): Likewise.
66899         * modules/closein-tests (Makefile.am): Likewise.
66900         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66901         * modules/freadahead-tests (Makefile.am): Likewise.
66902         * modules/fseek-tests (Makefile.am): Likewise.
66903         * modules/fseeko-tests (Makefile.am): Likewise.
66904         * modules/ftell-tests (Makefile.am): Likewise.
66905         * modules/ftello-tests (Makefile.am): Likewise.
66906         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66907         * modules/isnanl-tests (Makefile.am): Likewise.
66908         * modules/lseek-tests (Makefile.am): Likewise.
66909         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66910         * modules/mbscasestr-tests (Makefile.am): Likewise.
66911         * modules/mbschr-tests (Makefile.am): Likewise.
66912         * modules/mbscspn-tests (Makefile.am): Likewise.
66913         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66914         * modules/mbspbrk-tests (Makefile.am): Likewise.
66915         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66916         * modules/mbsrchr-tests (Makefile.am): Likewise.
66917         * modules/mbsspn-tests (Makefile.am): Likewise.
66918         * modules/mbsstr-tests (Makefile.am): Likewise.
66919         * modules/printf-posix-tests (Makefile.am): Likewise.
66920         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66921         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66922         * modules/tsearch-tests (Makefile.am): Likewise.
66923         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66924         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66925         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66926         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66927         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66928         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66929         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66930         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66931         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66932         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66933         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66934         * modules/xstrtol-tests (Makefile.am): Likewise.
66935         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66936         * modules/yesno-tests (Makefile.am): Likewise.
66937
66938 2007-10-03  Bruno Haible  <bruno@clisp.org>
66939
66940         * modules/trunc-tests: New file.
66941         * tests/test-trunc.c: New file.
66942
66943         * modules/trunc: New file.
66944         * lib/trunc.c: New file.
66945         * m4/trunc.m4: New file.
66946         * lib/math.in.h (trunc): New declaration.
66947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66948         HAVE_DECL_TRUNC.
66949         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66950         HAVE_DECL_TRUNC.
66951         * doc/functions/trunc.texi: Mention the 'trunc' module.
66952
66953 2007-10-03  Bruno Haible  <bruno@clisp.org>
66954
66955         * tests/test-fpending.c: New file, mostly copied
66956         from coreutils/lib/t-fpending.c.
66957         * modules/fpending-tests: New file.
66958
66959 2007-10-03  Bruno Haible  <bruno@clisp.org>
66960
66961         Port the stdio extensions to QNX (untested).
66962         * lib/fseterr.c (fseterr): Add support for QNX.
66963         * lib/fbufmode.c (fbufmode): Likewise.
66964         * lib/freadable.c (freadable): Likewise.
66965         * lib/fwritable.c (fwritable): Likewise.
66966         * lib/freading.c (freading): Likewise.
66967         * lib/fwriting.c (fwriting): Likewise.
66968         * lib/freadahead.c (freadahed): Likewise.
66969         * lib/fpurge.c (fpurge): Likewise.
66970         * lib/fseeko.c (rpl_fseeko): Likewise.
66971
66972 2007-10-03  Bruno Haible  <bruno@clisp.org>
66973             Jim Meyering  <jim@meyering.net>
66974             Eric Blake  <ebb9@byu.net>
66975
66976         * doc/relocatable.texi: Use @command instead of @program.
66977
66978 2007-10-02  Jim Meyering  <jim@meyering.net>
66979
66980         Perform one more "_.h" -> ".in.h" substitution.
66981         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66982         instead of unistd_.h here, too.
66983
66984 2007-10-01  Bruno Haible  <bruno@clisp.org>
66985
66986         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66987         Needed for the alloca-opt module.
66988
66989 2007-09-30  Bruno Haible  <bruno@clisp.org>
66990
66991         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66992         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66993         alloca_.h.
66994         * lib/argz.in.h: Renamed from lib/argz_.h.
66995         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66996         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66997         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66998         byteswap_.h.
66999         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67000         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67001         dirent_.h.
67002         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67003         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67004         fcntl_.h.
67005         * lib/float.in.h: Renamed from lib/float_.h.
67006         * modules/float (Files, Makefile.am): Use float.in.h instead of
67007         float_.h.
67008         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67009         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67010         fnmatch_.h.
67011         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67012         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67013         getopt_.h.
67014         * lib/glob.in.h: Renamed from lib/glob_.h.
67015         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67016         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67017         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67018         iconv_.h.
67019         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67020         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67021         inttypes_.h.
67022         * lib/locale.in.h: Renamed from lib/locale_.h.
67023         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67024         locale_.h.
67025         * lib/math.in.h: Renamed from lib/math_.h.
67026         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67027         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67028         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67029         of netinet_in_.h. Add dependency.
67030         * lib/poll.in.h: Renamed from lib/poll_.h.
67031         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67032         * lib/search.in.h: Renamed from lib/search_.h.
67033         * modules/search (Files, Makefile.am): Use search.in.h instead of
67034         search_.h.
67035         * lib/signal.in.h: Renamed from lib/signal_.h.
67036         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67037         _signal.h.
67038         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67039         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67040         stdbool_.h.
67041         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67042         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67043         stdint_.h.
67044         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67045         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67046         stdio_.h.
67047         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67048         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67049         stdlib_.h.
67050         * lib/string.in.h: Renamed from lib/string_.h.
67051         * modules/string (Files, Makefile.am): Use string.in.h instead of
67052         string_.h.
67053         * doc/gnulib-tool.texi (Initial import): Update.
67054         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67055         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67056         of sys_select_.h. Add dependency.
67057         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67058         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67059         of sys_socket_.h.
67060         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67061         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67062         sys_stat_.h.
67063         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
67064         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
67065         sys_time_.h.
67066         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
67067         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
67068         sysexits_.h.
67069         * lib/time.in.h: Renamed from lib/time_.h.
67070         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
67071         * lib/unistd.in.h: Renamed from lib/unistd_.h.
67072         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
67073         unistd_.h.
67074         * lib/wchar.in.h: Renamed from lib/wchar_.h.
67075         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
67076         wchar_.h.
67077         * lib/wctype.in.h: Renamed from lib/wctype_.h.
67078         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
67079         wctype_.h.
67080         * build-aux/bootstrap (slurp): Update.
67081         * lib/.cppi-disable: Update.
67082
67083 2007-09-30  Bruno Haible  <bruno@clisp.org>
67084
67085         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
67086         Needed on BeOS.
67087
67088 2007-09-30  Bruno Haible  <bruno@clisp.org>
67089
67090         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
67091
67092 2007-09-29  Bruno Haible  <bruno@clisp.org>
67093
67094         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
67095
67096 2007-09-29  Bruno Haible  <bruno@clisp.org>
67097
67098         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
67099         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
67100         * build-aux/install-reloc: Compile also areadlink.c.
67101         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
67102
67103 2007-09-29  Bruno Haible  <bruno@clisp.org>
67104
67105         * gnulib-tool (func_emit_initmacro_done): Indentation.
67106
67107 2007-09-29  Bruno Haible  <bruno@clisp.org>
67108
67109         * README: Add CVS checkout update instructions.
67110         Info from Bob Proulx <bob@proulx.com>.
67111
67112 2007-09-28  Eric Blake  <ebb9@byu.net>
67113
67114         Provide move-if-change.
67115         * build-aux/move-if-change: New file, based on best practice
67116         rather than any canonical upstream location.
67117
67118 2007-09-28  Jim Meyering  <jim@meyering.net>
67119
67120         Fix canonicalize loop-detection corner case.
67121         Do not attempt to stat the symlink values stored via seen_triple.
67122         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
67123         on linux-2.6.18, (but not 2.6.22).
67124         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
67125         triple_compare.  The former compares dev,ino,filename, while the latter
67126         would actually stat dirname(filename) when dev and ino were equal.
67127         * lib/hash-triple.c: Install <string.h>.
67128         (STREQ): Define.
67129         (triple_compare_ino_str): New function.
67130         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
67131
67132 2007-09-28  Eric Blake  <ebb9@byu.net>
67133
67134         Enforce that AC_REPLACE_FUNCS files exist.
67135         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
67136         override check for typos.
67137
67138         Fix test-closein on Solaris 10.
67139         * tests/test-closein.c (main): Don't assume stdin can be inherited
67140         closed on all systems.
67141         * tests/test-closein.sh: Likewise.
67142         Reported by Piotr Tarnowski.
67143
67144 2007-09-28  Jim Meyering  <jim@meyering.net>
67145
67146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
67147
67148 2007-09-27  Jim Meyering  <jim@meyering.net>
67149
67150         canonicalize: Avoid a false-positive cycle failure.
67151         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
67152         Sort.  Remove cycle-check.
67153         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
67154         not cycle-check.h.
67155         (seen_triple): New function.
67156         (canonicalize_filename_mode): Use it instead of cycle-check.
67157         * tests/test-canonicalize.c: Add a test for this bug.
67158         * tests/test-canonicalize.sh: Set up and run the test.
67159
67160         New module, file-set, from coreutils.
67161         * modules/file-set: Define it.
67162         * lib/file-set.c, lib/file-set.h: Implement.
67163
67164         New module, hash-triple, from coreutils.
67165         * modules/hash-triple: Define it.
67166         * lib/hash-triple.c, lib/hash-triple.h: Implement.
67167
67168 2007-09-25  Eric Blake  <ebb9@byu.net>
67169
67170         Fix strerror on Interix.
67171         * lib/string_.h (strerror): Declare replacement.
67172         * doc/functions/strerror.texi (strerror): Document the Interix
67173         shortcoming.
67174         * modules/string (Makefile.am): Support new hooks.
67175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
67176         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
67177         gl_FUNC_STRERROR_SEPARATE.
67178         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
67179         * lib/strerror.c (rpl_strerror): Provide replacement.
67180         * modules/strerror (Depends-on): Add string.
67181         (configure.ac): Detect use of module.
67182         * tests/test-strerror.c: New file.
67183         * modules/strerror-tests: New test module.
67184         * modules/argp (Depends-on): Add strerror.
67185         * modules/error (Depends-on): Likewise.
67186         Reported by Martin Koeppe.
67187
67188 2007-09-24  Bruno Haible  <bruno@clisp.org>
67189
67190         * README: Update git instructions.
67191
67192 2007-09-24  Eric Blake  <ebb9@byu.net>
67193
67194         Revert fpending breakage from 2007-09-08.
67195         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
67196         __fpending.c.
67197
67198 2007-09-24  Jim Meyering  <jim@meyering.net>
67199
67200         filenamecat.c: Add a test.
67201         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
67202         showing how the function works when DIR is the empty string.
67203
67204 2007-09-21  Simon Josefsson  <simon@josefsson.org>
67205
67206         * tests/test-canonicalize.sh: Turn on executable bit.
67207
67208 2007-09-19  Eric Blake  <ebb9@byu.net>
67209
67210         * README: Update CVS instructions.
67211
67212 2007-09-18  Bruno Haible  <bruno@clisp.org>
67213
67214         * modules/areadlink: New file.
67215         * lib/areadlink.h (areadlink): New declaration.
67216         * lib/areadlink.c: New file, based on lib/xreadlink.c.
67217
67218 2007-09-17  Jim Meyering  <jim@meyering.net>
67219
67220         * lib/savewd.c (ESTALE) [!defined]: Define.
67221         Reported to be required on Interix by Martin Koeppe.
67222
67223 2007-09-17  Bruno Haible  <bruno@clisp.org>
67224
67225         * gnulib-tool (func_version): Use $version.
67226
67227 2007-09-16  Bruno Haible  <bruno@clisp.org>
67228
67229         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
67230         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
67231         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
67232         Reported by Greg Schafer <gschafer@zip.com.au>.
67233
67234 2007-09-15  Bruno Haible  <bruno@clisp.org>
67235
67236         * gnulib-tool (sed): Try a little harder to make bash understand the
67237         alias.
67238         Reported by Bruce Korb <bruce.korb@gmail.com>.
67239
67240 2007-09-13  Eric Blake  <ebb9@byu.net>
67241
67242         * ChangeLog: Remove conflict markers.
67243
67244 2007-09-13  Simon Josefsson  <simon@josefsson.org>
67245
67246         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
67247         Reported by Bruno Haible <bruno@clisp.org>.
67248
67249 2007-09-12  Bruno Haible  <bruno@clisp.org>
67250
67251         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
67252         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
67253         is not defined.
67254
67255 2007-09-12  Eric Blake  <ebb9@byu.net>
67256
67257         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
67258         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
67259         Autoconf definition.
67260         * modules/euidaccess (Depends-on): Add extensions, for
67261         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
67262         * modules/fnmatch (Depends-on): Likewise.
67263         * modules/getaddrinfo (Depends-on): Likewise.
67264         * modules/getdelim (Depends-on): Likewise.
67265         * modules/getline (Depends-on): Likewise.
67266         * modules/getsubopt (Depends-on): Likewise.
67267         * modules/gettext (Depends-on): Likewise.
67268         * modules/group-member (Depends-on): Likewise.
67269         * modules/mbchar (Depends-on): Likewise.
67270         * modules/memmem (Depends-on): Likewise.
67271         * modules/mempcpy (Depends-on): Likewise.
67272         * modules/memrchr (Depends-on): Likewise.
67273         * modules/pagealign_alloc (Depends-on): Likewise.
67274         * modules/readutmp (Depends-on): Likewise.
67275         * modules/stpcpy (Depends-on): Likewise.
67276         * modules/stpncpy (Depends-on): Likewise.
67277         * modules/strchrnul (Depends-on): Likewise.
67278         * modules/strndup (Depends-on): Likewise.
67279         * modules/strsep (Depends-on): Likewise.
67280         * modules/strverscmp (Depends-on): Likewise.
67281         * modules/vasprintf (Depends-on): Likewise.
67282         * modules/wcwidth (Depends-on): Likewise.
67283         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
67284         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
67285         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
67286         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
67287         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
67288         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67289         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
67290         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67291         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
67292         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
67293         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
67294         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
67295         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
67296         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
67297         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
67298         * m4/readutmp.m4 (gl_READUTMP): Likewise.
67299         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67300         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
67301         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
67303         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
67304         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
67305         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
67306         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
67307         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
67308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67309         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
67310         so that lock.m4 can be used in gettext without extensions module.
67311
67312 2007-09-11  Bruno Haible  <bruno@clisp.org>
67313
67314         * m4/isc-posix.m4: Remove file.
67315         Suggested by Eric Blake.
67316
67317 2007-09-11  Eric Blake  <ebb9@byu.net>
67318
67319         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
67320
67321 2007-09-10  Bruno Haible  <bruno@clisp.org>
67322
67323         * posix-modules: Fix typo in error message.
67324         Reported by Matt <mkraai@beckman.com>.
67325
67326 2007-09-09  Bruno Haible  <bruno@clisp.org>
67327
67328         * doc/functions/getdelim.texi: Update list of platforms lacking the
67329         function.
67330         * doc/functions/getline.texi: Likewise.
67331
67332 2007-09-09  Jim Meyering  <jim@meyering.net>
67333
67334         * lib/hash.c (hash_initialize): Detect calloc failure.
67335         Reported by Bruno Haible.
67336
67337 2007-09-09  Bruno Haible  <bruno@clisp.org>
67338
67339         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
67340         malloc or realloc fails.
67341
67342 2007-09-09  Bruno Haible  <bruno@clisp.org>
67343
67344         * modules/getcwd (Depends-on): Add malloc-posix.
67345         * modules/glob (Depends-on): Likewise.
67346         * modules/putenv (Depends-on): Likewise.
67347         * modules/strdup (Depends-on): Likewise.
67348         * modules/getdelim (Depends-on): Add realloc-posix.
67349         * modules/read-file (Depends-on): Likewise.
67350
67351 2007-09-09  Bruno Haible  <bruno@clisp.org>
67352
67353         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
67354         (gl_FUNC_MALLOC_POSIX): Require it.
67355         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
67356         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
67357         * modules/realloc (Files): Add m4/malloc.m4.
67358         * modules/calloc (Files): Likewise.
67359
67360 2007-09-09  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/malloc-posix: New file.
67363         * modules/malloc (Depends-on): Add malloc-posix.
67364         * lib/malloc.c: Include errno.h.
67365         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
67366         and a POSIX-compatible malloc into a single function. Set ENOMEM
67367         when returning NULL.
67368         * m4/malloc.m4: New file.
67369         * doc/functions/malloc.texi: Mention the malloc-posix module.
67370         * lib/stdlib_.h (malloc): New declaration.
67371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67372         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
67373         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
67374         and HAVE_MALLOC_POSIX.
67375
67376 2007-09-09  Bruno Haible  <bruno@clisp.org>
67377
67378         * modules/realloc-posix: New file.
67379         * modules/realloc (Depends-on): Add realloc-posix.
67380         * lib/realloc.c: Include errno.h.
67381         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
67382         and a POSIX-compatible realloc into a single function. Set ENOMEM
67383         when returning NULL.
67384         * m4/realloc.m4: New file.
67385         * doc/functions/realloc.texi: Mention the realloc-posix module.
67386         * lib/stdlib_.h (realloc): New declaration.
67387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67388         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
67389         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
67390         and HAVE_REALLOC_POSIX.
67391
67392 2007-09-09  Bruno Haible  <bruno@clisp.org>
67393
67394         * modules/calloc-posix: New file.
67395         * modules/calloc (Depends-on): Add calloc-posix.
67396         * lib/calloc.c: Include errno.h.
67397         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
67398         and a POSIX-compatible calloc into a single function. Set ENOMEM
67399         when returning NULL.
67400         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
67401         * doc/functions/calloc.texi: Mention the calloc-posix module.
67402         * lib/stdlib_.h (calloc): New declaration.
67403         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
67404         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
67405         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
67406         and HAVE_CALLOC_POSIX.
67407
67408 2007-09-09  Bruno Haible  <bruno@clisp.org>
67409
67410         Allow for modules to show an arbitrary notice.
67411         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
67412         * gnulib-tool: New option --extract-notice.
67413         (func_usage): Document it.
67414         (sed_extract_prog): Update.
67415         (func_get_notice): New function.
67416         (func_modules_notice): New function.
67417         (func_import, func_create_testdir): Invoke it.
67418         Suggested by Jim Meyering.
67419
67420 2007-09-09  Bruno Haible  <bruno@clisp.org>
67421
67422         * gnulib-tool: New options --verbose, --quiet.
67423         (func_usage): Document them.
67424         (verbose): New variable.
67425         (func_execute_command): New function.
67426         (func_import): Don't show the module list and the file list if
67427         $verbose < 0.
67428         (func_create_testdir): Likewise. Use func_execute_command.
67429         (func_create_megatestdir): Use func_execute_command.
67430
67431 2007-09-08  Bruno Haible  <bruno@clisp.org>
67432
67433         * gnulib-tool (func_import): Prefer rsync over wget when available,
67434         for fetching the PO files.
67435
67436 2007-09-08  Bruno Haible  <bruno@clisp.org>
67437
67438         * posix-modules: New file. Portions copied from gnulib-tool.
67439         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
67440
67441 2007-09-08  Jim Meyering  <jim@meyering.net>
67442
67443         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
67444         * lib/fpending.h: Rename from __fpending.h.
67445         * lib/fpending.c: Rename from __fpending.c.
67446         Include "fpending.h", not "__fpending.h".
67447         * lib/__fpending.h, lib/__fpending.c: Remove files.
67448         * modules/fpending (Files): Reflect new file names.
67449         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
67450
67451 2007-09-08  Bruno Haible  <bruno@clisp.org>
67452
67453         * m4/inttypes-h.m4: Remove stub file.
67454
67455 2007-09-07  Simon Josefsson  <simon@josefsson.org>
67456
67457         * doc/headers/stdint.texi: Discuss #include_next issue.
67458
67459 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
67460
67461         * build-aux/bootstrap: Remove obsolete comment about wget --help.
67462
67463 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67464
67465         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
67466         in variable name.
67467
67468 2007-09-03  Jim Meyering  <jim@meyering.net>
67469
67470         New module: git-version-gen.
67471         * modules/git-version-gen: New file.
67472
67473         Import changes from coreutils for bootstrap script.
67474
67475         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
67476
67477         bootstrap: uses rsync to download the .po files
67478         * build-aux/bootstrap (po_download_command_format): New global.
67479         (download_po_files): Use rsync.
67480         (update_po_files): Don't remove .po files after download,
67481         so future rsync runs can take advantage of the copies.
67482
67483         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
67484
67485         Solve the unnecessary-.po-file-regeneration problem once and for all.
67486         * build-aux/bootstrap (download_po_files): New function, renamed from
67487         get_translations.  Now, downloads, but doesn't update LINGUAS.
67488         (update_po_files): New function.
67489
67490         bootstrap: Ignore more.
67491         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
67492         uniwidth to e.g., lib/.gitignore.
67493         (slurp): Handle the sys_stat_.h -> sys mapping, too.
67494
67495         * build-aux/bootstrap: New setting: vc_ignore.
67496         (insert_sorted_if_absent): Create $file if absent.
67497         Adapt to new, possibly empty, list: $vc_ignore.
67498
67499         bootstrap: generate more ignorable names
67500         * build-aux/bootstrap (slurp): When generating ignorable names,
67501         also map .sin to .sed, .gperf to .c, and .y to .c.
67502
67503 2007-09-03  Jim Meyering  <jim@meyering.net>
67504
67505         * build-aux/git-version-gen: New file, from coreutils.  For details, see
67506         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
67507
67508 2007-09-02  Bruno Haible  <bruno@clisp.org>
67509
67510         Fix mis-recognition of 'mcs' on QNX 6.
67511         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
67512         output contains the string "Mono".
67513         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
67514         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
67515
67516 2007-09-01  Bruno Haible  <bruno@clisp.org>
67517
67518         Fix collision between uniwidth/* and linebreak modules.
67519         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
67520         u32_width): Remove declarations.
67521         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
67522         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
67523         streq3, streq2, streq1, streq0): Remove functions.
67524         (STREQ): Remove macro.
67525         (is_cjk_encoding): Remove function.
67526         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
67527         (uc_width, u8_width, u16_width, u32_width): Remove functions.
67528         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
67529         * NEWS: Document the change.
67530
67531 2007-09-01  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/streq.h: Add double-inclusion guard.
67534
67535 2007-09-01  Karl Berry  <karl@gnu.org>
67536
67537         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
67538
67539 2007-08-28  Jim Meyering  <jim@meyering.net>
67540
67541         Rename mreadlink_with_size to areadlink_with_size.
67542         * NEWS: Document the change.
67543         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
67544         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
67545         * lib/mreadlink.h: Rename this to...
67546         * lib/areadlink.h: ...this.
67547         * modules/mreadlink-with-size: Rename this to...
67548         * modules/areadlink-with-size: ...this.
67549         * lib/canonicalize.c: Reflect the renaming.
67550         * modules/canonicalize: Likewise.
67551
67552 2007-08-26  Bruno Haible  <bruno@clisp.org>
67553
67554         * gnulib-tool (func_import): When deciding which files to remove,
67555         consider also dangling symbolic links.
67556         Reported by Eric Blake.
67557
67558 2007-08-26  Bruno Haible  <bruno@clisp.org>
67559
67560         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
67561
67562 2007-08-23  Simon Josefsson  <simon@josefsson.org>
67563
67564         * lib/readline.c: Don't include getline.h, the prototype is now
67565         found in stdio.h.
67566
67567 2007-08-23  Jim Meyering  <jim@meyering.net>
67568
67569         Getdelim touchup.
67570         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
67571         around the funlockfile call, since funlockfile never sets errno.
67572         Don't set errno upon failed realloc.
67573
67574 2007-08-22  Eric Blake  <ebb9@byu.net>
67575
67576         Getline touchups.
67577         * lib/getdelim.c (getdelim): Revert regression that required *n to
67578         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
67579         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
67580         getdelim, rather than whether implementation is missing.
67581         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
67582         * lib/stdio_.h (getline): Also declare if replacement is
67583         required.
67584         * doc/functions/getdelim.texi: New file.
67585         * doc/functions/getline.texi: Likewise.
67586         * doc/gnulib.texi (Function Substitutes): Add new files.
67587         Reported by Bruno Haible.
67588
67589 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
67590
67591         * users.txt: Add Guile.
67592
67593 2007-08-22  Eric Blake  <ebb9@byu.net>
67594
67595         * tests/test-getdelim.c (main): Use remove, not unlink.
67596         * tests/test-getline.c (main): Likewise.
67597
67598         Move getline and getdelim into stdio.h, per POSIX 200x.
67599         * modules/getline (Files): Remove getline.h.
67600         (Depends-on): Add stdio.
67601         (configure.ac): Add module indicator.
67602         * modules/getdelim (Files): Remove getdelim.h.
67603         (Depends-on): Add stdio.
67604         (configure.ac): Add module indicator.
67605         * modules/stdio (Makefile.am): Work with new indicators.
67606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
67607         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
67608         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
67609         * lib/getdelim.h: Delete.
67610         * lib/getline.h: Delete.
67611         * lib/stdio_.h (getdelim, getline): Declare.
67612         * modules/getdelim-tests: New module.
67613         * modules/getline-tests: Likewise.
67614         * tests/test-getdelim.c: New file.
67615         * tests/test-getline.c: Likewise.
67616         * NEWS: Document the change.
67617         * lib/getline.c: Update choice of header.
67618         * lib/csharpcomp.c: Likewise.
67619         * lib/getpass.c: Likewise.
67620         * lib/javacomp.c: Likewise.
67621         * lib/javaversion.c: Likewise.
67622         * lib/yesno.c: Likewise.
67623         * lib/getdelim.c: Likewise.
67624         (getdelim): Set errno on failure, and avoid memory leak.
67625
67626 2007-08-19  Bruno Haible  <bruno@clisp.org>
67627
67628         * modules/closein (Depends-on): Add freadahead.
67629         * lib/closein.c: Include freadahead.h.
67630         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
67631         is zero.
67632
67633 2007-08-19  Bruno Haible  <bruno@clisp.org>
67634
67635         * modules/freadahead-tests: New file.
67636         * tests/test-freadahead.sh: New file.
67637         * tests/test-freadahead.c: New file.
67638
67639         * modules/freadahead: New file.
67640         * lib/freadahead.h: New file.
67641         * lib/freadahead.c: New file.
67642         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
67643         fbufmode, fpurge, freadable, fwritable.
67644
67645 2007-08-19  Eric Blake  <ebb9@byu.net>
67646
67647         Test yesno in combination with closein.
67648         * lib/yesno.c (yesno): Document use of stdin.
67649         * modules/yesno-tests (Files): New module.
67650         * tests/test-yesno.c (main): New file.
67651         * tests/test-yesno.sh: Likewise.
67652
67653 2007-08-19  Bruno Haible  <bruno@clisp.org>
67654
67655         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
67656         * lib/fseeko.c (rpl_fseeko): Likewise.
67657         * lib/fseterr.c (fseterr): Likewise.
67658
67659 2007-08-19  Bruno Haible  <bruno@clisp.org>
67660
67661         * tests/test-lseek.c (main): Disable a test for BeOS.
67662         * doc/functions/lseek.texi: Document the BeOS bug.
67663
67664 2007-08-19  Bruno Haible  <bruno@clisp.org>
67665             Eric Blake  <ebb9@byu.net>
67666
67667         * lib/lseek.c: Include <sys/stat.h>.
67668         (rpl_lseek): Add workaround code also for Unix platforms.
67669         Needed for BeOS.
67670         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
67671         * doc/functions/lseek.texi: Document BeOS definiency.
67672
67673 2007-08-18  Bruno Haible  <bruno@clisp.org>
67674
67675         * modules/fstrcmp-tests: New file.
67676         * tests/test-fstrcmp.c: New file.
67677
67678 2007-08-18  Bruno Haible  <bruno@clisp.org>
67679
67680         * modules/fstrcmp: New file, from GNU gettext with modifications.
67681         * lib/fstrcmp.h: New file, from GNU gettext.
67682         * lib/fstrcmp.c: New file, from GNU gettext.
67683         * MODULES.html.sh (String handling): Add fstrcmp.
67684
67685 2007-08-18  Bruno Haible  <bruno@clisp.org>
67686
67687         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
67688         'bool'.
67689         (diag, compareseq): Remove const from the ctxt argument.
67690         (USE_HEURISTIC): Undefine at the end.
67691
67692 2007-08-18  Jim Meyering  <jim@meyering.net>
67693
67694         New file: lib/idcache.h
67695         * NEWS: Mention the addition.
67696         * modules/idcache (Files): Add lib/idcache.h
67697         * lib/idcache.c: Include "idcache.h".
67698         Don't include <sys/types.h>.
67699         Add a FIXME comment.
67700         Move file-scoped "static" declarations to the top.
67701         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
67702
67703 2007-08-17  Bruno Haible  <bruno@clisp.org>
67704         and Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * MODULES.html.sh: Add diffseq.
67707         * modules/diffseq: New file.
67708         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
67709         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
67710
67711 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67712
67713         Import changes from coreutils for bootstrap script.
67714
67715         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
67716
67717         * build-aux/bootstrap (slurp): Work even in environments where
67718         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
67719         current code does not slurp files whose names start with ".", and
67720         this looks like it might be a troublesome area.
67721
67722         2007-07-11  Jim Meyering  <jim@meyering.net>
67723
67724         If there's a GPL vN copyright comment, require that N == 3.
67725
67726         2007-07-08  Jim Meyering  <jim@meyering.net>
67727
67728         Run the coreutils-specific code only if tests/Makefile.am.in exists.
67729         * build-aux/bootstrap (mam_template): Move definition out of loop.
67730
67731         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
67732
67733         * build-aux/bootstrap (symlink_to_dir): Rename function from
67734         symlink_to_gnulib.  Add a directory parameter.  Update all
67735         callers.
67736         (cp_mark_as_generated): Also check for -- and link to -- files in
67737         gl/.
67738
67739         2007-07-08  Jim Meyering  <jim@meyering.net>
67740
67741         Adapt to deeper hierarchy in gnulib.
67742         * build-aux/bootstrap (symlink_to_dir): If the destination
67743         directory doesn't exist, create it. This is required at least for
67744         "lib/uniwidth/cjk.h".
67745
67746         2007-05-15  Jim Meyering  <jim@meyering.net>
67747
67748         * build-aux/bootstrap: Now that generated Makefile.am files
67749         are no longer under version control, they must be created at
67750         bootstrap time.
67751
67752 2007-08-14  Ben Pfaff  <blp@gnu.org>
67753
67754         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
67755
67756 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67757
67758         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
67759         given the changes below.
67760         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
67761         even on hosts that have padding bits beyond the supported 64.
67762
67763 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67764
67765         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
67766         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
67767         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
67768         depends on it.
67769         (xstrtol_error): Remove.
67770         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
67771         but with a different signature.
67772         (ATTRIBUTE_NORETURN, __attribute__): New macros.
67773         * lib/xstrtol-error.c: Include exitfail.h.
67774         (xstrtol_fatal): New function, with a different signature from the
67775         old xstrtol_error, so that the caller need not worry about passing
67776         in an exit status, or about storage management of the option argument.
67777         (xstrtol_error): Now a static function.  Redo signature to
67778         implement xstrtol_fatal.  Output the correct number of hyphens in
67779         front of the option so that the caller need not worry about
67780         storage management.
67781         (N_): New macro.
67782         (_): Remove; not used now.
67783         * modules/xstrtol: Depend on getopt.
67784         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
67785         of old STRTOL_FATAL_ERROR macro.
67786         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
67787         of test program.
67788         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
67789         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
67790
67791 2007-08-08  Eric Blake  <ebb9@byu.net>
67792
67793         * lib/xstrtol-error.c: Add missing include.
67794
67795         Move xstrtol messages into gnulib domain, when --pobase is used.
67796         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
67797         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
67798         * modules/xstrtol (Files): Distribute new file.
67799         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
67800         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
67801         * tests/test-xstrtol.c: ...into new file.
67802         * tests/test-xstrtoul.c: Also test xstrtoul.
67803         * tests/test-xstrtoimax.c: Also test xstrtoimax.
67804         * tests/test-xstrtoumax.c: Also test xstrtoumax.
67805         * tests/test-xstrtol.sh: Drive the tests.
67806         * tests/test-xstrtoimax.sh: Likewise.
67807         * tests/test-xstrtoumax.sh: Likewise.
67808         * modules/xstrtol-tests: New module.
67809         * modules/xstrtoimax-tests: Likewise.
67810         * modules/xstrtoumax-tests: Likewise.
67811
67812 2007-08-08  Jim Meyering  <jim@meyering.net>
67813
67814         New function: mfile_name_concat.
67815         * lib/filenamecat.c (mfile_name_concat): New function, just like
67816         file_name_concat, but return NULL upon failure rather than exiting
67817         with a diagnostic.
67818         * lib/filenamecat.h: Declare it.
67819
67820 2007-08-07  Bruno Haible  <bruno@clisp.org>
67821
67822         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
67823         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
67824         warning from gcc.
67825         Reported by Eric Blake.
67826
67827 2007-08-07  Simon Josefsson  <simon@josefsson.org>
67828
67829         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
67830         * modules/crypto/arcfour (License): Likewise.
67831         * modules/crypto/des-tests (License): Likewise.
67832         * modules/crypto/gc-arctwo-tests (License): Likewise.
67833         * modules/crypto/gc-des-tests (License): Likewise.
67834         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67835         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67836         * modules/crypto/gc-md2-tests (License): Likewise.
67837         * modules/crypto/gc-md4-tests (License): Likewise.
67838         * modules/crypto/gc-md5-tests (License): Likewise.
67839         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67840         * modules/crypto/gc-rijndael-tests (License): Likewise.
67841         * modules/crypto/gc-sha1-tests (License): Likewise.
67842         * modules/crypto/gc-tests (License): Likewise.
67843         * modules/crypto/hmac-md5 (License): Likewise.
67844         * modules/crypto/hmac-sha1 (License): Likewise.
67845         * modules/crypto/md2-tests (License): Likewise.
67846         * modules/crypto/md4-tests (License): Likewise.
67847         * modules/crypto/md5 (License): Likewise.
67848         * modules/crypto/rijndael (License): Likewise.
67849         * modules/crypto/sha1 (License): Likewise.
67850         * modules/memxor (License): Likewise.
67851
67852 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67853         and Bruno Haible  <bruno@clisp.org>
67854
67855         * NEWS: Describe interface changes to human, xstrtol.
67856         * lib/human.h: Include <xstrtol.h>.
67857         (human_options): Return enum strtol_error, not int.  Remove
67858         bool arg; take int * instead.
67859         * lib/human.c: Don't include "gettext.h".
67860         (_): Remove; no longer used.
67861         Don't include <xstrtol.h>, since human.h does it.
67862         (human_options): Adjust to abovementioned interface changes.
67863         Do not report error to stderr; that's now the caller's
67864         responsibility.
67865         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67866         interface change.
67867         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67868         Str, Argument_type_string.  All uses changed.  Put " argument"
67869         in diagnostics to make them clearer.  Change wording of suffix
67870         message for clarity.
67871         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67872         Argument_type_string.
67873         (STRTOL_FATAL_WARN): Remove; no longer used.
67874         * modules/human (Depends-on): Remove gettext-h.
67875
67876 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67877
67878         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67879
67880 2007-07-31  Bruno Haible  <bruno@clisp.org>
67881
67882         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67883         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67884         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67885
67886 2007-07-31  Bruno Haible  <bruno@clisp.org>
67887
67888         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67889         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67890
67891 2007-07-30  Bruno Haible  <bruno@clisp.org>
67892
67893         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67894         * modules/c-ctype (License): Likewise.
67895         * modules/c-strcase (License): Likewise.
67896         * modules/check-version (License): Likewise.
67897         * modules/iconv (License): Likewise.
67898         * modules/iconv_open (License): Likewise.
67899         * modules/read-file (License): Likewise.
67900         * modules/striconv (License): Likewise.
67901         * modules/strverscmp (License): Likewise.
67902         * modules/vasprintf (License): Likewise.
67903         * modules/crypto/des (License): Likewise.
67904         * modules/crypto/gc (License): Likewise.
67905         * modules/crypto/gc-arcfour (License): Likewise.
67906         * modules/crypto/gc-arctwo (License): Likewise.
67907         * modules/crypto/gc-des (License): Likewise.
67908         * modules/crypto/gc-hmac-md5 (License): Likewise.
67909         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67910         * modules/crypto/gc-md2 (License): Likewise.
67911         * modules/crypto/gc-md4 (License): Likewise.
67912         * modules/crypto/gc-md5 (License): Likewise.
67913         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67914         * modules/crypto/gc-random (License): Likewise.
67915         * modules/crypto/gc-rijndael (License): Likewise.
67916         * modules/crypto/gc-sha1 (License): Likewise.
67917         * modules/crypto/md2 (License): Likewise.
67918         * modules/crypto/md4 (License): Likewise.
67919
67920 2007-07-30  Jim Meyering  <jim@meyering.net>
67921
67922         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67923         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67924         it has valid stat data.  This bug would cause du not to count the
67925         sizes of inaccessible directories.
67926         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67927         in <http://bugzilla.redhat.com/250077>.
67928
67929 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67930             Bruno Haible  <bruno@clisp.org>
67931
67932         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67933         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67934         #include_next, gives a diagnostic about it, but reports no error in
67935         the exit code.
67936         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67937
67938 2007-07-24  Ben Pfaff  <blp@gnu.org>
67939
67940         Improve name: "count-one-bits" is better than "popcount".
67941         * MODULES.html.sh: Update name.
67942         * lib/popcount.h: Renamed lib/count-one-bits.h.
67943         (popcount): Renamed count_one_bits.
67944         (popcountl): Renamed count_one_bits_l.
67945         (popcountll): Renamed count_one_bits_ll.
67946         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67947         * modules/popcount: Renamed module/count-one-bits.
67948         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67949         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67950
67951 2007-07-23  Ben Pfaff  <blp@gnu.org>
67952
67953         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67954         better code generation, and add U to large constants to avoid
67955         warnings, in non-GCC case.
67956         Suggested by Bruno Haible.
67957
67958 2007-07-23  Ben Pfaff  <blp@gnu.org>
67959
67960         * lib/popcount.h: Use verify_true instead of if...abort.
67961         * modules/popcount: Depend on verify module.
67962         Suggested by Jim Meyering.
67963
67964 2007-07-23  Bruno Haible  <bruno@clisp.org>
67965
67966         * gnulib-tool (func_import): Create a .cvsignore file also when the
67967         directory is not yet in CVS but the toplevel directory is. When
67968         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67969         Reported by Karl Berry.
67970
67971 2007-07-22  Ben Pfaff  <blp@gnu.org>
67972
67973         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67974         case.
67975         Suggested by Eric Blake.
67976
67977 2007-07-22  Ben Pfaff  <blp@gnu.org>
67978
67979         New module: popcount.
67980         * MODULES.html.sh: Add popcount.
67981         * modules/popcount: New file.
67982         * modules/popcount-tests: New file.
67983         * tests/test-popcount.c: New file.
67984         * lib/popcount.h: New file.
67985         * m4/popcount.m4: New file.
67986
67987 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         * build-aux/announce-gen: Update to GPLv3.
67990
67991         * build-aux/config.guess: Update from config.
67992
67993 2007-07-21  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67996         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67997
67998 2007-07-20  Jim Meyering  <jim@meyering.net>
67999
68000         * check-module: Diagnose a self-dependency.
68001
68002 2007-07-19  Bruno Haible  <bruno@clisp.org>
68003
68004         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68005         empty.
68006         Reported by Eric Blake.
68007
68008 2007-07-18  Bruno Haible  <bruno@clisp.org>
68009
68010         * gnulib-tool: New options --po-base, --po-domain.
68011         (func_usage): Document them.
68012         (pobase, po_domain): New variables.
68013         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68014         DEFAULT_TEXT_DOMAIN.
68015         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68016         (func_import): Consider pobase and po_domain. Create a po/ directory.
68017         (func_create_testdir): Set pobase and po_domain to empty.
68018         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68019         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68020
68021 2007-07-18  Bruno Haible  <bruno@clisp.org>
68022
68023         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68024         EXTRA_DIST augmentation for files in build-aux/.
68025
68026 2007-07-16  Bruno Haible  <bruno@clisp.org>
68027
68028         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68029         * modules/getdelim (License): Likewise.
68030
68031 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68032
68033         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68034         * modules/d-type (License): Likewise.
68035         * modules/extensions (License): Likewise.
68036         * modules/fnmatch (License): Likewise.
68037         * modules/fseeko (License): Likewise.
68038         * modules/getaddrinfo (License): Likewise.
68039         * modules/getline (License): Likewise.
68040         * modules/getlogin_r (License): Likewise.
68041         * modules/getpass (License): Likewise.
68042         * modules/gettimeofday (License): Likewise.
68043         * modules/glob (License): Likewise.
68044         * modules/inet_ntop (License): Likewise.
68045         * modules/malloc (License): Likewise.
68046         * modules/malloca (License): Likewise.
68047         * modules/memmem (License): Likewise.
68048         * modules/mempcpy (License): Likewise.
68049         * modules/memset (License): Likewise.
68050         * modules/minmax (License): Likewise.
68051         * modules/mktime (License): Likewise.
68052         * modules/netinet_in (License): Likewise.
68053         * modules/pathmax (License): Likewise.
68054         * modules/poll (License): Likewise.
68055         * modules/regex (License): Likewise.
68056         * modules/snprintf (License): Likewise.
68057         * modules/stdbool (License): Likewise.
68058         * modules/stdint (License): Likewise.
68059         * modules/stdio (License): Likewise.
68060         * modules/strcase (License): Likewise.
68061         * modules/strcasestr (License): Likewise.
68062         * modules/strdup (License): Likewise.
68063         * modules/string (License): Likewise.
68064         * modules/strndup (License): Likewise.
68065         * modules/strnlen (License): Likewise.
68066         * modules/strpbrk (License): Likewise.
68067         * modules/strptime (License): Likewise.
68068         * modules/strsep (License): Likewise.
68069         * modules/sys_select (License): Likewise.
68070         * modules/sys_socket (License): Likewise.
68071         * modules/sys_stat (License): Likewise.
68072         * modules/sys_time (License): Likewise.
68073         * modules/time (License): Likewise.
68074         * modules/time_r (License): Likewise.
68075         * modules/timegm (License): Likewise.
68076         * modules/unistd (License): Likewise.
68077         * modules/vsnprintf (License): Likewise.
68078         * modules/wctype (License): Likewise.
68079
68080 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68081
68082         * modules/argz (License): LGPLv2+.
68083
68084 2007-07-15  Karl Berry  <karl@gnu.org>
68085
68086         * doc/gnulib.texi: revise node structure per new fdl.texi.
68087
68088 2007-07-14  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
68091         the output file.
68092         * lib/uniname/uninames.h: Regenerated.
68093
68094 2007-07-14  Karl Berry  <karl@gnu.org>
68095
68096         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
68097         omitting sectioning and index commands.
68098
68099 2007-07-13  Bruno Haible  <bruno@clisp.org>
68100
68101         New gnulib-tool option --more-symlinks.
68102         * gnulib-tool (func_usage): Document --more-symlinks.
68103         (do_copyrights): New variable.
68104         Recognize option --more-symlinks.
68105         (func_import): Don't add a copyright notice transform to
68106         sed_transform_lib_file if do_copyrights is empty.
68107
68108 2007-07-13  Bruno Haible  <bruno@clisp.org>
68109
68110         * lib/vasnprintf.c (decimal_point_char): Define also if
68111         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
68112         && !NEED_PRINTF_DIRECTIVE_A.
68113         Reported by Clemens Koller <clemens.koller@anagramm.de> via
68114         Gary V. Vaughan <gary@gnu.org>.
68115
68116 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
68117
68118         * lib/inttypes_.h: Undo previous change, since it was fixed
68119         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
68120
68121 2007-07-13  Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
68124         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
68125
68126 2007-07-13  Jim Meyering  <jim@meyering.net>
68127
68128         df: Don't fail for Tru64's "file-on-file mount".
68129         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
68130         so we fall through and use statfs instead.  Details here:
68131         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
68132         Reported by Albert Chin.
68133
68134 2007-07-13  Bruno Haible  <bruno@clisp.org>
68135
68136         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
68137         * modules/configmake (License): Likewise.
68138         * modules/gettext (License): Likewise.
68139         * modules/gettext-h (License): Likewise.
68140         * modules/include_next (License): Likewise.
68141         * modules/link-warning (License): Likewise.
68142         * modules/localcharset (License): Likewise.
68143         * modules/localename (License): Likewise.
68144         * modules/lock (License): Likewise.
68145         * modules/relocatable-lib-lgpl (License): Likewise.
68146         * modules/size_max (License): Likewise.
68147         * modules/vasnprintf (License): Likewise.
68148         * modules/wchar (License): Likewise.
68149         * modules/xsize (License): Likewise.
68150
68151 2007-07-13  Bruno Haible  <bruno@clisp.org>
68152
68153         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
68154         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
68155
68156 2007-07-12  Bruno Haible  <bruno@clisp.org>
68157
68158         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
68159         in the modules files.
68160
68161 2007-07-11  Karl Berry  <karl@gnu.org>
68162
68163         * MODULES.html.sh (func_module): use
68164          sed -e '\|^'"${includefile}"'$|d'
68165          instead of /.../d, to avoid errors on $includefile's containing /.
68166
68167 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68168
68169         * gnulib-tool (func_import): Avoid duplication of --avoid
68170         statements
68171         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
68172         names to `_' in variable names.
68173
68174 2007-07-10  Eric Blake  <ebb9@byu.net>
68175
68176         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
68177         * NEWS: Document this change.
68178
68179 2007-07-08  Bruno Haible  <bruno@clisp.org>
68180
68181         Update to Unicode 5.0.
68182         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
68183         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
68184         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
68185         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
68186         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
68187         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
68188         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
68189         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
68190         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
68191         U+10A3F, U+1D242..U+1D244.
68192         (nonspacing_table_ind): Update.
68193         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
68194         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
68195
68196 2007-07-08  Bruno Haible  <bruno@clisp.org>
68197
68198         Update to Unicode 5.0.
68199         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
68200         code transform. Extend the name index field of unicode_name_to_code and
68201         unicode_code_to_name from 16 to 24 bits.
68202         * lib/uniname/uniname.c (unicode_character_name,
68203         unicode_name_character): Add the range 0x12xxx to the code transform.
68204         * lib/uniname/uninames.h: Regenerated.
68205         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
68206
68207 2007-07-07  Bruno Haible  <bruno@clisp.org>
68208
68209         * modules/wcwidth-tests: New file.
68210         * tests/test-wcwidth.c: New file.
68211
68212         Work around MacOS X wcwidth() bug.
68213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
68214         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
68215         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
68216         original wcwidth in non-UTF-8 locales.
68217         * modules/wcwidth (Depends-on): Add localcharset, streq,
68218         uniwidth/width.
68219         * doc/functions/wcwidth.texi: Update.
68220
68221 2007-07-07  Bruno Haible  <bruno@clisp.org>
68222
68223         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
68224         (wcwidth): New declaration.
68225         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
68226         macros.
68227         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
68228         here. Prepare for creating <wchar.h> unconditionally.
68229         * modules/wchar (Depends-on): Add link-warning.
68230         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
68231         REPLACE_WCWIDTH, and GL_LINK_WARNING.
68232         * lib/wcwidth.h: Remove file.
68233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
68234         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
68235         * modules/wcwidth (Files): Remove lib/wcwidth.h.
68236         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
68237         (Include): Replace wcwidth.h with <wchar.h>.
68238         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
68239         * lib/mbchar.h: Don't include wcwidth.h.
68240         * lib/mbswidth.c: Likewise.
68241         * NEWS: Mention the change.
68242
68243 2007-07-07  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
68246         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
68247         definition with an external declaration.
68248         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
68249         defined as a function. Remove AC_C_INLINE requirement.
68250         * modules/wcwidth (Files): Add lib/wcwidth.c.
68251         (Makefile.am): Remove redundant statement.
68252
68253 2007-07-07  Bruno Haible  <bruno@clisp.org>
68254
68255         * MODULES.html.sh (Unicode string functions): Add the new modules.
68256
68257         * tests/uniwidth/test-u32-strwidth.c: New file.
68258         * modules/uniwidth/u32-strwidth-tests: New file.
68259
68260         * lib/uniwidth/u32-strwidth.c: New file.
68261         * modules/uniwidth/u32-strwidth: New file.
68262
68263         * tests/uniwidth/test-u16-strwidth.c: New file.
68264         * modules/uniwidth/u16-strwidth-tests: New file.
68265
68266         * lib/uniwidth/u16-strwidth.c: New file.
68267         * modules/uniwidth/u16-strwidth: New file.
68268
68269         * tests/uniwidth/test-u8-strwidth.c: New file.
68270         * modules/uniwidth/u8-strwidth-tests: New file.
68271
68272         * lib/uniwidth/u8-strwidth.c: New file.
68273         * modules/uniwidth/u8-strwidth: New file.
68274
68275         * tests/uniwidth/test-u32-width.c: New file.
68276         * modules/uniwidth/u32-width-tests: New file.
68277
68278         * lib/uniwidth/u32-width.c: New file.
68279         * modules/uniwidth/u32-width: New file.
68280
68281         * tests/uniwidth/test-u16-width.c: New file.
68282         * modules/uniwidth/u16-width-tests: New file.
68283
68284         * lib/uniwidth/u16-width.c: New file.
68285         * modules/uniwidth/u16-width: New file.
68286
68287         * tests/uniwidth/test-u8-width.c: New file.
68288         * modules/uniwidth/u8-width-tests: New file.
68289
68290         * lib/uniwidth/u8-width.c: New file.
68291         * modules/uniwidth/u8-width: New file.
68292
68293         * tests/uniwidth/test-uc_width.c: New file.
68294         * modules/uniwidth/width-tests: New file.
68295
68296         * lib/uniwidth/width.c: New file, from GNU libiconv.
68297         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
68298         * modules/uniwidth/width: New file.
68299
68300         * lib/uniwidth.h: New file, from GNU libiconv.
68301         * modules/uniwidth/base: New file.
68302
68303 2007-07-07  Bruno Haible  <bruno@clisp.org>
68304
68305         * lib/uniname.h: New file, from GNU gettext.
68306         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
68307         * lib/uniname/uninames.h: New file, from GNU gettext.
68308         * lib/uniname/uniname.c: New file, from GNU gettext.
68309         * tests/uniname/test-uninames.sh: New file.
68310         * tests/uniname/test-uninames.c: New file, from GNU gettext.
68311         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
68312         * modules/uniname/base: New file.
68313         * modules/uniname/uniname: New file.
68314         * modules/uniname/uniname-tests: New file.
68315         * MODULES.html.sh (Unicode string functions): Add the new modules.
68316
68317 2007-07-06  Bruno Haible  <bruno@clisp.org>
68318
68319         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
68320
68321 2007-07-06  Bruno Haible  <bruno@clisp.org>
68322
68323         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
68324         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
68325         includes <cygwin/sys_time.h> which includes <sys/select.h> which
68326         include <sys/time.h>.
68327         Reported by Eric Blake.
68328
68329 2007-07-06  Eric Blake  <ebb9@byu.net>
68330
68331         Fix testing canonicalize on cygwin.
68332         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68333         Revert patch from 2007-06-19.
68334         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
68335         canonicalize module is also in use.
68336         * tests/test-canonicalize.c: New file.
68337         * tests/test-canonicalize.sh: Likewise.
68338         * modules/canonicalize-tests: Likewise.
68339
68340 2007-07-06  Jim Meyering  <jim@meyering.net>
68341
68342         * lib/getugroups.c (getugroups): Detect getgrent failure.
68343         Adjust comment to reflect reality: this function may return -1.
68344
68345 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
68346
68347         * build-aux/bootstrap (TP_URL,get_translations): Update to use
68348         the new TP address.
68349         (usage): Fix typo
68350         (gnulib_mk): New variable.
68351
68352 2007-07-05  Jim Meyering  <jim@meyering.net>
68353
68354         Don't let endgrent clobber errno, no matter how improbable.
68355         * lib/getugroups.c (getugroups): Save and restore errno around
68356         endgrent call.
68357
68358         Close the group DB even when failing with 2^31 or more members.
68359         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
68360
68361 2007-07-04  Jim Meyering  <jim@meyering.net>
68362
68363         * lib/getugroups.h: New file.
68364         * lib/getugroups.c: Include "getugroups.h".
68365         Remove uses of "register" keyword.
68366         Move local variable, "cp", down into scope where used.
68367         Give "username" parameter the "const" attribute.
68368         * modules/getugroups (Files): Add lib/getugroups.h
68369
68370 2007-07-04  Karl Berry  <karl@gnu.org>
68371
68372         * MODULES.html.sh (func_all_modules): Complete rename of
68373         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
68374
68375 2007-07-02  Bruno Haible  <bruno@clisp.org>
68376
68377         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
68378         mode, when inttypes.h comes from gnulib.
68379         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68380
68381 2007-07-02  Simon Josefsson  <simon@josefsson.org>
68382
68383         * NEWS: Mention lgpl module name change.
68384
68385         * modules/lgpl-2.1: Renamed from lgpl.
68386
68387         * NEWS: Mention gpl module name change.
68388
68389         * modules/gpl-3.0: New file, based on gpl-2.0.
68390
68391         * modules/gpl-2.0: Renamed from gpl.
68392
68393         * modules/gpl: Fix filename, doc/gpl.texi is now found at
68394         doc/gpl-2.0.texi.
68395
68396 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
68399         #define __STDC_LIMIT_MACROS temporarily while including
68400         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
68401         Problem reported by Joel E. Denny in
68402         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
68403
68404 2007-07-01  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/unistdio.h: New file.
68407         * lib/unistdio/u-asnprintf.h: New file.
68408         * lib/unistdio/u-asprintf.h: New file.
68409         * lib/unistdio/u-printf-args.c: New file.
68410         * lib/unistdio/u-printf-args.h: New file.
68411         * lib/unistdio/u-printf-parse.h: New file.
68412         * lib/unistdio/u-snprintf.h: New file.
68413         * lib/unistdio/u-sprintf.h: New file.
68414         * lib/unistdio/u-vasprintf.h: New file.
68415         * lib/unistdio/u-vsnprintf.h: New file.
68416         * lib/unistdio/u-vsprintf.h: New file.
68417         * lib/unistdio/ulc-asnprintf.c: New file.
68418         * lib/unistdio/ulc-asprintf.c: New file.
68419         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
68420         * lib/unistdio/ulc-printf-parse.c: New file.
68421         * lib/unistdio/ulc-snprintf.c: New file.
68422         * lib/unistdio/ulc-sprintf.c: New file.
68423         * lib/unistdio/ulc-vasnprintf.c: New file.
68424         * lib/unistdio/ulc-vasprintf.c: New file.
68425         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
68426         * lib/unistdio/ulc-vsnprintf.c: New file.
68427         * lib/unistdio/ulc-vsprintf.c: New file.
68428         * lib/unistdio/u8-asnprintf.c: New file.
68429         * lib/unistdio/u8-asprintf.c: New file.
68430         * lib/unistdio/u8-printf-parse.c: New file.
68431         * lib/unistdio/u8-snprintf.c: New file.
68432         * lib/unistdio/u8-sprintf.c: New file.
68433         * lib/unistdio/u8-vasnprintf.c: New file.
68434         * lib/unistdio/u8-vasprintf.c: New file.
68435         * lib/unistdio/u8-vsnprintf.c: New file.
68436         * lib/unistdio/u8-vsprintf.c: New file.
68437         * lib/unistdio/u8-u8-asnprintf.c: New file.
68438         * lib/unistdio/u8-u8-asprintf.c: New file.
68439         * lib/unistdio/u8-u8-snprintf.c: New file.
68440         * lib/unistdio/u8-u8-sprintf.c: New file.
68441         * lib/unistdio/u8-u8-vasnprintf.c: New file.
68442         * lib/unistdio/u8-u8-vasprintf.c: New file.
68443         * lib/unistdio/u8-u8-vsnprintf.c: New file.
68444         * lib/unistdio/u8-u8-vsprintf.c: New file.
68445         * lib/unistdio/u16-asnprintf.c: New file.
68446         * lib/unistdio/u16-asprintf.c: New file.
68447         * lib/unistdio/u16-printf-parse.c: New file.
68448         * lib/unistdio/u16-snprintf.c: New file.
68449         * lib/unistdio/u16-sprintf.c: New file.
68450         * lib/unistdio/u16-vasnprintf.c: New file.
68451         * lib/unistdio/u16-vasprintf.c: New file.
68452         * lib/unistdio/u16-vsnprintf.c: New file.
68453         * lib/unistdio/u16-vsprintf.c: New file.
68454         * lib/unistdio/u16-u16-asnprintf.c: New file.
68455         * lib/unistdio/u16-u16-asprintf.c: New file.
68456         * lib/unistdio/u16-u16-snprintf.c: New file.
68457         * lib/unistdio/u16-u16-sprintf.c: New file.
68458         * lib/unistdio/u16-u16-vasnprintf.c: New file.
68459         * lib/unistdio/u16-u16-vasprintf.c: New file.
68460         * lib/unistdio/u16-u16-vsnprintf.c: New file.
68461         * lib/unistdio/u16-u16-vsprintf.c: New file.
68462         * lib/unistdio/u32-asnprintf.c: New file.
68463         * lib/unistdio/u32-asprintf.c: New file.
68464         * lib/unistdio/u32-printf-parse.c: New file.
68465         * lib/unistdio/u32-snprintf.c: New file.
68466         * lib/unistdio/u32-sprintf.c: New file.
68467         * lib/unistdio/u32-vasnprintf.c: New file.
68468         * lib/unistdio/u32-vasprintf.c: New file.
68469         * lib/unistdio/u32-vsnprintf.c: New file.
68470         * lib/unistdio/u32-vsprintf.c: New file.
68471         * lib/unistdio/u32-u32-asnprintf.c: New file.
68472         * lib/unistdio/u32-u32-asprintf.c: New file.
68473         * lib/unistdio/u32-u32-snprintf.c: New file.
68474         * lib/unistdio/u32-u32-sprintf.c: New file.
68475         * lib/unistdio/u32-u32-vasnprintf.c: New file.
68476         * lib/unistdio/u32-u32-vasprintf.c: New file.
68477         * lib/unistdio/u32-u32-vsnprintf.c: New file.
68478         * lib/unistdio/u32-u32-vsprintf.c: New file.
68479         * tests/unistdio/test-ulc-asnprintf1.c: New file.
68480         * tests/unistdio/test-ulc-asnprintf1.h: New file.
68481         * tests/unistdio/test-ulc-printf1.h: New file.
68482         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
68483         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
68484         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
68485         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
68486         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
68487         * tests/unistdio/test-ulc-vasprintf1.c: New file.
68488         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
68489         * tests/unistdio/test-ulc-vsprintf1.c: New file.
68490         * tests/unistdio/test-u8-asnprintf1.c: New file.
68491         * tests/unistdio/test-u8-asnprintf1.h: New file.
68492         * tests/unistdio/test-u8-printf1.h: New file.
68493         * tests/unistdio/test-u8-vasnprintf1.c: New file.
68494         * tests/unistdio/test-u8-vasnprintf2.c: New file.
68495         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
68496         * tests/unistdio/test-u8-vasnprintf3.c: New file.
68497         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
68498         * tests/unistdio/test-u8-vasprintf1.c: New file.
68499         * tests/unistdio/test-u8-vsnprintf1.c: New file.
68500         * tests/unistdio/test-u8-vsprintf1.c: New file.
68501         * tests/unistdio/test-u16-asnprintf1.c: New file.
68502         * tests/unistdio/test-u16-asnprintf1.h: New file.
68503         * tests/unistdio/test-u16-printf1.h: New file.
68504         * tests/unistdio/test-u16-vasnprintf1.c: New file.
68505         * tests/unistdio/test-u16-vasnprintf2.c: New file.
68506         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
68507         * tests/unistdio/test-u16-vasnprintf3.c: New file.
68508         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
68509         * tests/unistdio/test-u16-vasprintf1.c: New file.
68510         * tests/unistdio/test-u16-vsnprintf1.c: New file.
68511         * tests/unistdio/test-u16-vsprintf1.c: New file.
68512         * tests/unistdio/test-u32-asnprintf1.c: New file.
68513         * tests/unistdio/test-u32-asnprintf1.h: New file.
68514         * tests/unistdio/test-u32-printf1.h: New file.
68515         * tests/unistdio/test-u32-vasnprintf1.c: New file.
68516         * tests/unistdio/test-u32-vasnprintf2.c: New file.
68517         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
68518         * tests/unistdio/test-u32-vasnprintf3.c: New file.
68519         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
68520         * tests/unistdio/test-u32-vasprintf1.c: New file.
68521         * tests/unistdio/test-u32-vsnprintf1.c: New file.
68522         * tests/unistdio/test-u32-vsprintf1.c: New file.
68523         * modules/unistdio/base: New file.
68524         * modules/unistdio/u-printf-args: New file.
68525         * modules/unistdio/ulc-asnprintf: New file.
68526         * modules/unistdio/ulc-asprintf: New file.
68527         * modules/unistdio/ulc-fprintf: New file.
68528         * modules/unistdio/ulc-printf-parse: New file.
68529         * modules/unistdio/ulc-snprintf: New file.
68530         * modules/unistdio/ulc-sprintf: New file.
68531         * modules/unistdio/ulc-vasnprintf: New file.
68532         * modules/unistdio/ulc-vasprintf: New file.
68533         * modules/unistdio/ulc-vfprintf: New file.
68534         * modules/unistdio/ulc-vsnprintf: New file.
68535         * modules/unistdio/ulc-vsprintf: New file.
68536         * modules/unistdio/u8-asnprintf: New file.
68537         * modules/unistdio/u8-asprintf: New file.
68538         * modules/unistdio/u8-printf-parse: New file.
68539         * modules/unistdio/u8-snprintf: New file.
68540         * modules/unistdio/u8-sprintf: New file.
68541         * modules/unistdio/u8-vasnprintf: New file.
68542         * modules/unistdio/u8-vasprintf: New file.
68543         * modules/unistdio/u8-vsnprintf: New file.
68544         * modules/unistdio/u8-vsprintf: New file.
68545         * modules/unistdio/u8-u8-asnprintf: New file.
68546         * modules/unistdio/u8-u8-asprintf: New file.
68547         * modules/unistdio/u8-u8-snprintf: New file.
68548         * modules/unistdio/u8-u8-sprintf: New file.
68549         * modules/unistdio/u8-u8-vasnprintf: New file.
68550         * modules/unistdio/u8-u8-vasprintf: New file.
68551         * modules/unistdio/u8-u8-vsnprintf: New file.
68552         * modules/unistdio/u8-u8-vsprintf: New file.
68553         * modules/unistdio/u16-asnprintf: New file.
68554         * modules/unistdio/u16-asprintf: New file.
68555         * modules/unistdio/u16-printf-parse: New file.
68556         * modules/unistdio/u16-snprintf: New file.
68557         * modules/unistdio/u16-sprintf: New file.
68558         * modules/unistdio/u16-vasnprintf: New file.
68559         * modules/unistdio/u16-vasprintf: New file.
68560         * modules/unistdio/u16-vsnprintf: New file.
68561         * modules/unistdio/u16-vsprintf: New file.
68562         * modules/unistdio/u16-u16-asnprintf: New file.
68563         * modules/unistdio/u16-u16-asprintf: New file.
68564         * modules/unistdio/u16-u16-snprintf: New file.
68565         * modules/unistdio/u16-u16-sprintf: New file.
68566         * modules/unistdio/u16-u16-vasnprintf: New file.
68567         * modules/unistdio/u16-u16-vasprintf: New file.
68568         * modules/unistdio/u16-u16-vsnprintf: New file.
68569         * modules/unistdio/u16-u16-vsprintf: New file.
68570         * modules/unistdio/u32-asnprintf: New file.
68571         * modules/unistdio/u32-asprintf: New file.
68572         * modules/unistdio/u32-printf-parse: New file.
68573         * modules/unistdio/u32-snprintf: New file.
68574         * modules/unistdio/u32-sprintf: New file.
68575         * modules/unistdio/u32-vasnprintf: New file.
68576         * modules/unistdio/u32-vasprintf: New file.
68577         * modules/unistdio/u32-vsnprintf: New file.
68578         * modules/unistdio/u32-vsprintf: New file.
68579         * modules/unistdio/u32-u32-asnprintf: New file.
68580         * modules/unistdio/u32-u32-asprintf: New file.
68581         * modules/unistdio/u32-u32-snprintf: New file.
68582         * modules/unistdio/u32-u32-sprintf: New file.
68583         * modules/unistdio/u32-u32-vasnprintf: New file.
68584         * modules/unistdio/u32-u32-vasprintf: New file.
68585         * modules/unistdio/u32-u32-vsnprintf: New file.
68586         * modules/unistdio/u32-u32-vsprintf: New file.
68587         * modules/unistdio/ulc-asnprintf-tests: New file.
68588         * modules/unistdio/ulc-vasnprintf-tests: New file.
68589         * modules/unistdio/ulc-vasprintf-tests: New file.
68590         * modules/unistdio/ulc-vsnprintf-tests: New file.
68591         * modules/unistdio/ulc-vsprintf-tests: New file.
68592         * modules/unistdio/u8-asnprintf-tests: New file.
68593         * modules/unistdio/u8-vasnprintf-tests: New file.
68594         * modules/unistdio/u8-vasprintf-tests: New file.
68595         * modules/unistdio/u8-vsnprintf-tests: New file.
68596         * modules/unistdio/u8-vsprintf-tests: New file.
68597         * modules/unistdio/u16-asnprintf-tests: New file.
68598         * modules/unistdio/u16-vasnprintf-tests: New file.
68599         * modules/unistdio/u16-vasprintf-tests: New file.
68600         * modules/unistdio/u16-vsnprintf-tests: New file.
68601         * modules/unistdio/u16-vsprintf-tests: New file.
68602         * modules/unistdio/u32-asnprintf-tests: New file.
68603         * modules/unistdio/u32-vasnprintf-tests: New file.
68604         * modules/unistdio/u32-vasprintf-tests: New file.
68605         * modules/unistdio/u32-vsnprintf-tests: New file.
68606         * modules/unistdio/u32-vsprintf-tests: New file.
68607         * MODULES.html.sh (Unicode string functions): Add the new modules.
68608
68609 2007-07-01  Bruno Haible  <bruno@clisp.org>
68610
68611         * lib/sprintf.c (sprintf): Limit the available length estimation,
68612         to avoid address wraparound.
68613         * lib/vsprintf.c (vsprintf): Likewise.
68614         * modules/sprintf-posix (Dependencies): Add stdint.
68615         * modules/vsprintf-posix (Dependencies): Likewise.
68616
68617 2007-07-01  Bruno Haible  <bruno@clisp.org>
68618
68619         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
68620         Windows PATH as well. Conservative double-quoting. Comments.
68621
68622 2007-07-01  Bruno Haible  <bruno@clisp.org>
68623             Eric Blake  <ebb9@byu.net>
68624             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68625
68626         * gnulib-tool (self_abspathname): Fix algorithm to cope with
68627         empty components in $PATH, denoting '.'.
68628
68629 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68630
68631         * gnulib-tool: Fix indentation.
68632         (func_create_megatestdir): Likewise.
68633         Report by Bruno Haible.
68634
68635 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68636
68637         Sync from Automake.
68638         * build-aux/gnupload: Fix shell portability issues with for loops.
68639         Report by Karl Berry.
68640
68641 2007-06-29  Simon Josefsson  <simon@josefsson.org>
68642
68643         * build-aux/maint.mk (POURL): Use translationproject.org.
68644
68645 2007-06-27  Simon Josefsson  <simon@josefsson.org>
68646             Bruno Haible  <bruno@clisp.org>
68647
68648         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
68649         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
68650         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
68651         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
68652         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
68653
68654 2007-06-27  Bruno Haible  <bruno@clisp.org>
68655
68656         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
68657         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
68658
68659 2007-06-26  Karl Berry  <karl@gnu.org>
68660
68661         * MODULES.html.sh: remove xreadlink-with-size.
68662
68663 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
68666         method that I hope also handles the double-include problem noted
68667         by Bruno Haible in
68668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
68669
68670 2007-06-23  Bruno Haible  <bruno@clisp.org>
68671
68672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68673         Don't let the 'mostlyclean' target fail if the last subdirectory could
68674         not be removed.
68675         Reported by Karl Berry.
68676
68677 2007-06-23  Bruno Haible  <bruno@clisp.org>
68678
68679         * gnulib-tool (echo): Add a speedier workaround for ksh.
68680         * tests/test-echo.sh: Likewise.
68681
68682 2007-06-23  Bruno Haible  <bruno@clisp.org>
68683
68684         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
68685         * tests/test-echo.sh: Likewise.
68686
68687 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68688
68689         * gnulib-tool (IFS): Initialize early, so we don't set it to
68690         empty later.
68691         (self_abspathname): Rewrite algorithm to set it, reindent.
68692         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
68693         (func_create_megatestdir): Merge some sed scripts.
68694
68695 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
68696
68697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
68698         exposed by Sun Studio 11 cc on Solaris 8.
68699
68700 2007-06-22  Bruno Haible  <bruno@clisp.org>
68701
68702         * gnulib-tool (echo): Ensure the echo primitive does not interpret
68703         backslashes.
68704         * tests/test-echo.sh: New file.
68705
68706 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68707
68708         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
68709         simplify `sed_replace_build_aux' scripts, they are portable but
68710         echoing them with `echo' is not.
68711         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
68712
68713 2007-06-21  Karl Berry  <karl@gnu.org>
68714
68715         * config/srclist.txt: guess we can't handle the licenses via
68716         srclist at the moment.
68717
68718 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * MODULES.html.sh: Add include_next.
68721         * modules/include_next: New file.
68722
68723 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68724
68725         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
68726         INCLUDE_NEXT.
68727         (gl_CHECK_NEXT_HEADERS): New macro.
68728         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
68729         the obsolescent gl_ABSOLUTE_HEADER.
68730         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
68731         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
68732         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
68733         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
68734         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
68735         * m4/math_h.m4 (gl_MATH_H): Likewise.
68736         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
68737         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
68738         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
68739         * m4/stdint.m4 (gl_STDINT_H): Likewise.
68740         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
68741         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
68742         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
68743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
68744         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
68745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
68746         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
68747         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
68748         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
68749         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
68750         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
68751         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
68752         * m4/inttypes.m4 (gl_INTTYPES_H): Define
68753         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
68754         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
68755         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
68756         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
68757         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
68758         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
68759         * lib/float_.h: Likewise.
68760         * lib/inttypes_.h: Likewise.
68761         * lib/math_.h: Likewise.
68762         * lib/search_.h: Likewise.
68763         * lib/signal_.h: Likewise.
68764         * lib/stdint_.h: Likewise.
68765         * lib/stdio_.h: Likewise.
68766         * lib/stdlib_.h: Likewise.
68767         * lib/string_.h: Likewise.
68768         * lib/sys_stat_.h: Likewise.
68769         * lib/sys_time_.h: Likewise.
68770         * lib/time_.h: Likewise.
68771         * lib/unistd_.h: Likewise.
68772         * lib/wchar_.h: Likewise.
68773         * lib/wctype_.h: Likewise.
68774         * lib/dirent_.h: Likewise.
68775         * lib/iconv_.h: Likewise.
68776         * lib/locale_.h: Likewise.
68777         * lib/netinet_in_.h: Likewise.
68778         * lib/sys_select_.h: Likewise.
68779         * lib/sys_socket_.h: Likewise.
68780         * lib/sysexits_.h: Likewise.
68781         * modules/fcntl (Depends-on): Depend on include_next, not
68782         absolute_header.
68783         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
68784         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
68785         * modules/fchdir: Likewise.
68786         * modules/float: Likewise.
68787         * modules/iconv_open: Likewise.
68788         * modules/inttypes: Likewise.
68789         * modules/locale: Likewise.
68790         * modules/math: Likewise.
68791         * modules/netinet_in: Likewise.
68792         * modules/search: Likewise.
68793         * modules/signal: Likewise.
68794         * modules/stdint: Likewise.
68795         * modules/stdio: Likewise.
68796         * modules/stdlib: Likewise.
68797         * modules/string: Likewise.
68798         * modules/sys_select: Likewise.
68799         * modules/sys_socket: Likewise.
68800         * modules/sys_stat: Likewise.
68801         * modules/sys_time: Likewise.
68802         * modules/sysexits: Likewise.
68803         * modules/time: Likewise.
68804         * modules/unistd: Likewise.
68805         * modules/wchar: Likewise.
68806         * modules/wctype: Likewise.
68807         * modules/sys_stat: Change maintainer to "all".
68808         * modules/unistd: Likewise.
68809
68810 2007-06-20  Karl Berry  <karl@gnu.org>
68811
68812         * config/srclist.txt: track www changes in license files.
68813
68814 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
68815
68816         * build-aux/bootstrap: Remove stray dot.
68817         Make sure build_aux settings are honored when linking
68818         gnulib_extra_files.
68819
68820 2007-06-19  Eric Blake  <ebb9@byu.net>
68821
68822         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
68823         Allow compilation on cygwin.
68824
68825 2007-06-19  Jim Meyering  <jim@meyering.net>
68826
68827         xreadlink-with-size: Remove module.  No longer used.
68828         Ex-callers now use xreadlink or mreadlink-with-size.
68829         * modules/xreadlink-with-size: Remove module.
68830         * lib/xreadlink-with-size.c: Remove file.
68831         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68832         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68833         just before the function definition *is* accurate.
68834
68835         Eliminate one way canonicalize_filename_mode could exit.
68836         * lib/canonicalize.c (canonicalize_filename_mode):
68837         Use mreadlink_with_size, not xreadlink_with_size.
68838
68839 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68840
68841         Detect porting problems to FreeBSD/arm, which has time_t wider than
68842         long int.  Original problem reported for GNU diff by Xin Li in
68843         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68844         * modules/getdate (Depends-on): Add intprops, verify.
68845         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68846         is an integer type no wider than long int.
68847
68848 2007-06-18  Jim Meyering  <jim@meyering.net>
68849
68850         New module: mreadlink-with-size.
68851         * MODULES.html.sh: Add mreadlink-with-size.
68852         * modules/mreadlink-with-size: New module
68853         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68854         not xreadlink-with-size.
68855         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68856
68857 2007-06-16  Bruno Haible  <bruno@clisp.org>
68858
68859         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68860         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68861         Reported by Gary V. Vaughan <gary@gnu.org>.
68862
68863 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         Revamp lchown so that it lives in unistd.h where it belongs.
68866         * lib/lchown.h: Remove.
68867         * lib/dirchownmod.c: Don't include lib/lchown.h.
68868         * lib/fchownat.c: Likewise.
68869         * lib/openat.c: Likewise.
68870         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68871         does not follow symlinks.
68872         (EOPNOTSUPP): Define if not defined.
68873         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68874         is defined to 0.
68875         (lchown): New decl.
68876         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68877         Do not check for lchown decl.
68878         Set REPLACE_LCHOWN.
68879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68880         REPLACE_LCHOWN.
68881         * modules/chown: Make it clear it follows symlinks.
68882         * modules/lchown: Make it clear it doesn't follow symlinks.
68883         (Files): Remove lib/lchown.h
68884         (Depends-on): Add unistd.
68885         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68886         (Include): Include <unistd.h>, not "lchown.h".
68887         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68888         REPLACE_LCHOWN.
68889
68890 2007-06-15  Jim Meyering  <jim@meyering.net>
68891
68892         Change license (GPL to LGPL) of fsusage and dependents.
68893         * modules/fsusage (License): Change to LGPL.
68894         * modules/full-read (License): Likewise.
68895         * modules/full-write (License): Likewise.
68896         * modules/safe-read (License): Likewise.
68897         * modules/safe-write (License): Likewise.
68898
68899 2007-06-14  Ben Pfaff  <blp@gnu.org>
68900
68901         Missing part of allocsa -> malloca transition.
68902         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68903         gl_MALLOCA.
68904
68905 2007-06-12  Bruno Haible  <bruno@clisp.org>
68906
68907         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68908         to ia64, x86_64, i386.
68909         Reported by Eric Blake.
68910
68911 2007-06-12  Bruno Haible  <bruno@clisp.org>
68912
68913         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68914         cross-compiling to x86_64.
68915
68916 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68917
68918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68919         glitch reported by Ralf Wildenhues in
68920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68921
68922         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68923         Vin Shelton.
68924
68925 2007-06-11  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68928         replacement string.
68929         Reported by Eric Blake.
68930
68931 2007-06-10  Bruno Haible  <bruno@clisp.org>
68932
68933         Prepare vasnprintf code for use with Unicode strings.
68934         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68935         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68936         TYPE_U32_STRING.
68937         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68938         a_u32_string variants.
68939         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68940         * lib/printf-args.c: Don't include config.h and the specification
68941         header if PRINTF_FETCHARGS is already defined.
68942         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68943         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68944         TYPE_U16_STRING, TYPE_U32_STRING.
68945         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68946         u16_directive, u16_directives, u32_directive, u32_directives): New
68947         types.
68948         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68949         New declarations.
68950         * lib/printf-parse.c: Don't include config.h and the specification
68951         header if PRINTF_PARSE is already defined. Eliminate the set of
68952         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68953         them now. Include c-ctype.h.
68954         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68955         directive and CHAR_T_ONLY_ASCII.
68956         * lib/vasnprintf.c: Don't include config.h and the specification header
68957         if VASNPRINTF is already defined.
68958         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68959         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68960         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68961         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68962         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68963         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68964         code accordingly.
68965         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68966         pad_ourselves also in this case, with the 'c' and 's' directives, and
68967         with a different notion of "width".
68968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68969
68970 2007-06-10  Bruno Haible  <bruno@clisp.org>
68971
68972         * modules/unistr/u32-mbsnlen: New file.
68973         * lib/unistr/u32-mbsnlen.c: New file.
68974
68975         * modules/unistr/u16-mbsnlen: New file.
68976         * lib/unistr/u16-mbsnlen.c: New file.
68977
68978         * modules/unistr/u8-mbsnlen: New file.
68979         * lib/unistr/u8-mbsnlen.c: New file.
68980
68981         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68982         declarations.
68983
68984 2007-06-10  Bruno Haible  <bruno@clisp.org>
68985
68986         * lib/string_.h (mbsnlen): New declaration.
68987         * lib/mbsnlen.c: New file.
68988         * m4/mbsnlen.m4: New file.
68989         * modules/mbsnlen: New file.
68990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68991         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68992         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68993
68994 2007-06-10  Bruno Haible  <bruno@clisp.org>
68995
68996         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68997
68998 2007-06-10  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69001         * lib/mbuiter.h: Likewise.
69002
69003 2007-06-10  Bruno Haible  <bruno@clisp.org>
69004
69005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69006         declaration.
69007
69008 2007-06-10  Karl Berry  <karl@gnu.org>
69009
69010         * config/srclist.txt: remove gettext entries, Bruno prefers
69011         to update individually.
69012
69013 2007-06-10  Bruno Haible  <bruno@clisp.org>
69014
69015         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69016         'maxlen'. Ensure only length + width bytes are allocated, not
69017         length + 1 + width.
69018
69019 2007-06-09  Bruno Haible  <bruno@clisp.org>
69020
69021         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69022         (CHAR_T): Remove macro.
69023         (VASNPRINTF): Update.
69024
69025 2007-06-09  Bruno Haible  <bruno@clisp.org>
69026
69027         * MODULES.html.sh (Unicode string functions): Add the new modules.
69028
69029         * modules/uniconv/u32-conv-to-enc: New file.
69030         * lib/uniconv/u32-conv-to-enc.c: New file.
69031         * modules/uniconv/u32-conv-to-enc-tests: New file.
69032         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69033
69034         * modules/uniconv/u16-conv-to-enc: New file.
69035         * lib/uniconv/u16-conv-to-enc.c: New file.
69036         * lib/uniconv/u-conv-to-enc.h: New file.
69037         * modules/uniconv/u16-conv-to-enc-tests: New file.
69038         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69039
69040         * modules/uniconv/u8-conv-to-enc: New file.
69041         * lib/uniconv/u8-conv-to-enc.c: New file.
69042         * modules/uniconv/u8-conv-to-enc-tests: New file.
69043         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69044
69045         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69046         u32_conv_to_encoding): New declarations.
69047
69048 2007-06-09  Bruno Haible  <bruno@clisp.org>
69049
69050         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69051
69052 2007-06-09  Bruno Haible  <bruno@clisp.org>
69053
69054         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69055         * modules/malloca: Renamed from modules/allocsa, updated.
69056         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69057         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69058         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69059         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69060         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69061         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69062         * modules/xmalloca: Renamed from modules/xallocsa, updated.
69063         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
69064         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
69065         * modules/c-strcasestr (Depends-on): Update.
69066         * lib/c-strcasestr.c: Update.
69067         * modules/c-strstr (Depends-on): Update.
69068         * lib/c-strstr.c: Update.
69069         * modules/canonicalize-lgpl (Depends-on): Update.
69070         * lib/canonicalize-lgpl.c: Update.
69071         * modules/clean-temp (Depends-on): Update.
69072         * lib/clean-temp.c: Update.
69073         * modules/csharpcomp (Depends-on): Update.
69074         * lib/csharpcomp.c: Update.
69075         * modules/csharpexec (Depends-on): Update.
69076         * lib/csharpexec.c: Update.
69077         * modules/javacomp (Depends-on): Update.
69078         * lib/javacomp.c: Update.
69079         * modules/javaexec (Depends-on): Update.
69080         * lib/javaexec.c: Update.
69081         * modules/mbscasestr (Depends-on): Update.
69082         * lib/mbscasestr.c: Update.
69083         * modules/mbsstr (Depends-on): Update.
69084         * lib/mbsstr.c: Update.
69085         * modules/setenv (Depends-on): Update.
69086         * lib/setenv.c: Update.
69087         * modules/strcasestr (Depends-on): Update.
69088         * lib/strcasestr.c: Update.
69089         * modules/striconveha (Depends-on): Update.
69090         * lib/striconveha.c: Update.
69091         * modules/relocatable-prog-wrapper (Files): Update.
69092         * lib/relocwrapper.c: Update.
69093         * build-aux/install-reloc: Update.
69094         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
69095
69096 2007-06-08  Bruno Haible  <bruno@clisp.org>
69097
69098         Port to uClibc.
69099         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
69100         * lib/fpurge.c (fpurge): Likewise.
69101         * lib/freading.c (freading): Likewise.
69102         * lib/fseeko.c (rpl_fseeko): Likewise.
69103         * lib/fseterr.c (fseterr): Likewise.
69104         * lib/fwriting.c (fwriting): Likewise.
69105         * tests/test-fflush.c (main): Avoid a failure on uClibc.
69106
69107 2007-06-08  Bruno Haible  <bruno@clisp.org>
69108
69109         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
69110         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
69111         * modules/gettext (Files): Add m4/intlmacosx.m4.
69112
69113 2007-06-07  Bruno Haible  <bruno@clisp.org>
69114
69115         * modules/localename-tests: New file.
69116         * tests/test-localename.c: New file.
69117
69118         New module 'localename'.
69119         * lib/localename.h: New file.
69120         * lib/localename.c: New file, from GNU gettext.
69121         * m4/localename.m4: New file.
69122         * modules/localename: New file.
69123
69124 2007-06-07  Bruno Haible  <bruno@clisp.org>
69125
69126         Work around the lack of <wchar.h> on some builds of uClibc.
69127         * doc/headers/wchar.texi: Update.
69128         * lib/wchar_.h: Include <wchar.h> only if it exists.
69129         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
69130         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
69131         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
69132         doesn't exist.
69133         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
69134         * modules/mbfile (Depends-on): Add wchar.
69135         * modules/mbiter (Depends-on): Likewise.
69136         * modules/mbuiter (Depends-on): Likewise.
69137         Reported by Simon Josefsson.
69138
69139 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69140
69141         Work around problem reported by Steven M. Schweda in
69142         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
69143         Tru64 5.1B with the Compaq compiler environment installed declares
69144         an 'isblank' function but does not define it in the C library.
69145         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
69146         * lib/regex_internal.h (isblank): Likewise.
69147         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
69148         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69149
69150 2007-06-05  Bruno Haible  <bruno@clisp.org>
69151
69152         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
69153         ia64.
69154         * modules/printf-safe: New file.
69155         * modules/fprintf-posix (Depends-on): Add printf-safe.
69156         * modules/printf-posix (Depends-on): Likewise.
69157         * modules/snprintf-posix (Depends-on): Likewise.
69158         * modules/sprintf-posix (Depends-on): Likewise.
69159         * modules/vasnprintf-posix (Depends-on): Likewise.
69160         * modules/vasprintf-posix (Depends-on): Likewise.
69161         * modules/vfprintf-posix (Depends-on): Likewise.
69162         * modules/vprintf-posix (Depends-on): Likewise.
69163         * modules/vsnprintf-posix (Depends-on): Likewise.
69164         * modules/vsprintf-posix (Depends-on): Likewise.
69165         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
69166         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
69167         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
69168         "no" on i386, x86_64, ia64.
69169         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
69170         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69171         on i386, x86_64, ia64.
69172         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
69173         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69174         on i386, x86_64, ia64.
69175         * tests/test-vasnprintf-posix.c: Include float.h.
69176         (LDBL80_WORDS): New macro.
69177         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69178         on i386, x86_64, ia64.
69179         * tests/test-vasprintf-posix.c: Include float.h.
69180         (LDBL80_WORDS): New macro.
69181         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
69182         on i386, x86_64, ia64.
69183         * tests/test-snprintf-posix.c: Include float.h.
69184         * tests/test-sprintf-posix.c: Likewise.
69185         * tests/test-vsnprintf-posix.c: Likewise.
69186         * tests/test-vsprintf-posix.c: Likewise.
69187
69188 2007-06-05  Bruno Haible  <bruno@clisp.org>
69189
69190         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
69191         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
69192         non-IEEE numbers on i386, x86_64, ia64.
69193         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
69194         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
69195         * tests/test-isnanl.h: Include float.h.
69196         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
69197
69198 2007-06-05  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
69201         also the %a / %A. Handle the %a / %A code before this extra handling.
69202
69203 2007-06-05  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
69206         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
69207
69208 2007-06-05  Bruno Haible  <bruno@clisp.org>
69209
69210         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
69211         typo in variable name.
69212
69213 2007-06-05  Eric Blake  <ebb9@byu.net>
69214
69215         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
69216         Reported by Simon Josefsson.
69217
69218 2007-06-04  Bruno Haible  <bruno@clisp.org>
69219
69220         Avoid test failures on some PowerPC platforms.
69221         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
69222         Define differently for PowerPC.
69223         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
69224         Reported by Gary V. Vaughan <gary@gnu.org>.
69225
69226 2007-06-02  Bruno Haible  <bruno@clisp.org>
69227
69228         Fix test-stdint failure on FreeBSD/ia64.
69229         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
69230         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
69231         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
69232         * doc/headers/stdint.texi: Update.
69233
69234 2007-06-01  Bruno Haible  <bruno@clisp.org>
69235
69236         * tests/test-binary-io.c (main): Pass a third argument to open().
69237         Reported by Gary V. Vaughan <gary@gnu.org>.
69238
69239 2007-06-01  Bruno Haible  <bruno@clisp.org>
69240
69241         * doc/functions/frexpl.texi: Update for mingw.
69242
69243 2007-06-01  Bruno Haible  <bruno@clisp.org>
69244
69245         * tests/test-lseek.c (main): Disable test of errno for invalid third
69246         argument.
69247         * doc/functions/lseek.texi: Update.
69248         Reported by Gary V. Vaughan <gary@gnu.org>.
69249
69250 2007-05-28  Bruno Haible  <bruno@clisp.org>
69251
69252         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
69253
69254 2007-05-31  Eric Blake  <ebb9@byu.net>
69255
69256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
69257         cross compiling.
69258
69259 2007-05-30  Eric Blake  <ebb9@byu.net>
69260         and Bruno Haible  <bruno@clisp.org>
69261
69262         Work around mingw test failures exposed by m4-1.4.9b.
69263         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
69264         * tests/test-unistd.c: Disable uid_t and git_t tests for the
69265         moment.
69266
69267 2007-05-30  Bruno Haible  <bruno@clisp.org>
69268
69269         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
69270         assuming that they are closed. Needed on HP-UX 11.
69271
69272 2007-05-29  Bruno Haible  <bruno@clisp.org>
69273
69274         Fix a problem with #include_next.
69275         * lib/dirent_.h: Split the double-inclusion guard.
69276         * lib/fcntl_.h: Likewise.
69277         * lib/float_.h: Likewise.
69278         * lib/iconv_.h: Likewise.
69279         * lib/inttypes_.h: Likewise.
69280         * lib/locale_.h: Likewise.
69281         * lib/math_.h: Likewise.
69282         * lib/netinet_in_.h: Likewise.
69283         * lib/search_.h: Likewise.
69284         * lib/signal_.h: Likewise.
69285         * lib/stdint_.h: Likewise.
69286         * lib/stdio_.h: Likewise.
69287         * lib/stdlib_.h: Likewise.
69288         * lib/string_.h: Likewise.
69289         * lib/sys_select_.h: Likewise.
69290         * lib/sys_socket_.h: Likewise.
69291         * lib/sys_stat_.h: Likewise.
69292         * lib/sys_time_.h: Likewise.
69293         * lib/sysexits_.h: Likewise.
69294         * lib/time_.h: Likewise.
69295         * lib/unistd_.h: Likewise.
69296         * lib/wchar_.h: Likewise.
69297         * lib/wctype_.h: Likewise.
69298
69299 2007-05-29  Bruno Haible  <bruno@clisp.org>
69300
69301         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
69302         for the moment.
69303
69304 2007-05-29  Bruno Haible  <bruno@clisp.org>
69305
69306         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
69307         invocation.
69308         Reported by Eric Blake.
69309
69310 2007-05-29  Bruno Haible  <bruno@clisp.org>
69311
69312         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
69313         compiling case.
69314
69315 2007-05-29  Eric Blake  <ebb9@byu.net>
69316             Bruno Haible  <bruno@clisp.org>
69317
69318         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
69319         cross compiles.
69320
69321 2007-05-28  Eric Blake  <ebb9@byu.net>
69322
69323         * modules/closein-tests (test_closein_LDADD): Support test on
69324         cygwin with libtool.
69325
69326 2007-05-28  Bruno Haible  <bruno@clisp.org>
69327
69328         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
69329         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
69330         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
69331         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
69332         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
69333         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
69334         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
69335         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
69336         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
69337
69338 2007-05-28  Eric Blake  <ebb9@byu.net>
69339
69340         Unconditionally include <config.h> in unit tests.
69341         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
69342         * tests/test-allocsa.c, tests/test-arcfour.c,
69343         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
69344         tests/test-array_list.c, tests/test-array_oset.c,
69345         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
69346         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
69347         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
69348         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
69349         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
69350         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
69351         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
69352         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
69353         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
69354         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
69355         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
69356         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
69357         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
69358         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
69359         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
69360         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
69361         test-md5.c, test-memmem.c, test-printf-posix.c,
69362         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
69363         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
69364         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
69365         test-strcasestr.c, test-striconv.c, test-striconveh.c,
69366         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
69367         test-vasnprintf-posix2.c, test-vasnprintf.c,
69368         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
69369         test-vfprintf-posix.c, test-vprintf-posix.c,
69370         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
69371         test-xvasprintf.c: Likewise.
69372
69373 2007-05-28  Bruno Haible  <bruno@clisp.org>
69374
69375         * gnulib-tool (func_import): Remember the --with-tests command-line
69376         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
69377         Reported by Eric Blake.
69378
69379 2007-05-28  Bruno Haible  <bruno@clisp.org>
69380
69381         * modules/ftell-tests: New file.
69382         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
69383         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
69384
69385         * lib/ftell.c: New file.
69386         * modules/ftell: New file.
69387         * m4/ftell.m4: New file.
69388         * doc/functions/ftell.texi: Update.
69389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
69390         REPLACE_FTELL.
69391         * lib/stdio_.h (rpl_ftell): New declaration.
69392         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
69393         REPLACE_FTELL.
69394
69395 2007-05-28  Eric Blake  <ebb9@byu.net>
69396
69397         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
69398
69399 2007-05-28  Bruno Haible  <bruno@clisp.org>
69400
69401         * modules/fseek-tests: New file.
69402         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
69403         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
69404
69405         * lib/fseek.c: New file.
69406         * modules/fseek: New file.
69407         * m4/fseek.m4: New file.
69408         * doc/functions/fseek.texi: Update.
69409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
69410         REPLACE_FSEEK.
69411         * lib/stdio_.h (rpl_fseek): New declaration.
69412         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
69413         REPLACE_FSEEK.
69414
69415 2007-05-28  Bruno Haible  <bruno@clisp.org>
69416
69417         * lib/stdio_.h (fflush): More comments.
69418
69419 2007-05-28  Bruno Haible  <bruno@clisp.org>
69420
69421         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
69422         runtime test.
69423
69424 2007-05-28  Eric Blake  <ebb9@byu.net>
69425
69426         Improve lseek module.
69427         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
69428         * lib/unistd_.h (lseek): Scale back link warning message.
69429         * tests/test-lseek.c: Beef up test.
69430         * tests/test-lseek.sh: Exercise more facets of lseek.
69431         Reported by Bruno Haible.
69432
69433 2007-05-28  Bruno Haible  <bruno@clisp.org>
69434
69435         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
69436         to define.
69437
69438 2007-05-27  Bruno Haible  <bruno@clisp.org>
69439
69440         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
69441
69442 2007-05-27  Bruno Haible  <bruno@clisp.org>
69443
69444         * modules/openmp: New file.
69445         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
69446         Noah Misch.
69447
69448 2007-05-26  Bruno Haible  <bruno@clisp.org>
69449
69450         * modules/chdir-long (Depends-on): Add fchdir.
69451         * modules/chdir-safer (Depends-on): Likewise.
69452         * modules/fts (Depends-on): Likewise.
69453         * modules/fts-lgpl (Depends-on): Likewise.
69454         * modules/openat (Depends-on): Likewise.
69455         * modules/savewd (Depends-on): Likewise.
69456
69457 2007-05-24  Eric Blake  <ebb9@byu.net>
69458
69459         Fix lseek on mingw.
69460         * modules/lseek: New module.
69461         * m4/lseek.m4: New file.
69462         * lib/lseek.c: New file.
69463         * modules/lseek-tests: New file.
69464         * tests/test-lseek.c: New file.
69465         * tests/test-lseek.sh: New file.
69466         * MODULES.html.sh: Document lseek module.
69467         * modules/fflush (Depends-on): Add lseek, fseeko.
69468         * modules/fseeko (Depends-on): Likewise.
69469         * modules/ftello (Depends-on): Likewise.
69470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
69471         broken.
69472         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
69473         broken.
69474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
69475         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
69476         * lib/ftello.c (rpl_ftello): Likewise.
69477         * tests/test-fseeko.c (main): Test this.
69478         * tests/test-fseeko.sh: Likewise.
69479         * tests/test-ftello.c (main): Likewise.
69480         * tests/test-ftello.sh: Likewise.
69481         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
69482         implies replacing fseek.
69483         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
69484         HAVE_FTELLO.
69485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
69486         * modules/unistd (Makefile.am): Likewise.
69487         * lib/unistd_.h (lseek): Declare a replacement.
69488         * doc/functions/lseek.texi (lseek): Document this fix.
69489         * doc/functions/fseek.texi (fseek): Likewise.
69490         * doc/functions/ftell.texi (ftell): Likewise.
69491
69492 2007-05-24  Bruno Haible  <bruno@clisp.org>
69493
69494         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
69495         in the printed representation of a NaN.
69496         * tests/test-vasprintf-posix.c (test_function): Likewise.
69497         * tests/test-snprintf-posix.h (test_function): Likewise.
69498         * tests/test-sprintf-posix.h (test_function): Likewise.
69499         Reported by Eric Blake.
69500
69501 2007-05-23  Eric Blake  <ebb9@byu.net>
69502
69503         Fix fseeko/ftello on cygwin 1.5.24.
69504         * doc/functions/fseeko.texi (fseeko): Document the fix.
69505         * doc/functions/ftello.texi (ftello): Document the fix.
69506         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
69507         * doc/functions/stdout.text (stdout): New file.
69508         * doc/functions/stderr.text (stderr): New file.
69509         * doc/gnulib.texi (Function Substitutes): Use new files.
69510         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
69511         prior to 1.7.0.
69512         * tests/test-ftello.c (main): Likewise for ftello.
69513         * tests/test-fseeko.sh: New file.
69514         * tests/test-ftello.sh: New file.
69515         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
69516         with seekable stdin.
69517         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
69518         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
69519         (gl_REPLACE_FSEEKO): New macro.
69520         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
69521         * modules/fseeko (Files): Distribute fseeko.c.
69522         * modules/ftello (Files): Distribute ftello.c.
69523         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
69524         mode.
69525         * lib/ftello.c (rpl_ftello): New file.
69526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
69527         fseeko, ftello.
69528         (gl_STDIN_LARGE_OFFSET): New macro.
69529         * modules/stdio (Makefile.am): Perform the replacement.
69530         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
69531
69532 2007-05-23  Bruno Haible  <bruno@clisp.org>
69533
69534         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
69535         GNULIB_POSIXCHECK is defined.
69536
69537 2007-05-21  Bruno Haible  <bruno@clisp.org>
69538
69539         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
69540         Check also the output for NaN arguments. When cross-compiling, guess
69541         no on IRIX.
69542         * lib/vasnprintf.c: Update comments.
69543         * tests/test-vasnprintf-posix.c (strisnan): New function.
69544         (test_function): Use it.
69545         * tests/test-vasprintf-posix.c (strisnan): New function.
69546         (test_function): Use it.
69547         * tests/test-snprintf-posix.h (strisnan): New function.
69548         (test_function): Use it.
69549         * tests/test-sprintf-posix.h (strisnan): New function.
69550         (test_function): Use it.
69551         Reported by Eric Blake.
69552
69553 2007-05-20  Bruno Haible  <bruno@clisp.org>
69554
69555         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
69556         numbers that fails on BeOS.
69557         * doc/functions/frexpl.texi: Update.
69558
69559 2007-05-20  Jim Meyering  <jim@meyering.net>
69560
69561         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
69562         forced upon us by glibc-2.6.
69563
69564 2007-05-20  Bruno Haible  <bruno@clisp.org>
69565
69566         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
69567         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
69568         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
69569         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
69570         NEED_PRINTF_INFINITE.
69571         (is_infinitel): New function.
69572         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
69573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
69574         gl_PREREQ_VASNPRINTF_INFINITE.
69575         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
69576         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69577         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
69578         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
69579         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
69580         gl_PREREQ_VASNPRINTF_INFINITE.
69581         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69585         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69586         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69587         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69588         * doc/functions/fprintf.texi: Update.
69589         * doc/functions/printf.texi: Update.
69590         * doc/functions/snprintf.texi: Update.
69591         * doc/functions/sprintf.texi: Update.
69592         * doc/functions/vfprintf.texi: Update.
69593         * doc/functions/vprintf.texi: Update.
69594         * doc/functions/vsnprintf.texi: Update.
69595         * doc/functions/vsprintf.texi: Update.
69596
69597 2007-05-20  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
69600         was not found in libc.
69601         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
69602
69603 2007-05-20  Bruno Haible  <bruno@clisp.org>
69604
69605         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69606         printed as "-nan" 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         Needed for HP-UX 11.
69611
69612 2007-05-20  Jim Meyering  <jim@meyering.net>
69613
69614         Fix buggy test for the fchownat-deref bug.
69615         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
69616         symlink required for the run-test.  Without it, this test would
69617         always declare that fchownat doesn't work, and client code would
69618         unnecessarily use the replacement function with fixed libc.
69619         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
69620         Reported by Greg Schafer.
69621
69622 2007-05-19  Bruno Haible  <bruno@clisp.org>
69623
69624         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
69625         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
69626         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
69627         Needed for IRIX 6.5 and Solaris 2.5.1.
69628
69629 2007-05-19  Bruno Haible  <bruno@clisp.org>
69630
69631         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
69632         (test_function): Skip tests involving -0.0 on platforms where
69633         -0.0 = 0.0.
69634         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
69635         (test_function): Skip tests involving -0.0 on platforms where
69636         -0.0 = 0.0.
69637         * tests/test-snprintf-posix.h (have_minus_zero): New function.
69638         (test_function): Skip tests involving -0.0 on platforms where
69639         -0.0 = 0.0.
69640         * tests/test-sprintf-posix.h (have_minus_zero): New function.
69641         (test_function): Skip tests involving -0.0 on platforms where
69642         -0.0 = 0.0.
69643         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
69644         tests.
69645         * tests/test-printf-posix.h (test_function): Likewise.
69646         * tests/test-printf-posix.output: Remove all -0.0 related results.
69647         Needed for IRIX 6.5.
69648
69649 2007-05-19  Bruno Haible  <bruno@clisp.org>
69650
69651         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
69652         printed as "nan0x7fffffff" instead of "nan".
69653         * tests/test-vasprintf-posix.c (test_function): Likewise.
69654         * tests/test-snprintf-posix.h (test_function): Likewise.
69655         * tests/test-sprintf-posix.h (test_function): Likewise.
69656         * tests/test-fprintf-posix.h (NaN): Remove macro.
69657         (test_function): Remove all NaN related tests.
69658         * tests/test-printf-posix.h (NaN): Remove macro.
69659         (test_function): Remove all NaN related tests.
69660         * tests/test-printf-posix.output: Remove all NaN related results.
69661         Needed for IRIX 6.5.
69662
69663 2007-05-19  Bruno Haible  <bruno@clisp.org>
69664
69665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
69666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
69667
69668 2007-05-19  Bruno Haible  <bruno@clisp.org>
69669
69670         * lib/float_.h: New file.
69671         * m4/float_h.m4: New file.
69672         * modules/float: New file.
69673         * modules/isnanl (Dependencies): Add float.
69674         * modules/isnanl-nolibm (Dependencies): Likewise.
69675         * modules/mathl (Dependencies): Likewise.
69676         * modules/printf-frexpl (Dependencies): Likewise.
69677         * modules/signbit (Dependencies): Likewise.
69678         * modules/vasnprintf (Dependencies): Likewise.
69679         * doc/headers/float.texi: Update.
69680
69681 2007-05-19  Jim Meyering  <jim@meyering.net>
69682
69683         * lib/utimens.c (gl_futimens): Rename from futimens,
69684         now that glibc-2.6 declares futimens.
69685         * lib/utimens.h: Likewise.
69686
69687 2007-05-19  Bruno Haible  <bruno@clisp.org>
69688
69689         Avoid test failures on mingw.
69690         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
69691         * tests/test-printf-posix.sh: Likewise.
69692         * tests/test-vfprintf-posix.sh: Likewise.
69693         * tests/test-vprintf-posix.sh: Likewise.
69694
69695 2007-05-19  Bruno Haible  <bruno@clisp.org>
69696
69697         Fix *printf result for NaN, Inf, -0.0 on mingw.
69698         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
69699         * lib/vasnprintf.c: Include math.h and isnan.h.
69700         (is_infinite_or_zero): New function.
69701         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
69702         values in the %f, %F, %e, %E, %g, %G directives.
69703         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
69704         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69705         gl_PRINTF_INFINITE and test its result. Invoke
69706         gl_PREREQ_VASNPRINTF_INFINITE.
69707         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69708         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69709         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69710         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69711         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69712         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69713         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69714         * doc/functions/fprintf.texi: Update.
69715         * doc/functions/printf.texi: Update.
69716         * doc/functions/snprintf.texi: Update.
69717         * doc/functions/sprintf.texi: Update.
69718         * doc/functions/vfprintf.texi: Update.
69719         * doc/functions/vprintf.texi: Update.
69720         * doc/functions/vsnprintf.texi: Update.
69721         * doc/functions/vsprintf.texi: Update.
69722
69723 2007-05-19  Bruno Haible  <bruno@clisp.org>
69724
69725         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
69726         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
69727         Instead of multiplying with 10^k, set extra_zeroes to k.
69728         (scale10_round_long_double): Remove function.
69729
69730 2007-05-18  Bruno Haible  <bruno@clisp.org>
69731
69732         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
69733         introduced on 2007-05-06.
69734
69735 2007-05-18  Bruno Haible  <bruno@clisp.org>
69736
69737         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
69738         %g directives.
69739         * tests/test-vasprintf-posix.c (test_function): Likewise.
69740         * tests/test-snprintf-posix.h (test_function): Likewise.
69741         * tests/test-sprintf-posix.h (test_function): Likewise.
69742
69743 2007-05-18  Bruno Haible  <bruno@clisp.org>
69744
69745         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
69746         (strmatch): New function.
69747         (test_function): Test the %f directive on numbers of various exponents.
69748         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
69749         (strmatch): New function.
69750         (test_function): Test the %f directive on numbers of various exponents.
69751         * tests/test-snprintf-posix.h (strmatch): New function.
69752         (test_function): Test the %f directive on numbers of various exponents.
69753         * tests/test-sprintf-posix.h (strmatch): New function.
69754         (test_function): Test the %f directive on numbers of various exponents.
69755         * tests/test-snprintf-posix.c (SIZEOF): New macro.
69756         * tests/test-sprintf-posix.c (SIZEOF): New macro.
69757         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
69758         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
69759
69760 2007-05-18  Bruno Haible  <bruno@clisp.org>
69761
69762         Add support for 'long double' number output.
69763         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
69764         * lib/vasnprintf.c: Include math.h and float+.h.
69765         (mp_limb_t): New type.
69766         (GMP_LIMB_BITS): New macro.
69767         (mp_twolimb_t): New type.
69768         (GMP_TWOLIMB_BITS): New macro.
69769         (mpn_t): New type.
69770         (multiply, divide, convert_to_decimal, decode_long_double,
69771         scale10_round_long_double, scale10_round_decimal_long_double,
69772         floorlog10l): New functions.
69773         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
69774         for the %f, %F, %e, %E, %g, %G directives.
69775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
69776         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69777         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
69778         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
69779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69780         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69781         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69782         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69783         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69784         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69785         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69786         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
69787         * modules/snprintf-posix (Depends-on): Likewise.
69788         * modules/sprintf-posix (Depends-on): Likewise.
69789         * modules/vasnprintf-posix (Depends-on): Likewise.
69790         * modules/vasprintf-posix (Depends-on): Likewise.
69791         * modules/vfprintf-posix (Depends-on): Likewise.
69792         * modules/vsnprintf-posix (Depends-on): Likewise.
69793         * modules/vsprintf-posix (Depends-on): Likewise.
69794         * modules/vasnprintf (Files): Add lib/float+.h.
69795         * doc/functions/fprintf.texi: Update.
69796         * doc/functions/printf.texi: Update.
69797         * doc/functions/snprintf.texi: Update.
69798         * doc/functions/sprintf.texi: Update.
69799         * doc/functions/vfprintf.texi: Update.
69800         * doc/functions/vprintf.texi: Update.
69801         * doc/functions/vsnprintf.texi: Update.
69802         * doc/functions/vsprintf.texi: Update.
69803
69804 2007-05-18  Bruno Haible  <bruno@clisp.org>
69805
69806         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
69807
69808 2007-05-18  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
69811         for printing 64-bit integers. Needed for mingw.
69812
69813 2007-05-18  Bruno Haible  <bruno@clisp.org>
69814
69815         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69816         gl_FUNC_FREXPL_WORKS.
69817         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
69818
69819 2007-05-18  Bruno Haible  <bruno@clisp.org>
69820
69821         * modules/frexpl-nolibm-tests: New file.
69822
69823         * modules/frexpl-nolibm: New file.
69824         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
69825
69826 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
69829         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69830         GCC 4.2, which otherwise issues a lot of warnings.
69831         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69832         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69833         Likewise.
69834         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69835         * modules/iconv_open (iconv.h): Likewise.
69836         * modules/locale (locale.h): Likewise.
69837         * modules/netinet_in (netinet/in.h): Likewise.
69838         * modules/sys_select (sys_select.h): Likewise.
69839         * modules/sys_socket (sys/socket.h): Likewise.
69840         * modules/sys_stat (sys/stat.h): Likewise.
69841         * modules/sysexits (sysexits.h): Likewise.
69842         * modules/unistd (unistd.h): Likewise.
69843
69844 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69845
69846         * modules/closein-tests (Makefile.am): Distribute
69847         `test-closein.sh'.
69848
69849 2007-05-17  Bruno Haible  <bruno@clisp.org>
69850
69851         * tests/test-printf-posix.output: Renamed from
69852         tests/test-fprintf-posix.out.
69853         * modules/fprintf-posix-tests: Update.
69854         * modules/printf-posix-tests: Update.
69855         * modules/vfprintf-posix-tests: Update.
69856         * modules/vprintf-posix-tests: Update.
69857         * tests/test-fprintf-posix.sh: Update.
69858         * tests/test-printf-posix.sh: Update.
69859         * tests/test-vfprintf-posix.sh: Update.
69860         * tests/test-vprintf-posix.sh: Update.
69861         Reported by Ralf Wildenhues.
69862
69863 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69866         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69867         GCC 4.2, which otherwise issues a lot of warnings.
69868         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69869         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69870         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69871         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69872         it should no longer be needed.
69873         * lib/string_.h: Likewise.
69874         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69875         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69876         * modules/inttypes (inttypes.h): Likewise.
69877         * modules/math (math.h): Likewise.
69878         * modules/search (search.h): Likewise.
69879         * modules/signal (signal.h): Likewise.
69880         * modules/stdint (stdint.h): Likewise.
69881         * modules/stdio (stdio.h): Likewise.
69882         * modules/stdlib (stdlib.h): Likewise.
69883         * modules/string (string.h): Likewise.
69884         * modules/sys_time (sys/time.h): Likewise.
69885         * modules/time (time.h): Likewise.
69886         * modules/wchar (wchar.h): Likewise.
69887         * modules/wctype (wtype.h): Likewise.
69888
69889 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69890
69891         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69892
69893 2007-05-13  Bruno Haible  <bruno@clisp.org>
69894
69895         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69896         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69897         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69898         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69899         (gl_PREREQ_STRTOK_R): Don't require it here.
69900
69901 2007-05-13  Bruno Haible  <bruno@clisp.org>
69902
69903         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69904         when used in C++ mode.
69905
69906 2007-05-12  Bruno Haible  <bruno@clisp.org>
69907
69908         * lib/linebuffer.h: Tweak doc.
69909         * lib/linebuffer.c: Likewise.
69910
69911 2007-05-12  James Youngman  <jay@gnu.org>
69912
69913         * lib/linebuffer.c (readlinebuffer_delim): New function,
69914         like readlinebuffer, but use a caller-specified delimiter.
69915         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69916         as the delimiter.
69917         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69918
69919 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69920
69921         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69922         * modules/openat (Files): Remove openat-die.c.
69923         (Depends-on): Add openat-die.
69924         * modules/openat-die: New module.
69925
69926 2007-05-06  Bruno Haible  <bruno@clisp.org>
69927
69928         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69929         Update with info about Cygwin.
69930         * doc/functions/fprintf.texi: Update.
69931         * doc/functions/printf.texi: Update.
69932         * doc/functions/snprintf.texi: Update.
69933         * doc/functions/sprintf.texi: Update.
69934         * doc/functions/vfprintf.texi: Update.
69935         * doc/functions/vprintf.texi: Update.
69936         * doc/functions/vsnprintf.texi: Update.
69937         * doc/functions/vsprintf.texi: Update.
69938         Reported by Eric Blake.
69939
69940 2007-05-06  Bruno Haible  <bruno@clisp.org>
69941
69942         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69943         padding ourselves for the floating-point directives.
69944         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69946         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69947         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69948         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69950         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69956         * tests/test-snprintf-posix.h (test_function): Also check the width
69957         and some flags in the %f directive.
69958         * tests/test-sprintf-posix.h (test_function): Likewise.
69959         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69960         * tests/test-vasprintf-posix.c (test_function): Likewise.
69961         * doc/functions/fprintf.texi: Update.
69962         * doc/functions/printf.texi: Update.
69963         * doc/functions/snprintf.texi: Update.
69964         * doc/functions/sprintf.texi: Update.
69965         * doc/functions/vfprintf.texi: Update.
69966         * doc/functions/vprintf.texi: Update.
69967         * doc/functions/vsnprintf.texi: Update.
69968         * doc/functions/vsprintf.texi: Update.
69969
69970 2007-05-06  Bruno Haible  <bruno@clisp.org>
69971
69972         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69973         pass the ' flag character to sprintf or snprintf.
69974         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69975         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69976         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69977         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69978         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69980         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69986         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69987         flag.
69988         * tests/test-sprintf-posix.h (test_function): Likewise.
69989         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69990         * tests/test-vasprintf-posix.c (test_function): Likewise.
69991         * doc/functions/fprintf.texi: Update.
69992         * doc/functions/printf.texi: Update.
69993         * doc/functions/snprintf.texi: Update.
69994         * doc/functions/sprintf.texi: Update.
69995         * doc/functions/vfprintf.texi: Update.
69996         * doc/functions/vprintf.texi: Update.
69997         * doc/functions/vsnprintf.texi: Update.
69998         * doc/functions/vsprintf.texi: Update.
69999
70000 2007-05-01  Bruno Haible  <bruno@clisp.org>
70001
70002         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70003
70004 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70007         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70008
70009 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70010
70011         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70012         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70014
70015 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70016
70017         * lib/argp-help.c (struct hol_entry): New member `ord'.
70018         (HOL_ENTRY_PTRCMP): Use ord for comparison
70019         (hol_sort): Initialize ord.
70020
70021 2007-05-01  Bruno Haible  <bruno@clisp.org>
70022
70023         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70024         Reported by Eric Blake.
70025         * doc/gnulib.texi (Function Substitutes): Update.
70026
70027 2007-05-01  Bruno Haible  <bruno@clisp.org>
70028
70029         * doc/functions.texi: Remove file, now redundant through
70030         doc/functions/*.texi.
70031
70032 2007-05-01  Bruno Haible  <bruno@clisp.org>
70033
70034         * modules/argp (Depends-on): Add sleep.
70035
70036 2007-05-01  Bruno Haible  <bruno@clisp.org>
70037
70038         * modules/sleep-tests: New file.
70039         * tests/test-sleep.c: New file.
70040
70041         * modules/sleep: New file.
70042         * lib/sleep.c: New file.
70043         * m4/sleep.m4: New file.
70044         * lib/unistd_.h (sleep): New declaration.
70045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70046         HAVE_SLEEP.
70047         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70048         * doc/functions/sleep.texi: Document the sleep module.
70049
70050 2007-05-01  Bruno Haible  <bruno@clisp.org>
70051
70052         * lib/sigprocmask.h: Remove file.
70053         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70054         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70055         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70056         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70057         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70058         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70059         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70060         HAVE_SIGSET_T as a shell variable.
70061         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70062         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
70063         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
70064         (Depends-on): Add signal. Remove verify.
70065         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
70066         (Include): Mention <signal.h> instead of sigprocmask.h.
70067         * NEWS: Mention the change.
70068         * lib/fatal-signal.c: Don't include sigprocmask.h.
70069
70070 2007-05-01  Bruno Haible  <bruno@clisp.org>
70071
70072         * modules/signal: New file.
70073         * lib/signal_.h: New file.
70074         * m4/signal_h.m4: New file.
70075
70076 2007-05-01  Bruno Haible  <bruno@clisp.org>
70077
70078         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
70079         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
70080         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
70081         HAVE_WCTYPE_CTMP_BUG into wctype.h.
70082
70083 2007-05-01  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
70086         configure time.
70087         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
70088         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
70089         * modules/sys_stat (Makefile.am): Substitute their values into
70090         sys/stat.h.
70091
70092 2007-05-01  Bruno Haible  <bruno@clisp.org>
70093
70094         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
70095         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
70096         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
70097
70098 2007-05-01  Bruno Haible  <bruno@clisp.org>
70099
70100         * doc/header/assert.texi: Undo last change: don't mention the gnulib
70101         'assert' module here.
70102
70103 2007-05-01  Bruno Haible  <bruno@clisp.org>
70104
70105         * doc/functions/*.texi: New files.
70106         * doc/functions/google-ranking.txt: New file.
70107         * doc/gnulib.texi (Function Substitutes): New chapter.
70108         (ctime, inet_ntoa): Remove sections.
70109         * doc/ctime.texi: Remove file.
70110         * doc/inet_ntoa.texi: Remove file.
70111         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
70112         dependencies.
70113         (%.info): New rule, specifying a --reference-limit.
70114
70115 2007-05-01  Bruno Haible  <bruno@clisp.org>
70116
70117         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
70118
70119 2007-05-01  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
70122         the portability of 'mkdir' to mingw systems.
70123
70124 2007-05-01  Bruno Haible  <bruno@clisp.org>
70125
70126         * doc/headers/google-ranking.txt: New file.
70127
70128 2007-04-30  Eric Blake  <ebb9@byu.net>
70129
70130         Prefer fseeko to fseek.
70131         * modules/getpass (Depends-on): Add fseeko.
70132         * lib/getpass.c (getpass): Use fseeko, not fseek.
70133
70134 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
70135
70136         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
70137         assumes the sorting is stable, while most qsort implementations
70138         are not.  Use argument addresses to ensure they never compare as
70139         equal.
70140
70141         * tests/test-argp-2.sh (usage-indent test): Fix output
70142         (func_compare): Restore diff options
70143         * tests/test-argp.c: Restore #include "progname.h"
70144
70145 2007-04-29  Bruno Haible  <bruno@clisp.org>
70146
70147         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
70148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70149         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
70150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70151         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
70152         (configure.ac): Define CHECK_SNPRINTF_POSIX.
70153         (TESTS, check_PROGRAMS): Add test-snprintf.
70154         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
70155         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
70156         (TESTS, check_PROGRAMS): Add test-vsnprintf.
70157         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
70158         assertions that fail on HP-UX, OSF/1, or IRIX.
70159         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
70160
70161 2007-04-29  Bruno Haible  <bruno@clisp.org>
70162
70163         * MODULES.html.sh (posix_functions): Remove 'contents'.
70164
70165 2007-04-29  Karl Berry  <karl@gnu.org>
70166
70167         * config/srclist.txt (gendocs_template_min): new entry.
70168
70169 2007-04-29  Bruno Haible  <bruno@clisp.org>
70170
70171         Work around fpurge bug on BSD systems.
70172         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
70173         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
70174         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
70175         fpurge to rpl_fpurge if the system already has this function.
70176         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
70177         the case where the system already has this function. Correct invariants
70178         on BSD systems.
70179         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
70180         BSD systems.
70181
70182 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
70183
70184         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
70185         proposed by Sven Verdoolaege.
70186
70187         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
70188         options.
70189         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
70190         (usage and help tests): Update
70191
70192 2007-04-29  Bruno Haible  <bruno@clisp.org>
70193
70194         * tests/test-fflush.c (main): Use a file of size 17, not 10.
70195         Print more information in case of failure. Disable a test on BeOS.
70196
70197 2007-04-29  Bruno Haible  <bruno@clisp.org>
70198
70199         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
70200         This helps debugging on systems on which no gdb is available.
70201
70202 2007-04-29  Bruno Haible  <bruno@clisp.org>
70203
70204         * lib/freading.h: Improve comments.
70205         * lib/fwriting.h: Likewise.
70206         * tests/test-freading.c (main): Don't check freading immediately after
70207         repositioning. Needed for glibc.
70208
70209 2007-04-29  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/freading.c (freading): Trivial simplification.
70212
70213 2007-04-28  Bruno Haible  <bruno@clisp.org>
70214
70215         * tests/test-fwriting.c (main): Also test the interaction between
70216         fflush and fwriting.
70217         * modules/fwriting-tests (Depends-on): Add fflush.
70218
70219         * tests/test-freading.c (main): Also test the interaction between
70220         fflush and freading.
70221         * modules/freading-tests (Depends-on): Add fflush.
70222
70223 2007-04-28  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
70226         fseeko and ftello.
70227         Suggested by Eric Blake.
70228
70229 2007-04-28  Jim Meyering  <jim@meyering.net>
70230
70231         Avoid false-negative in gl_STDINT_H's C99 conformance test.
70232         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
70233         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
70234
70235 2007-04-27  Eric Blake  <ebb9@byu.net>
70236
70237         * doc/headers/assert.texi (assert.h): Document assert module use.
70238
70239 2007-04-27  Bruno Haible  <bruno@clisp.org>
70240
70241         * doc/headers/*.texi: New files.
70242         * doc/gnulib.texi (Header File Substitutes): New chapter.
70243         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
70244         dependencies.
70245         (standards.info ,standards.html, standards.dvi): Update dependencies.
70246         (mostlyclean, clean): New targets.
70247
70248 2007-04-27  Bruno Haible  <bruno@clisp.org>
70249
70250         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
70251         * modules/sysexits (Files, Makefile.am): Update.
70252
70253         * lib/sys_socket_.h: Renamed from lib/socket_.h.
70254         * modules/sys_socket (Files, Makefile.am): Update.
70255
70256         * lib/sys_stat_.h: Renamed from lib/stat_.h.
70257         * modules/sys_stat (Files, Makefile.am): Update.
70258
70259 2007-04-27  Eric Blake  <ebb9@byu.net>
70260
70261         * lib/freading.h: Improve comments.
70262         * lib/fwriting.h: Likewise.
70263         * lib/fflush.c: Likewise.
70264
70265         Fix closein for mingw.
70266         * modules/closein-tests: Add tests for closein.
70267         * tests/test-closein.c: New file.
70268         * tests/test-closein.sh: Likewise.
70269         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
70270         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
70271
70272 2007-04-27  Bruno Haible  <bruno@clisp.org>
70273
70274         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
70275         version is < 6.
70276         * lib/math_.h [__DECC]: Likewise.
70277         * lib/stdio_.h [__DECC]: Likewise.
70278         * lib/stdlib_.h [__DECC]: Likewise.
70279         * lib/string_.h [__DECC]: Likewise.
70280         * lib/time_.h [__DECC]: Likewise.
70281         * lib/wchar_.h [__DECC]: Likewise.
70282         * lib/wctype_.h [__DECC]: Likewise.
70283
70284 2007-04-27  Bruno Haible  <bruno@clisp.org>
70285
70286         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
70287
70288 2007-04-27  Bruno Haible  <bruno@clisp.org>
70289
70290         * lib/fflush.c: Add comments.
70291         * modules/fpurge-tests (Depends-on): Add fflush.
70292         * modules/freadable-tests (Depends-on): Likewise.
70293         * modules/fwritable-tests (Depends-on): Likewise.
70294
70295 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
70296
70297         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
70298         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
70299         Report by Bruno Haible <bruno@clisp.org>.
70300
70301 2007-04-26  Eric Blake  <ebb9@byu.net>
70302
70303         Fix fflush on mingw.
70304         * modules/fflush (Depends-on): Add freading.
70305         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
70306         but unread data.
70307
70308 2007-04-26  Eric Blake  <ebb9@byu.net>
70309         and Bruno Haible  <bruno@clisp.org>
70310
70311         Implement freading and fwriting.
70312         * lib/freading.c: New file.
70313         * lib/freading.h: Likewise.
70314         * m4/freading.m4: Likewise.
70315         * modules/freading: Likewise.
70316         * modules/freading-tests: Likewise.
70317         * tests/test-freading.c: Likewise.
70318         * lib/fwriting.c: New file.
70319         * lib/fwriting.h: Likewise.
70320         * m4/fwriting.m4: Likewise.
70321         * modules/fwriting: Likewise.
70322         * modules/fwriting-tests: Likewise.
70323         * tests/test-fwriting.c: Likewise.
70324         * MODULES.html.sh (File stream based Input/Output): Mention them.
70325
70326 2007-04-26  Bruno Haible  <bruno@clisp.org>
70327
70328         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
70329         'long' when we assume it.
70330         Suggested by Eric Blake.
70331
70332 2007-04-26  Bruno Haible  <bruno@clisp.org>
70333
70334         Ensure fseeko, ftello are declared on glibc systems.
70335         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
70336         * modules/fseeko (configure.ac-early): Likewise.
70337         * modules/ftello (configure.ac-early): Likewise.
70338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
70339         AC_FUNC_FSEEKO for this.
70340         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
70341         (gl_CHECK_FSEEKO): Remove macro.
70342
70343 2007-04-26  Bruno Haible  <bruno@clisp.org>
70344
70345         * tests/test-fflush.c (main): Also check the ftell result after
70346         fflush and fseek/fseeko.
70347         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
70348         file descriptor position cache in the stream.
70349         * lib/fseeko.c (rpl_fseeko): Likewise.
70350
70351 2007-04-26  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/fflush-tests (Depends-on): Add fseeko.
70354
70355 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
70356             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70357
70358         * lib/argz_.h: ensure error_t definition is obtained in same
70359         mechanism system argz.h would have.
70360         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
70361         argz facilities are known bad.  Err on the side of caution if
70362         cross-compiling.
70363
70364 2007-04-25  Eric Blake  <ebb9@byu.net>
70365
70366         * lib/fpurge.c (includes): Use stdlib.h for free.
70367         * tests/test-fflush.c (main): Also test fflush-fseeko.
70368
70369 2007-04-25  Bruno Haible  <bruno@clisp.org>
70370
70371         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
70372         * lib/fseeko.c: New file.
70373         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
70374         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
70375         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
70376         gl_FUNC_FSEEKO.
70377         (gl_FUNC_FSEEKO): Invoke it.
70378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
70379         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
70380         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
70381
70382 2007-04-25  Bruno Haible  <bruno@clisp.org>
70383
70384         * modules/fflush (Depends-on): Add ftello.
70385
70386 2007-04-25  Bruno Haible  <bruno@clisp.org>
70387
70388         * modules/ftello-tests: New file.
70389         * tests/test-ftello.c: New file.
70390
70391         * modules/ftello: New file.
70392         * m4/ftello.m4: New file.
70393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
70394         HAVE_FTELLO.
70395         * lib/stdio_.h (ftello): New declaration.
70396         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
70397         HAVE_FTELLO.
70398
70399 2007-04-25  Bruno Haible  <bruno@clisp.org>
70400
70401         * modules/fseeko-tests: New file.
70402         * tests/test-fseeko.c: New file.
70403
70404         * modules/fseeko: New file.
70405         * m4/fseeko.m4: New file.
70406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
70407         HAVE_FSEEKO.
70408         * lib/stdio_.h (fseeko): New declaration.
70409         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
70410         HAVE_FSEEKO.
70411
70412 2007-04-25  Bruno Haible  <bruno@clisp.org>
70413
70414         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
70415
70416 2007-04-25  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
70419         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
70420         * tests/test-unistd.c: Likewise.
70421         * tests/test-fcntl.c: Likewise.
70422
70423 2007-04-23  Eric Blake  <ebb9@byu.net>
70424
70425         * lib/fflush.c: Fix missing include.
70426         Reported by Bruno Haible.
70427
70428 2007-04-23  Bruno Haible  <bruno@clisp.org>
70429
70430         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
70431         Reported by Eric Blake.
70432
70433 2007-04-23  Bruno Haible  <bruno@clisp.org>
70434
70435         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
70436
70437 2007-04-23  Bruno Haible  <bruno@clisp.org>
70438
70439         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
70440
70441 2007-04-23  Bruno Haible  <bruno@clisp.org>
70442
70443         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
70444         Needed on HP-UX 11.
70445
70446 2007-04-16  Eric Blake  <ebb9@byu.net>
70447
70448         Make fflush rely on fpurge.
70449         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
70450         open coding all variants.
70451         * modules/fflush (Depends-on): Add fpurge and unistd.
70452         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
70453         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
70454
70455         Fix --with-tests compilation on cygwin.
70456         * modules/argmatch-tests (Makefile.am): List gnulib library first
70457         in LDADD.
70458         * modules/argp-tests (Makefile.am): Likewise.
70459         * modules/array-list-tests (Makefile.am): Likewise.
70460         * modules/array-oset-tests (Makefile.am): Likewise.
70461         * modules/avltree-list-tests (Makefile.am): Likewise.
70462         * modules/avltree-oset-tests (Makefile.am): Likewise.
70463         * modules/avltreehash-list-tests (Makefile.am): Likewise.
70464         * modules/carray-list-tests (Makefile.am): Likewise.
70465         * modules/dirname-tests (Makefile.am): Likewise.
70466         * modules/frexp-tests (Makefile.am): Likewise.
70467         * modules/isnanl-tests (Makefile.am): Likewise.
70468         * modules/linked-list-tests (Makefile.am): Likewise.
70469         * modules/linkedhash-list-tests (Makefile.am): Likewise.
70470         * modules/lock-tests (Makefile.am): Likewise.
70471         * modules/rbtree-list-tests (Makefile.am): Likewise.
70472         * modules/rbtree-oset-tests (Makefile.am): Likewise.
70473         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
70474         * modules/tls-tests (Makefile.am): Likewise.
70475         * modules/tsearch-tests (Makefile.am): Likewise.
70476         * modules/xvasprintf-tests (Makefile.am): Likewise.
70477
70478         Fix fpurge for cygwin.
70479         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
70480         value.
70481         * modules/fpurge-tests (Depends-on): Clean up trash.
70482
70483 2007-04-16  Simon Josefsson  <simon@josefsson.org>
70484
70485         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
70486
70487         * m4/autobuild.m4: Re-indent.
70488
70489 2007-04-13  Bruno Haible  <bruno@clisp.org>
70490
70491         * modules/fpurge-tests: New file.
70492         * tests/test-fpurge.c: New file.
70493
70494         * modules/fpurge: New file.
70495         * lib/fpurge.h: New file.
70496         * lib/fpurge.c: New file.
70497         * m4/fpurge.m4: New file.
70498
70499 2007-04-13  Bruno Haible  <bruno@clisp.org>
70500
70501         * modules/fbufmode-tests: New file.
70502         * tests/test-fbufmode.c: New file.
70503
70504         * modules/fbufmode: New file.
70505         * lib/fbufmode.h: New file.
70506         * lib/fbufmode.c: New file.
70507         * m4/fbufmode.m4: New file.
70508
70509 2007-04-13  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/fwritable-tests: New file.
70512         * tests/test-fwritable.c: New file.
70513
70514         * modules/fwritable: New file.
70515         * lib/fwritable.h: New file.
70516         * lib/fwritable.c: New file.
70517         * m4/fwritable.m4: New file.
70518
70519 2007-04-13  Bruno Haible  <bruno@clisp.org>
70520
70521         * modules/freadable-tests: New file.
70522         * tests/test-freadable.c: New file.
70523
70524         * modules/freadable: New file.
70525         * lib/freadable.h: New file.
70526         * lib/freadable.c: New file.
70527         * m4/freadable.m4: New file.
70528
70529 2007-04-13  Bruno Haible  <bruno@clisp.org>
70530
70531         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
70532         MOSTLYCLEANFILES.
70533
70534 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
70537         gzip bootstrap.conf to avoid dragging in i18n machinery.
70538         (gnulib_tool_option): Use it.
70539
70540 2007-04-13  Bruno Haible  <bruno@clisp.org>
70541
70542         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
70543         %F directives.
70544         * tests/test-vasprintf-posix.c (test_function): Likewise.
70545         * tests/test-snprintf-posix.h (test_function): Likewise.
70546         * tests/test-sprintf-posix.h (test_function): Likewise.
70547         * tests/test-fprintf-posix.h (test_function): Likewise.
70548         * tests/test-printf-posix.h (test_function): Likewise.
70549         * tests/test-fprintf-posix.out: Likewise.
70550
70551 2007-04-13  Bruno Haible  <bruno@clisp.org>
70552
70553         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
70554         * modules/tls-tests (configure.ac): Likewise.
70555         Reported by Arto C. Nirkko <anirkko@insel.ch>.
70556
70557 2007-04-13  Bruno Haible  <bruno@clisp.org>
70558
70559         * lib/tls.c (glthread_tls_get): Fix return type.
70560         Patch by Arto C. Nirkko <anirkko@insel.ch>.
70561
70562 2007-04-12  Eric Blake  <ebb9@byu.net>
70563
70564         * modules/gettime (Depends-on): Remove gettime.
70565         Reported by Dmitry V. Levin.
70566
70567 2007-04-12  Bruno Haible  <bruno@clisp.org>
70568
70569         * modules/fflush (Include): Mention <stdio.h>.
70570         * modules/strtoimax (Include): Mention <inttypes.h>.
70571         * modules/strtoumax (Include): Likewise.
70572
70573 2007-04-12  Eric Blake  <ebb9@byu.net>
70574
70575         * .cvsignore: New file.
70576         * .gitignore: Likewise.
70577
70578 2007-04-12  Bruno Haible  <bruno@clisp.org>
70579
70580         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
70581         not before, since $(LDADD) often contains libgnu.a.
70582         * modules/striconv-tests (test_striconv_LDADD): Likewise.
70583         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
70584         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
70585         Needed on Cygwin.
70586
70587 2007-04-12  Eric Blake  <ebb9@byu.net>
70588
70589         Work around glibc's failure to flush stdin on fclose.
70590         * lib/closein.c (close_stdin): Flush stdin before closing.
70591
70592         Work around glibc's failure to reset seekable stdin on exit.
70593         * modules/closein: New module.
70594         * lib/closein.c: New file.
70595         * lib/closein.h: Likewise.
70596         * m4/closein.m4: Likewise.
70597         * MODULES.html.sh (File stream based Input/Output): Document it.
70598
70599 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70600
70601         * gnulib-tool: Rename generated 'autobuild' script to
70602         'do-autobuild' in --create-megatestdir output.
70603
70604         * doc/gnulib.texi (Build robot for gnulib): Fix.
70605
70606 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70607
70608         * modules/sysexits (Depends-on): Add absolute-header.
70609
70610 2007-04-12  Eric Blake  <ebb9@byu.net>
70611
70612         No need to preserve errno on success.
70613         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
70614         Reported by Bruno Haible.
70615
70616 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70617
70618         * MODULES.html.sh (Support for maintaining and releasing
70619         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
70620
70621 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70622
70623         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
70624
70625 2007-04-12  Simon Josefsson  <simon@josefsson.org>
70626
70627         * modules/autobuild: New module.
70628
70629         * m4/autobuild.m4: New file.
70630
70631 2007-04-11  Bruno Haible  <bruno@clisp.org>
70632
70633         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
70634         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
70635         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
70636         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
70637         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70643         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
70644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
70647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70649         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
70650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70652         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
70653         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70654         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
70656         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70657         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
70659         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
70660         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
70661         Reported by Eric Blake.
70662
70663 2007-04-11  Bruno Haible  <bruno@clisp.org>
70664
70665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
70666
70667 2007-04-10  Bruno Haible  <bruno@clisp.org>
70668
70669         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
70670         for NaN and Infinity. Needed on FreeBSD 6.1.
70671         * tests/test-vasnprintf-posix.c (test_function): Undo last change
70672         regarding results for "%010a" of Infinity and NaN.
70673         * tests/test-vasprintf-posix.c (test_function): Likewise.
70674         * tests/test-snprintf-posix.h (test_function): Likewise.
70675         * tests/test-sprintf-posix.h (test_function): Likewise.
70676         * tests/test-fprintf-posix.h (test_function): Likewise.
70677         * tests/test-printf-posix.h (test_function): Likewise.
70678         * tests/test-fprintf-posix.out: Likewise.
70679
70680 2007-04-10  Bruno Haible  <bruno@clisp.org>
70681
70682         * modules/locale-tests: New file.
70683         * tests/test-locale.c: New file.
70684
70685         * modules/locale: New file.
70686         * lib/locale_.h: New file.
70687         * m4/locale_h.m4: New file.
70688
70689 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
70690             Bruno Haible  <bruno@clisp.org>
70691
70692         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
70693         be determined, test for availability of the copysignf, copysign,
70694         copysignl functions.
70695         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
70696         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
70697         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
70698
70699 2007-04-09  Eric Blake  <ebb9@byu.net>
70700
70701         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
70702         * modules/stdio (Makefile.am): Support fflush.
70703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70704         * modules/fflush: New file.
70705         * lib/fflush.c: Likewise.
70706         * m4/fflush.m4: Likewise.
70707         * modules/fflush-tests: New test.
70708         * tests/test-fflush.c: Likewise.
70709         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
70710
70711 2007-04-06  Bruno Haible  <bruno@clisp.org>
70712
70713         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
70714         (VASNPRINTF): Use signbit for faster determination whether to print a
70715         minus sign.
70716         * modules/vasnprintf (Files): Remove lib/float+.h.
70717         * modules/fprintf-posix (Depends-on): Add signbit.
70718         * modules/snprintf-posix (Depends-on): Likewise.
70719         * modules/sprintf-posix (Depends-on): Likewise.
70720         * modules/vasnprintf-posix (Depends-on): Likewise.
70721         * modules/vasprintf-posix (Depends-on): Likewise.
70722         * modules/vfprintf-posix (Depends-on): Likewise.
70723         * modules/vsnprintf-posix (Depends-on): Likewise.
70724         * modules/vsprintf-posix (Depends-on): Likewise.
70725
70726 2007-04-06  Bruno Haible  <bruno@clisp.org>
70727
70728         * tests/test-frexp.c (main): Test also the sign bit of zero results.
70729         * tests/test-frexpl.c (main): Likewise.
70730         * tests/test-ldexpl.c (main): Likewise.
70731         * modules/frexp-tests (Depends-on): Add signbit.
70732         * modules/frexpl-tests (Depdends-on): Likewise.
70733         * modules/ldexpl-tests (Depdends-on): Likewise.
70734
70735 2007-04-06  Bruno Haible  <bruno@clisp.org>
70736
70737         * modules/signbit-tests: New file.
70738         * tests/test-signbit.c: New file.
70739
70740         * modules/signbit: New file.
70741         * lib/signbitf.c: New file.
70742         * lib/signbitd.c: New file.
70743         * lib/signbitl.c: New file.
70744         * m4/signbit.m4: New file.
70745         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
70746         (signbit): New macro.
70747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
70748         REPLACE_SIGNBIT.
70749         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
70750         REPLACE_FREXPL into math.h.
70751
70752 2007-04-06  Bruno Haible  <bruno@clisp.org>
70753
70754         * modules/isnanf-nolibm-tests: New file.
70755         * tests/test-isnanf.c: New file.
70756
70757         * modules/isnanf-nolibm: New file.
70758         * lib/isnanf.h: New file.
70759         * lib/isnanf.c: New file.
70760         * lib/isnan.c: Consider the USE_FLOAT macro.
70761         * m4/isnanf.m4: New file.
70762
70763 2007-04-06  Bruno Haible  <bruno@clisp.org>
70764
70765         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
70766         (Link): New section.
70767
70768         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
70769
70770 2007-04-06  Bruno Haible  <bruno@clisp.org>
70771
70772         Assume the 'long double' type.
70773         * m4/longdouble.m4: Remove file.
70774         * config/srclist.txt: Don't mention longdouble.m4.
70775         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
70776         * lib/float+.h: Likewise.
70777         * lib/frexp.c: Likewise.
70778         * lib/printf-args.h: Likewise.
70779         * lib/printf-args.c: Likewise.
70780         * lib/printf-frexp.c: Likewise.
70781         * lib/printf-parse.c: Likewise.
70782         * lib/vasnprintf.c: Likewise.
70783         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
70784         * m4/intl.m4: Likewise.
70785         * m4/isnanl.m4: Likewise.
70786         * m4/printf.m4: Likewise.
70787         * m4/printf-frexpl.m4: Likewise.
70788         * m4/vasnprintf.m4: Likewise.
70789         * modules/allocsa (Files): Remove m4/longdouble.m4.
70790         * modules/gettext (Files): Likewise.
70791         * modules/relocatable-prog-wrapper (Files): Likewise.
70792         * modules/vasnprintf (Files): Likewise.
70793         * modules/isnanl (Files): Likewise.
70794         (Include): Simplify.
70795         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
70796         (Include): Simplify.
70797         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
70798         (Include): Simplify.
70799         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
70800         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70801         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
70802         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70803         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70804         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70805         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
70806         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70807         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
70808         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70809         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
70810         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
70811         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
70812         * tests/test-isnanl.c: Likewise.
70813         * tests/test-snprintf-posix.h: Likewise.
70814         * tests/test-sprintf-posix.h: Likewise.
70815         * tests/test-vasnprintf-posix.c: Likewise.
70816         * tests/test-vasnprintf-posix2.c: Likewise.
70817         * tests/test-vasprintf-posix.c: Likewise.
70818
70819 2007-04-06  Bruno Haible  <bruno@clisp.org>
70820
70821         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
70822         * lib/math_.h [__DECC]: Include the overridden include file through
70823         #include_next, outside the double-inclusion guard.
70824         * lib/stdio_.h [__DECC]: Likewise.
70825         * lib/stdlib_.h [__DECC]: Likewise.
70826         * lib/string_.h [__DECC]: Likewise.
70827         * lib/time_.h [__DECC]: Likewise.
70828         * lib/wchar_.h [__DECC]: Likewise.
70829         * lib/wctype_.h [__DECC]: Likewise.
70830         * lib/inttypes_.h [__DECC]: Likewise.
70831         Reported by Albert Chin <china@thewrittenword.com> in
70832         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70833
70834 2007-04-04  Eric Blake  <ebb9@byu.net>
70835
70836         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70837         1.5.x.
70838
70839 2007-04-04  Bruno Haible  <bruno@clisp.org>
70840
70841         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70842         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70843
70844 2007-04-04  Bruno Haible  <bruno@clisp.org>
70845
70846         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70847         results for "%010a" of Infinity and NaN.
70848         * tests/test-vasprintf-posix.c (test_function): Likewise.
70849         * tests/test-snprintf-posix.h (test_function): Likewise.
70850         * tests/test-sprintf-posix.h (test_function): Likewise.
70851         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70852         * tests/test-printf-posix.h (test_function): Likewise.
70853         * tests/test-fprintf-posix.out: Update.
70854         Needed for FreeBSD 6.1.
70855
70856 2007-04-04  Bruno Haible  <bruno@clisp.org>
70857
70858         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70859         directly used by the gnulib modules nor by gnulib-tool.
70860
70861 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70862
70863         * DEPENDENCIES: Give overall description of version dependency
70864         desirability.  Use more-typical names for apps.
70865         Add shell, coreutils, diffutils, grep, tar, gzip.
70866
70867 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70868
70869         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70870
70871 2007-04-04  Karl Berry  <karl@gnu.org>
70872
70873         * MODULES.html.sh (func_module): missing '.
70874
70875 2007-04-03  Bruno Haible  <bruno@clisp.org>
70876
70877         * modules/argmatch-tests (Makefile.am): New variable
70878         test_argmatch_LDADD.
70879         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70880         * modules/array-list-tests (Makefile.am): New variable
70881         test_array_list_LDADD.
70882         * modules/array-oset-tests (Makefile.am): New variable
70883         test_array_oset_LDADD.
70884         * modules/avltree-list-tests (Makefile.am): New variable
70885         test_avltree_list_LDADD.
70886         * modules/avltree-oset-tests (Makefile.am): New variable
70887         test_avltree_oset_LDADD.
70888         * modules/avltreehash-list-tests (Makefile.am): New variable
70889         test_avltreehash_list_LDADD.
70890         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70891         test_canonicalize_lgpl_LDADD.
70892         * modules/carray-list-tests (Makefile.am): New variable
70893         test_carray_list_LDADD.
70894         * modules/dirname-tests (Makefile.am): New variable
70895         test_dirname_LDADD.
70896         * modules/linked-list-tests (Makefile.am): New variable
70897         test_linked_list_LDADD.
70898         * modules/linkedhash-list-tests (Makefile.am): New variable
70899         test_linkedhash_list_LDADD.
70900         * modules/rbtree-list-tests (Makefile.am): New variable
70901         test_rbtree_list_LDADD.
70902         * modules/rbtree-oset-tests (Makefile.am): New variable
70903         test_rbtree_oset_LDADD.
70904         * modules/rbtreehash-list-tests (Makefile.am): New variable
70905         test_rbtreehash_list_LDADD.
70906         * modules/xvasprintf-tests (Makefile.am): New variable
70907         test_xvasprintf_LDADD.
70908         Reported by Eric Blake.
70909
70910 2007-04-03  Eric Blake  <ebb9@byu.net>
70911
70912         * DEPENDENCIES: Weaken m4 requirements.
70913
70914 2007-04-03  Bruno Haible  <bruno@clisp.org>
70915
70916         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70917         * modules/isnanl-tests (configure.ac): Likewise.
70918
70919 2007-04-03  Ben Pfaff  <blp@gnu.org>
70920
70921         * modules/iconv_open: Add $(srcdir)/ to source directory
70922         references in Makefile fragments that call gperf, to fix VPATH
70923         builds.
70924
70925 2007-04-03  Bruno Haible  <bruno@clisp.org>
70926
70927         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70928         * lib/ldexpl.c: Undo last change.
70929
70930 2007-04-03  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/printf-frexpl (Depends-on): Undo last change.
70933         (Files): Add m4/ldexpl.m4.
70934
70935 2007-04-03  Bruno Haible  <bruno@clisp.org>
70936
70937         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70938         * modules/isnanl (Link): New section.
70939
70940         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70941         * modules/frexp (Link): New section.
70942
70943         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70944         * modules/frexpl (Link): New section.
70945
70946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70947         * modules/ldexpl (Link): New section.
70948
70949 2007-04-03  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/TEMPLATE-EXTENDED: New file.
70952         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70953
70954 2007-04-03  Bruno Haible  <bruno@clisp.org>
70955
70956         * DEPENDENCIES: New file.
70957         Suggested by Simon Josefsson.
70958
70959 2007-04-03  Bruno Haible  <bruno@clisp.org>
70960
70961         * doc/gnulib.texi: Escape @.
70962
70963 2007-04-03  James Youngman  <jay@gnu.org>
70964         and Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70967         birthtime on all systems that have birthtime, not just those which
70968         use st_birthtimensec rather than st_birthtim.  Putting zero in
70969         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70970         that the birth time is not available for files on an NFS mount.
70971
70972 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70973
70974         * modules/memxor: Move back from crypto/, suggested by Bruno.
70975         * modules/crypto/hmac-sha1: Fix memxor dependency.
70976
70977         * modules/crypto/gc: Moved from ../.
70978
70979 2007-04-02  Eric Blake  <ebb9@byu.net>
70980
70981         * lib/ldexpl.c (includes): Avoid libm.
70982
70983         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70984
70985 2007-04-02  Bruno Haible  <bruno@clisp.org>
70986
70987         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70988         on IRIX.
70989
70990 2007-04-02  Bruno Haible  <bruno@clisp.org>
70991
70992         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70993         x86 or x86_64 platforms running MacOS X.
70994         Reported by Ryan Schmidt <@ryandesign.com>.
70995
70996 2007-04-02  Bruno Haible  <bruno@clisp.org>
70997
70998         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70999         i386.
71000
71001 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71002
71003         * modules/crypto/arcfour: Moved from ../.
71004         * modules/crypto/arcfour-tests: Moved from ../.
71005         * modules/crypto/arctwo: Moved from ../.
71006         * modules/crypto/arctwo-tests: Moved from ../.
71007         * modules/crypto/des: Moved from ../.
71008         * modules/crypto/des-tests: Moved from ../.
71009         * modules/crypto/gc-arcfour: Moved from ../.
71010         * modules/crypto/gc-arcfour-tests: Moved from ../.
71011         * modules/crypto/gc-arctwo: Moved from ../.
71012         * modules/crypto/gc-arctwo-tests: Moved from ../.
71013         * modules/crypto/gc-des: Moved from ../.
71014         * modules/crypto/gc-des-tests: Moved from ../.
71015         * modules/crypto/gc-hmac-md5: Moved from ../.
71016         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71017         * modules/crypto/gc-hmac-sha1: Moved from ../.
71018         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71019         * modules/crypto/gc-md2: Moved from ../.
71020         * modules/crypto/gc-md2-tests: Moved from ../.
71021         * modules/crypto/gc-md4: Moved from ../.
71022         * modules/crypto/gc-md4-tests: Moved from ../.
71023         * modules/crypto/gc-md5: Moved from ../.
71024         * modules/crypto/gc-md5-tests: Moved from ../.
71025         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71026         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71027         * modules/crypto/gc-random: Moved from ../.
71028         * modules/crypto/gc-rijndael: Moved from ../.
71029         * modules/crypto/gc-rijndael-tests: Moved from ../.
71030         * modules/crypto/gc-sha1: Moved from ../.
71031         * modules/crypto/gc-sha1-tests: Moved from ../.
71032         * modules/crypto/gc-tests: Moved from ../.
71033         * modules/crypto/hmac-md5: Moved from ../.
71034         * modules/crypto/hmac-md5-tests: Moved from ../.
71035         * modules/crypto/hmac-sha1: Moved from ../.
71036         * modules/crypto/hmac-sha1-tests: Moved from ../.
71037         * modules/crypto/md2: Moved from ../.
71038         * modules/crypto/md2-tests: Moved from ../.
71039         * modules/crypto/md4: Moved from ../.
71040         * modules/crypto/md4-tests: Moved from ../.
71041         * modules/crypto/md5: Moved from ../.
71042         * modules/crypto/md5-tests: Moved from ../.
71043         * modules/crypto/memxor: Moved from ../.
71044         * modules/crypto/rijndael: Moved from ../.
71045         * modules/crypto/rijndael-tests: Moved from ../.
71046         * modules/crypto/sha1: Moved from ../.
71047
71048 2007-03-30  James Youngman  <jay@gnu.org>
71049
71050         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71051         rename() to change the ctime of a file (because ctime is unaffected
71052         by rename on jfs2 on AIX 5.1).
71053         (main): Start by doing cleanup, in case a previous run failed leaving
71054         test files behind.
71055
71056 2007-03-31  Bruno Haible  <bruno@clisp.org>
71057
71058         Support old proprietary implementations of iconv.
71059         * modules/iconv_open: New file.
71060         * lib/iconv_.h: New file.
71061         * m4/iconv_h.m4: New file.
71062         * lib/iconv_open.c: New file.
71063         * lib/iconv_open-aix.gperf: New file.
71064         * lib/iconv_open-hpux.gperf: New file.
71065         * lib/iconv_open-irix.gperf: New file.
71066         * lib/iconv_open-osf.gperf: New file.
71067         * m4/iconv_open.m4: New file.
71068         * modules/linebreak (Depends-on): Add iconv_open.
71069         * modules/striconv (Depends-on): Likewise.
71070         * modules/striconveh (Depends-on): Likewise.
71071         * modules/unicodeio (Depends-on): Likewise.
71072         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
71073         (iconv_t)(-1).
71074         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
71075         conversion if cd is (iconv_t)(-1).
71076         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
71077         is not possible.
71078
71079 2007-03-31  Bruno Haible  <bruno@clisp.org>
71080
71081         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71082         work on Solaris either. Protect also second use of "autodetect_jp".
71083
71084 2007-03-31  Bruno Haible  <bruno@clisp.org>
71085
71086         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
71087         the function is not present.
71088
71089 2007-03-31  Bruno Haible  <bruno@clisp.org>
71090
71091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
71092         the function is not present.
71093
71094 2007-03-31  Bruno Haible  <bruno@clisp.org>
71095
71096         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
71097         a bug in HP-UX iconv_open().
71098
71099 2007-03-31  Bruno Haible  <bruno@clisp.org>
71100
71101         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
71102         (Mathematics <math.h>): New section, add fpieee.
71103         (Input/output <stdio.h>): Add fseterr.
71104         (Mathematics <math.h>): New section, add printf-frexp.
71105         (Container data structures): Add sublist.
71106         (Core language properties): Add fpucw, inline.
71107         (Functions for greatest-width integer types <inttypes.h>): Add
71108         imaxabs, imaxdiv, inttypes.
71109         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
71110         isnanl-nolibm, ldexp.
71111         (Mathematics <math.h>): New section, add printf-frexpl.
71112         (Support for systems lacking POSIX:2001): Add fprintf-posix,
71113         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
71114         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
71115         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
71116         (Unicode string functions): Add unistr/u*-mbtoucr.
71117         (Java): Add javacomp-script, javaexec-script.
71118         (C#): Add csharpcomp-script, csharpexec-script.
71119         (Support for building libraries and executables): Add havelib,
71120         relocatable-*.
71121         (Support for maintaining and releasing projects): Renamed from
71122         'Support for maintaining and release projects'. Add announce-gen.
71123
71124 2007-03-31  Bruno Haible  <bruno@clisp.org>
71125
71126         * README: Talk primarily about git.
71127         (git and CVS): Renamed from CVS.
71128         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
71129         gnulib is available through git.
71130         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
71131
71132 2007-03-30  Bruno Haible  <bruno@clisp.org>
71133
71134         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
71135         * lib/poll_.h: Likewise.
71136         * lib/stat_.h: Likewise.
71137         * lib/sys_time_.h: Likewise.
71138         * lib/sysexit_.h: Likewise.
71139         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
71140         * lib/stdbool_.h: Likewise.
71141         * lib/byteswap_.h: Add double-inclusion guard.
71142
71143 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
71144
71145         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
71146
71147 2007-03-30  Karl Berry  <karl@gnu.org>
71148
71149         * config/srclist-update: double space after USA in the license
71150         substitution, since that's how it's usually (?) written.
71151
71152 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
71155         reported by Bruno Haible.
71156
71157 2007-03-29  Bruno Haible  <bruno@clisp.org>
71158
71159         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
71160         a bug in AIX iconv().
71161
71162 2007-03-29  Bruno Haible  <bruno@clisp.org>
71163
71164         * modules/ldexpl-tests: New file.
71165         * tests/test-ldexpl.c: New file.
71166
71167 2007-03-29  Bruno Haible  <bruno@clisp.org>
71168
71169         * lib/ldexpl.c: Include fpucw.h.
71170         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
71171         multiplication.
71172         * modules/ldexpl (Depends-on): Add fpucw.
71173
71174 2007-03-29  Bruno Haible  <bruno@clisp.org>
71175
71176         * modules/ldexpl: New file.
71177         * m4/ldexpl.m4: New file.
71178         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
71179         set.
71180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
71181         REPLACE_LDEXPL.
71182         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
71183         REPLACE_LDEXPL.
71184         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
71185         gl_FUNC_LDEXPL_WORKS.
71186         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
71187         * modules/mathl (Files): Remove lib/ldexpl.c.
71188         (Depends-on): Add ldexpl.
71189
71190 2007-03-29  Bruno Haible  <bruno@clisp.org>
71191
71192         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
71193
71194 2007-03-29  Bruno Haible  <bruno@clisp.org>
71195
71196         * tests/test-striconveh.c (main): Don't assume that a direct conversion
71197         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
71198         and possibly also HP-UX.
71199         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
71200         work on AIX, IRIX, HP-UX, OSF/1.
71201         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71202         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71203         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71204         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71205         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
71206         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71207
71208 2007-03-29  Bruno Haible  <bruno@clisp.org>
71209
71210         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
71211
71212 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
71215         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
71216
71217 2007-03-29  Eric Blake  <ebb9@byu.net>
71218
71219         * lib/acl-internal.h: Remove redundant include.
71220         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
71221         Cygwin when a file is locked.
71222
71223 2007-03-29  Bruno Haible  <bruno@clisp.org>
71224
71225         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
71226         file.
71227         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
71228
71229 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
71232         try to remove a parent directory if the child couldn't be removed
71233         (except for the first rmdir, which could fail because the child
71234         doesn't exist).  Problem reported by Jeff Blaine in
71235         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
71236
71237 2007-03-28  Bruno Haible  <bruno@clisp.org>
71238
71239         * lib/striconveh.c (utf8conv_carefully): New function.
71240         (mem_cd_iconveh_internal): Invoke it.
71241
71242 2007-03-28  Bruno Haible  <bruno@clisp.org>
71243
71244         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
71245         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
71246         input.
71247         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
71248         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
71249         unistr/u8-uctomb.
71250
71251 2007-03-28  Bruno Haible  <bruno@clisp.org>
71252
71253         * modules/unistr/u8-mbtoucr: New file.
71254         * lib/unistr/u8-mbtoucr.c: New file.
71255         * modules/unistr/u16-mbtoucr: New file.
71256         * lib/unistr/u16-mbtoucr.c: New file.
71257         * modules/unistr/u16-mbtoucr: New file.
71258         * lib/unistr/u16-mbtoucr.c: New file.
71259         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
71260
71261 2007-03-27  Simon Josefsson  <simon@josefsson.org>
71262             Bruno Haible  <bruno@clisp.org>
71263
71264         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
71265         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
71266         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
71267
71268         * m4/stdio_h.m4: Add stubs for vasprintf too.
71269
71270         * modules/stdio: Support vasprintf in sed command.
71271
71272         * modules/vasprintf: Depend on stdio for prototypes.  Remove
71273         vasprintf.h.  Add stdio module indicator.
71274
71275         * lib/stdio_.h: Declare asprintf and vasprintf, based on
71276         vasprintf.h.
71277
71278         * lib/vasprintf.h: File removed.
71279
71280         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
71281         * lib/vasprintf.c: Ditto.
71282         * lib/xvasprintf.c: Ditto.
71283         * tests/test-vasprintf-posix.c: Ditto.
71284         * tests/test-vasprintf.c: Ditto.
71285
71286 2007-03-27  Bruno Haible  <bruno@clisp.org>
71287
71288         Make vasnprintf multithread-safe.
71289         * lib/vasnprintf.c (decimal_point_char): New function.
71290         (VASNPRINTF): Use it.
71291         Suggested by Simon Josefsson.
71292
71293 2007-03-27  Eric Blake  <ebb9@byu.net>
71294
71295         Support sub-second birthtime on cygwin.
71296         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
71297         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
71298         (get_stat_birthtime): Also work with st_birthtim.
71299
71300 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
71301
71302         * lib/stat-time.h (USE_BIRTHTIME): Remove.
71303         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
71304         (get_stat_birthtime_ns): Do not try to use "spare" fields.
71305         (get_stat_birthtime_ns): Simplify compile-time tests.
71306         (get_stat_birthtime): Change the API to look like
71307         get_stat_mtime etc., except return a negative tv_nsec on error.
71308         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
71309         Don't check for "spare" fields.
71310         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
71311         or for struct stat.st_birthtime, as these tests aren't used.
71312         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
71313
71314 2007-03-27  Bruno Haible  <bruno@clisp.org>
71315
71316         * lib/stat-time.h: Include <sys/stat.h>.
71317
71318 2007-03-27  James Youngman  <jay@gnu.org>
71319
71320         * lib/stat-time.h (get_stat_birthtime): New function for
71321           retrieving st_birthtime as provided by UFS2 (hence *BSD).
71322         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
71323           and its variants.
71324         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
71325         * modules/stat-time-test: New file.
71326         * tests/test-stat-time.c: New test, devised by Bruno Haible.
71327
71328 2007-03-26  Bruno Haible  <bruno@clisp.org>
71329
71330         Better support of signalling NaNs.
71331         * lib/atanl.c: Include isnanl.h.
71332         (atanl): Perform test for NaN at the beginning of the function and
71333         through a call to isnanl.
71334         * lib/cosl.c: Include isnanl.h.
71335         (cosl): Perform test for NaN at the beginning of the function and
71336         through a call to isnanl.
71337         * lib/ldexpl.c: Include isnanl.h.
71338         (ldexpl): Perform test for NaN through a call to isnanl.
71339         * lib/logl.c: Include isnanl.h.
71340         (logl): Perform test for NaN at the beginning of the function and
71341         through a call to isnanl.
71342         * lib/sinl.c: Include isnanl.h.
71343         (sinl): Perform test for NaN at the beginning of the function and
71344         through a call to isnanl.
71345         * lib/sqrtl.c: Include isnanl.h.
71346         (sqrtl): Perform test for NaN at the beginning of the function and
71347         through a call to isnanl.
71348         * lib/tanl.c: Include isnanl.h.
71349         (tanl): Perform test for NaN at the beginning of the function and
71350         through a call to isnanl.
71351         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
71352         * modules/mathl (Depends-on): Add isnanl.
71353
71354 2007-03-26  Eric Blake  <ebb9@byu.net>
71355
71356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
71357         regression in logic sense of previous patch.
71358
71359 2007-03-26  Bruno Haible  <bruno@clisp.org>
71360
71361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
71362         unportable shell command "if ! ...".
71363         Reported by Ralf Wildenhues.
71364
71365 2007-03-25  Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
71368         <sysexits.h> file, and only add EX_CONFIG.
71369         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
71370         absolute file name and whether it is sufficient. Substitute also
71371         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
71372         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
71373         ABSOLUTE_SYSEXITS_H into sysexits.h.
71374
71375 2007-03-25  Bruno Haible  <bruno@clisp.org>
71376
71377         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
71378         hints is NULL.
71379
71380 2007-03-25  Bruno Haible  <bruno@clisp.org>
71381
71382         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
71383         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
71384
71385 2007-03-25  Bruno Haible  <bruno@clisp.org>
71386
71387         * lib/vasnprintf.c: Include langinfo.h.
71388         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
71389         multithread-safe.
71390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
71391         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
71392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
71393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
71397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
71398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71399         Reported by Simon Josefsson.
71400
71401 2007-03-25  Bruno Haible  <bruno@clisp.org>
71402
71403         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
71404         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
71405         * modules/vasnprintf (Depends-on): Add stdint.
71406
71407 2007-03-25  Bruno Haible  <bruno@clisp.org>
71408
71409         * modules/fpieee: New file.
71410         * m4/fpieee.m4: New file.
71411         * modules/isnan-nolibm (Depends-on): Add fpieee.
71412         * modules/isnanl-nolibm (Depends-on): Add fpieee.
71413         * modules/isnanl (Depends-on): Add fpieee.
71414
71415 2007-03-25  Bruno Haible  <bruno@clisp.org>
71416
71417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
71418
71419 2007-03-25  Bruno Haible  <bruno@clisp.org>
71420
71421         Avoid test failures on IRIX 6.5.
71422         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
71423         (main): Use it.
71424         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
71425         macros.
71426         (main): Use them.
71427
71428 2007-03-25  Bruno Haible  <bruno@clisp.org>
71429
71430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
71431         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
71432         exists but doesn't work.
71433         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
71434         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
71435         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
71436         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
71437         math.h.
71438
71439 2007-03-25  Bruno Haible  <bruno@clisp.org>
71440
71441         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
71442         returns inf. Needed on IRIX 6.5.
71443
71444 2007-03-25  Bruno Haible  <bruno@clisp.org>
71445
71446         * tests/test-frexpl.c: Include isnanl-nolibm.h.
71447         (main): Use isnanl instead of x != x idiom.
71448         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
71449
71450         * tests/test-frexp.c: Include isnan.h.
71451         (main): Use isnan instead of x != x idiom.
71452         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
71453
71454 2007-03-25  Bruno Haible  <bruno@clisp.org>
71455
71456         * tests/test-frexp.c (NaN): New function/macro.
71457         (main): Use it instead of 0.0 / 0.0.
71458         * tests/test-isnan.c (NaN): New function/macro.
71459         (main): Use it instead of 0.0 / 0.0.
71460         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
71461         (test_function): Use it instead of 0.0 / 0.0.
71462         * tests/test-vasprintf-posix.c (NaN): New function/macro.
71463         (test_function): Use it instead of 0.0 / 0.0.
71464         * tests/test-snprintf-posix.h (NaN): New function/macro.
71465         (test_function): Use it instead of 0.0 / 0.0.
71466         * tests/test-sprintf-posix.h (NaN): New function/macro.
71467         (test_function): Use it instead of 0.0 / 0.0.
71468         * tests/test-fprintf-posix.h (NaN): New function/macro.
71469         (test_function): Use it instead of 0.0 / 0.0.
71470         * tests/test-printf-posix.h (NaN): New function/macro.
71471         (test_function): Use it instead of 0.0 / 0.0.
71472
71473         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
71474
71475 2007-03-25  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
71478
71479 2007-03-25  Bruno Haible  <bruno@clisp.org>
71480
71481         * lib/regexec.c (merge_state_with_log): Make static.
71482
71483 2007-03-25  Bruno Haible  <bruno@clisp.org>
71484
71485         * lib/trigl.c (kernel_rem_pio2): Make static.
71486
71487 2007-03-25  Bruno Haible  <bruno@clisp.org>
71488
71489         * lib/sincosl.c (sincosl_table): Make static.
71490
71491 2007-03-25  Bruno Haible  <bruno@clisp.org>
71492
71493         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
71494         if the compiler does not support C99.
71495
71496 2007-03-25  Bruno Haible  <bruno@clisp.org>
71497
71498         * modules/time (Makefile.am): Ensure all rule action lines start with a
71499         tab.
71500
71501 2007-03-24  Bruno Haible  <bruno@clisp.org>
71502
71503         * modules/tsearch-tests: New file.
71504         * tests/test-tsearch.sh: New file.
71505         * tests/test-tsearch.c: New file, mostly copied from glibc.
71506
71507         * modules/search-tests: New file.
71508         * tests/test-search.c: New file.
71509
71510         * modules/search: New file.
71511         * lib/search_.h: New file, incorporating lib/tsearch.h.
71512         * m4/search_h.m4: New file.
71513         * lib/tsearch.h: Remove file.
71514         * lib/tsearch.c: Include search.h instead of tsearch.h.
71515         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
71516         HAVE_TSEARCH.
71517         * modules/tsearch (Files): Remove lib/tsearch.h.
71518         (Depends-on): Add search.
71519         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
71520         (Include): Change tsearch.h into search.h.
71521
71522 2007-03-24  Bruno Haible  <bruno@clisp.org>
71523
71524         * modules/fpucw: New file.
71525         * lib/fpucw.h: New file.
71526         * lib/frexp.c: Include fpucw.h.
71527         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71528         (FUNC): Use them.
71529         * lib/printf-frexp.c: Include fpucw.h.
71530         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
71531         (FUNC): Use them.
71532         * lib/vasnprintf.c: Include fpucw.h.
71533         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
71534         'long double' calculations.
71535         * tests/test-frexpl.c: Include fpucw.h.
71536         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71537         * tests/test-printf-frexpl.c: Include fpucw.h.
71538         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
71539         * modules/frexpl (Depends-on): Add fpucw.
71540         * modules/printf-frexpl (Depends-on): Likewise.
71541         * modules/fprintf-posix (Depends-on): Likewise.
71542         * modules/snprintf-posix (Depends-on): Likewise.
71543         * modules/sprintf-posix (Depends-on): Likewise.
71544         * modules/vasnprintf-posix (Depends-on): Likewise.
71545         * modules/vasprintf-posix (Depends-on): Likewise.
71546         * modules/vfprintf-posix (Depends-on): Likewise.
71547         * modules/vsnprintf-posix (Depends-on): Likewise.
71548         * modules/vsprintf-posix (Depends-on): Likewise.
71549         * modules/frexpl-tests (Depends-on): Likewise.
71550         * modules/printf-frexpl-tests (Depends-on): Likewise.
71551
71552 2007-03-24  Bruno Haible  <bruno@clisp.org>
71553
71554         * lib/float+.h: New file.
71555         * lib/isnan.c: Include float+.h.
71556         (SIZE): New macro.
71557         (FUNC): Compare only SIZE bytes of the value.
71558         * lib/vasnprintf.c: Include float+.h.
71559         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
71560         SIZEOF_LDBL or SIZEOF_DBL bytes.
71561         * modules/isnan-nolibm (Files): Add lib/float+.h.
71562         * modules/isnanl-nolibm (Files): Add lib/float+.h.
71563         * modules/isnanl (Files): Add lib/float+.h.
71564         * modules/vasnprintf (Files): Add lib/float+.h.
71565
71566 2007-03-24  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
71569         include isnanl-nolibm.h.
71570
71571 2007-03-24  Bruno Haible  <bruno@clisp.org>
71572
71573         * tests/test-read-file.c (main): Don't produce spurious output for
71574         expected situations. Make the test fail if it encountered unexpected
71575         results.
71576
71577 2007-03-24  Bruno Haible  <bruno@clisp.org>
71578
71579         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
71580         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
71581
71582 2007-03-24  Bruno Haible  <bruno@clisp.org>
71583
71584         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
71585
71586 2007-03-24  Bruno Haible  <bruno@clisp.org>
71587
71588         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
71589         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
71590
71591         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
71592         * modules/utf8-ucs4: Turn into a symbolic link to module
71593         unistr/u8-mbtouc.
71594
71595         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
71596         utf8-ucs4-unsafe.
71597         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
71598         unistr/u8-mbtouc-unsafe.
71599
71600         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
71601         * modules/utf16-ucs4: Turn into a symbolic link to module
71602         unistr/u16-mbtouc.
71603
71604         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
71605         utf16-ucs4-unsafe.
71606         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
71607         unistr/u16-mbtouc-unsafe.
71608
71609         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
71610         * modules/ucs4-utf8: Turn into a symbolic link to module
71611         unistr/u8-ubtomb.
71612
71613         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
71614         * modules/ucs4-utf16: Turn into a symbolic link to module
71615         unistr/u16-ubtomb.
71616
71617 2007-03-24  Bruno Haible  <bruno@clisp.org>
71618
71619         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
71620         Enable the function only if HAVE_INLINE.
71621         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
71622         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71623         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
71624         Enable the function only if HAVE_INLINE.
71625         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
71626         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
71627         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
71628         Enable the function only if HAVE_INLINE.
71629         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
71630         Enable the function only if HAVE_INLINE.
71631         * modules/utf8-ucs4: Update.
71632         * modules/utf8-ucs4-unsafe: Update.
71633         * modules/utf16-ucs4: Update.
71634         * modules/utf16-ucs4-unsafe: Update.
71635         * modules/ucs4-utf8: Update.
71636         * modules/ucs4-utf16: Update.
71637
71638 2007-03-24  Bruno Haible  <bruno@clisp.org>
71639
71640         * lib/utf8-ucs4.h: Remove file.
71641         * lib/utf8-ucs4-unsafe.h: Remove file.
71642         * lib/utf16-ucs4.h: Remove file.
71643         * lib/utf16-ucs4-unsafe.h: Remove file.
71644         * lib/ucs4-utf8.h: Remove file.
71645         * lib/ucs4-utf16.h: Remove file.
71646         * lib/unistr.h: Include their previous contents.
71647         * m4/utf-ucs4.m4: Remove file.
71648         * m4/ucs4-utf.m4: Remove file.
71649         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
71650         (Depends-on): Add unistr/base.
71651         (configure.ac): Remove gl_UTF_UCS4.
71652         (Makefile.am): Update.
71653         (Include): Change to unistr.h.
71654         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
71655         (Depends-on): Add unistr/base.
71656         (configure.ac): Remove gl_UTF_UCS4.
71657         (Makefile.am): Update.
71658         (Include): Change to unistr.h.
71659         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
71660         (Depends-on): Add unistr/base.
71661         (configure.ac): Remove gl_UTF_UCS4.
71662         (Makefile.am): Update.
71663         (Include): Change to unistr.h.
71664         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
71665         (Depends-on): Add unistr/base.
71666         (configure.ac): Remove gl_UTF_UCS4.
71667         (Makefile.am): Update.
71668         (Include): Change to unistr.h.
71669         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
71670         (Depends-on): Add unistr/base.
71671         (configure.ac): Remove gl_UCS4_UTF.
71672         (Makefile.am): Update.
71673         (Include): Change to unistr.h.
71674         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
71675         (Depends-on): Add unistr/base.
71676         (configure.ac): Remove gl_UCS4_UTF.
71677         (Makefile.am): Update.
71678         (Include): Change to unistr.h.
71679         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
71680         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
71681         utf8-ucs4-unsafe.h.
71682         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
71683         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
71684         utf16-ucs4-unsafe.h.
71685         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
71686         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
71687         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
71688         * lib/unistr/u8-strchr.c: Likewise.
71689         * lib/unistr/u8-strrchr.c: Likewise.
71690         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
71691         * lib/unistr/u16-strchr.c: Likewise.
71692         * lib/unistr/u16-strrchr.c: Likewise.
71693         * lib/striconveh.c: Update.
71694         * lib/linebreak.c: Update.
71695
71696 2007-03-24  Bruno Haible  <bruno@clisp.org>
71697
71698         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
71699         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
71700
71701 2007-03-22  Bruno Haible  <bruno@clisp.org>
71702
71703         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
71704
71705 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * MODULES.html.sh (File system functions): New module write-any-file.
71708         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
71709         * m4/write-any-file.m4: New files.
71710
71711 2007-03-23  Eric Blake  <ebb9@byu.net>
71712
71713         * gnulib-tool: Rearrange space-tab sequences, since some editors
71714         like to eat them.
71715
71716 2007-03-23  Eric Blake  <ebb9@byu.net>
71717
71718         * lib/version-etc.c (version_etc_va): Update license wording to
71719         be more concise.  Recommended by Richard Stallman.
71720
71721 2007-03-22  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/poll.c (MSG_PEEK): New fallback definition.
71724
71725 2007-03-22  Bruno Haible  <bruno@clisp.org>
71726
71727         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
71728         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
71729         (main): Update.
71730         Fixes a compilation error on BeOS.
71731
71732 2007-03-22  Bruno Haible  <bruno@clisp.org>
71733
71734         * modules/frexpl-tests: New file.
71735         * tests/test-frexpl.c: New file.
71736
71737         * modules/frexpl: New file.
71738         * m4/frexpl.m4: New file.
71739         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
71740         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
71741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
71742         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
71743         (Depends-on): Add frexpl. Remove isnanl-nolibm.
71744         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
71745
71746 2007-03-22  Bruno Haible  <bruno@clisp.org>
71747
71748         * lib/frexpl.c: Share code with lib/frexp.c.
71749         * modules/mathl (Files): Add lib/frexp.c.
71750         (Depends-on): Add isnanl-nolibm.
71751
71752 2007-03-22  Bruno Haible  <bruno@clisp.org>
71753
71754         * modules/printf-frexp (Files): Add m4/frexp.m4.
71755         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
71756         only if the found frexp function actually works.
71757
71758 2007-03-22  Bruno Haible  <bruno@clisp.org>
71759
71760         * lib/frexp.c: Remove older implementation that uses divisions.
71761
71762 2007-03-21  Bruno Haible  <bruno@clisp.org>
71763
71764         * modules/frexp-tests: New file.
71765         * tests/test-frexp.c: New file.
71766
71767         * modules/frexp: New file.
71768         * lib/frexp.c: New file.
71769         * m4/frexp.m4: New file.
71770         * lib/math_.h (frexp): New declaration.
71771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
71772         REPLACE_FREXP.
71773         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
71774
71775 2007-03-21  Bruno Haible  <bruno@clisp.org>
71776
71777         * modules/isnanl-tests: New file.
71778         * tests/test-isnanl.c: New file.
71779
71780         * modules/isnanl: New file.
71781         * lib/isnanl.h: New file.
71782         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
71783         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
71784         gl_FUNC_ISNANL_WORKS.
71785         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
71786         New macros.
71787
71788 2007-03-21  Bruno Haible  <bruno@clisp.org>
71789
71790         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
71791         lib/isnanl.h.
71792         (Include): Update.
71793         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
71794         * lib/vasnprintf.c: Update.
71795         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
71796         tests/test-isnanl.h, remove tests/test-isnanl.c.
71797         (Makefile.am): Update.
71798         * tests/test-isnanl-nolibm.c: New file.
71799         * tests/test-isnanl.h: New file.
71800         * tests/test-isnanl.c: Remove file.
71801
71802 2007-03-21  Jim Meyering  <jim@meyering.net>
71803
71804         When trying to open ".", treat ESTALE like EACCES.
71805         * lib/savewd.c (savewd_save): Resort to forking not just upon
71806         failure with EACCES, but also when errno is ESTALE.
71807
71808 2007-03-20  Bruno Haible  <bruno@clisp.org>
71809
71810         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
71811         Needed on AIX 5.1. Reported by Matthew Woehlke.
71812
71813 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         Suggestions by Bruno Haible:
71816         * lib/acl-internal.h: Include "gettext.h" rather than rolling
71817         our own.
71818         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
71819         * modules/acl (Depends-on): Add gettext.
71820
71821 2007-03-19  Bruno Haible  <bruno@clisp.org>
71822
71823         * modules/iconvme: Remove file.
71824         * lib/iconvme.h: Remove file.
71825         * lib/iconvme.c: Remove file.
71826         * m4/iconvme.m4: Remove file.
71827
71828 2007-03-19  Bruno Haible  <bruno@clisp.org>
71829
71830         * doc/relocatable-maint.texi: Break long shell script line.
71831         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71832
71833 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71836         handle file_has_acl.
71837         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71838         * lib/acl.c: Move header inclusions and related macro defns into
71839         lib/acl-internal.h.
71840         (S_ISLNK): Remove defn, since that's now done for us.
71841         (file_has_acl): Move to lib/file-has-acl.c.
71842         Call acl_trivial if available.  This is the crucial part of the fix.
71843         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71844         shared within the library.  Rewrite a bit, partly to make it compatible
71845         with the GNU coding style.
71846         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71847         Remove unnecessary double-quotes.
71848         Don't test for acl_to_text; the build will catch that.
71849         Replace acl_entries if it doesn't exist and it is needed.
71850         Check for -lsec and acl_trivial (as used on Solaris 10).
71851         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71852         lib/file-has-acl.c.
71853         (Depends-on): Add sys_stat, for S_ISLNK.
71854
71855 2007-03-19  Ben Pfaff  <blp@gnu.org>
71856
71857         * doc/gnulib.texi: Fix typos.
71858         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71859
71860 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71863         If size is zero here, buf must be zero.
71864
71865 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71866
71867         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71868         <bruno@clisp.org>.
71869
71870 2007-03-18  Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71873         Suggested by Eric Blake.
71874
71875 2007-03-18  Ben Pfaff  <blp@gnu.org>
71876
71877         * doc/relocatable.texi: Recommend using as prefix a directory
71878         that does not exist and will never be created.  Based on
71879         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71880         and others.
71881
71882 2007-03-17  Bruno Haible  <bruno@clisp.org>
71883
71884         * lib/fchownat.c: Include lchown.h.
71885
71886 2007-03-17  Bruno Haible  <bruno@clisp.org>
71887
71888         Fix endless loop when the given allocated size was > INT_MAX.
71889         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71890         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71891         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71892         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71893         * lib/sprintf.c (sprintf): Likewise.
71894
71895 2007-03-17  Bruno Haible  <bruno@clisp.org>
71896
71897         * tests/test-argp-2.sh (func_compare): Output a context diff.
71898
71899 2007-03-17  Bruno Haible  <bruno@clisp.org>
71900
71901         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71902         locale's decimal-point character.
71903
71904 2007-03-17  Bruno Haible  <bruno@clisp.org>
71905
71906         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71907         before comparing it. Needed because on some platforms (e.g. x86) a
71908         'long double' occupies less bytes than sizeof (long double).
71909
71910 2007-03-17  Bruno Haible  <bruno@clisp.org>
71911
71912         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71913         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71914         * tests/test-getaddrinfo.c (simple): Likewise.
71915         * tests/test-read-file.c (main): Likewise.
71916
71917 2007-03-17  Bruno Haible  <bruno@clisp.org>
71918
71919         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71920
71921 2007-03-17  Bruno Haible  <bruno@clisp.org>
71922
71923         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71924         unused variable.
71925
71926 2007-03-17  Bruno Haible  <bruno@clisp.org>
71927
71928         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71929         * tests/test-c-strncasecmp.c: Likewise.
71930
71931 2007-03-17  Bruno Haible  <bruno@clisp.org>
71932
71933         * modules/stdlib (Depends-on): Add unistd.
71934         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71935         Needed for MacOS X 10.3.
71936
71937 2007-03-17  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71940
71941 2007-03-17  Bruno Haible  <bruno@clisp.org>
71942
71943         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71944
71945 2007-03-17  Bruno Haible  <bruno@clisp.org>
71946
71947         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71948         to reflect files copied from gnulib (with or without modifications).
71949         Suggested by Jim Meyering.
71950
71951 2007-03-17  Eric Blake  <ebb9@byu.net>
71952
71953         * NEWS: Document stdlib change from 2007-02-18.
71954
71955 2007-03-17  Jim Meyering  <jim@meyering.net>
71956
71957         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71958         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71959         someone uses a name containing shell meta-characters.
71960         Reported by Alfred M. Szmidt.
71961
71962         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71963
71964 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71965
71966         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71967         and copy gettext configuration files only if configure.ac contains
71968         a use of AM_GNU_GETTEXT_VERSION.
71969
71970 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71971
71972         * build-aux/bootstrap (gnulib_name): New variable.
71973         (gnulib_tool_options): Use it.
71974
71975 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71976
71977         * tests/test-des.c: Use new namespace.
71978
71979 2007-03-15  Bruno Haible  <bruno@clisp.org>
71980
71981         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71982         Reported by James Youngman <jay@gnu.org>.
71983
71984 2007-03-15  Bruno Haible  <bruno@clisp.org>
71985
71986         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71987         declared prototype. Needed with cc on OSF/1 5.1.
71988
71989 2007-03-15  Bruno Haible  <bruno@clisp.org>
71990
71991         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71992         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71993         (struct gl_list_implementation): Add dispose_fn argument to the
71994         'create_empty', 'create' methods.
71995         (struct gl_list_impl_base): Add field 'dispose_fn'.
71996         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71997         argument.
71998         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71999         dispose_fn argument.
72000         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72001         dispose_fn on the dropped values.
72002         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72003         dispose_fn argument.
72004         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72005         dropped values.
72006         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72007         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72008         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72009         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72010         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72011         argument.
72012         (gl_tree_list_free): Call dispose_fn on the dropped values.
72013         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72014         the dropped values.
72015         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72016         Add dispose_fn argument.
72017         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72018         Call dispose_fn on the dropped values.
72019         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72020         Add dispose_fn argument.
72021         (gl_sublist_create): Initialize the 'dispose_fn' field.
72022         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72023         * tests/test-array_list.c (main): Update.
72024         * tests/test-carray_list.c (main): Update.
72025         * tests/test-avltree_list.c (main): Update.
72026         * tests/test-rbtree_list.c (main): Update.
72027         * tests/test-avltreehash_list.c (main): Update.
72028         * tests/test-rbtreehash_list.c (main): Update.
72029         * tests/test-linked_list.c (main): Update.
72030         * tests/test-linkedhash_list.c (main): Update.
72031         * tests/test-array_oset.c (main): Update.
72032
72033 2007-03-15  Bruno Haible  <bruno@clisp.org>
72034
72035         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72036         (gl_oset_create_empty): Add dispose_fn argument.
72037         (struct gl_oset_implementation): Add dispose_fn argument to
72038         'create_empty' method.
72039         (struct gl_oset_impl_base): Add dispose_fn field.
72040         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72041         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72042         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72043         values.
72044         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72045         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72046         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72047         dropped value.
72048         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72049         dropped value.
72050         * tests/test-array_oset.c (main): Update.
72051         * tests/test-avltree_oset.c (main): Update.
72052         * tests/test-rbtree_oset.c (main): Update.
72053         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72054
72055 2007-03-13  Bruno Haible  <bruno@clisp.org>
72056
72057         * tests/test-stdbool.c (i): Update after last patch.
72058
72059 2007-03-12  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72062         the iswprint macro. Needed on Solaris 2.5.1.
72063
72064 2007-03-12  Bruno Haible  <bruno@clisp.org>
72065
72066         * tests/test-printf-frexp.c (main): Declare x as volatile.
72067
72068 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72069
72070         * doc/gnulib.texi (Build robot for gnulib): New section.
72071
72072 2007-03-12  Jim Meyering  <jim@meyering.net>
72073
72074         * build-aux/bootstrap: New file.
72075         * build-aux/bootstrap.conf: New file, from coreutils.
72076
72077 2007-03-11  Bruno Haible  <bruno@clisp.org>
72078
72079         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
72080
72081 2007-03-12  Simon Josefsson  <simon@josefsson.org>
72082
72083         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
72084         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
72085         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
72086
72087 2007-03-11  Bruno Haible  <bruno@clisp.org>
72088
72089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
72090         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
72091
72092 2007-03-11  Bruno Haible  <bruno@clisp.org>
72093
72094         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
72095         formula. Needed for SunPRO C 5.0.
72096
72097 2007-03-11  Bruno Haible  <bruno@clisp.org>
72098
72099         * modules/long-options (Depends-on): Add getopt.
72100
72101 2007-03-11  Bruno Haible  <bruno@clisp.org>
72102
72103         * modules/modechange (Depends-on): Add stdbool.
72104
72105 2007-03-11  Bruno Haible  <bruno@clisp.org>
72106
72107         * modules/i-ring (Depends-on): Add stdbool.
72108
72109 2007-03-11  Bruno Haible  <bruno@clisp.org>
72110
72111         * modules/gc-des (Depends-on): Add stdbool.
72112
72113 2007-03-11  Bruno Haible  <bruno@clisp.org>
72114
72115         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
72116
72117 2007-03-11  Bruno Haible  <bruno@clisp.org>
72118
72119         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
72120
72121 2007-03-11  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
72124
72125 2007-03-11  Bruno Haible  <bruno@clisp.org>
72126
72127         * lib/vasnprintf.c (sprintf): Undefine.
72128
72129 2007-03-11  Bruno Haible  <bruno@clisp.org>
72130
72131         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
72132         initializers in SunPRO C and Compaq C compilers.
72133
72134 2007-03-11  Bruno Haible  <bruno@clisp.org>
72135
72136         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
72137         decrementing code ANSI C compliant.
72138
72139 2007-03-11  Bruno Haible  <bruno@clisp.org>
72140
72141         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
72142         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
72143
72144 2007-03-11  Bruno Haible  <bruno@clisp.org>
72145
72146         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
72147         <stdbool.h> substitute doesn't pass.
72148
72149 2007-03-11  Bruno Haible  <bruno@clisp.org>
72150
72151         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
72152
72153 2007-03-11  Bruno Haible  <bruno@clisp.org>
72154
72155         * gnulib-tool (func_create_megatestdir): Create also an autobuild
72156         script, for submission to autobuild.josefsson.org.
72157
72158 2007-03-10  Bruno Haible  <bruno@clisp.org>
72159
72160         * modules/canonicalize-lgpl-tests: New file.
72161         * tests/test-canonicalize-lgpl.sh: New file.
72162         * tests/test-canonicalize-lgpl.c: New file.
72163
72164         * modules/c-strcase-tests: New file.
72165         * tests/test-c-strcase.sh: New file.
72166         * tests/test-c-strcasecmp.c: New file.
72167         * tests/test-c-strncasecmp.c: New file.
72168
72169         * modules/atexit-tests: New file.
72170         * tests/test-atexit.sh: New file.
72171         * tests/test-atexit.c: New file.
72172
72173 2007-03-10  Bruno Haible  <bruno@clisp.org>
72174
72175         * tests/test-binary-io.sh: Use temporary filenames that are not so
72176         likely to clash with those of other tests (in a parallel make).
72177         * tests/test-binary-io.c: Likewise.
72178
72179 2007-03-10  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
72182         fallback; use #error instead.
72183         Suggested by Simon Josefsson.
72184
72185 2007-03-10  Bruno Haible  <bruno@clisp.org>
72186
72187         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
72188         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
72189         first and the last.
72190
72191 2007-03-10  Bruno Haible  <bruno@clisp.org>
72192
72193         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
72194
72195 2007-03-10  Bruno Haible  <bruno@clisp.org>
72196
72197         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
72198         "make distcheck".
72199         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
72200         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
72201         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
72202
72203 2007-03-10  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
72206         variable.
72207         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
72208         variable.
72209
72210 2007-03-09  Eric Blake  <ebb9@byu.net>
72211         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
72212
72213         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
72214         types are not being provided by gnulib.
72215         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
72216         types are supported.
72217
72218 2007-03-10  Bruno Haible  <bruno@clisp.org>
72219
72220         * lib/stdio_.h (__attribute__): New macro.
72221         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
72222         vsprintf): Specify __attribute__ __format__ for GCC.
72223         Suggested by Eric Blake.
72224
72225 2007-03-09  Bruno Haible  <bruno@clisp.org>
72226
72227         * modules/printf-posix-tests: New file.
72228         * tests/test-printf-posix.sh: New file.
72229         * tests/test-printf-posix.c: New file.
72230
72231         * modules/printf-posix: New file.
72232         * lib/printf.c: New file.
72233         * m4/printf-posix-rpl.m4: New file.
72234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
72235         REPLACE_PRINTF.
72236         * lib/stdio_.h (printf): New declaration.
72237         (format, __format__, ____printf____, ____scanf____, ____strftime____,
72238         ____strfmon____): New macros.
72239         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
72240         REPLACE_PRINTF.
72241
72242 2007-03-09  Bruno Haible  <bruno@clisp.org>
72243
72244         * tests/test-vasnprintf-posix2.sh: New file.
72245         * tests/test-vasnprintf-posix2.c: New file.
72246         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
72247         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
72248         (Makefile.am): Activate test-vasnprintf-posix2.sh.
72249
72250         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
72251         a locale dependent decimal point, rather than always '.'.
72252
72253 2007-03-09  Eric Blake  <ebb9@byu.net>
72254
72255         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
72256         spite of platforms like Tandem/NSK that define it to -1.
72257
72258 2007-03-08  Bruno Haible  <bruno@clisp.org>
72259
72260         * modules/vprintf-posix-tests: New file.
72261         * tests/test-vprintf-posix.sh: New file.
72262         * tests/test-vprintf-posix.c: New file.
72263         * tests/test-printf-posix.h: New file.
72264
72265         * modules/vprintf-posix: New file.
72266         * lib/vprintf.c: New file.
72267         * m4/vprintf-posix.m4: New file.
72268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
72269         REPLACE_VPRINTF.
72270         * lib/stdio_.h (vprintf): New declaration.
72271         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
72272         REPLACE_VPRINTF.
72273
72274 2007-03-08  Bruno Haible  <bruno@clisp.org>
72275
72276         * modules/fprintf-posix-tests: New file.
72277         * tests/test-fprintf-posix.sh: New file.
72278         * tests/test-fprintf-posix.c: New file.
72279
72280         * modules/fprintf-posix: New file.
72281         * lib/fprintf.c: New file.
72282         * m4/fprintf-posix.m4: New file.
72283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
72284         REPLACE_FPRINTF.
72285         * lib/stdio_.h (fprintf): New declaration.
72286         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
72287         REPLACE_FPRINTF.
72288
72289 2007-03-08  Bruno Haible  <bruno@clisp.org>
72290
72291         * modules/vfprintf-posix-tests: New file.
72292         * tests/test-vfprintf-posix.sh: New file.
72293         * tests/test-vfprintf-posix.c: New file.
72294         * tests/test-fprintf-posix.h: New file.
72295         * tests/test-fprintf-posix.out: New file.
72296
72297         * modules/vfprintf-posix: New file.
72298         * lib/vfprintf.c: New file.
72299         * m4/vfprintf-posix.m4: New file.
72300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
72301         REPLACE_VFPRINTF.
72302         * lib/stdio_.h (vfprintf): New declaration.
72303         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
72304         REPLACE_VFPRINTF.
72305
72306 2007-03-08  Bruno Haible  <bruno@clisp.org>
72307
72308         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
72309
72310 2007-03-08  Bruno Haible  <bruno@clisp.org>
72311
72312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
72313         instead of 'expr' invocations.
72314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
72318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72319         Suggested by Paul Eggert.
72320
72321 2007-03-08  Bruno Haible  <bruno@clisp.org>
72322
72323         * modules/fseterr-tests: New file.
72324         * tests/test-fseterr.c: New file.
72325
72326         * modules/fseterr: New file.
72327         * lib/fseterr.h: New file.
72328         * lib/fseterr.c: New file.
72329
72330 2007-03-08  Bruno Haible  <bruno@clisp.org>
72331
72332         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
72333         * lib/getopt_.h: Likewise.
72334         * lib/mbswidth.h: Likewise.
72335         * lib/setenv.h: Likewise.
72336         * lib/vasnprintf.h: Likewise.
72337         * lib/vasprintf.h: Likewise.
72338         * lib/verror.h: Likewise.
72339         * lib/xsetenv.h: Likewise.
72340         * lib/xvasprintf.h: Likewise.
72341
72342 2007-03-08  Jim Meyering  <jim@meyering.net>
72343
72344         * users.txt: Add parted.
72345
72346         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
72347
72348 2007-03-07  Bruno Haible  <bruno@clisp.org>
72349
72350         * m4/printf.m4: Make the shell script snippets copy&pastable.
72351
72352 2007-03-02  Bruno Haible  <bruno@clisp.org>
72353
72354         * lib/netinet_in_.h: New file.
72355         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
72356         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
72357         * modules/netinet_in (Files): Add lib/netinet_in_.h.
72358         (Depends-on): Add absolute-header.
72359         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
72360         into netinet/in.h.
72361
72362 2007-03-03  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/sys_select_.h: New file.
72365         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
72366         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
72367         * modules/sys_select (Files): Add lib/sys_select_.h.
72368         (Depends-on): Add absolute-header.
72369         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
72370         into sys/select.h.
72371
72372 2007-03-02  Bruno Haible  <bruno@clisp.org>
72373
72374         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
72375         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
72376         values.
72377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
72378         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
72379         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
72380         * modules/sys_socket (Depends-on): Add absolute-header.
72381         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
72382         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
72383         (Include): Remove requirement of inclusion of <sys/types.h>.
72384
72385 2007-03-02  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/byteswap_.h (bswap_32): Fix formula.
72388
72389 2007-03-06  Bruno Haible  <bruno@clisp.org>
72390
72391         * modules/sprintf-posix-tests: New file.
72392         * tests/test-sprintf-posix.c: New file.
72393
72394         * modules/sprintf-posix: New file.
72395         * lib/sprintf.c: New file.
72396         * m4/sprintf-posix.m4: New file.
72397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
72398         REPLACE_SPRINTF.
72399         * lib/stdio_.h (sprintf): New declaration.
72400         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
72401         REPLACE_SPRINTF.
72402
72403 2007-03-06  Bruno Haible  <bruno@clisp.org>
72404
72405         * modules/vsprintf-posix-tests: New file.
72406         * tests/test-vsprintf-posix.c: New file.
72407         * tests/test-sprintf-posix.h: New file.
72408
72409         * modules/vsprintf-posix: New file.
72410         * lib/vsprintf.c: New file.
72411         * m4/vsprintf-posix.m4: New file.
72412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
72413         REPLACE_VSPRINTF.
72414         * lib/stdio_.h (vsprintf): New declaration.
72415         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
72416         REPLACE_VSPRINTF.
72417
72418 2007-03-06  Bruno Haible  <bruno@clisp.org>
72419
72420         * modules/vsnprintf (Depend-on): Remove minmax.
72421
72422 2007-03-06  Bruno Haible  <bruno@clisp.org>
72423
72424         * modules/snprintf-posix-tests: New file.
72425         * tests/test-snprintf-posix.c: New file.
72426
72427         * modules/snprintf-posix: New file.
72428         * m4/snprintf-posix.m4: New file.
72429         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
72430         gl_FUNC_SNPRINTF.
72431         (gl_FUNC_SNPRINTF): Invoke it.
72432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
72433         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
72434         is set.
72435         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
72436
72437 2007-03-06  Bruno Haible  <bruno@clisp.org>
72438
72439         * modules/vsnprintf-posix-tests: New file.
72440         * tests/test-vsnprintf-posix.c: New file.
72441         * tests/test-snprintf-posix.h: New file.
72442
72443         * modules/vsnprintf-posix: New file.
72444         * m4/vsnprintf-posix.m4: New file.
72445         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
72446         gl_FUNC_VSNPRINTF.
72447         (gl_FUNC_VSNPRINTF): Invoke it.
72448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
72449         * lib/stdio_.h (vsnprintf): Define as a replacement if
72450         REPLACE_VSNPRINTF is set.
72451         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
72452
72453 2007-03-06  Bruno Haible  <bruno@clisp.org>
72454
72455         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
72456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
72457
72458 2007-03-06  Bruno Haible  <bruno@clisp.org>
72459
72460         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
72461         (asinl): Declare also if HAVE_DECL_ASINL is set.
72462         (atanl): Declare also if HAVE_DECL_ATANL is set.
72463         (ceill): Declare also if HAVE_DECL_CEILL is set.
72464         (cosl): Declare also if HAVE_DECL_COSL is set.
72465         (expl): Declare also if HAVE_DECL_EXPL is set.
72466         (floorl): Declare also if HAVE_DECL_FLOORL is set.
72467         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
72468         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
72469         (logl): Declare also if HAVE_DECL_LOGL is set.
72470         (sinl): Declare also if HAVE_DECL_SINL is set.
72471         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
72472         (tanl): Declare also if HAVE_DECL_TANL is set.
72473         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
72474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
72475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
72476         declaration of frexpl, ldexpl.
72477         * modules/printf-frexpl (Depends-on): Add math.
72478         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
72479
72480 2007-03-05  Bruno Haible  <bruno@clisp.org>
72481
72482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
72483         frexpl and ldexpl are declared.
72484         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
72485
72486 2007-03-05  Bruno Haible  <bruno@clisp.org>
72487
72488         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
72489         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
72490
72491 2007-03-05  Bruno Haible  <bruno@clisp.org>
72492
72493         * lib/stdio_.h: Include <stddef.h>.
72494
72495 2007-03-05  Bruno Haible  <bruno@clisp.org>
72496
72497         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
72498
72499 2007-03-05  Bruno Haible  <bruno@clisp.org>
72500
72501         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
72502         NetBSD 4, from Ralf Wildenhues.
72503
72504 2007-03-04  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/vasprintf.h: Update #if logic for the case when the functions
72507         exist but are overridden.
72508
72509 2007-03-04  Bruno Haible  <bruno@clisp.org>
72510
72511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
72512         implementations: glibc-2.4 and MacOS X 10.3.
72513         * tests/test-vasnprintf-posix.c (test_function): Test also the case
72514         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
72515         * tests/test-vasprintf-posix.c (test_function): Likewise.
72516
72517 2007-03-04  Bruno Haible  <bruno@clisp.org>
72518
72519         * modules/vasprintf-posix-tests: New file.
72520         * tests/test-vasprintf-posix.c: New file.
72521
72522         * modules/vasprintf-posix: New file.
72523         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
72524         defined.
72525         * m4/vasprintf-posix.m4: New file.
72526         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
72527         gl_FUNC_VASPRINTF.
72528         (gl_FUNC_VASPRINTF): Invoke it.
72529         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
72530         here.
72531         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
72532
72533 2007-03-04  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
72536         REPLACE_GETTIMEOFDAY.
72537         * modules/sys_time (Makefile.am): Likewise.
72538         * m4/sys_time_h.m4: Likewise.
72539         * m4/gettimeofday.m4: Likewise.
72540
72541 2007-03-04  Bruno Haible  <bruno@clisp.org>
72542
72543         * modules/vasnprintf-posix-tests: New file.
72544         * tests/test-vasnprintf-posix.c: New file.
72545
72546         * modules/vasnprintf-posix: New file.
72547         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
72548         printf-frexpl.h.
72549         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
72550         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
72551         REPLACE_VASNPRINTF is defined.
72552         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
72553         gl_FUNC_VASNPRINTF.
72554         (gl_FUNC_VASNPRINTF): Invoke it.
72555         * m4/vasnprintf-posix.m4: New file.
72556         * m4/printf.m4: New file.
72557
72558 2007-03-04  Bruno Haible  <bruno@clisp.org>
72559
72560         Compile progreloc.c only if --enable-relocatable is specified.
72561         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
72562         if --enable-relocatable was specified.
72563         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
72564         lib_SOURCES.
72565
72566 2007-03-04  Jim Meyering  <jim@meyering.net>
72567
72568         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
72569         Use it consistently, rather than enumerating errno constants.
72570
72571 2007-03-04  Bruno Haible  <bruno@clisp.org>
72572
72573         * modules/xvasprintf-tests: New file.
72574         * tests/test-xvasprintf.c: New file.
72575
72576         * modules/vasprintf-tests: New file.
72577         * tests/test-vasprintf.c: New file.
72578
72579         * modules/vasnprintf-tests: New file.
72580         * tests/test-vasnprintf.c: New file.
72581
72582         * modules/vsnprintf-tests: New file.
72583         * tests/test-vsnprintf.c: New file.
72584
72585         * modules/snprintf-tests: New file.
72586         * tests/test-snprintf.c: New file.
72587
72588 2007-03-04  Bruno Haible  <bruno@clisp.org>
72589
72590         Compile relocatable.c only if --enable-relocatable is specified.
72591         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
72592         gl_RELOCATABLE_LIBRARY.
72593         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
72594         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
72595         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
72596         gl_RELOCATABLE_LIBRARY.
72597         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
72598         (Makefile.am): Remove lib_SOURCES.
72599         * modules/relocatable-lib-lgpl (configure.ac): Invoke
72600         gl_RELOCATABLE_LIBRARY.
72601         (Makefile.am): Remove lib_SOURCES.
72602         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
72603         always.
72604         * modules/relocatable-prog-wrapper (configure.ac): Invoke
72605         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
72606
72607 2007-03-04  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/argmatch-tests: New file.
72610         * tests/test-argmatch.c: New file.
72611
72612         * tests/test-allocsa.c (main): Halve the number of loop runs.
72613
72614         * modules/alloca-opt-tests: New file.
72615         * tests/test-alloca-opt.c: New file.
72616
72617 2007-03-04  Jim Meyering  <jim@meyering.net>
72618
72619         Work around difference between Linux ACLs and Solaris 10 ZFS.
72620         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
72621         for EINVAL.
72622
72623 2007-03-03  Bruno Haible  <bruno@clisp.org>
72624
72625         * modules/relocatable-prog (Depends-on): Add back progreloc's
72626         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
72627
72628 2007-03-03  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
72631         * modules/relocatable-lib: New file.
72632
72633 2007-03-03  Bruno Haible  <bruno@clisp.org>
72634
72635         * modules/relocatable-prog: Renamed from modules/relocatable.
72636         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
72637
72638 2007-03-03  Bruno Haible  <bruno@clisp.org>
72639
72640         * modules/relocatable-script (Files): Add doc/relocatable.texi,
72641         m4/relocatable-lib.m4.
72642         (Depends-on): Remove 'relocatable'.
72643         (configure.ac): Add gl_RELOCATABLE_NOP.
72644
72645 2007-03-03  Bruno Haible  <bruno@clisp.org>
72646
72647         * modules/relocatable-prog-wrapper: New file.
72648         * modules/relocatable (Depends-on): Add it. Remove all other
72649         dependencies except progname.
72650         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
72651
72652         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
72653         (gl_FUNC_STRERROR): Nop.
72654         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
72655
72656         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
72657         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
72658
72659         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
72660         (gl_FUNC_READLINK): Update.
72661
72662         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
72663
72664 2007-03-03  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/xreadlink.c: Include <unistd.h> unconditionally.
72667         * modules/xreadlink (Depends-on): Add unistd.
72668         * modules/xreadlink-with-size (Depends-on): Likewise.
72669
72670 2007-03-03  Bruno Haible  <bruno@clisp.org>
72671
72672         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
72673         extracted from gt_FUNC_SETENV.
72674         (gt_FUNC_SETENV): Remove macro.
72675         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
72676         remove gt_FUNC_SETENV.
72677
72678 2007-03-03  Bruno Haible  <bruno@clisp.org>
72679
72680         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
72681         ENABLE_RELOCATABLE here.
72682         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
72683
72684 2007-03-03  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/rbtreehash-list-tests (Depends-on): Add progname.
72687         * tests/test-rbtreehash_list.c: Include progname.h.
72688         (main): Call set_program_name.
72689
72690         * modules/rbtree-oset-tests (Depends-on): Add progname.
72691         * tests/test-rbtree_oset.c: Include progname.h.
72692         (main): Call set_program_name.
72693
72694         * modules/rbtree-list-tests (Depends-on): Add progname.
72695         * tests/test-rbtree_list.c: Include progname.h.
72696         (main): Call set_program_name.
72697
72698         * modules/linked-list-tests (Depends-on): Add progname.
72699         * tests/test-linked_list.c: Include progname.h.
72700         (main): Call set_program_name.
72701
72702 2007-03-03  Bruno Haible  <bruno@clisp.org>
72703
72704         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
72705         All uses of __restrict changed to _Restrict_.
72706         * lib/glob_.h (__restrict): Remove macro.
72707
72708 2007-03-02  Bruno Haible  <bruno@clisp.org>
72709
72710         * modules/gettext (configure.ac): Require gettext infrastructure
72711         from version 0.16.1.
72712
72713 2007-03-02  Bruno Haible  <bruno@clisp.org>
72714
72715         * modules/linkedhash-list-tests (Depends-on): Add progname.
72716         * tests/test-linkedhash_list.c: Include progname.h.
72717         (main): Call set_program_name.
72718
72719         * modules/carray-list-tests (Depends-on): Add progname.
72720         * tests/test-carray_list.c: Include progname.h.
72721         (main): Call set_program_name.
72722
72723         * modules/avltreehash-list-tests (Depends-on): Add progname.
72724         * tests/test-avltreehash_list.c: Include progname.h.
72725         (main): Call set_program_name.
72726
72727         * modules/avltree-oset-tests (Depends-on): Add progname.
72728         * tests/test-avltree_oset.c: Include progname.h.
72729         (main): Call set_program_name.
72730
72731         * modules/avltree-list-tests (Depends-on): Add progname.
72732         * tests/test-avltree_list.c: Include progname.h.
72733         (main): Call set_program_name.
72734
72735         * modules/array-oset-tests (Depends-on): Add progname.
72736         * tests/test-array_oset.c: Include progname.h.
72737         (main): Call set_program_name.
72738
72739         * modules/array-list-tests (Depends-on): Add progname.
72740         * tests/test-array_list.c: Include progname.h.
72741         (main): Call set_program_name.
72742
72743         * modules/argp-tests (Depends-on): Add progname.
72744         * tests/test-argp.c: Include argp.h first. Include progname.h.
72745         (main): Call set_program_name.
72746
72747 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
72748
72749         * doc/gnulib-tool.texi (Initial import): Reword description of
72750         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
72751         limited effect even if defined after the first system include.
72752
72753 2007-03-01  Bruno Haible  <bruno@clisp.org>
72754
72755         * build-aux/config.libpath: Update to libtool-1.5.22.
72756         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72757
72758 2007-03-01  Bruno Haible  <bruno@clisp.org>
72759
72760         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
72761         foo_CFLAGS.
72762         Reported by Ralf Wildenhues.
72763
72764 2007-03-01  Bruno Haible  <bruno@clisp.org>
72765
72766         * build-aux/install-reloc: Remove object files left over by some
72767         compilers.
72768         Reported by Ralf Wildenhues.
72769
72770 2007-03-01  Bruno Haible  <bruno@clisp.org>
72771
72772         * build-aux/install-reloc: Break long lines.
72773
72774 2007-03-01  Bruno Haible  <bruno@clisp.org>
72775
72776         * doc/relocatable.texi: Document that it may not work on OpenBSD.
72777         Reported by Ralf Wildenhues.
72778
72779 2007-03-01  Bruno Haible  <bruno@clisp.org>
72780
72781         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
72782         include ordering constraints.
72783
72784 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
72787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
72788         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
72789         as another example.
72790         * lib/time_.h: Fix misspelling.
72791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72792         Require gl_HEADER_TIME_H_DEFAULTS.
72793         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
72794         * m4/time_r.m4 (gl_TIME_R): Likewise.
72795         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
72796
72797 2007-03-01  Bruno Haible  <bruno@clisp.org>
72798
72799         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
72800         * m4/utimens.m4 (gl_UTIMENS): Likewise.
72801
72802 2007-03-01  Jim Meyering  <jim@meyering.net>
72803
72804         * modules/xreadlink (Maintainer): Add my name.
72805         * modules/xreadlink-with-size (Depends-on): Alphabetize.
72806
72807 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
72808             Bruno Haible  <bruno@clisp.org>
72809
72810         * build-aux/install-reloc: Compile also c-ctype.c.
72811         * build-aux/relocatable.sh.in: New file.
72812         * doc/relocatable.texi: New file.
72813         * doc/relocatable-maint.texi: New file.
72814         * doc/gnulib.texi: Include relocatable-maint.texi.
72815         * lib/progreloc.c: Include unistd.h unconditionally.
72816         * lib/relocwrapper.c: Include unistd.h unconditionally.
72817         Include c-ctype.h.
72818         (add_dotbin): Use c_tolower.
72819         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
72820         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
72821         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
72822         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
72823         to m4/relocatable-lib.m4.
72824         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
72825         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
72826         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
72827         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
72828         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
72829         * modules/relocatable: New file.
72830         * modules/relocatable-lib: New file.
72831         * modules/relocatable-script: New file.
72832
72833 2007-02-28  Bruno Haible  <bruno@clisp.org>
72834
72835         Import --enable-relocatable infrastructure.
72836         * build-aux/config.libpath: New file, from GNU gettext.
72837         * build-aux/install-reloc: New file, from GNU gettext.
72838         * build-aux/reloc-ldflags: New file, from GNU gettext.
72839         * lib/relocatable.h: New file, from GNU gettext.
72840         * lib/relocatable.c: New file, from GNU gettext.
72841         * lib/relocwrapper.c: New file, from GNU gettext.
72842         * m4/relocatable.m4: New file, from GNU gettext.
72843
72844 2007-02-28  Bruno Haible  <bruno@clisp.org>
72845
72846         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72847
72848         * modules/xreadlink: New file, from GNU gettext with modifications.
72849         * lib/xreadlink.c: New file, from GNU gettext.
72850         * lib/xreadlink.h: Add comments.
72851         (xreadlink): New declaration.
72852
72853         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72854         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72855         lib/xreadlink-with-size.c.
72856         (configure.ac): Remove gl_XREADLINK invocation.
72857         (Makefile.am): Augment lib_SOURCES.
72858         * m4/xreadlink.m4: Remove file.
72859         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72860         (xreadlink_with_size): Renamed from xreadink.
72861         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72862         * modules/canonicalize (Depends-on): Replace xreadlink with
72863         xreadlink-with-size.
72864         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72865
72866 2007-02-25  Jim Meyering  <jim@meyering.net>
72867
72868         * build-aux/announce-gen: When complaining about excess arguments,
72869         list them.
72870
72871 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72872
72873         * README: Document signed integer overflow situation more
72874         accurately.
72875
72876 2007-02-25  Bruno Haible  <bruno@clisp.org>
72877
72878         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72879         'a' or 'A' conversion.
72880
72881 2007-02-25  Bruno Haible  <bruno@clisp.org>
72882
72883         * modules/filename: Renamed from modules/pathname.
72884         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72885         lib/concatpath.c with lib/concat-filename.c.
72886         (Makefile.am): Update.
72887         (Include): Replace pathname.h with filename.h.
72888         * lib/filename.h: Renamed from lib/pathname.h.
72889         (concatenated_filename): Renamed from concatenated_pathname.
72890         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72891         (concatenated_filename): Renamed from concatenated_pathname.
72892         * lib/findprog.c: Include filename.h instead of pathname.h.
72893         (find_in_path): Update.
72894         * lib/javacomp.c: Include filename.h instead of pathname.h.
72895         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72896         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72897         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72898         is_oldgcj_14_13_usable, is_javac_usable): Update.
72899         * lib/javaexec.c: Include filename.h instead of pathname.h.
72900         (execute_java_class): Update.
72901         * modules/findprog: Update.
72902         * modules/javacomp: Update.
72903         * modules/javaexec: Update.
72904         * MODULES.html.sh (File system functions): Add 'filename', remove
72905         'pathname'.
72906
72907 2007-02-25  Bruno Haible  <bruno@clisp.org>
72908
72909         * modules/printf-frexpl-tests: New file.
72910         * tests/test-printf-frexpl.c: New file.
72911
72912         * modules/printf-frexpl: New file.
72913         * lib/printf-frexpl.h: New file.
72914         * lib/printf-frexpl.c: New file.
72915         * m4/printf-frexpl.m4: New file.
72916
72917 2007-02-25  Bruno Haible  <bruno@clisp.org>
72918
72919         * modules/printf-frexp-tests: New file.
72920         * tests/test-printf-frexp.c: New file.
72921
72922         * modules/printf-frexp: New file.
72923         * lib/printf-frexp.h: New file.
72924         * lib/printf-frexp.c: New file.
72925         * m4/printf-frexp.m4: New file.
72926
72927 2007-02-25  Bruno Haible  <bruno@clisp.org>
72928
72929         Assume automake >= 1.10 for the tests.
72930         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72931         * modules/arctwo-tests: Likewise.
72932         * modules/argp-tests: Likewise.
72933         * modules/avltree-list-tests: Likewise.
72934         * modules/avltree-oset-tests: Likewise.
72935         * modules/avltreehash-list-tests: Likewise.
72936         * modules/carray-list-tests: Likewise.
72937         * modules/crc-tests: Likewise.
72938         * modules/des-tests: Likewise.
72939         * modules/gc-arcfour-tests: Likewise.
72940         * modules/gc-arctwo-tests: Likewise.
72941         * modules/gc-des-tests: Likewise.
72942         * modules/gc-hmac-md5-tests: Likewise.
72943         * modules/gc-hmac-sha1-tests: Likewise.
72944         * modules/gc-md2-tests: Likewise.
72945         * modules/gc-md4-tests: Likewise.
72946         * modules/gc-md5-tests: Likewise.
72947         * modules/gc-pbkdf2-sha1-tests: Likewise.
72948         * modules/gc-rijndael-tests: Likewise.
72949         * modules/gc-sha1-tests: Likewise.
72950         * modules/gc-tests: Likewise.
72951         * modules/getaddrinfo-tests: Likewise.
72952         * modules/hmac-md5-tests: Likewise.
72953         * modules/hmac-sha1-tests: Likewise.
72954         * modules/linked-list-tests: Likewise.
72955         * modules/linkedhash-list-tests: Likewise.
72956         * modules/lock-tests: Likewise.
72957         * modules/md2-tests: Likewise.
72958         * modules/md4-tests: Likewise.
72959         * modules/md5-tests: Likewise.
72960         * modules/rbtree-list-tests: Likewise.
72961         * modules/rbtree-oset-tests: Likewise.
72962         * modules/rbtreehash-list-tests: Likewise.
72963         * modules/read-file-tests: Likewise.
72964         * modules/rijndael-tests: Likewise.
72965         * modules/stdint-tests: Likewise.
72966         * modules/tls-tests: Likewise.
72967
72968 2007-02-24  Bruno Haible  <bruno@clisp.org>
72969
72970         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72971         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72972         function; instead check whether isnan with a double argument links.
72973         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72974         function; instead check whether isnan with a 'long double' argument
72975         links.
72976         Reported by Eric Blake <ebb9@byu.net>.
72977
72978 2007-02-24  Bruno Haible  <bruno@clisp.org>
72979
72980         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72981         defined.
72982         * lib/isnanl.c: Remove all code. Just include isnan.c.
72983         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72984
72985 2007-02-25  Jim Meyering  <jim@meyering.net>
72986
72987         Avoid conflicting types for 'unsetenv' on FreeBSD.
72988         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72989         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72990         in stdlib.h.
72991
72992 2007-02-24  Bruno Haible  <bruno@clisp.org>
72993
72994         * modules/isnanl-nolibm-tests: New file.
72995         * tests/test-isnanl.c: New file.
72996
72997         * modules/isnanl-nolibm: New file.
72998         * lib/isnanl.h: New file.
72999         * lib/isnanl.c: New file.
73000         * m4/isnanl.m4: New file.
73001
73002 2007-02-24  Bruno Haible  <bruno@clisp.org>
73003
73004         * modules/isnan-nolibm-tests: New file.
73005         * tests/test-isnan.c: New file.
73006
73007         * modules/isnan-nolibm: New file.
73008         * lib/isnan.h: New file.
73009         * lib/isnan.c: New file.
73010         * m4/isnan.m4: New file.
73011
73012 2007-02-24  Bruno Haible  <bruno@clisp.org>
73013
73014         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73015         assume that an exponent fits in 20 bits.
73016
73017 2007-02-24  Jim Meyering  <jim@meyering.net>
73018
73019         * m4/regex.m4: Update the description of the configure-time option,
73020         --without-included-regex, to state accurately what the defaults are,
73021         and perhaps to give people an idea why using this option is risky.
73022
73023 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73024
73025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73026         loops on small arguments.  This attempts to avoid the problem
73027         Bruno Haible reported for AIX 4.3.2 in
73028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73029
73030 2007-02-23  Bruno Haible  <bruno@clisp.org>
73031
73032         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73033         Needed for help2man.
73034
73035 2007-02-23  Karl Berry  <karl@gnu.org>
73036
73037         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73038         exists, foo.h should be cvs-ignored, not committed.
73039
73040 2007-02-23  Eric Blake  <ebb9@byu.net>
73041
73042         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73043         * lib/stat-time.h (includes): Likewise.
73044         * lib/utimecmp.c (includes): Likewise.
73045         * lib/utimens.h (includes): Likewise.
73046         * lib/getdate.y (includes): Also include "timespec.h" for use
73047         internal to the module.
73048         * modules/utimens (Depends-on): Revert yesterday's patch.
73049         * modules/nanosleep (Depends-on): Add missing dependency.
73050
73051 2007-02-22  Bruno Haible  <bruno@clisp.org>
73052
73053         * lib/glob.c: Don't include getlogin_r.h.
73054
73055 2007-02-22  Jim Meyering  <jim@meyering.net>
73056
73057         * modules/utimens (Depends-on): Add timespec, required for
73058         utimens.h's inclusion of timespec.h.
73059
73060 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
73063         long unreadable paths in GNU/Linux.  Problem reported by Andreas
73064         Schwab in
73065         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
73066         I'll try to think of a better way to fix the Solaris problem.
73067
73068         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
73069         like glibc; on Solaris 10, it fails with errno == EINVAL.
73070         POSIX says the behavior is unspecified if the first argument is NULL,
73071         so play it safe and never pass NULL to the system getcwd.
73072
73073 2007-02-21  Jim Meyering  <jim@meyering.net>
73074
73075         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
73076         of gettimeofday.  It would conflict with the one now always
73077         provided via sys_time_.h.  Reported by Matthew Woehlke, as
73078         an IRIX 6.5 build failure.
73079
73080 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73081
73082         Minor fixups to port to Solaris 10 with Sun C 5.8.
73083         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
73084         * modules/getcwd (Depends-on): Add dirfd.
73085         * lib/putenv.c (putenv): #undef it.
73086         (rpl_putenv): New decl.
73087         (malloc, free): Include <stdlib.h> rather than prototyping separately.
73088
73089 2007-02-20  Bruno Haible  <bruno@clisp.org>
73090
73091         * modules/stdio-tests: New file.
73092         * tests/test-stdio.c: New file.
73093
73094         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
73095         (Depends-on): Add stdio.
73096         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73097         (Include): Use <stdio.h> instead of vsnprintf.h.
73098         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73099         HAVE_DECL_VSNPRINTF.
73100         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
73101
73102         * modules/snprintf (Files): Remove lib/snprintf.h.
73103         (Depends-on): Add stdio.
73104         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
73105         (Include): Use <stdio.h> instead of snprintf.h.
73106         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
73107         HAVE_DECL_SNPRINTF.
73108         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
73109         * lib/getaddrinfo.c: Likewise.
73110
73111         * modules/stdio: New file.
73112         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
73113         * lib/snprintf.h: Remove file.
73114         * lib/vsnprintf.h: Remove file.
73115         * lib/.cppi-disable: Remove snprintf.h.
73116         * m4/stdio_h.m4: New file.
73117         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
73118
73119 2007-02-20  Jim Meyering  <jim@meyering.net>
73120
73121         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
73122         used by e.g., mingw.  From Bruno Haible.
73123
73124 2007-02-19  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
73127         warnings.
73128         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73129
73130 2007-02-19  Bruno Haible  <bruno@clisp.org>
73131
73132         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
73133         from mingw users.
73134
73135 2007-02-19  Bruno Haible  <bruno@clisp.org>
73136
73137         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
73138         warnings.
73139         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
73140
73141 2007-02-19  Jim Meyering  <jim@meyering.net>
73142
73143         Don't use FD after a successful "fdopendir (fd)".
73144         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
73145         Reset it by calling dirfd on the just-obtained DIR*.
73146
73147         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
73148         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
73149
73150 2007-02-18  Bruno Haible  <bruno@clisp.org>
73151
73152         * lib/readlink.c: Include <unistd.h>.
73153         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
73154         HAVE_READLINK.
73155         * modules/readlink (Depends-on): Add unistd.
73156         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73157         (Include): Add <unistd.h>.
73158
73159         * lib/getlogin_r.h: Remove file.
73160         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
73161         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
73162         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
73163         HAVE_DECL_GETLOGIN_R.
73164         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
73165         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73166         (Include): Use <unistd.h> instead of getlogin_r.h.
73167
73168         * lib/getcwd.h: Remove file.
73169         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
73170         * lib/xgetcwd.c: Likewise.
73171         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
73172         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
73173         * modules/getcwd (Files): Remove lib/getcwd.h.
73174         (Depends-on): Add unistd.
73175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73176         (Include): Use <unistd.h> instad of getcwd.h.
73177
73178         * lib/ftruncate.c: Include <unistd.h> first.
73179         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
73180         Set HAVE_FTRUNCATE.
73181         * modules/ftruncate (Depends-on): Add unistd.
73182         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73183
73184         * lib/fchdir.c: Include <unistd.h> first.
73185         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
73186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
73187         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
73188         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73189         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
73190
73191         * lib/dup2.c: Include <unistd.h> first.
73192         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
73193         HAVE_DUP2.
73194         * modules/dup2 (Depends-on): Add unistd.
73195         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73196
73197         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
73198         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
73199         REPLACE_CHOWN. Don't define chown as a macro here.
73200         * modules/chown (Depends-on): Add unistd.
73201         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
73202
73203         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
73204         Add definition for GL_LINK_WARNING.
73205         (chown, dup2): New declarations.
73206         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
73207         link warning.
73208         (ftruncate): New declaration.
73209         (getcwd): New declaration, taken from old getcwd.h.
73210         (getlogin_r): New declaration, taken from old getlogin_r.h.
73211         (readlink): New declaration.
73212         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
73213         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
73214         (gl_PREREQ_UNISTD): Remove macro.
73215         (gl_UNISTD_MODULE_INDICATOR): New macro.
73216         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
73217         many new variables. Don't set UNISTD_H.
73218         * modules/unistd (Description): Change.
73219         (Depends-on): Add link-warning.
73220         (configure.ac): Update.
73221         (Makefile.am): Create unistd.h always. Substitute many new variables
73222         into it.
73223
73224 2007-02-18  Bruno Haible  <bruno@clisp.org>
73225
73226         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
73227         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
73228         HAVE_GETSUBOPT.
73229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
73230         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
73231         * lib/getsubopt.h: Remove file.
73232         * modules/getsubopt (Files): Remove lib/getsubopt.h.
73233         (Depends-on): Add stdlib.
73234         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73235         (Includes): Use <stdlib.h> instead of getsubopt.h.
73236         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
73237         Set HAVE_GETSUBOPT.
73238         * lib/getsubopt.c: Don't include getsubopt.h.
73239
73240 2007-02-18  Bruno Haible  <bruno@clisp.org>
73241
73242         * modules/fchdir (Depends-on): Add dup2.
73243
73244 2007-02-18  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/stdlib_.h: Handle glibc's special invocation convention
73247         specially.
73248
73249 2007-02-18  Bruno Haible  <bruno@clisp.org>
73250
73251         * modules/stdlib-tests: New file.
73252         * tests/test-stdlib.c: New file.
73253
73254         * modules/mkstemp (Files): Remove lib/mkstemp.h.
73255         (Depends-on): Add stdlib.
73256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73257         (Includes): Use <stdlib.h> instead of mkstemp.h.
73258         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73259         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
73260         * lib/mkstemp.c: Don't include mkstemp.h.
73261         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
73262         * lib/stdlib--.h: Don't include mkstemp.h.
73263
73264         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
73265         (Depends-on): Add stdlib.
73266         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
73267         (Includes): Use <stdlib.h> instead of mkdtemp.h.
73268         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
73269         HAVE_MKDTEMP.
73270         * lib/mkdtemp.c: Don't include mkdtemp.h.
73271         * lib/clean-temp.c: Don't include mkdtemp.h.
73272
73273         * modules/exit (Files): Remove lib/exit.h.
73274         (Depends-on): Add stdlib.
73275         (Makefile.am): Remove lib_SOURCES.
73276         (Include): Use <stdlib.h> instead of exit.h.
73277         * lib/argmatch.c: Don't include exit.h.
73278         * lib/execute.c: Likewise.
73279         * lib/pagealign_alloc.c: Likewise.
73280         * lib/pipe.c: Likewise.
73281         * lib/wait-process.c: Likewise.
73282         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
73283         * lib/exitfail.c: Likewise.
73284         * lib/savewd.c: Likewise.
73285         * lib/xsetenv.c: Likewise.
73286
73287         * modules/stdlib: New file.
73288         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
73289         and extra comments about mkstemp().
73290         * lib/exit.h: Remove file.
73291         * lib/mkdtemp.h: Remove file.
73292         * lib/mkstemp.h: Remove file.
73293         * m4/stdlib_h.m4: New file.
73294         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
73295
73296 2007-02-18  Bruno Haible  <bruno@clisp.org>
73297
73298         * modules/math-tests: New file.
73299         * tests/test-math.c: New file.
73300
73301         * modules/math: New file.
73302         * modules/mathl (Files): Remove lib/mathl.h.
73303         (Depends-on): Add math.
73304         (Makefile.am): Don't mention mathl.h.
73305         (Include): Use <math.h> instead of mathl.h.
73306         * lib/math_.h: New file.
73307         * lib/mathl.h: Remove file.
73308         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
73309         mathl.h.
73310         * lib/asinl.c: Likewise.
73311         * lib/atanl.c: Likewise.
73312         * lib/ceill.c: Likewise.
73313         * lib/cosl.c: Likewise.
73314         * lib/expl.c: Likewise.
73315         * lib/floorl.c: Likewise.
73316         * lib/frexpl.c: Likewise.
73317         * lib/ldexpl.c: Likewise.
73318         * lib/logl.c: Likewise.
73319         * lib/sincosl.c: Likewise.
73320         * lib/sinl.c: Likewise.
73321         * lib/sqrtl.c: Likewise.
73322         * lib/tanl.c: Likewise.
73323         * lib/trigl.c: Likewise.
73324         * m4/math_h.m4: New file.
73325         * MODULES.html.sh (Mathematics): Add math.
73326
73327 2007-02-17  Bruno Haible  <bruno@clisp.org>
73328
73329         * modules/wctype-tests: New file.
73330         * tests/test-wctype.c: New file.
73331
73332         * modules/wchar-tests: New file.
73333         * tests/test-wchar.c: New file.
73334
73335         * modules/unistd-tests: New file.
73336         * tests/test-unistd.c: New file.
73337
73338         * modules/time-tests: New file.
73339         * tests/test-time.c: New file.
73340
73341         * modules/sysexits-tests: New file.
73342         * tests/test-sysexits.c: New file.
73343
73344         * modules/sys_time-tests: New file.
73345         * tests/test-sys_time.c: New file.
73346
73347         * modules/sys_stat-tests: New file.
73348         * tests/test-sys_stat.c: New file.
73349
73350         * modules/sys_socket-tests: New file.
73351         * tests/test-sys_socket.c: New file.
73352
73353         * modules/sys_select-tests: New file.
73354         * tests/test-sys_select.c: New file.
73355
73356         * modules/string-tests: New file.
73357         * tests/test-string.c: New file.
73358
73359         * modules/stdbool-tests: New file.
73360         * tests/test-stdbool.c: New file.
73361
73362         * modules/netinet_in-tests: New file.
73363         * tests/test-netinet_in.c: New file.
73364
73365         * modules/inttypes-tests: New file.
73366         * tests/test-inttypes.c: New file.
73367
73368         * modules/fcntl-tests: New file.
73369         * tests/test-fcntl.c: New file.
73370
73371         * modules/byteswap-tests: New file.
73372         * tests/test-byteswap.c: New file.
73373
73374         * modules/arpa_inet-tests: New file.
73375         * tests/test-arpa_inet.c: New file.
73376
73377 2007-02-17  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
73380         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
73381         if the corresponding module is not enabled. Emit link warnings if
73382         the function is used nevertheless.
73383         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
73384         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
73385         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
73386         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
73387         * modules/inttypes (Depends-on): Add link-warning.
73388         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73389         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
73390         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
73391         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
73392         * modules/imaxdiv (configure.ac): Likewise.
73393         * modules/strtoimax (configure.ac): Likewise.
73394         * modules/strtoumax (configure.ac): Likewise.
73395
73396 2007-02-17  Bruno Haible  <bruno@clisp.org>
73397
73398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
73399         gl_STRING_MODULE_INDICATOR_DEFAULTS.
73400         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
73401         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
73402
73403 2007-02-17  Bruno Haible  <bruno@clisp.org>
73404
73405         * modules/link-warning: New file.
73406         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
73407         * lib/string_.h (GL_LINK_WARNING): Remove definition.
73408         * modules/string (Depends-on): Add link-warning.
73409         (Makefile.am): Copy the contents of build-aux/link-warning.h into
73410         string.h.
73411         * MODULES.html.sh (Support for building libraries and executables): Add
73412         link-warning.
73413
73414 2007-02-17  Bruno Haible  <bruno@clisp.org>
73415
73416         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
73417         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
73418         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
73419         long lines.
73420
73421 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
73422             Bruno Haible  <bruno@clisp.org>
73423
73424         * modules/tmpfile: New file.
73425         * lib/tmpfile.c: New file.
73426         * m4/tmpfile.m4: New file.
73427         * MODULES.html.sh (func_all_modules): New section "Input/output".
73428
73429 2007-02-15  Bruno Haible  <bruno@clisp.org>
73430
73431         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
73432         (supports_delete_on_close): New function.
73433         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
73434
73435 2007-02-14  Bruno Haible  <bruno@clisp.org>
73436
73437         * modules/mbspcasecmp-tests: New file.
73438         * tests/test-mbspcasecmp.sh: New file.
73439         * tests/test-mbspcasecmp.c: New file.
73440
73441         New module mbspcasecmp.
73442         * modules/mbspcasecmp: New file.
73443         * lib/mbspcasecmp.c: New file.
73444         * lib/string_.h (strncasecmp): Change warning message.
73445         (mbspcasecmp): New declaration.
73446         * m4/mbspcasecmp.m4: New file.
73447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73448         GNULIB_MBSPCASECMP.
73449         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
73450         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
73451
73452 2007-02-14  Bruno Haible  <bruno@clisp.org>
73453
73454         * modules/mbsncasecmp-tests: New file.
73455         * tests/test-mbsncasecmp.sh: New file.
73456         * tests/test-mbsncasecmp.c: New file.
73457
73458         New module mbsncasecmp.
73459         * modules/mbsncasecmp: New file.
73460         * lib/mbsncasecmp.c: New file.
73461         * lib/string_.h (mbsncasecmp): New declaration.
73462         * m4/mbsncasecmp.m4: New file.
73463         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73464         GNULIB_MBSNCASECMP.
73465         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
73466         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
73467
73468 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
73471         Verify that it doesn't overlap with our flags.
73472         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
73473         do not have the desired effect in multibyte locales; instead, use
73474         mbscasecmp.
73475         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
73476         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
73477         we don't require GNU fnmatch ourselves (if our users require it, they
73478         should do so explicitly).
73479
73480         Fix regex code so it doesn't rely on strcasecmp.
73481         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
73482         Otherwise, include gnulib's langinfo.h.
73483         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
73484         undesirable behavior in non-C locales.  Instead, rely on localecharset.
73485         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
73486         * modules/regex (FILES): Remove m4/codeset.m4.
73487         (Depends-on): Add localcharset.  Remove strcase.
73488
73489 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73490
73491         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
73492         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
73493
73494 2007-02-13  Bruno Haible  <bruno@clisp.org>
73495
73496         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
73497         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73498
73499 2007-02-12  Bruno Haible  <bruno@clisp.org>
73500
73501         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73502         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
73503         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
73504         time warning rather than a link error.
73505
73506 2007-02-12  Bruno Haible  <bruno@clisp.org>
73507
73508         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
73509         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
73510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73511
73512 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
73515         args, not 2.
73516
73517 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
73518
73519         New module 'time', so that apps can include <time.h> as per
73520         POSIX and GNU instead of separate include files like time_r.h
73521         and timegm.h.  This implementation tries out a simpler approach
73522         for replacing decls in standard include files (as compared to
73523         the string module), somewhat as an experiment.
73524
73525         * config/srclist.txt: Comment out mktime.c for now.
73526         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
73527         since it doesn't apply any more.  Use generic wording instead.
73528         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
73529         'time'.
73530         * lib/time_.h, m4/time_h.m4, modules/time: New files.
73531         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
73532         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
73533         Don't include <sys/types.h>; no longer needed since we assume C89.
73534         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
73535         * lib/strftime.c: Likewise.
73536         * lib/time_r.c: Likewise.
73537         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
73538         * lib/nanosleep.c: Include <time.h> first, to check interface.
73539         * lib/strptime.c: Likewise.
73540         * lib/time_r.c: Likewise.
73541         * lib/timegm.c: Likewise.
73542         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
73543         needed.
73544         * lib/timegm.c: Don't include timegm.h; no longer needed.
73545         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
73546         time.h now handles any problems in that area.
73547         (struct timespec, nanosleep): Remove; time.h now arranges for these.
73548         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
73549         that time.h defines struct timespec.
73550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
73551         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
73552         handles that.
73553         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
73554         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
73555         needed.  Set REPLACE_LOCALTIME.
73556         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
73557         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
73558         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
73559         nanosleep; time_h.m4 now does that.  Don't require
73560         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
73561         module handles this now.
73562         * modules/getdate (Depends-on): Remove timespec.  Add time.
73563         * modules/nanosleep (Depends-on): Likewise.
73564         * modules/stat-time (Depends-on): Likewise.
73565         * modules/nanosleep (Include): Include time.h, not timespec.h.
73566         * modules/strptime (Files): Remove lib/strptime.h.
73567         (Depends-on): Add extensions, time.
73568         (Include): Include time.h, not strptime.h.
73569         * modules/time_r (Files): Remove lib/time_r.h.
73570         (Depends-on): Add time.
73571         (Include): Include time.h, not time_r.h.
73572         * modules/timegm: Likewise.
73573         * modules/timespec (Description): Now does timespec-related decls
73574         of our own, instead of struct timespec itself.
73575         (Depends-on): Add time; remove extensions.
73576         (Maintainer): Add self.
73577         * modules/utimecmp (Depends-on): Add time; remove timespec.
73578         * modules/utimens (Depends-on): Likewise.
73579         * modules/xnanosleep (Depends-on): Likewise.
73580
73581 2007-02-11  Bruno Haible  <bruno@clisp.org>
73582
73583         * lib/c-strstr.c: Include allocsa.h.
73584         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73585         * lib/c-strcasestr.c: Include allocsa.h.
73586         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73587         * lib/strcasestr.c: Include allocsa.h.
73588         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
73589         * lib/mbsstr.c: Include allocsa.h.
73590         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73591         allocsa/freesa instead of malloc/free.
73592         * lib/mbscasestr.c: Include allocsa.h.
73593         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
73594         allocsa/freesa instead of malloc/free.
73595         * modules/c-strstr (Depends-on): Add allocsa.
73596         * modules/c-strcasestr (Depends-on): Likewise.
73597         * modules/strcasestr (Depends-on): Likewise.
73598         * modules/mbsstr (Depends-on): Likewise.
73599         * modules/mbscasestr (Depends-on): Likewise.
73600
73601 2007-02-11  Bruno Haible  <bruno@clisp.org>
73602
73603         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
73604
73605         * modules/mbsspn-tests: New file.
73606         * tests/test-mbsspn.sh: New file.
73607         * tests/test-mbsspn.c: New file.
73608
73609 2007-02-11  Bruno Haible  <bruno@clisp.org>
73610
73611         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
73612
73613         * modules/mbspbrk-tests: New file.
73614         * tests/test-mbspbrk.sh: New file.
73615         * tests/test-mbspbrk.c: New file.
73616
73617 2007-02-11  Bruno Haible  <bruno@clisp.org>
73618
73619         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
73620         unneeded cast.
73621
73622         * modules/mbscspn-tests: New file.
73623         * tests/test-mbscspn.sh: New file.
73624         * tests/test-mbscspn.c: New file.
73625
73626 2007-02-11  Bruno Haible  <bruno@clisp.org>
73627
73628         * modules/mbscasecmp-tests: New file.
73629         * tests/test-mbscasecmp.sh: New file.
73630         * tests/test-mbscasecmp.c: New file.
73631
73632 2007-02-11  Bruno Haible  <bruno@clisp.org>
73633
73634         Ensure O(n) worst-case complexity of mbscasestr.
73635         * lib/mbscasestr.c: Include stdbool.h.
73636         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73637         functions.
73638         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
73639         the bookkeeping indicates that it's worth it.
73640         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
73641
73642         * modules/mbscasestr-tests: New file.
73643         * tests/test-mbscasestr1.c: New file.
73644         * tests/test-mbscasestr2.sh: New file.
73645         * tests/test-mbscasestr2.c: New file.
73646         * tests/test-mbscasestr3.sh: New file.
73647         * tests/test-mbscasestr3.c: New file.
73648         * tests/test-mbscasestr4.sh: New file.
73649         * tests/test-mbscasestr4.c: New file.
73650         * m4/locale-tr.m4: New file.
73651
73652 2007-02-11  Bruno Haible  <bruno@clisp.org>
73653
73654         Ensure O(n) worst-case complexity of mbsstr.
73655         * lib/mbsstr.c: Include stdbool.h.
73656         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
73657         functions.
73658         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
73659         bookkeeping indicates that it's worth it.
73660         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
73661
73662         * modules/mbsstr-tests: New file.
73663         * tests/test-mbsstr1.c: New file.
73664         * tests/test-mbsstr2.sh: New file.
73665         * tests/test-mbsstr2.c: New file.
73666         * tests/test-mbsstr3.sh: New file.
73667         * tests/test-mbsstr3.c: New file.
73668         * m4/locale-fr.m4: New file.
73669
73670 2007-02-11  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/mbsrchr.c (mbsrchr): Fix bug.
73673
73674         * modules/mbsrchr-tests: New file.
73675         * tests/test-mbsrchr.sh: New file.
73676         * tests/test-mbsrchr.c: New file.
73677
73678 2007-02-11  Bruno Haible  <bruno@clisp.org>
73679
73680         * lib/mbschr.c (mbschr): Fix bug.
73681
73682         * modules/mbschr-tests: New file.
73683         * tests/test-mbschr.sh: New file.
73684         * tests/test-mbschr.c: New file.
73685         * m4/locale-zh.m4: New file.
73686
73687 2007-02-11  Bruno Haible  <bruno@clisp.org>
73688
73689         Support for copying multibyte string iterators.
73690         * lib/mbiter.h: Include <string.h>.
73691         (mbiter_multi_copy): New function.
73692         (mbi_copy): New macro.
73693         * lib/mbuiter.h: Include <string.h>.
73694         (mbuiter_multi_copy): New function.
73695         (mbui_copy): New macro.
73696
73697 2007-02-11  Bruno Haible  <bruno@clisp.org>
73698
73699         New module mbslen.
73700         * modules/mbslen: New file.
73701         * lib/mbslen.c: New file.
73702         * lib/string_.h (mbslen): New declaration.
73703         * m4/mbslen.m4: New file.
73704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73705         GNULIB_MBSLEN.
73706         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
73707         * MODULES.html.sh (Internationalization functions): Add mbslen.
73708
73709 2007-02-11  Bruno Haible  <bruno@clisp.org>
73710
73711         Ensure O(n) worst-case complexity of strcasestr substitute.
73712         * lib/strcasestr.c: Include stdbool.h.
73713         (knuth_morris_pratt): New function.
73714         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73715         bookkeeping indicates that it's worth it.
73716         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
73717
73718         * modules/strcasestr-tests: New file.
73719         * tests/test-strcasestr.c: New file.
73720
73721 2007-02-11  Bruno Haible  <bruno@clisp.org>
73722
73723         Ensure O(n) worst-case complexity of c_strcasestr.
73724         * lib/c-strcasestr.c: Include stdbool.h, string.h.
73725         (knuth_morris_pratt): New function.
73726         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
73727         the bookkeeping indicates that it's worth it.
73728         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
73729
73730         * modules/c-strcasestr-tests: New file.
73731         * tests/test-c-strcasestr.c: New file.
73732
73733 2007-02-11  Bruno Haible  <bruno@clisp.org>
73734
73735         Ensure O(n) worst-case complexity of c_strstr.
73736         * lib/c-strstr.c: Include stdbool.h, string.h.
73737         (knuth_morris_pratt): New function.
73738         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
73739         bookkeeping indicates that it's worth it.
73740         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
73741
73742         * lib/c-strstr.c: Complete rewrite for maintainability.
73743
73744         * modules/c-strstr-tests: New file.
73745         * tests/test-c-strstr.c: New file.
73746
73747 2007-02-11  Bruno Haible  <bruno@clisp.org>
73748
73749         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73750         5.2.1 and earlier, whereby \055 was treated just like the range
73751         delimiter '-'.
73752         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
73753
73754 2007-02-08  Bruno Haible  <bruno@clisp.org>
73755
73756         * modules/regex (Depends-on): Add stdbool.
73757         Reported by Dalibor Topic <robilad@kaffe.org>.
73758
73759 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73760
73761         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
73762         Prefer returning from main to exiting from it.
73763         Remove unnecessary parens after sizeof.
73764
73765 2007-02-05  Bruno Haible  <bruno@clisp.org>
73766
73767         New module mbssep.
73768         * modules/mbssep: New file.
73769         * lib/mbssep.c: New file.
73770         * lib/string_.h (strsep): Add a conditional link warning.
73771         (mbssep): New declaration.
73772         * m4/mbssep.m4: New file.
73773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73774         GNULIB_MBSSEP.
73775         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
73776         * MODULES.html.sh (Internationalization functions): Add mbssep.
73777
73778 2007-02-05  Bruno Haible  <bruno@clisp.org>
73779
73780         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
73781         Optimize search in case of 1 delimiter.
73782
73783 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73784
73785         * lib/acl.h: Include sys/types.h before sys/acl.h.
73786
73787 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
73788
73789         Merge upstream fix for glibc bugzilla #3957:
73790
73791         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
73792
73793         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
73794         bit for RE_HAT_LISTS_NOT_NEWLINE.
73795         (build_charclass_op): Remove bogus comment.
73796
73797 2007-02-05  Simon Josefsson  <simon@josefsson.org>
73798
73799         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
73800
73801 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73802
73803         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
73804         * lib/memmem.c [!defined _LIBC]: Include config.h.
73805
73806 2007-02-04  Bruno Haible  <bruno@clisp.org>
73807
73808         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
73809         warning message.
73810
73811 2007-02-04  Bruno Haible  <bruno@clisp.org>
73812
73813         New module mbstok_r.
73814         * modules/mbstok_r: New file.
73815         * lib/mbstok_r.c: New file.
73816         * lib/string_.h (strtok_r): Change argument names to match the
73817         comments. Add a conditional link warning.
73818         (mbstok_r): New declaration.
73819         * m4/mbstok_r.m4: New file.
73820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73821         GNULIB_MBSTOK_R.
73822         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
73823         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
73824
73825 2007-02-04  Bruno Haible  <bruno@clisp.org>
73826
73827         New module mbsspn.
73828         * modules/mbsspn: New file.
73829         * lib/mbsspn.c: New file.
73830         * lib/string_.h (strspn): Add a conditional link warning.
73831         (mbsspn): New declaration.
73832         * m4/mbsspn.m4: New file.
73833         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73834         GNULIB_MBSSPN.
73835         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73836         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73837
73838 2007-02-04  Bruno Haible  <bruno@clisp.org>
73839
73840         New module mbspbrk.
73841         * modules/mbspbrk: New file.
73842         * lib/mbspbrk.c: New file.
73843         * lib/string_.h (strpbrk): Add a conditional link warning.
73844         (mbspbrk): New declaration.
73845         * m4/mbspbrk.m4: New file.
73846         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73847         GNULIB_MBSPBRK.
73848         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73849         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73850
73851 2007-02-04  Bruno Haible  <bruno@clisp.org>
73852
73853         New module mbscspn.
73854         * modules/mbscspn: New file.
73855         * lib/mbscspn.c: New file.
73856         * lib/string_.h (strcspn): Add a conditional link warning.
73857         (mbscspn): New declaration.
73858         * m4/mbscspn.m4: New file.
73859         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73860         GNULIB_MBSCSPN.
73861         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73862         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73863
73864 2007-02-04  Bruno Haible  <bruno@clisp.org>
73865
73866         New module mbscasestr, reduced goal of strcasestr.
73867         * modules/mbscasestr: New file.
73868         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73869         (mbscasestr): Renamed from strcasestr.
73870         * lib/strcasestr.c: Don't include mbuiter.h.
73871         (strcasestr): Remove support for multibyte locales.
73872         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73873         Change the conditional link warning.
73874         (mbscasestr): New declaration.
73875         * m4/mbscasestr.m4: New file.
73876         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73877         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73878         REPLACE_STRCASESTR.
73879         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73880         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73881         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73882         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73883         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73884         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73885         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73886         (Depends-on): Remove mbuiter.
73887         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73888
73889 2007-02-04  Bruno Haible  <bruno@clisp.org>
73890
73891         Simplify handling of strncasecmp.
73892         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73893         the conditional link warning.
73894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73895         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73896         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73897         * modules/strcase (configure.ac): Don't invoke
73898         gl_STRING_MODULE_INDICATOR.
73899         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73900
73901 2007-02-04  Bruno Haible  <bruno@clisp.org>
73902
73903         New module mbscasecmp, reduced goal of strcasecmp.
73904         * modules/mbscasecmp: New file.
73905         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73906         (mbscasecmp): Renamed from strcasecmp.
73907         * lib/strcasecmp.c: Don't include mbuiter.h.
73908         (strcasecmp): Remove support for multibyte locales.
73909         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73910         Change the conditional link warning.
73911         (mbscasecmp): New declaration.
73912         * m4/mbscasecmp.m4: New file.
73913         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73914         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73915         REPLACE_STRCASECMP.
73916         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73918         GNULIB_MBSCASECMP.
73919         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73920         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73921         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73922         (Depends-on): Remove mbuiter.
73923         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73924
73925 2007-02-04  Bruno Haible  <bruno@clisp.org>
73926
73927         New module mbsstr. Remove module strstr.
73928         * modules/mbsstr: New file.
73929         * modules/strstr: Remove file.
73930         * lib/mbsstr.c: Renamed from lib/strstr.c.
73931         (mbsstr): Renamed from strstr.
73932         * lib/string_.h (strstr): Remove declaration. Change the conditional
73933         link warning.
73934         (mbsstr): New declaration.
73935         * m4/mbsstr.m4: New file.
73936         * m4/strstr.m4: Remove file.
73937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73938         REPLACE_STRSTR.
73939         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73940         Don't initialize GNULIB_STRSTR.
73941         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73942         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73943         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73944         (Support for systems lacking ANSI C 89): Remove strstr.
73945
73946 2007-02-04  Bruno Haible  <bruno@clisp.org>
73947
73948         New module mbsrchr.
73949         * modules/mbsrchr: New file.
73950         * lib/mbsrchr.c: New file.
73951         * lib/string_.h (strrchr): Add a conditional link warning.
73952         (mbsrchr): New declaration.
73953         * m4/mbsrchr.m4: New file.
73954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73955         GNULIB_MBSRCHR.
73956         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73957         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73958
73959 2007-02-04  Bruno Haible  <bruno@clisp.org>
73960
73961         New module mbschr.
73962         * modules/mbschr: New file.
73963         * lib/mbschr.c: New file.
73964         * lib/string_.h (strchr): Add a conditional link warning.
73965         (mbschr): New declaration.
73966         * m4/mbschr.m4: New file.
73967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73968         GNULIB_MBSCHR.
73969         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73970         * MODULES.html.sh (Internationalization functions): Add mbschr.
73971
73972 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73975
73976         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73977
73978 2007-02-04  Bruno Haible  <bruno@clisp.org>
73979
73980         New module description section 'configure.ac-early'.
73981         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73982         (func_get_autoconf_early_snippet): New function.
73983         (func_import, func_create_testdir): Use it. Remove special cases for
73984         modules 'extensions' and 'lock'.
73985         * modules/extensions (configure.ac-early): Require
73986         gl_USE_SYSTEM_EXTENSIONS.
73987         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73988
73989 2007-02-04  Bruno Haible  <bruno@clisp.org>
73990
73991         Make use of gcj-4.3's -fsource and -ftarget option.
73992         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73993         and if so try the options -fsource and -ftarget.
73994         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73995         source_version, ftarget_option, target_version arguments.
73996         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73997         (is_envjavac_oldgcj_14_14_usable): Renamed from
73998         is_envjavac_gcj_14_14_usable.
73999         (is_envjavac_oldgcj_14_13_usable): Renamed from
74000         is_envjavac_gcj_14_13_usable.
74001         (is_gcj_present): Update.
74002         (is_gcj_43, is_gcj43_usable): New functions.
74003         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74004         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74005         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74006         try the options -fsource and -ftarget.
74007
74008 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74009
74010         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74011         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74012         larger value.
74013
74014 2007-02-03  Jim Meyering  <jim@meyering.net>
74015
74016         Give tools a better chance to allocate space for very large buffers.
74017         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74018
74019         Make pwd and readlink work also when run with an unreadable parent dir
74020         on systems with openat support.
74021         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74022         provided getcwd function, even when we have openat support.
74023         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74024
74025 2007-02-02  Bruno Haible  <bruno@clisp.org>
74026
74027         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74028         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74029         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74030         portability problems if one of these functions is only used on specific
74031         platforms.
74032         Reported by Paul Eggert.
74033
74034 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74035
74036         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74037         is causing more trouble than it's curing.
74038         * lib/regex_internal.h (__mempcpy): Remove.
74039         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74040         (and make the code a tad smaller to boot).
74041         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74042
74043 2007-02-02  Jim Meyering  <jim@meyering.net>
74044
74045         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74046         section, not in the Makefile.am: one.
74047
74048 2007-02-02  Eric Blake  <ebb9@byu.net>
74049
74050         * lib/strchrnul.c: Always include config.h first.
74051
74052         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74053         gnulib strstr is not necessary here.
74054
74055 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74056
74057         * m4/socklen.m4: Fix typo.
74058
74059 2007-02-02  Eric Blake  <ebb9@byu.net>
74060
74061         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74062         * modules/netinet_in (Makefile.am): Likewise.
74063
74064 2007-02-01  Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/string_.h (GL_LINK_WARNING): New macro.
74067         (strcasecmp, strstr, strcasestr): If provided by the system,
74068         conditionally define as a macro that leads to a warning instead of to
74069         an error.
74070         (strncasecmp): Conditionally define as a macro that leads to a warning.
74071
74072 2007-02-01  Karl Berry  <karl@gnu.org>
74073
74074         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
74075
74076 2007-02-01  Bruno Haible  <bruno@clisp.org>
74077
74078         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
74079         renamings.
74080
74081 2007-02-01  Eric Blake  <ebb9@byu.net>
74082
74083         * modules/regex (Depends-on): Revert dependence on mempcpy.
74084         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
74085         module's definition of mempcpy.
74086         Reported by Paul Eggert.
74087
74088 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74089
74090         * lib/string_.h: If the gnulib module XYZ is not present, undefine
74091         the symbol XYZ before redefining it.  This fixes a problem with
74092         programs that don't use XYZ, when compiled on systems that define
74093         XYZ to something else.
74094
74095 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
74098         occurs when "mkdir -m foo" creates a setgid directory that is (1)
74099         writeable to group or other and (2) is intended to have a special
74100         mode bit that is set or cleared.  In such a case, the directory
74101         should be neither group- nor other-writeable until the special
74102         mode bits are right.
74103
74104 2007-01-31  Eric Blake  <ebb9@byu.net>
74105
74106         * modules/mountlist (Depends-on): Add strstr.
74107
74108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
74109         bug.
74110         * modules/string (Makefile.am): Remove redundant replacement.
74111         * modules/regex (Depends-on): Add mempcpy.
74112
74113 2007-01-31  Bruno Haible  <bruno@clisp.org>
74114
74115         New module description field 'Link'.
74116         * gnulib-tool (func_usage): Document --extract-link-directive.
74117         (sed_extract_prog): Recognize 'Link' directive.
74118         (func_get_link_directive): New function.
74119         (func_import): Show summary of link directives.
74120         Handle --extract-link-directive option.
74121         * modules/acl (Link): New section.
74122         * modules/clock-time (Link): New section.
74123         * modules/euidaccess (Link): New section.
74124         * modules/gettext (Link): New section.
74125         * modules/iconv (Link): New section.
74126         * modules/lock (Link): New section.
74127         * modules/nanosleep (Link): New section.
74128         * modules/readline (Link): New section.
74129
74130 2007-01-27  Bruno Haible  <bruno@clisp.org>
74131
74132         Enforce the use of gnulib modules for unportable <string.h> functions.
74133         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
74134         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
74135         (gl_HEADER_STRING_H_BODY): Require it.
74136         * lib/string_.h: If the gnulib module XYZ is not present, redefine
74137         the symbol XYZ to one that gives a link error.
74138         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
74139         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
74140         * modules/mempcpy (configure.ac): Likewise.
74141         * modules/memrchr (configure.ac): Likewise.
74142         * modules/stpcpy (configure.ac): Likewise.
74143         * modules/stpncpy (configure.ac): Likewise.
74144         * modules/strcase (configure.ac): Likewise.
74145         * modules/strcasestr (configure.ac): Likewise.
74146         * modules/strchrnul (configure.ac): Likewise.
74147         * modules/strdup (configure.ac): Likewise.
74148         * modules/strndup (configure.ac): Likewise.
74149         * modules/strnlen (configure.ac): Likewise.
74150         * modules/strpbrk (configure.ac): Likewise.
74151         * modules/strsep (configure.ac): Likewise.
74152         * modules/strstr (configure.ac): Likewise.
74153         * modules/strtok_r (configure.ac): Likewise.
74154
74155 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
74156
74157         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
74158
74159 2007-01-30  Jim Meyering  <jim@meyering.net>
74160
74161         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
74162
74163 2007-01-29  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
74166         * lib/execute.c: Likewise.
74167         * lib/pipe.c: Likewise.
74168         * lib/printf-args.h: Likewise.
74169         * lib/printf-args.c: Likewise.
74170         * lib/printf-parse.c: Likewise.
74171         * lib/vasnprintf.c: Likewise.
74172
74173 2007-01-29  Eric Blake  <ebb9@byu.net>
74174
74175         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
74176         declaration.
74177
74178 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
74179
74180         * lib/strptime.h (strptime): Use 'restrict' for args where
74181         POSIX requires this.
74182         * lib/strptime.c (strptime): Likewise.
74183         Change license notice from LGPL to GPL, since gnulib-tool will
74184         change this as needed.
74185         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
74186         defined.
74187         Include "strptime.h" first, to check interface.
74188         Do not #undef _LIBC and _NL_CURRENT.
74189         Do not include <stdlib.h>; no longer needed.
74190         Include "time_r.h" and declare ptime_locale_status
74191         only if _LIBC is not defined.
74192         (__P): Remove unused macro.
74193         (match_string): Bring back glibc version, but use it only if _LIBC
74194         is defined.
74195         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
74196         Remove unnecessary assertion and abort() call.
74197         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
74198         * m4/strptime.m4: Fix serial number comment.
74199         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
74200         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
74201         (Depends-on): Add time_r.
74202
74203 2007-01-29  Bruno Haible  <bruno@clisp.org>
74204
74205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74206         strptime.
74207         * modules/strptime (Depends-on): Add stdbool.
74208         * lib/strptime.h: Include <time.h> always. Add comments.
74209
74210 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74211
74212         * modules/strptime: New file.
74213         * lib/strptime.h: New file.
74214         * lib/strptime.c: New file.
74215         * m4/strptime.m4: New file.
74216
74217 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         * MODULES.html.sh: New module mpsort.
74220         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
74221
74222         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
74223         a circularity problem with HP-UX ia64 reported by Bob Proulx in
74224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
74225         All uses changed.
74226         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
74227         All uses changed.
74228         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
74229         to _Restrict_.
74230         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
74231         the parameter matches the prototype.
74232
74233 2007-01-28  Jim Meyering  <jim@meyering.net>
74234
74235         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
74236         sys/time.h here, reverting that part of the previous patch:
74237         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
74238
74239 2007-01-28  Bruno Haible  <bruno@clisp.org>
74240
74241         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
74242         value of $(SYS_TIME_H).
74243         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
74244         remove it conditionally, too. [added by Jim Meyering]
74245         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
74246         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74247         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
74248         GETTIMEOFDAY_REPLACEMENT to 1.
74249
74250 2007-01-28  Bruno Haible  <bruno@clisp.org>
74251
74252         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
74253         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
74254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
74255         Set UNISTD_H instead of UNISTD_H2.
74256         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
74257
74258 2007-01-28  Bruno Haible  <bruno@clisp.org>
74259
74260         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
74261         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
74262
74263 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74264
74265         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
74266         (func_create_testdir): Ensure C locale for `grep' and `tr'
74267         character ranges.
74268         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
74269         ACLOCAL_AMFLAGS parsing state machine.
74270
74271 2007-01-27  Bruno Haible  <bruno@clisp.org>
74272
74273         * modules/unistr/base: Update.
74274
74275 2007-01-27  Bruno Haible  <bruno@clisp.org>
74276
74277         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
74278         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
74279         * modules/unistr/u32-mbtouc-unsafe: Renamed from
74280         modules/unistr/u32-mbtouc.
74281         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
74282         * lib/unistr.h: Update.
74283         * lib/linebreak.c: Update.
74284         * modules/unistr/u32-mbtouc: Renamed from
74285         modules/unistr/u32-mbtouc-safe.
74286         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
74287         * lib/unistr.h: Update.
74288         * lib/unistr/u32-to-u8.c: Update.
74289         * lib/unistr/u32-to-u16.c: Update.
74290
74291 2007-01-27  Bruno Haible  <bruno@clisp.org>
74292
74293         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
74294         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
74295         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
74296         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
74297         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
74298         * modules/unistr/u16-mbtouc-unsafe: Renamed from
74299         modules/unistr/u16-mbtouc.
74300         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
74301         * lib/unistr.h: Update.
74302         * lib/linebreak.c: Update.
74303         * modules/linebreak: Update.
74304         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
74305         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
74306         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
74307         * modules/unistr/u16-mbtouc: Renamed from
74308         modules/unistr/u16-mbtouc-safe.
74309         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
74310         * lib/unistr.h: Update.
74311         * lib/unistr/u16-to-u8.c: Update.
74312         * modules/unistr/u16-to-u8: Update.
74313         * lib/unistr/u16-to-u32.c: Update.
74314         * modules/unistr/u16-to-u32: Update.
74315
74316 2007-01-27  Bruno Haible  <bruno@clisp.org>
74317
74318         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
74319         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
74320         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
74321         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
74322         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
74323         * modules/unistr/u8-mbtouc-unsafe: Renamed from
74324         modules/unistr/u8-mbtouc.
74325         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
74326         * lib/unistr.h: Update.
74327         * lib/striconveh.c: Update.
74328         * modules/striconveh: Update.
74329         * lib/linebreak.c: Update.
74330         * modules/linebreak: Update.
74331         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
74332         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
74333         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
74334         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
74335         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
74336         * lib/unistr.h: Update.
74337         * lib/striconveh.c: Update.
74338         * modules/striconveh: Update.
74339         * lib/unistr/u8-to-u16.c: Update.
74340         * modules/unistr/u8-to-u16: Update.
74341         * lib/unistr/u8-to-u32.c: Update.
74342         * modules/unistr/u8-to-u32: Update.
74343
74344 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74345
74346         Sync from Libtool.
74347         * lib/argz.c: Do not include strings.h nor memory.h, include
74348         string.h unconditionally.  Patch by Simon Josefsson.
74349
74350 2007-01-27  Bruno Haible  <bruno@clisp.org>
74351
74352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
74353         from gl_HEADER_STRING_H_BODY.
74354         (gl_HEADER_STRING_H_BODY): Require it.
74355         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
74356         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
74357         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
74358         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
74359         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
74360         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
74361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74362         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
74363         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
74364         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
74366         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
74367         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
74368         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74369         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74370
74371 2007-01-27  Bruno Haible  <bruno@clisp.org>
74372
74373         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
74374         check_PROGRAMS into noinst_PROGRAMS.
74375         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
74376         check_PROGRAMS in this case.
74377         (func_import): Set for_test to false.
74378         (func_create_testdir): Set for_test to true.
74379
74380 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74381             Bruno Haible  <bruno@clisp.org>
74382
74383         * modules/strcasestr (Files): Remove lib/strcasestr.h.
74384         (Depends-on): Add string.
74385         (Includes): Use <string.h> instead of strcasestr.h.
74386         * modules/string (Makefile.am): Also substitute the value of
74387         REPLACE_STRCASESTR.
74388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
74389         assume strcasestr is declared in <string.h> not <strings.h>. Also
74390         set REPLACE_STRCASESTR.
74391         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
74392         REPLACE_STRCASESTR.
74393         * lib/strcasestr.h: Remove file.
74394         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
74395         * lib/string_.h (strcasestr): New declaration.
74396
74397 2007-01-27  Bruno Haible  <bruno@clisp.org>
74398
74399         * lib/string_.h: Use 'extern'.
74400
74401 2007-01-27  Jim Meyering  <jim@meyering.net>
74402
74403         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
74404         of set-but-not-used local, "q".
74405
74406         * lib/mempcpy.c: Include <config.h> before <string.h>.
74407         This fixes a compilation error on HP-UX, due to the system's
74408         "restrict"-using mempcpy prototype.
74409
74410 2007-01-26  Bruno Haible  <bruno@clisp.org>
74411
74412         Small optimization.
74413         * lib/javacomp.c: Include c-strstr.h.
74414          (is_envjavac_gcj): Use c_strstr instead of strstr.
74415         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
74416
74417 2007-01-26  Bruno Haible  <bruno@clisp.org>
74418
74419         * MODULES.html.sh (Unicode string functions): Add the new modules.
74420
74421         * modules/uniconv/u32-strconv-to-locale: New file.
74422         * lib/uniconv/u32-strconv-to-locale.c: New file.
74423
74424         * modules/uniconv/u16-strconv-to-locale: New file.
74425         * lib/uniconv/u16-strconv-to-locale.c: New file.
74426
74427         * modules/uniconv/u8-strconv-to-locale: New file.
74428         * lib/uniconv/u8-strconv-to-locale.c: New file.
74429
74430         * modules/uniconv/u32-strconv-from-locale: New file.
74431         * lib/uniconv/u32-strconv-from-locale.c: New file.
74432
74433         * modules/uniconv/u16-strconv-from-locale: New file.
74434         * lib/uniconv/u16-strconv-from-locale.c: New file.
74435
74436         * modules/uniconv/u8-strconv-from-locale: New file.
74437         * lib/uniconv/u8-strconv-from-locale.c: New file.
74438
74439         * modules/uniconv/u32-strconv-to-enc: New file.
74440         * lib/uniconv/u32-strconv-to-enc.c: New file.
74441         * modules/uniconv/u32-strconv-to-enc-tests: New file.
74442         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
74443
74444         * modules/uniconv/u16-strconv-to-enc: New file.
74445         * lib/uniconv/u16-strconv-to-enc.c: New file.
74446         * lib/uniconv/u-strconv-to-enc.h: New file.
74447         * modules/uniconv/u16-strconv-to-enc-tests: New file.
74448         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
74449
74450         * modules/uniconv/u8-strconv-to-enc: New file.
74451         * lib/uniconv/u8-strconv-to-enc.c: New file.
74452         * modules/uniconv/u8-strconv-to-enc-tests: New file.
74453         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
74454
74455         * modules/uniconv/u32-strconv-from-enc: New file.
74456         * lib/uniconv/u32-strconv-from-enc.c: New file.
74457         * modules/uniconv/u32-strconv-from-enc-tests: New file.
74458         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
74459
74460         * modules/uniconv/u16-strconv-from-enc: New file.
74461         * lib/uniconv/u16-strconv-from-enc.c: New file.
74462         * modules/uniconv/u16-strconv-from-enc-tests: New file.
74463         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
74464
74465         * modules/uniconv/u8-strconv-from-enc: New file.
74466         * lib/uniconv/u8-strconv-from-enc.c: New file.
74467         * lib/uniconv/u-strconv-from-enc.h: New file.
74468         * modules/uniconv/u8-strconv-from-enc-tests: New file.
74469         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
74470
74471         * modules/uniconv/u32-conv-from-enc: New file.
74472         * lib/uniconv/u32-conv-from-enc.c: New file.
74473         * modules/uniconv/u32-conv-from-enc-tests: New file.
74474         * tests/uniconv/test-u32-conv-from-enc.c: New file.
74475
74476         * modules/uniconv/u16-conv-from-enc: New file.
74477         * lib/uniconv/u16-conv-from-enc.c: New file.
74478         * lib/uniconv/u-conv-from-enc.h: New file.
74479         * modules/uniconv/u16-conv-from-enc-tests: New file.
74480         * tests/uniconv/test-u16-conv-from-enc.c: New file.
74481
74482         * modules/uniconv/u8-conv-from-enc: New file.
74483         * lib/uniconv/u8-conv-from-enc.c: New file.
74484         * modules/uniconv/u8-conv-from-enc-tests: New file.
74485         * tests/uniconv/test-u8-conv-from-enc.c: New file.
74486
74487         * modules/uniconv/base: New file.
74488         * lib/uniconv.h: New file.
74489
74490 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * doc/gnulib-tool.texi (Initial import): Update to match current
74493         behavior with strdup module.
74494         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
74495         * lib/memmem.h: Remove; all uses removed.  This is now done
74496         by <string.h>.
74497         * lib/mempcpy.h: Likewise.
74498         * lib/memrchr.h: Likewise.
74499         * lib/stpcpy.h: Likewise.
74500         * lib/stpncpy.h: Likewise.
74501         * lib/strcase.h: Likewise.
74502         * lib/strchrnul.h: Likewise.
74503         * lib/strdup.h: Likewise.
74504         * lib/strndup.h: Likewise.
74505         * lib/strnlen.h: Likewise.
74506         * lib/strpbrk.h: Likewise.
74507         * lib/strsep.h: Likewise.
74508         * lib/strstr.h: Likewise.
74509         * lib/strtok_r.h: Likewise.
74510         * lib/string_.h: New file.
74511         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
74512         Rely on <string.h> instead.
74513         * lib/canon-host.c: Likewise.
74514         * lib/chdir-long.c: Likewise.
74515         * lib/concatpath.c: Likewise.
74516         * lib/exclude.c: Likewise.
74517         * lib/fchdir.c: Likewise.
74518         * lib/getaddrinfo.c: Likewise.
74519         * lib/getcwd.c: Likewise.
74520         * lib/getsubopt.c: Likewise.
74521         * lib/glob.c: Likewise.
74522         * lib/hard-locale.c: Likewise.
74523         * lib/iconvme.c: Likewise.
74524         * lib/javacomp.c: Likewise.
74525         * lib/mempcpy.c: Likewise.
74526         * lib/memrchr.c: Likewise.
74527         * lib/regex_internal.h: Likewise.
74528         * lib/stpncpy.c: Likewise.
74529         * lib/strcasecmp.c: Likewise.
74530         * lib/strchrnul.c: Likewise.
74531         * lib/strdup.c: Likewise.
74532         * lib/striconv.c: Likewise.
74533         * lib/striconveh.c: Likewise.
74534         * lib/striconveha.c: Likewise.
74535         * lib/strncasecmp.c: Likewise.
74536         * lib/strndup.c: Likewise.
74537         * lib/strnlen.c: Likewise.
74538         * lib/strsep.c: Likewise.
74539         * lib/strstr.c: Likewise.
74540         * lib/strtok_r.c: Likewise.
74541         * lib/userspec.c: Likewise.
74542         * lib/w32spawn.h: Likewise.
74543         * lib/xstrndup.c: Likewise.
74544         * lib/mountlist.c (strstr): Remove decl.
74545         * m4/string_h.m4: New file.
74546         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
74547         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
74548         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
74549         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
74550         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
74551         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
74552         Set REPLACE_STRCASECMP if necessary.
74553         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
74554         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
74555         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
74556         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
74557         HAVE_DECL_STRDUP if necessary.
74558         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
74559         since gl_FUNC_STRNDUP does that now.
74560         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
74561         Check for decl here...
74562         (gl_PREREQ_STRNLEN): ... not here.
74563         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
74564         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
74565         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
74566         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
74567         necessary.
74568         * modules/string: New file.
74569         * modules/memmem (Files): Remove special-purpose include file.
74570         (Depends-on): Add string.
74571         (Include): Include <string.h>, not the removed file.
74572         * modules/mempcpy: Likewise.
74573         * modules/memrchr: Likewise.
74574         * modules/stpcpy: Likewise.
74575         * modules/stpncpy: Likewise.
74576         * modules/strcase: Likewise.
74577         * modules/strchrnul: Likewise.
74578         * modules/strdup: Likewise.
74579         * modules/strndup: Likewise.
74580         * modules/strnlen: Likewise.
74581         * modules/strpbrk: Likewise.
74582         * modules/strsep: Likewise.
74583         * modules/strstr: Likewise.
74584         * modules/strtok_r: Likewise.
74585         * tests/test-dirname.c: Don't include "strdup.h", since
74586         <string.h> now suffices.
74587         * tests/test-memmem.c: Don't include "memmem.h", since
74588         <string.h> now suffices.
74589
74590 2007-01-25  Bruno Haible  <bruno@clisp.org>
74591
74592         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
74593         *resultp is 0.
74594
74595         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
74596         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
74597         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
74598         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
74599
74600         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
74601         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
74602         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
74603         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
74604         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
74605         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
74606
74607 2007-01-24  Bruno Haible  <bruno@clisp.org>
74608
74609         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
74610         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
74611         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
74612         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
74613         gl_FUNC_FTS_CORE.
74614         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
74615         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
74616         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74617         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
74618         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
74619         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
74620         gl_FUNC_FCHOWNAT.
74621         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
74622         gl_FUNC_STRFTIME.
74623         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
74624         Reported by Ralf Wildenhues.
74625
74626 2007-01-24  Bruno Haible  <bruno@clisp.org>
74627
74628         Drop AC_REQUIRE calls that are redundant with the module dependencies.
74629         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
74630         gl_GETADDRINFO.
74631         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
74632         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
74633         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
74634
74635 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
74636
74637         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
74638         Don't use 'exit'; just return from 'main'.
74639         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
74640
74641         * lib/fnmatch_.h: Readjust white space and comments to match
74642         glibc, to avoid spurious diffs.
74643
74644 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
74647         2004-12-01 change by Jakub Jelinek, since this code won't compile
74648         if !LIBC.  Problem reported by Bob Proulx.
74649
74650 2007-01-23  Bruno Haible  <bruno@clisp.org>
74651
74652         * lib/striconveh.c: Include c-strcaseeq.h.
74653         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
74654         * modules/striconveh (Depends-on): Add c-strcaseeq.
74655
74656 2007-01-23  Bruno Haible  <bruno@clisp.org>
74657
74658         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
74659
74660         * modules/c-strcaseeq: New file.
74661         * lib/c-strcaseeq.h: New file.
74662
74663         * modules/streq: New file.
74664         * lib/streq.h: New file.
74665
74666 2007-01-23  Bruno Haible  <bruno@clisp.org>
74667
74668         * modules/striconveha-tests: New file.
74669         * tests/test-striconveha.c: New file.
74670
74671         * lib/striconveha.h: Include <stdbool.h>.
74672         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
74673         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
74674         (mem_iconveha_notranslit): Renamed from mem_iconveha.
74675         (mem_iconveha): New function.
74676         (str_iconveha_notranslit): Renamed from str_iconveha.
74677         (str_iconveha): New function.
74678         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
74679         c-strcase.
74680
74681 2007-01-23  Bruno Haible  <bruno@clisp.org>
74682
74683         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
74684         encodings without forgiving before trying any encoding with handler.
74685         (str_iconveha): Try all encodings without forgiving before trying any
74686         encoding with handler.
74687
74688 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         Import the following changes from libc.
74691
74692         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74693
74694         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
74695
74696         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74697
74698         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
74699         normal_bracket label.
74700
74701         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
74702
74703         [BZ #361]
74704         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
74705         to normal_bracket after fetching the next character.
74706
74707 2007-01-22  Bruno Haible  <bruno@clisp.org>
74708
74709         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
74710         argument.
74711         * lib/striconveh.c (iconv_carefully_1): New function.
74712         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
74713         argument.
74714         (str_cd_iconveh): Update.
74715         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
74716         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
74717         * tests/test-striconveh.c (MAGIC): New macro.
74718         (new_offsets): New function.
74719         (main): Test call with and without offsets.
74720
74721 2007-01-22  Bruno Haible  <bruno@clisp.org>
74722
74723         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
74724         * modules/sys_select (Makefile.am): Likewise.
74725         * modules/sys_socket (Makefile.am): Likewise.
74726         * modules/sys_time (Makefile.am): Likewise.
74727
74728 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74729
74730         * modules/gettimeofday (License): Change from GPL to LGPL, since
74731         gettimeofday is a library function.
74732
74733 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74734
74735         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
74736
74737 2007-01-21  Bruno Haible  <bruno@clisp.org>
74738
74739         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
74740
74741 2007-01-21  Bruno Haible  <bruno@clisp.org>
74742
74743         * modules/striconveha: New file.
74744         * lib/striconveha.h: New file.
74745         * lib/striconveha.c: New file.
74746         * MODULES.html.sh (Internationalization functions): Add striconveha.
74747         * lib/striconv.c (str_iconv): Optimize the case of an empty input
74748         string.
74749         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
74750
74751 2007-01-21  Bruno Haible  <bruno@clisp.org>
74752
74753         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
74754         * lib/striconveh.c (str_iconveh): Likewise.
74755
74756 2007-01-21  Bruno Haible  <bruno@clisp.org>
74757
74758         * lib/striconveh.h (mem_iconveh): New declaration.
74759         * lib/striconveh.c (mem_iconveh): New function.
74760         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
74761
74762 2007-01-21  Bruno Haible  <bruno@clisp.org>
74763
74764         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
74765
74766         * lib/striconveh.h (mem_cd_iconveh): Change specification.
74767         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
74768         original result buffer.
74769         (str_cd_iconveh): Update.
74770         * tests/test-striconveh.c (main): Update.
74771
74772         * lib/striconv.h (mem_cd_iconv): Change specification.
74773         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
74774         result buffer.
74775         (str_cd_iconv): Update.
74776         * tests/test-striconv.c (main): Update.
74777
74778 2007-01-21  Bruno Haible  <bruno@clisp.org>
74779
74780         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
74781
74782 2007-01-20  Jim Meyering  <jim@meyering.net>
74783
74784         * lib/userspec.c (parse_with_separator): If a user or group string
74785         starts with "+", skip the corresponding name-to-ID look-up, since
74786         such a look-up must fail: user and group names may not include "+".
74787
74788 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         * lib/poll.c: Include sys/time.h and time.h unconditionally,
74791         since we now assume the sys_time module.
74792         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
74793         check for sys/time.h; no longer needed.
74794         * modules/poll (Depends-on): Depend on sys_time.
74795
74796 2007-01-18  Bruno Haible  <bruno@clisp.org>
74797
74798         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
74799         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74800
74801         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
74802         gettimeofday.
74803
74804         * tests/test-gettimeofday.c: Include <time.h>.
74805         (dummy): Remove variable.
74806
74807         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
74808         gl_HEADER_SYS_TIME_H.
74809         (gl_HEADER_SYS_TIME_H): New macro.
74810
74811         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
74812         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74813         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
74814         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
74815         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74816         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
74817         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
74818         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74819         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
74820         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
74821         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74822
74823         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
74824         last change; it caused a compilation error when cross-compiling to
74825         Cygwin.
74826
74827 2007-01-18  Jim Meyering  <jim@meyering.net>
74828
74829         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
74830         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
74831         than the race-prone "test -d sys || mkdir sys".
74832         (configure.ac): Use AC_PROG_MKDIR_P.
74833         * modules/sys_select: Likewise.
74834         * modules/sys_socket: Likewise.
74835         * modules/sys_time: Likewise.
74836
74837 2007-01-18  Eric Blake  <ebb9@byu.net>
74838
74839         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74840         replace gettimeofday.
74841         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74842         name, to avoid infinite recursion.
74843
74844 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74847         module sys_time.
74848         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74849         assume timespec.h defines struct timeval.
74850         * lib/settime.c: Likewise.
74851         * lib/utimens.c: Likewise.
74852         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74853         since we now assume the gettimeofday module.
74854         * lib/tempname.c (__gen_tempname): Likewise.
74855         * lib/gettimeofday.h: Remove.
74856         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74857         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74858         Include <time.h>, for 'time()'.
74859         (localtime_buffer_addr): Also use this workaround if
74860         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74861         to simplify the uses.  All uses changed.
74862         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74863         that #undef is inside {}, and 'const' follows type name consistently.
74864         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74865         (gettimeofday): Do not use the maximum possible value for
74866         tv->tv_usec, since that might break usages other than ls.c.
74867         Instead, we'll leave ls.c alone.  This undoes today's patch
74868         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74869         we've never observed the problem but might as well keep the
74870         canary.
74871         * lib/nanosleep.c: Include timespec.h first, for interface check.
74872         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74873         now assume the sys_time module.
74874         * lib/tempname.c: Likewise.
74875         * lib/timespec.h: Likewise.
74876         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74877         needed.
74878         * lib/strftime.c: Likewise.
74879         * lib/timespec.h: Likewise.
74880         * lib/posixtm.c: Include posixtm.h first, for interface check.
74881         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74882         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74883         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74884         * lib/sys_time_.h: New file.
74885         * lib/timespec.h (struct timespec): Use long int, not long.
74886         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74887         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74888         Remove obsolescent call to AC_HEADER_TIME.
74889         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74891         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74892         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74893         Likewise.
74894         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74895         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74896         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74897         into the sys_time module.  Check for gettimeofday just once.
74898         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74899         for gettimeofday signature to just check the signature.  Merely
74900         compile it, since linking doesn't test signature.  Improve test for
74901         whether gettimeofday.o is actually needed.
74902         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74903         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74904         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74905         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74906         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74907         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74908         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74909         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74910         than worrying about sys/time.h.
74911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74912         Don't bother worrying about TIME_WITH_SYS_TIME.
74913         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74914         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74915         * m4/sys_time_h.m4: New file.
74916         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74917         Don't include sys/time.h.  Return from main rather than exiting.
74918         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74919         all uses changed.
74920         * modules/gethrxtime (Depends-on): Add sys_time.
74921         * modules/gettime (Depends-on): Likewise.
74922         * modules/gettimeofday (Depends-on): Likewise.
74923         * modules/nanosleep (Depends-on): Likewise.
74924         * modules/settime (Depends-on): Likewise.
74925         * modules/tempname (Depends-on): Likewise.
74926         * modules/utimens (Depends-on): Likewise.
74927         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74928         (Include): Change back to <sys/time.h>.
74929         (Maintainer): Add self.
74930         * modules/sys_time: New file.
74931         * modules/tempname (Depends-on): Add gettimeofday.
74932         * tests/test-gettimeofday.c: Include <sys/time.h>
74933         rather than gettimeofday.h.
74934
74935 2007-01-17  Bruno Haible  <bruno@clisp.org>
74936
74937         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74938         the license default to GPL.
74939         (func_create_testdir): Don't complain if a module is LGPL and its
74940         tests module depends on GPLed modules.
74941
74942 2007-01-17  Bruno Haible  <bruno@clisp.org>
74943
74944         * lib/gettimeofday.c (gettimeofday): Add code for the case
74945         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74946         maximum possible value for tv->tv_usec, rather than the minimum one.
74947
74948 2005-10-08  Martin Lambers  <marlam@marlam.de>
74949 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74950 2007-01-16  Bruno Haible  <bruno@clisp.org>
74951
74952         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74953         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74954         gl_FUNC_GETTIMEOFDAY.
74955         (Include): Add gettimeofday.h.
74956         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74957         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74958         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74959         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74960         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74961         * lib/gettimeofday.h: New file.
74962         * lib/gettimeofday.c: Include <sys/timeb.h>.
74963         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74964         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74965         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74966         fall back on time().
74967
74968         * tests/test-gettimeofday.c: New file.
74969         * modules/gettimeofday-tests: New file.
74970
74971 2007-01-16  Eric Blake  <ebb9@byu.net>
74972
74973         * modules/fnmatch (Depends-on): Depend on wchar.
74974         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74975         * m4/fnmatch.m4: Likewise.
74976         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74977         * m4/mbchar.m4: Likewise.
74978         * modules/mbswidth (Depends-on): Depend on wchar.
74979         * lib/mbswidth.c: Assume <wchar.h>.
74980         * m4/mbswidth.m4: Likewise.
74981         * modules/quotearg (Depends-on): Depend on wchar.
74982         * lib/quotearg.c: Assume <wchar.h>.
74983         * m4/quotearg.m4: Likewise.
74984         * modules/regex (Depends-on): Depend on wchar.
74985         * lib/regex_internal.h: Assume <wchar.h>.
74986         * m4/regex.m4: Likewise.
74987         * modules/stdint (Depends-on): Depend on wchar.
74988         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74989         * m4/stdint.m4: Likewise.
74990         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74991         * modules/strftime (Depends-on): Depend on wchar.
74992         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74993         * modules/strtol (Depends-on): Depend on wchar.
74994         * lib/strtol.c: Assume <wchar.h>.
74995         * modules/wcwidth (Depends-on): Depend on wchar.
74996         * lib/wcwidth.h: Assume <wchar.h>.
74997         * m4/wcwidth.m4: Likewise.
74998
74999 2007-01-16  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/csharpexec-script: New, created from...
75002         * modules/csharpexec: ... this.
75003
75004 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75005
75006         * modules/javaexec-script: New, created from...
75007         * modules/javaexec: ... this.
75008
75009 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75010
75011         * modules/poll (Dependencies): Add sys_select.
75012
75013 2007-01-15  Jim Meyering  <jim@meyering.net>
75014
75015         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75016         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75017         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75018         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75019
75020 2007-01-15  Bruno Haible  <bruno@clisp.org>
75021
75022         * modules/striconveh: New file.
75023         * lib/striconveh.h: New file.
75024         * lib/striconveh.c: New file.
75025         * MODULES.html.sh (Internationalization functions): Add striconveh.
75026
75027         * modules/striconveh-tests: New file.
75028         * tests/test-striconveh.c: New file.
75029
75030 2007-01-15  Bruno Haible  <bruno@clisp.org>
75031
75032         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75033         not from GNU libiconv or GNU libc.
75034
75035 2007-01-15  Bruno Haible  <bruno@clisp.org>
75036
75037         * doc/gnulib-intro.texi (Copyright): Explain the different license
75038         terms for module descriptions, autoconf macros, tests, documentation.
75039
75040 2007-01-14  Bruno Haible  <bruno@clisp.org>
75041
75042         * modules/striconv-tests: New file.
75043         * tests/test-striconv.c: New file.
75044
75045 2007-01-14  Bruno Haible  <bruno@clisp.org>
75046
75047         * modules/iconv-tests: New file.
75048         * tests/test-iconv.c: New file.
75049
75050 2007-01-14  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_get_license): For test modules, use the license of
75053         the main module.
75054
75055 2007-01-14  Bruno Haible  <bruno@clisp.org>
75056
75057         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75058         if iconv is found to exist.
75059
75060 2007-01-14  Bruno Haible  <bruno@clisp.org>
75061
75062         * modules/c-ctype-tests: New file.
75063         * tests/test-c-ctype.c: New file.
75064
75065 2007-01-14  Bruno Haible  <bruno@clisp.org>
75066
75067         * modules/binary-io-tests: New file.
75068         * tests/test-binary-io.sh: New file.
75069         * tests/test-binary-io.c: New file.
75070
75071 2007-01-14  Bruno Haible  <bruno@clisp.org>
75072
75073         * modules/array-oset-tests: New file.
75074         * tests/test-array_oset.c: New file.
75075
75076 2007-01-14  Bruno Haible  <bruno@clisp.org>
75077
75078         * modules/array-list-tests: New file.
75079         * tests/test-array_list.c: New file.
75080
75081 2007-01-14  Bruno Haible  <bruno@clisp.org>
75082
75083         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
75084         and make.
75085         Reported by Simon Josefsson in
75086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
75087
75088 2007-01-14  Bruno Haible  <bruno@clisp.org>
75089
75090         * modules/allocsa-tests: New file.
75091         * tests/test-allocsa.c: New file.
75092
75093 2007-01-14  Bruno Haible  <bruno@clisp.org>
75094
75095         * modules/fchdir (Depends-on): Add absolute-header.
75096         * modules/unistd (Depends-on): Likewise.
75097
75098 2006-12-30  Bruno Haible  <bruno@clisp.org>
75099
75100         * modules/fchdir: New file.
75101         * modules/unistd (Files): Add lib/unistd_.h.
75102         (Makefile.am): Generate unistd.h from unistd_.h.
75103         * lib/fchdir.c: New file.
75104         * lib/dirent_.h: New file.
75105         * lib/unistd_.h: New file.
75106         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
75107         * m4/fchdir.m4: New file.
75108         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
75109         (gl_HEADER_UNISTD): Invoke it.
75110         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
75111         function.
75112         * lib/backupfile.c (opendir, closedir): Undefine.
75113         * lib/chown.c (open, close): Undefine.
75114         * lib/clean-temp.c (open, close): Undefine.
75115         * lib/copy-file.c (open, close): Undefine.
75116         * lib/execute.c (open, close): Undefine.
75117         * lib/fsusage.c (open, close): Undefine.
75118         * lib/gc-gnulib.c (open, close): Undefine.
75119         * lib/getcwd.c (opendir, closedir): Undefine.
75120         * lib/glob.c (opendir, closedir): Undefine.
75121         * lib/javacomp.c (open, close): Undefine.
75122         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
75123         * lib/openat-proc.c (open, close): Undefine.
75124         * lib/pagealign_alloc.c (open, close): Undefine.
75125         * lib/pipe.c (open, close): Undefine.
75126         * lib/progreloc.c (open, close): Undefine.
75127         * lib/savedir.c (opendir, closedir): Undefine.
75128         * lib/utime.c (open, close): Undefine.
75129         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
75130
75131 2007-01-10  Bruno Haible  <bruno@clisp.org>
75132
75133         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
75134
75135 2007-01-12  Eric Blake  <ebb9@byu.net>
75136
75137         Provide a robust <wchar.h>.  Further simplifications are now
75138         possible in other modules, but not included here.
75139         * modules/wchar: New module.
75140         * m4/wchar.m4: New file.
75141         * lib/wchar_.h: Likewise.
75142         * modules/mbchar (Depends-on): Depend on wchar, as the first use
75143         of the new module.
75144         * MODULES.html.sh (Extended multibyte and wide character utilities):
75145         New section.
75146
75147 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
75150         to a reasonable default for memory allocation.
75151         (xreadlink): Don't allocate a huge buffer, to work around a buggy
75152         file system that reports garbage st_size values for symlinks.
75153         Problem reported by Liyang Hu.
75154
75155 2007-01-11  Simon Josefsson  <simon@josefsson.org>
75156
75157         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
75158         Emacs .#* auto-save files).
75159
75160 2007-01-11  Bruno Haible  <bruno@clisp.org>
75161
75162         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
75163         directory.
75164
75165 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75166
75167         Use @...@ consistently in lib/wctype_.h.
75168         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
75169         on it being set to 1 or 0.
75170         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
75171         go back to AC_SUBSTing it.
75172         * modules/wctype (Makefile.am): Undo previous change.
75173
75174 2007-01-10  Eric Blake  <ebb9@byu.net>
75175
75176         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
75177         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
75178         * modules/wctype (Makefile.am): Likewise.
75179         Reported by Chris McGuire.
75180
75181 2007-01-10  Jim Meyering  <jim@meyering.net>
75182
75183         fts.c: a small readability/maintainability improvement
75184         * lib/fts.c (fts_read): Make this code slightly more readable and
75185         maintainable by hoisting the "sp->fts_cur = p" assignments to
75186         immediately follow the statements that set P.  Derived from
75187         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
75188
75189 2007-01-10  Eric Blake  <ebb9@byu.net>
75190
75191         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
75192         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
75193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75194         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
75195         Reported by Chris McGuire.
75196
75197 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75198
75199         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
75200         in sed script.
75201
75202 2007-01-09  Bruno Haible  <bruno@clisp.org>
75203
75204         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
75205         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
75206         variables.
75207         (func_module): Use them.
75208
75209 2007-01-09  Bruno Haible  <bruno@clisp.org>
75210
75211         * modules/unistr/base: New file.
75212         * lib/unistr.h: New file.
75213
75214         * modules/unistr/u8-to-u16: New file.
75215         * lib/unistr/u8-to-u16.c: New file.
75216
75217         * modules/unistr/u8-to-u32: New file.
75218         * lib/unistr/u8-to-u32.c: New file.
75219
75220         * modules/unistr/u16-to-u8: New file.
75221         * lib/unistr/u16-to-u8.c: New file.
75222
75223         * modules/unistr/u16-to-u32: New file.
75224         * lib/unistr/u16-to-u32.c: New file.
75225
75226         * modules/unistr/u32-to-u8: New file.
75227         * lib/unistr/u32-to-u8.c: New file.
75228
75229         * modules/unistr/u32-to-u16: New file.
75230         * lib/unistr/u32-to-u16.c: New file.
75231
75232         * modules/unistr/u8-check: New file.
75233         * modules/unistr/u16-check: New file.
75234         * modules/unistr/u32-check: New file.
75235         * lib/unistr/u8-check.c: New file.
75236         * lib/unistr/u16-check.c: New file.
75237         * lib/unistr/u32-check.c: New file.
75238
75239         * modules/unistr/u8-chr: New file.
75240         * modules/unistr/u16-chr: New file.
75241         * modules/unistr/u32-chr: New file.
75242         * lib/unistr/u8-chr.c: New file.
75243         * lib/unistr/u16-chr.c: New file.
75244         * lib/unistr/u32-chr.c: New file.
75245
75246         * modules/unistr/u8-cmp: New file.
75247         * modules/unistr/u16-cmp: New file.
75248         * modules/unistr/u32-cmp: New file.
75249         * lib/unistr/u8-cmp.c: New file.
75250         * lib/unistr/u16-cmp.c: New file.
75251         * lib/unistr/u32-cmp.c: New file.
75252
75253         * modules/unistr/u8-cpy: New file.
75254         * modules/unistr/u16-cpy: New file.
75255         * modules/unistr/u32-cpy: New file.
75256         * lib/unistr/u8-cpy.c: New file.
75257         * lib/unistr/u16-cpy.c: New file.
75258         * lib/unistr/u32-cpy.c: New file.
75259         * lib/unistr/u-cpy.h: New file.
75260
75261         * modules/unistr/u8-cpy-alloc: New file.
75262         * modules/unistr/u16-cpy-alloc: New file.
75263         * modules/unistr/u32-cpy-alloc: New file.
75264         * lib/unistr/u8-cpy-alloc.c: New file.
75265         * lib/unistr/u16-cpy-alloc.c: New file.
75266         * lib/unistr/u32-cpy-alloc.c: New file.
75267         * lib/unistr/u-cpy-alloc.h: New file.
75268
75269         * modules/unistr/u8-endswith: New file.
75270         * modules/unistr/u16-endswith: New file.
75271         * modules/unistr/u32-endswith: New file.
75272         * lib/unistr/u8-endswith.c: New file.
75273         * lib/unistr/u16-endswith.c: New file.
75274         * lib/unistr/u32-endswith.c: New file.
75275         * lib/unistr/u-endswith.h: New file.
75276
75277         * modules/unistr/u8-mblen: New file.
75278         * modules/unistr/u16-mblen: New file.
75279         * modules/unistr/u32-mblen: New file.
75280         * lib/unistr/u8-mblen.c: New file.
75281         * lib/unistr/u16-mblen.c: New file.
75282         * lib/unistr/u32-mblen.c: New file.
75283
75284         * modules/unistr/u8-mbtouc: New file.
75285         * modules/unistr/u16-mbtouc: New file.
75286         * modules/unistr/u32-mbtouc: New file.
75287         * lib/unistr/u8-mbtouc.c: New file.
75288         * lib/unistr/u16-mbtouc.c: New file.
75289         * lib/unistr/u32-mbtouc.c: New file.
75290
75291         * modules/unistr/u8-mbtouc-safe: New file.
75292         * modules/unistr/u16-mbtouc-safe: New file.
75293         * modules/unistr/u32-mbtouc-safe: New file.
75294         * lib/unistr/u8-mbtouc-safe.c: New file.
75295         * lib/unistr/u16-mbtouc-safe.c: New file.
75296         * lib/unistr/u32-mbtouc-safe.c: New file.
75297
75298         * modules/unistr/u8-move: New file.
75299         * modules/unistr/u16-move: New file.
75300         * modules/unistr/u32-move: New file.
75301         * lib/unistr/u8-move.c: New file.
75302         * lib/unistr/u16-move.c: New file.
75303         * lib/unistr/u32-move.c: New file.
75304         * lib/unistr/u-move.h: New file.
75305
75306         * modules/unistr/u8-next: New file.
75307         * modules/unistr/u16-next: New file.
75308         * modules/unistr/u32-next: New file.
75309         * lib/unistr/u8-next.c: New file.
75310         * lib/unistr/u16-next.c: New file.
75311         * lib/unistr/u32-next.c: New file.
75312
75313         * modules/unistr/u8-prev: New file.
75314         * modules/unistr/u16-prev: New file.
75315         * modules/unistr/u32-prev: New file.
75316         * lib/unistr/u8-prev.c: New file.
75317         * lib/unistr/u16-prev.c: New file.
75318         * lib/unistr/u32-prev.c: New file.
75319
75320         * modules/unistr/u8-set: New file.
75321         * modules/unistr/u16-set: New file.
75322         * modules/unistr/u32-set: New file.
75323         * lib/unistr/u8-set.c: New file.
75324         * lib/unistr/u16-set.c: New file.
75325         * lib/unistr/u32-set.c: New file.
75326         * lib/unistr/u-set.h: New file.
75327
75328         * modules/unistr/u8-startswith: New file.
75329         * modules/unistr/u16-startswith: New file.
75330         * modules/unistr/u32-startswith: New file.
75331         * lib/unistr/u8-startswith.c: New file.
75332         * lib/unistr/u16-startswith.c: New file.
75333         * lib/unistr/u32-startswith.c: New file.
75334         * lib/unistr/u-startswith.h: New file.
75335
75336         * modules/unistr/u8-stpcpy: New file.
75337         * modules/unistr/u16-stpcpy: New file.
75338         * modules/unistr/u32-stpcpy: New file.
75339         * lib/unistr/u8-stpcpy.c: New file.
75340         * lib/unistr/u16-stpcpy.c: New file.
75341         * lib/unistr/u32-stpcpy.c: New file.
75342         * lib/unistr/u-stpcpy.h: New file.
75343
75344         * modules/unistr/u8-stpncpy: New file.
75345         * modules/unistr/u16-stpncpy: New file.
75346         * modules/unistr/u32-stpncpy: New file.
75347         * lib/unistr/u8-stpncpy.c: New file.
75348         * lib/unistr/u16-stpncpy.c: New file.
75349         * lib/unistr/u32-stpncpy.c: New file.
75350         * lib/unistr/u-stpncpy.h: New file.
75351
75352         * modules/unistr/u8-strcat: New file.
75353         * modules/unistr/u16-strcat: New file.
75354         * modules/unistr/u32-strcat: New file.
75355         * lib/unistr/u8-strcat.c: New file.
75356         * lib/unistr/u16-strcat.c: New file.
75357         * lib/unistr/u32-strcat.c: New file.
75358         * lib/unistr/u-strcat.h: New file.
75359
75360         * modules/unistr/u8-strchr: New file.
75361         * modules/unistr/u16-strchr: New file.
75362         * modules/unistr/u32-strchr: New file.
75363         * lib/unistr/u8-strchr.c: New file.
75364         * lib/unistr/u16-strchr.c: New file.
75365         * lib/unistr/u32-strchr.c: New file.
75366
75367         * modules/unistr/u8-strcmp: New file.
75368         * modules/unistr/u16-strcmp: New file.
75369         * modules/unistr/u32-strcmp: New file.
75370         * lib/unistr/u8-strcmp.c: New file.
75371         * lib/unistr/u16-strcmp.c: New file.
75372         * lib/unistr/u32-strcmp.c: New file.
75373
75374         * modules/unistr/u8-strcpy: New file.
75375         * modules/unistr/u16-strcpy: New file.
75376         * modules/unistr/u32-strcpy: New file.
75377         * lib/unistr/u8-strcpy.c: New file.
75378         * lib/unistr/u16-strcpy.c: New file.
75379         * lib/unistr/u32-strcpy.c: New file.
75380         * lib/unistr/u-strcpy.h: New file.
75381
75382         * modules/unistr/u8-strcspn: New file.
75383         * modules/unistr/u16-strcspn: New file.
75384         * modules/unistr/u32-strcspn: New file.
75385         * lib/unistr/u8-strcspn.c: New file.
75386         * lib/unistr/u16-strcspn.c: New file.
75387         * lib/unistr/u32-strcspn.c: New file.
75388         * lib/unistr/u-strcspn.h: New file.
75389
75390         * modules/unistr/u8-strdup: New file.
75391         * modules/unistr/u16-strdup: New file.
75392         * modules/unistr/u32-strdup: New file.
75393         * lib/unistr/u8-strdup.c: New file.
75394         * lib/unistr/u16-strdup.c: New file.
75395         * lib/unistr/u32-strdup.c: New file.
75396         * lib/unistr/u-strdup.h: New file.
75397
75398         * modules/unistr/u8-strlen: New file.
75399         * modules/unistr/u16-strlen: New file.
75400         * modules/unistr/u32-strlen: New file.
75401         * lib/unistr/u8-strlen.c: New file.
75402         * lib/unistr/u16-strlen.c: New file.
75403         * lib/unistr/u32-strlen.c: New file.
75404         * lib/unistr/u-strlen.h: New file.
75405
75406         * modules/unistr/u8-strmblen: New file.
75407         * modules/unistr/u16-strmblen: New file.
75408         * modules/unistr/u32-strmblen: New file.
75409         * lib/unistr/u8-strmblen.c: New file.
75410         * lib/unistr/u16-strmblen.c: New file.
75411         * lib/unistr/u32-strmblen.c: New file.
75412
75413         * modules/unistr/u8-strmbtouc: New file.
75414         * modules/unistr/u16-strmbtouc: New file.
75415         * modules/unistr/u32-strmbtouc: New file.
75416         * lib/unistr/u8-strmbtouc.c: New file.
75417         * lib/unistr/u16-strmbtouc.c: New file.
75418         * lib/unistr/u32-strmbtouc.c: New file.
75419
75420         * modules/unistr/u8-strncat: New file.
75421         * modules/unistr/u16-strncat: New file.
75422         * modules/unistr/u32-strncat: New file.
75423         * lib/unistr/u8-strncat.c: New file.
75424         * lib/unistr/u16-strncat.c: New file.
75425         * lib/unistr/u32-strncat.c: New file.
75426         * lib/unistr/u-strncat.h: New file.
75427
75428         * modules/unistr/u8-strncmp: New file.
75429         * modules/unistr/u16-strncmp: New file.
75430         * modules/unistr/u32-strncmp: New file.
75431         * lib/unistr/u8-strncmp.c: New file.
75432         * lib/unistr/u16-strncmp.c: New file.
75433         * lib/unistr/u32-strncmp.c: New file.
75434
75435         * modules/unistr/u8-strncpy: New file.
75436         * modules/unistr/u16-strncpy: New file.
75437         * modules/unistr/u32-strncpy: New file.
75438         * lib/unistr/u8-strncpy.c: New file.
75439         * lib/unistr/u16-strncpy.c: New file.
75440         * lib/unistr/u32-strncpy.c: New file.
75441         * lib/unistr/u-strncpy.h: New file.
75442
75443         * modules/unistr/u8-strnlen: New file.
75444         * modules/unistr/u16-strnlen: New file.
75445         * modules/unistr/u32-strnlen: New file.
75446         * lib/unistr/u8-strnlen.c: New file.
75447         * lib/unistr/u16-strnlen.c: New file.
75448         * lib/unistr/u32-strnlen.c: New file.
75449         * lib/unistr/u-strnlen.h: New file.
75450
75451         * modules/unistr/u8-strpbrk: New file.
75452         * modules/unistr/u16-strpbrk: New file.
75453         * modules/unistr/u32-strpbrk: New file.
75454         * lib/unistr/u8-strpbrk.c: New file.
75455         * lib/unistr/u16-strpbrk.c: New file.
75456         * lib/unistr/u32-strpbrk.c: New file.
75457         * lib/unistr/u-strpbrk.h: New file.
75458
75459         * modules/unistr/u8-strrchr: New file.
75460         * modules/unistr/u16-strrchr: New file.
75461         * modules/unistr/u32-strrchr: New file.
75462         * lib/unistr/u8-strrchr.c: New file.
75463         * lib/unistr/u16-strrchr.c: New file.
75464         * lib/unistr/u32-strrchr.c: New file.
75465
75466         * modules/unistr/u8-strspn: New file.
75467         * modules/unistr/u16-strspn: New file.
75468         * modules/unistr/u32-strspn: New file.
75469         * lib/unistr/u8-strspn.c: New file.
75470         * lib/unistr/u16-strspn.c: New file.
75471         * lib/unistr/u32-strspn.c: New file.
75472         * lib/unistr/u-strspn.h: New file.
75473
75474         * modules/unistr/u8-strstr: New file.
75475         * modules/unistr/u16-strstr: New file.
75476         * modules/unistr/u32-strstr: New file.
75477         * lib/unistr/u8-strstr.c: New file.
75478         * lib/unistr/u16-strstr.c: New file.
75479         * lib/unistr/u32-strstr.c: New file.
75480         * lib/unistr/u-strstr.h: New file.
75481
75482         * modules/unistr/u8-strtok: New file.
75483         * modules/unistr/u16-strtok: New file.
75484         * modules/unistr/u32-strtok: New file.
75485         * lib/unistr/u8-strtok.c: New file.
75486         * lib/unistr/u16-strtok.c: New file.
75487         * lib/unistr/u32-strtok.c: New file.
75488         * lib/unistr/u-strtok.h: New file.
75489
75490         * modules/unistr/u8-uctomb: New file.
75491         * modules/unistr/u16-uctomb: New file.
75492         * modules/unistr/u32-uctomb: New file.
75493         * lib/unistr/u8-uctomb.c: New file.
75494         * lib/unistr/u16-uctomb.c: New file.
75495         * lib/unistr/u32-uctomb.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         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
75502         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
75503         subdirectories.
75504
75505 2007-01-08  Karl Berry  <karl@gnu.org>
75506
75507         * doc/error.texi: mention that main() fns must set program_name
75508         when progname is used.
75509
75510 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
75511
75512         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
75513         WCTYPE_H is empty, for the benefit of builds from non-distclean
75514         directories.  Problem reported by Eric Blake in
75515         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
75516
75517 2007-01-08  Bruno Haible  <bruno@clisp.org>
75518
75519         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
75520         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
75521         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
75522         PROVIDE_CANONICALIZE_FILENAME_MODE.
75523         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
75524
75525 2007-01-08  Bruno Haible  <bruno@clisp.org>
75526
75527         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
75528         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
75529         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
75530         * lib/fts.c: Likewise.
75531         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
75532
75533 2006-12-25  Bruno Haible  <bruno@clisp.org>
75534
75535         * modules/utf8-ucs4-safe: New file.
75536         * lib/utf8-ucs4-safe.h: New file.
75537         * lib/unistr/utf8-ucs4-safe.c: New file.
75538
75539         * modules/utf16-ucs4-safe: New file.
75540         * lib/utf16-ucs4-safe.h: New file.
75541         * lib/unistr/utf16-ucs4-safe.c: New file.
75542
75543         * MODULES.html.sh (Unicode string functions): Add the new modules.
75544
75545 2007-01-08  Bruno Haible  <bruno@clisp.org>
75546
75547         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
75548         (Depends-on): Add unitypes.
75549         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75550         (u8_mbtouc_aux): Move out to separate file.
75551         (u8_mbtouc): Use ucs4_t, uint8_t types.
75552         * lib/unistr/utf8-ucs4.c: New file.
75553
75554         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
75555         (Depends-on): Add unitypes.
75556         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
75557         (u16_mbtouc_aux): Move out to separate file.
75558         (u16_mbtouc): Use ucs4_t, uint16_t types.
75559         * lib/unistr/utf16-ucs4.c: New file.
75560
75561         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
75562         (Depends-on): Add unitypes.
75563         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
75564         (u8_uctomb_aux): Move out to separate file.
75565         (u8_uctomb): Use ucs4_t, uint8_t types.
75566         * lib/unistr/ucs4-utf8.c: New file.
75567
75568         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
75569         (Depends-on): Add unitypes.
75570         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
75571         (u16_uctomb_aux): Move out to separate file.
75572         (u16_uctomb): Use ucs4_t, uint16_t types.
75573         * lib/unistr/ucs4-utf16.c: New file.
75574
75575 2006-12-25  Bruno Haible  <bruno@clisp.org>
75576
75577         * modules/unitypes: New file.
75578         * lib/unitypes.h: New file.
75579         * MODULES.html.sh (func_all_modules): New section "Unicode string
75580         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
75581         this section. Add unitypes.
75582
75583 2007-01-08  Bruno Haible  <bruno@clisp.org>
75584
75585         Avoid variable names that conflict with those from libtool.
75586         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
75587         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
75588         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
75589         library_names_spec to acl_library_names_spec, hardcode_* to
75590         acl_hardcode_*.
75591         Reported by Ralf Wildenhues.
75592
75593 2007-01-08  Bruno Haible  <bruno@clisp.org>
75594
75595         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
75596         definition.
75597         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
75598         definition.
75599         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
75600         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
75601         definition.
75602         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
75603         definition.
75604         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
75605         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
75606         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
75607         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
75608         definition.
75609         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
75610         definition.
75611         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
75612         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
75613         GC_USE_<algorithm>.
75614         * lib/gc-libgcrypt.c: Likewise.
75615         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
75616         * modules/gc-arctwo (configure.ac): Likewise.
75617         * modules/gc-des (configure.ac): Likewise.
75618         * modules/gc-hmac-md5 (configure.ac): Likewise.
75619         * modules/gc-hmac-sha1 (configure.ac): Likewise.
75620         * modules/gc-md2 (configure.ac): Likewise.
75621         * modules/gc-md4 (configure.ac): Likewise.
75622         * modules/gc-md5 (configure.ac): Likewise.
75623         * modules/gc-random (configure.ac): Likewise.
75624         * modules/gc-rijndael (configure.ac): Likewise.
75625         * modules/gc-sha1 (configure.ac): Likewise.
75626
75627 2007-01-08  Bruno Haible  <bruno@clisp.org>
75628
75629         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
75630         macro definition.
75631         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
75632         definition.
75633         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
75634         definition.
75635         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
75636         * modules/fcntl-safer (configure.ac): Likewise.
75637         * modules/fopen-safer (configure.ac): Likewise.
75638         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
75639         GNULIB_FWRITEERROR macro definition.
75640
75641 2007-01-08  Bruno Haible  <bruno@clisp.org>
75642
75643         * m4/gnulib-common.m4: New file.
75644         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
75645         (func_get_filelist): Add m4/gnulib-common.m4.
75646
75647 2007-01-08  Bruno Haible  <bruno@clisp.org>
75648
75649         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
75650         command.
75651
75652 2007-01-08  Jim Meyering  <jim@meyering.net>
75653
75654         Use a more robust test for a "can't happen" condition.
75655         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
75656         narrowed the st_size value.  Presuming the "can't happen" condition
75657         is true, that narrowing could conceivably convert an invalid st_size
75658         value into a valid one.  Instead, use a change based on Matthew
75659         Woehlke's original patch.
75660
75661         Slight readability improvement: use an assert-like macro
75662         in place of literal "abort ()" uses.
75663         * lib/fts.c (fts_assert): Define.
75664         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
75665         Use this macro instead of a bare 'abort'.
75666
75667 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         Don't worry about using IRIX 5.3's wctype.h broken definitions;
75670         simply work around them.
75671         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
75672         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
75673         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
75674         declaring.
75675         Don't bother to define as macros, since the standard doesn't require it.
75676         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
75677         longer worry about IRIX 5.3.
75678         (HAVE_WCTYPE_CTMP_BUG): Remove.
75679
75680 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
75683         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
75684         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
75685         Problems reported by Georg Schwarz for IRIX 5.3.
75686
75687         * gnulib-tool (autoconf_minversion): Take the maximum version number
75688         found, not the minimum.  Problem reported by James Youngman.
75689
75690 2007-01-03  Karl Berry  <karl@gnu.org>
75691
75692         * doc/error.texi: new file, explaining interaction with progname.
75693         * doc/gnulib.texi: include it.  Update copyright.
75694
75695 2007-01-03  Simon Josefsson  <simon@josefsson.org>
75696
75697         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
75698         AC_CANONICAL_HOST, to improve autobuild outputs.
75699
75700 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
75701             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75702
75703         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
75704         sockets, server sockets, and other file descriptors.  Count errors
75705         to compute the return value.  Reorder the code a bit to be easier
75706         to follow.  Don't set event bits that were not requested (except
75707         POLLERR and POLLHUP).
75708
75709 2007-01-01  Bruno Haible  <bruno@clisp.org>
75710
75711         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
75712
75713 2007-01-03  Jim Meyering  <jim@meyering.net>
75714
75715         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
75716
75717 2007-01-02  Bruno Haible  <bruno@clisp.org>
75718
75719         * modules/settime (Include): Require timespec.h.
75720         * modules/nanosleep (Include): Likewise.
75721
75722 2007-01-01  Bruno Haible  <bruno@clisp.org>
75723
75724         * gnulib-tool (func_emit_copyright_notice): Bump year.
75725         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
75726
75727 2007-01-01  Bruno Haible  <bruno@clisp.org>
75728
75729         Improve support for OpenBSD.
75730         * build-aux/config.rpath (libname_spec): Export.
75731         (library_names_spec): New variable. Export.
75732         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
75733         library_names_spec from the config.rpath output. Locate shared library
75734         through the name pattern in library_names_spec.
75735
75736 2007-01-01  Eric Blake  <ebb9@byu.net>
75737
75738         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
75739
75740 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
75743         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
75744         assume the C locale, and avoid an "eval" that could cause trouble.
75745         Problem with SORT reported by Bob Proulx.
75746
75747         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
75748         Define.  Trivial patch from Henning Nielsen Lund, originally
75749         sent to bug-grep@gnu.org today.
75750
75751 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
75754         struct stat.  Problem reported by Henning Nielsen Lund.
75755         * lib/acl.c: Include acl.h first, to check interface.  Don't
75756         bother to include sys/types.h and sys/stat.h again.
75757
75758 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         Import the following change from libc; problem reported by
75761         Sven Verdoolaege.
75762
75763         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
75764
75765         [BZ #1373]
75766         * lib/argp.h: Remove __NTH for __argp_usage inline function.
75767
75768 2006-12-28  Jim Meyering  <jim@meyering.net>
75769
75770         * build-aux/announce-gen: Do not assume that the package
75771         builds any of tar.gz, tar.bz2, and .xdelta files.
75772         Suggestion from Simon Josefsson.
75773
75774 2006-12-28  Simon Josefsson  <simon@josefsson.org>
75775
75776         * modules/announce-gen: New file.
75777
75778 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * lib/mbchar.h: Just include <wctype.h>; the wctype module
75781         handles its gotchas now.
75782         * lib/mbswidth.c: Likewise.
75783         * lib/wcwidth.h: Likewise.
75784         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
75785         and iswcntrl; the wctype module does this stuff now.
75786         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
75788         * modules/mbchar (Depends-on): Add wctype.
75789         * modules/mbswidth (Depends-on): Likewise.
75790         * modules/wcwidth (Depends-on): Likewise.
75791
75792 2006-12-27  Eric Blake  <ebb9@byu.net>
75793
75794         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
75795         module uses more than what <wctype.h> is required to provide.
75796
75797 2006-12-26  Eric Blake  <ebb9@byu.net>
75798
75799         * gnulib-tool (sed_extract_prog): Avoid space-tab.
75800
75801 2006-12-26  Eric Blake  <ebb9@byu.net>
75802
75803         * modules/absolute-header: New module.
75804         * modules/fcntl (Depends-on): Depend on it.
75805         * modules/inttypes (Depends-on): Likewise.
75806         * modules/stdint (Depends-on): Likewise.
75807         * modules/sys_stat (Depends-on): Likewise.
75808         * modules/wctype (Depends-on): Likewise.
75809         * MODULES.html.sh (Support for building libraries and
75810         executables): Document it.
75811
75812 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * gnulib-tool (SED): Remove, undoing previous change.
75815         The problem was that it broke coreutils on Solaris, because
75816         "sed --posix" leaked into a makefile.
75817         (sed): New alias, if 'alias' and GNU sed.
75818
75819 2006-12-24  Jim Meyering  <jim@meyering.net>
75820
75821         Work around an fchownat bug in glibc-2.4:
75822         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
75823         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
75824         in spite of the -P option.
75825         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
75826         New macros.
75827         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
75828         * modules/openat (Files): Add lib/fchownat.c.
75829         * lib/openat.c (fchownat): Don't define here.  Move to...
75830         * lib/fchownat.c: ...this new file.
75831
75832 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         Fix bug reported by Bruno Haible in
75835         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75836         where quotearg.c didn't compile on Mac OS X 10.2 because it
75837         lacks <wchar.h> and wint_t.
75838         * lib/wctype_.h (__wctype_wint_t): New type.
75839         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75840         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75841         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75842         Arg is now of type __wctype_wint_t, not wint_t.
75843         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75844         substitute HAVE_WINT_T.
75845         * modules/wctype (Files): Add m4/wint_t.m4.
75846         (wctype.h): Substitute HAVE_WINT_T.
75847
75848 2006-12-23  Bruno Haible  <bruno@clisp.org>
75849
75850         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75851
75852 2006-12-23  Bruno Haible  <bruno@clisp.org>
75853
75854         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75855         S_ISLNK.
75856         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75857         mingw.
75858
75859 2006-12-22  Bruno Haible  <bruno@clisp.org>
75860
75861         * lib/copy-file.c: Include acl.h.
75862         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75863         Close the file descriptors only after being done with copy_acl.
75864         * modules/copy-file (Depends-on): Add acl.
75865
75866 2006-12-22  Bruno Haible  <bruno@clisp.org>
75867
75868         * gnulib-tool (SED): New variable.
75869         Use $SED instead of sed everywhere.
75870
75871 2006-12-22  Bruno Haible  <bruno@clisp.org>
75872
75873         * modules/no-c++: New file.
75874         * m4/no-c++.m4: New file.
75875         * MODULES.html.sh (Support for building libraries and executables):
75876         Add no-c++.
75877
75878 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75881         Include <limits.h>, and use its INT_MAX to rewrite the
75882         j loop so that it does not overflow 'int'.  Problem reported by
75883         Ralf Wildenhues in
75884         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75885         Play it safe by shifting left by 1 rather than multiplying by 2,
75886         as GCC is less likely to optimize this away when the value
75887         is signed (when it assumes overflow leads to undefined behavior).
75888         Also, don't assume time_t uses two's complement.
75889
75890 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * MODULES.html.sh: New module wctype.
75893         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75894         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75895         <wctype.h>, since the new wctype module should fix this.
75896         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75897         the wctype module should arrange for it.
75898         * lib/regex_internal.h: Likewise.
75899         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75900         since the wctype module should handle this now.
75901         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75902         * modules/fnmatch (Depends-on): Add wctype.
75903         * modules/quotearg (Depends-on): Likewise.
75904         * modules/regex (Depends-on): Likewise.
75905
75906 2006-12-19  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75909         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75910
75911 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75912
75913         * modules/savewd (Depends-on): Fix dependency on fcntl.
75914
75915 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75918         conforms to C99, rather than relying on the user's environment
75919         setting of STDINT_H.
75920
75921 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75922         and Eric Blake  <ebb9@byu.net>
75923
75924         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75925         This is more consistent with the other defines here.
75926         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75927         Port to z/OS.  Problem reported by Paul Gilmartin.
75928         Change local vars to use gl_ prefix rather than ac_.
75929         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75930         with other defines.
75931         * modules/double-slash-root: New module.
75932         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75933         (Depends-on): Add double-slash-root.
75934         * MODULES.html.sh (File system functions): Mention new module.
75935
75936 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75939         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75940         This is for the benefit of gzip, which doesn't do i18n.
75941
75942 2006-12-12  Jim Meyering  <jim@meyering.net>
75943
75944         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75945         Reported by Andreas Schwab <schwab@suse.de>.
75946
75947 2006-12-12  Bruno Haible  <bruno@clisp.org>
75948
75949         Merge these changes.
75950         2006-09-05  Bruno Haible  <bruno@clisp.org>
75951         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75952         iconv_alloc succeeded.
75953         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75954         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75955         test for " && dest " at the end - dest is always != NULL there. Call
75956         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75957         with 2xNULL arguments, also to flush the state storage. Handle the
75958         IRIX iconv behaviour. Realloc the final result, to throw away unused
75959         memory.
75960
75961 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75964         and fchmodat unconditionally, since glibc 2.4 has them.
75965         Problem reported by Arkadiusz Miskiewicz.
75966
75967 2006-12-10  Bruno Haible  <bruno@clisp.org>
75968
75969         * gnulib-tool (func_import): Show the include files only for those
75970         modules that are copied and specified.
75971         Reported by Karl Berry.
75972
75973 2006-12-08  Jim Meyering  <jim@meyering.net>
75974
75975         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75976         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75977
75978         * build-aux/announce-gen: Add two new options, both optional:
75979         --bootstrap-tools=TOOL_LIST
75980               a comma-separated list of tools, e.g.,
75981               autoconf,automake,bison,gnulib
75982         --gnulib-snapshot-date=DATE
75983               if gnulib is in the bootstrap tool list,
75984               then report this as the snapshot date.
75985               If not specified, use the current date/time.
75986               If you specify a date here, be sure it's UTC.
75987
75988 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75989
75990         * tests/test-argp-2.sh: Fix test to match actual output.
75991         (func_compare): Fix sed script to be portable.
75992
75993 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75994
75995         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75996         workaround for this case.  It is not autoconfigured now; offhand
75997         it's hard to see how to autoconfigure it.
75998
75999 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76002         a directory that is about to be chowned.  Such a directory's
76003         initial file permissions should permit the owner only and this
76004         should not be changed until after the chown, since the group and
76005         other bits would be incorrect if they granted permission before
76006         the chown.
76007
76008         Fix porting problem for iswctype reported by Georg Schwarz in:
76009         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76010         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76011         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76013         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76014
76015 2006-12-03  Jim Meyering  <jim@meyering.net>
76016
76017         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76018         p->fts_statp may not yet be defined.
76019         (fts_read): Instead, set it in the caller, once p->fts_statp is
76020         sure to be defined, and corresponds to a top-level directory.
76021         This bug made du -x fail.  Here's the coreutils test case:
76022         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76023         Reported by Mike Frysinger.
76024
76025 2006-12-01  Jim Meyering  <jim@meyering.net>
76026
76027         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76028         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76029         Reported by Simon Josefsson.
76030
76031 2006-11-30  Jim Meyering  <jim@meyering.net>
76032
76033         * m4/warning.m4: Use the all-permissive copyright notice
76034         recommended by RMS (rather than LGPL).
76035         * m4/vararrays.m4: Likewise.
76036         * m4/flexmember.m4: Likewise.
76037
76038 2006-11-29  Bruno Haible  <bruno@clisp.org>
76039
76040         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76041         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76042         using +=.
76043         Reported by Simon Josefsson <simon@josefsson.org>.
76044
76045 2006-11-28  James Youngman <jay@gnu.org>
76046
76047         * README: Advise users that they might find the bug-gnulib@gnu.org
76048         and autotools-announce@gnu.org mailing lists useful.
76049
76050 2006-11-28  Bruno Haible  <bruno@clisp.org>
76051
76052         * m4/ptrdiff_max.m4: Remove file.
76053
76054 2006-11-21  Bruno Haible  <bruno@clisp.org>
76055
76056         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76057         _AC_COMPUTE_INT.
76058         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76059         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76060         _AC_COMPUTE_INT.
76061         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76062         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
76063         _AC_COMPUTE_INT.
76064         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76065
76066 2006-11-28  Jim Meyering  <jim@meyering.net>
76067
76068         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
76069         warning from "gcc -Wshadow" about shadowing the builtin.
76070
76071 2006-11-27  Bruno Haible  <bruno@clisp.org>
76072
76073         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
76074         _AC_COMPUTE_INT.
76075         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76076
76077 2006-11-27  Bruno Haible  <bruno@clisp.org>
76078             Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
76081
76082 2006-11-26  Bruno Haible  <bruno@clisp.org>
76083
76084         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76085         noinst_LTLIBRARIES.
76086
76087 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76088             Bruno Haible  <bruno@clisp.org>
76089
76090         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
76091         if compiling with "gcc -ansi".
76092
76093 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         Fix some incompatibilities with gcc -ansi -pedantic.
76096         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
76097         if compiling pedantically with GCC, unless it's C99 or later.
76098         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
76099         it mishandles gcc -ansi -pedantic as well.
76100         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
76101         if gcc -pedantic.
76102         * lib/regexec.c (check_node_accept_bytes): Don't use auto
76103         initializers for struct if -pedantic, unless it's C99 or later.
76104
76105 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
76106
76107         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
76108         Don't close an fd more than once. Identical atimes indicate
76109         success, not failure.
76110
76111 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
76112
76113         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
76114
76115 2006-11-23  Jim Meyering  <jim@meyering.net>
76116
76117         * build-aux/announce-gen: New file.  From coreutils.
76118
76119 2006-11-22  Jim Meyering  <jim@meyering.net>
76120
76121         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
76122         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
76123         (fts_read): Use a temporary to narrow the overused st_size member
76124         before using it in a switch statement.  Reported by Matthew Woehlke.
76125
76126         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
76127         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
76128
76129 2006-11-20  Bruno Haible  <bruno@clisp.org>
76130
76131         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
76132         changequote instead of pairs of brackets.
76133         Reported by Andreas Schwab <schwab@suse.de>.
76134
76135 2006-11-21  Jim Meyering  <jim@meyering.net>
76136
76137         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
76138         so as to remain compatible with older compilers.
76139         Patch from Michael Deutschmann.
76140
76141 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * MODULES.html.sh (File system functions): Add openat.
76144
76145         * lib/openat.h (rpl_fstatat): New macro, if
76146         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
76147         (fstatat): Define to rpl_fstatat under the same conditions,
76148         unless COMPILING_FSTATAT.
76149         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
76150         seems to have the bug.
76151         * lib/fstatat.c: New file.
76152         * modules/openat (Files): Add it.
76153
76154 2006-11-20  Bruno Haible  <bruno@clisp.org>
76155
76156         * Makefile: New file.
76157
76158 2006-11-20  Jim Meyering  <jim@meyering.net>
76159
76160         The beginnings of syntax-related checks for gnulib.
76161         * lib/Makefile: New file.
76162         * lib/t-idcache: New script.  Ensure that the two halves of
76163         idcache.c stay in sync.
76164
76165         * lib/idcache.c: Adjust comments in user- and group- portions to
76166         be more accurate, and to be consistent with one another.
76167
76168 2006-11-20  Jim Meyering  <jim@meyering.net>
76169
76170         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
76171         continue using the flexible array member (thus, this module performs
76172         half as many malloc calls), with the addition that...
76173         (getgroup, getuser): Consistently record a non-match via an empty
76174         "name" string, and map an empty string match to a NULL return value.
76175         * modules/idcache (Depends-on): Re-add flexmember.
76176
76177         * lib/idcache.c (getuser): Remove all uses of the register keyword.
76178         (getuidbyname, getgroup, getgidbyname): Likewise.
76179
76180         Use cleaner syntax: NULL rather than 0.
76181         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
76182
76183 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
76186         It mishandled the case where the group was missing.
76187         Problem reported by Greg Schafer.
76188         * modules/idcache: Likewise.
76189
76190 2006-11-18  Jim Meyering  <jim@meyering.net>
76191
76192         * check-module (%exempt_header): Add exception for some
76193         conditionally-included headers.
76194
76195         * modules/i-ring (Depends-on): Add verify.
76196         (License): Change to LGPL.
76197
76198 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
76199
76200         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
76201         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
76202         and inttostr.h.  Use snprintf rather than uinttostr, so that
76203         LGPLed code doesn't depend on GPLed.
76204
76205 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * modules/inline (License): Change from GPL to LGPL.
76208
76209 2006-11-17  Jim Meyering  <jim@meyering.net>
76210
76211         * modules/d-type (License): Switch to LGPL.
76212
76213 2006-11-15  Bruno Haible  <bruno@clisp.org>
76214
76215         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
76216
76217 2006-11-15  Eric Blake  <ebb9@byu.net>
76218
76219         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
76220         the module dependency.
76221
76222 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76223             Bruno Haible  <bruno@clisp.org>
76224
76225         * gnulib-tool (func_create_testdir): Add license consistency check.
76226
76227 2006-11-15  Eric Blake  <ebb9@byu.net>
76228
76229         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
76230         random "(cached)" in configure output.
76231
76232 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76233
76234         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
76235         test for conforming inttypes.h is both announced and cached.
76236
76237         * MODULES.html.sh (seen_modules, seen_files): New variables.
76238         (func_module): Rewrite to use a few less gnulib-tool and sed
76239         invocations.  Avoid a couple of quadratic algorithms for ...
76240         (missed_modules, missed_files): ... these, with ...
76241         (func_append, func_tmpdir): ... these new functions, from
76242         gnulib-tool.  Analogously, install traps for cleanup.
76243
76244         * tests/test-gc.c (main): Remove unused variables.
76245         * tests/test-read-file.c: Include stdlib.h, for 'free'.
76246
76247 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * modules/inttostr (License): Change to LGPL.
76250
76251 2006-11-14  Eric Blake  <ebb9@byu.net>
76252
76253         * modules/tempname (License): Change to LGPL.
76254
76255 2006-11-14  Eric Blake  <ebb9@byu.net>
76256
76257         * doc/functions.texi (Function Portability): *printf functions on
76258         Cygwin now understand all POSIX size specifiers.
76259
76260 2006-11-14  Bruno Haible  <bruno@clisp.org>
76261
76262         * modules/c-ctype (License): Change to LGPL.
76263
76264 2006-11-12  Bruno Haible  <bruno@clisp.org>
76265
76266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
76267         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
76268         for GNOME libraries, for which the include files are installed in
76269         subdirectories of $prefix/include.
76270
76271 2006-11-12  Bruno Haible  <bruno@clisp.org>
76272
76273         * m4/lib-link.m4: Require at least autoconf-2.54.
76274         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
76275         name to underscores for the --with option.
76276
76277 2006-11-13  Bruno Haible  <bruno@clisp.org>
76278
76279         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
76280         the tests directory.
76281         Reported by Ralf Wildenhues.
76282
76283 2006-11-13  Bruno Haible  <bruno@clisp.org>
76284
76285         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
76286         (func_emit_initmacro_end): Undo the override here.
76287         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
76288         Works around the famous automake error in coreutils.
76289
76290 2006-11-13  Eric Blake  <ebb9@byu.net>
76291
76292         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
76293         element, not its node.
76294
76295 2006-11-12  Bruno Haible  <bruno@clisp.org>
76296
76297         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
76298         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
76299
76300 2006-11-12  Bruno Haible  <bruno@clisp.org>
76301
76302         * gnulib-tool: New option --local-symlink.
76303         (func_usage): Document it.
76304         (lsymbolic): New variable.
76305         (func_import, func_create_testdir): If --symlink was not specified,
76306         test whether --local-symlink was specified and the file comes from
76307         the local_gnulib_dir.
76308
76309 2006-11-12  Bruno Haible  <bruno@clisp.org>
76310
76311         * gnulib-tool (func_ln): New function.
76312         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
76313
76314 2006-11-12  Bruno Haible  <bruno@clisp.org>
76315
76316         Finish support for source files in subdirectories.
76317         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
76318         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
76319         AUTOMAKE_OPTIONS.
76320         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
76321
76322 2006-11-12  Bruno Haible  <bruno@clisp.org>
76323
76324         * gnulib-tool (func_get_automake_snippet): Synthesize also an
76325         EXTRA_lib_SOURCES augmentation.
76326         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
76327
76328 2006-11-12  Jim Meyering  <jim@meyering.net>
76329
76330         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
76331         file descriptors.  This also averts a failure on systems with
76332         native openat support when a traversed directory lacks "x" access.
76333         * lib/fts_.h: Include "i-ring.h"
76334         (struct FTS) [fts_fd_ring]: New member.
76335         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
76336         (FCHDIR): Add parentheses.
76337         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
76338         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
76339         When descending, rather than simply closing the previous
76340         fts_cwd_fd value, push that file descriptor onto the ring.
76341         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
76342         (fts_open): Initialize the new fd_ring member.
76343         (fts_close): Clear the ring.
76344         (fts_safe_changedir): When possible, use our new fd_ring to skip
76345         the diropen and fstat and dev/ino comparison that would normally
76346         accompany a virtual `chdir ("..")'.
76347
76348         * modules/fts (Depends-on): Add i-ring.
76349         * modules/i-ring: New module.
76350         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
76351         * m4/i-ring.m4: New file.
76352
76353 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76354
76355         * gnulib-tool (func_create_testdir): Fix replacement of
76356         `build-aux' in configure.ac.  Run autotools in gltests
76357         subdirectory.
76358         (func_create_testdir, func_create_megatestdir, test): There is
76359         no need for '--force' in most autotool invocations in a new
76360         tree.  Actually fail the whole test if any of the tools, or the
76361         configure or make stages fail.
76362
76363         Sync from Automake.
76364         * build-aux/gnupload: Revert last change.  Add pointer to upload
76365         instructions of the GNU Maintenance Instructions.
76366         Suggestion by Karl Berry.
76367
76368 2006-11-10  Jim Meyering  <jim@meyering.net>
76369
76370         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
76371
76372 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76373
76374         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
76375         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
76376         (bind_textdomain_codeset) [! ENABLE_NLS]:
76377         Evaluate all the arguments.  That way, callers get compatible behavior
76378         if the arguments have side effects.  Also, it avoids some GCC
76379         diagnostics in some cases; Joel E. Denny reported problems when Bison
76380         was configured with --enable-gcc-warnigs.
76381
76382 2006-11-10  Jim Meyering  <jim@meyering.net>
76383
76384         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
76385         relevant options in CFLAGS (like -O, -fno-inline) are taken into
76386         account.
76387
76388 2006-11-10  Jim Meyering  <jim@meyering.net>
76389
76390         * modules/inline: New file/module.
76391         * modules/xalloc (Files): Remove m4/inline.m4.
76392         (Depends-on): Add inline, instead.
76393         * modules/oset: Likewise.
76394         * modules/list: Likewise.
76395
76396 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
76399         Problem reported by Matthew Woehlke.
76400
76401 2006-11-09  Bruno Haible  <bruno@clisp.org>
76402
76403         * lib/tempname.c (gen_tempname): Remove variant that invokes
76404         __gen_tempname.
76405         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
76406         __gen_tempname.
76407
76408 2006-11-08  Bruno Haible  <bruno@clisp.org>
76409
76410         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
76411         to 'yes' instead of 'cross-compiling'.
76412
76413 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
76414
76415         * lib/quotearg.h (quotearg_free): New decl.
76416         * lib/quotearg.c (quotearg_free): New function.
76417         (slot0, nslots, slotvec0, slotvec):
76418         Now file-scope so that quotearg_free can get at them.
76419
76420 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76421
76422         Sync from Automake.
76423         * build-aux/gnupload: Add missing 'gnu' to example URL.
76424         Report by Karl Berry.
76425
76426 2006-11-08  Bruno Haible  <bruno@clisp.org>
76427
76428         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
76429         Suggested by Paul Eggert.
76430
76431 2006-11-08  Jim Meyering  <jim@meyering.net>
76432
76433         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
76434         It's already included if !_LIBC.
76435         (fts_safe_changedir): Add a comment.
76436
76437 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76438
76439         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
76440         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
76441         Matthew Woehlke.
76442
76443         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
76444         definitions up, to avoid colliding with change below.
76445         (static_inline) [HAVE_INLINE]: New macro.
76446         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
76447         Provide extern decls when !HAVE_INLINE.  Do not define unless
76448         static_inline is defined, either by us or by xmalloc.c.  Use
76449         static_inline rather than static inline.
76450         (XCALLOC): Optimize sizeof(T) = 1 case.
76451         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
76452
76453 2006-11-07  Bruno Haible  <bruno@clisp.org>
76454
76455         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
76456         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
76457         AC_C_INLINE.
76458         * modules/xalloc (Files): Add m4/inline.m4.
76459
76460 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76461
76462         * README: Fix typo.
76463         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
76464         (Miscellanous Notes): ...from this.
76465
76466 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
76467
76468         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
76469         Mention that offsetof should be used instead of sizeof.
76470         From Bruno Haible.
76471
76472 2006-11-07  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
76475
76476 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76479         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
76480         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76481         (gl_tree_add_before, gl_tree_add_after):
76482         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
76483         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
76484         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
76485         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
76486         (gl_linked_add_after, gl_linked_add_at): Likewise.
76487         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
76488         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
76489         (gl_tree_add_before, gl_tree_add_after): Likewise.
76490         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
76491         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
76492         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
76493
76494 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76495
76496         * lib/gl_oset.h: Use C comment style, not C++ comment style.
76497
76498 2006-11-06  Bruno Haible  <bruno@clisp.org>
76499
76500         * m4/inline.m4: New file.
76501         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
76502         * modules/list (Files): Add m4/inline.m4.
76503         * modules/oset (Files): Likewise.
76504
76505 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
76506
76507         * lib/idcache.c: Include <stddef.h>, for offsetof.
76508         (struct userid.name): Change from char * to a flexible array member.
76509         All uses changed.
76510         * modules/idcache (Depends-on): Add flexmember.
76511
76512         * MODULES.html.sh (Core language properties): New module flexmember.
76513         * modules/flexmember, m4/flexmember.m4: New files.
76514
76515         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
76516         inline functions that are identical with the old xnmalloc_inline,
76517         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
76518         that we can avoid some unnecessary integer multiplications and
76519         divisions in the common case where the element size is known at
76520         compile time.
76521         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
76522         needed.
76523         (xnboundedmalloc): Remove.
76524         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
76525         arguments, for consistency with rest of this header.
76526         (xcharalloc): Rewrite using XNMALLOC.
76527         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
76528         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
76529         versions have been moved to lib/xalloc.h and renamed to be the
76530         non-*_inline versions.
76531         (xmalloc, xrealloc): Implement without reference to the xnmalloc
76532         and xnrealloc functions, since those functions are now inline and
76533         now call us.
76534         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
76535         renaming described above.
76536         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
76537         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
76538         captures the dependency in AC_C_INLINE.
76539
76540         New module canonicalize-lgpl, proposed by Charles Wilson in
76541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
76542         with a few small changes afterwards.
76543         * MODULES.html.sh (File system functions): New module
76544         canonicalize-lgpl.
76545         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
76546         and canonicalize_file_name.
76547         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
76548         * modules/canonicalize-lgpl: New files.
76549
76550 2006-11-05  Bruno Haible  <bruno@clisp.org>
76551
76552         * gnulib-tool (func_import, func_create_testdir): Create directories
76553         also for files in subdirectories of lib/.
76554
76555 2006-11-05  Bruno Haible  <bruno@clisp.org>
76556
76557         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
76558         ANSI C compliant.
76559
76560 2006-11-03  Bruno Haible  <bruno@clisp.org>
76561
76562         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
76563         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
76564         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
76565         (xnboundedmalloc): New inline function.
76566         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
76567         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
76568         xmalloc.
76569         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
76570         xmalloc.
76571         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
76572         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
76573         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
76574         xmalloc.
76575         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76576         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
76577         xmalloc.
76578         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
76579         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76580         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
76581         xmalloc.
76582         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
76583         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
76584         gl_tree_add_after): Use XMALLOC instead of xmalloc.
76585         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
76586         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
76587         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
76588         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
76589
76590 2006-11-03  Bruno Haible  <bruno@clisp.org>
76591
76592         * lib/c-ctype.h [C++]: Define functions without name mangling.
76593         * lib/fwriteerror.h [C++]: Likewise.
76594         * lib/gcd.h [C++]: Likewise.
76595         * lib/linebreak.h [C++]: Likewise.
76596
76597 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
76598
76599         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
76600         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
76601         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
76602         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76603         Check for functions and headers just once.
76604         Check for declaration of canonicalize_file_name.
76605         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
76606
76607 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76608
76609         * gnulib-tool (func_import): Fix typo in actioncmd.
76610
76611 2006-11-02  Bruno Haible  <bruno@clisp.org>
76612
76613         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
76614         newline sequence in the Makefile.am snippet as a space, like "make"
76615         does.
76616         Reported by Roger Persson <perrog@gmail.com>.
76617
76618 2006-11-01  Bruno Haible  <bruno@clisp.org>
76619
76620         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
76621         already declared in <string.h>.
76622         * lib/strcase.h (strncasecmp): Don't declare it if yes.
76623
76624 2006-11-01  Bruno Haible  <bruno@clisp.org>
76625
76626         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
76627         * lib/strcase.h: Include <string.h>.
76628         (strcasecmp): Define to rpl_strcasecmp here.
76629
76630 2006-11-01  Bruno Haible  <bruno@clisp.org>
76631
76632         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
76633
76634 2006-11-01  Eric Blake  <ebb9@byu.net>
76635
76636         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
76637
76638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
76639
76640 2006-10-29  Bruno Haible  <bruno@clisp.org>
76641
76642         Make it compile in C++ mode.
76643         * lib/full-write.c (full_rw): Add a cast.
76644
76645 2006-11-01  Bruno Haible  <bruno@clisp.org>
76646
76647         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
76648         be POSIX compliant.
76649         Reported by Roger Persson <perrog@gmail.com>.
76650
76651 2006-11-01  Eric Blake  <ebb9@byu.net>
76652
76653         * lib/getopt_.h: Fix comments.
76654
76655 2006-10-31  Eric Blake  <ebb9@byu.net>
76656
76657         * modules/tmpdir (Depends-on): Add sys_stat.
76658         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
76659         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
76660         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
76661         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
76662         tempname.
76663
76664 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         Avoid some C++ diagnostics reported by Bruno Haible.
76667         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
76668         xmalloc.
76669         (quotearg_alloc): Use xcharalloc rather than xmalloc.
76670         (struct slotvec): Move to top level.
76671         (quotearg_n_options): Rewrite to avoid xmalloc.
76672         * lib/xalloc.h (xcharalloc): New function.
76673         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
76674         [defined __cplusplus]: Add function template that provides result
76675         type propagation.  This part of the change is from Bruno Haible.
76676
76677 2006-10-29  Bruno Haible  <bruno@clisp.org>
76678
76679         Make it compile in C++ mode.
76680         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
76681         * lib/strnlen1.c (strnlen1): Cast memchr result.
76682         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
76683         * lib/clean-temp.c (string_equals, string_hash): Add casts.
76684         (create_temp_dir): Rename local variable 'template'.
76685         (compile_csharp_using_sscli): Add cast.
76686         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
76687         * lib/findprog.c (find_in_path): Likewise.
76688         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
76689         * lib/wait-process.c (register_slave_subprocess): Likewise.
76690
76691 2006-10-22  Bruno Haible  <bruno@clisp.org>
76692
76693         * modules/tsearch: New file.
76694         * lib/tsearch.h: New file.
76695         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
76696         * m4/tsearch.m4: New file.
76697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
76698
76699 2006-10-29  Eric Blake  <ebb9@byu.net>
76700
76701         * lib/arcfour.c: Assume config.h.
76702         * lib/arctwo.c: Likewise.
76703         * lib/base64.c: Likewise.
76704         * lib/check-version.c: Likewise.
76705         * lib/crc.c: Likewise.
76706         * lib/des.c: Likewise.
76707         * lib/gc-gnulib.c: Likewise.
76708         * lib/gc-libgcrypt.c: Likewise.
76709         * lib/gc-pbkdf2-sha1.c: Likewise.
76710         * lib/getaddrinfo.c: Likewise.
76711         * lib/getdelim.c: Likewise.
76712         * lib/getline.c: Likewise.
76713         * lib/hmac-md5.c: Likewise.
76714         * lib/hmac-sha1.c: Likewise.
76715         * lib/iconvme.c: Likewise.
76716         * lib/md2.c: Likewise.
76717         * lib/md4.c: Likewise.
76718         * lib/memxor.c: Likewise.
76719         * lib/read-file.c: Likewise.
76720         * lib/readline.c: Likewise.
76721         * lib/rijndael-alg-fst.c: Likewise.
76722         * lib/rijndael-api-fst.c: Likewise.
76723         * lib/xgetdomainname.c: Likewise.
76724
76725 2006-10-28  Eric Blake  <ebb9@byu.net>
76726
76727         * lib/xstrndup.c: Assume config.h.
76728
76729 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
76732         stat-macros.h is now for our own macros, whereas stat_h is for
76733         macros in the <sys/stat.h> name space.
76734         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
76735         (STAT_MACROS_H): Remove.
76736         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
76737         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
76738         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
76739         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
76740         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
76741         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
76742         Move these macros to ...
76743         * lib/stat_.h: here.  Don't include stat-macros.h.
76744         * lib/canonicalize.c: Don't include stat-macros.h.
76745         * lib/chown.c: Likewise.
76746         * lib/euidaccess.c: Likewise.
76747         * lib/file-type.c: Likewise.
76748         * lib/filemode.c: Likewise.
76749         * lib/glob.c: Likewise.
76750         * lib/isapipe.c: Likewise.
76751         * lib/lchown.c: Likewise.
76752         * lib/lstat.c: Likewise.
76753         * lib/mkdir-p.c: Likewise.
76754         * lib/rmdir.c: Likewise.
76755         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
76756         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
76757         unless mkdir isn't declared, to speed up 'configure'.
76758         Always create sys/stat.h, since it's unlikely any real sys/stat.h
76759         would define all the S_* symbols.
76760         * modules/canonicalize (Depends-on):
76761         Depend on sys_stat, not stat-macros.
76762         * modules/chown: Likewise.
76763         * modules/euidaccess: Likewise.
76764         * modules/filemode: Likewise.
76765         * modules/file-type: Likewise.
76766         * modules/glob: Likewise.
76767         * modules/isapipe: Likewise.
76768         * modules/lchown: Likewise.
76769         * modules/lstat: Likewise.
76770         * modules/mkancesdirs: Likewise.
76771         * modules/rmdir: Likewise.
76772         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
76773         * modules/modechange: Likewise.
76774         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
76775         (configure.ac): Remove gl_STAT_MACROS.
76776         * modules/sys_stat (Depends-on): Remove stat-macros.
76777
76778 2006-10-27  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/signed.m4: Remove file.
76781         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
76782         invocation.
76783         * modules/vasnprintf (Files): Remove m4/signed.m4.
76784
76785 2006-10-27  Bruno Haible  <bruno@clisp.org>
76786
76787         Update to GNU gettext 0.16.
76788         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
76789         m4/inttypes-h.m4, m4/signed.m4.
76790         * m4/gettext.m4: Update to GNU gettext 0.16.
76791         * m4/intl.m4: New file, from GNU gettext.
76792         * m4/intldir.m4: New file, from GNU gettext.
76793         * config/srclist.txt: Update
76794
76795 2006-10-27  Eric Blake  <ebb9@byu.net>
76796
76797         * MODULES.html.sh: Document tempname.
76798         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
76799         dependencies.
76800         (Files): Move lib/tempname.c...
76801         * modules/tempname: ...to this new module.
76802         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
76803         (gl_PREREQ_TEMPNAME): Move...
76804         * m4/tempname.m4: ...to this new file.
76805         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
76806         * modules/sys_stat (Depends-on): Add stat-macros.
76807         * lib/stat_.h (includes): Pick up stat macros.
76808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
76809         if stat macros are broken.
76810         * lib/tempname.c (includes): No need to include "stat-macros.h".
76811         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
76812         (direxists, __path_search) [!_LIBC]: Don't compile these in
76813         gnulib; the tmpdir module covers that.
76814         * lib/tempname.h: New file.
76815
76816 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * COPYING: Explain how gnulib-tool converts licence headers.
76819         Almost all wording by Eric Blake.
76820
76821 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         * lib/mbchar.h (is_basic_table): Make read-only.
76824         * lib/mbchar.c (is_basic_table): Likewise.
76825         Reported by John Darrington.
76826
76827 2006-10-25  Bruno Haible  <bruno@clisp.org>
76828
76829         * lib/progname.h (set_program_name): Undefine before defining.
76830
76831 2006-10-25  Bruno Haible  <bruno@clisp.org>
76832
76833         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76834         false for non-gcc C++ compilers.
76835         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76836
76837 2006-10-24  Bruno Haible  <bruno@clisp.org>
76838
76839         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76840         iconv implementations like Irix iconv.
76841
76842 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76843
76844         * modules/vararrays: New file.
76845         * m4/vararrays.m4: New file, taken from diffutils.
76846         * MODULES.html.sh: New module vararrays.
76847
76848 2006-10-24  Karl Berry  <karl@gnu.org>
76849
76850         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76851         Don't call GNU Unix.
76852
76853 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76854
76855         * users.txt: Add Libtool.
76856
76857         Sync from Libtool:
76858
76859         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76862         to gnulib's policy of including config.h unconditionally.
76863
76864 2006-10-24  Bruno Haible  <bruno@clisp.org>
76865
76866         * modules/wcwidth (Files): Add m4/wint_t.m4.
76867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76868         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76869
76870 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76871
76872         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76873         to pacify GCC with some -W flags enabled.  Problem reported by
76874         Bruno Haible.
76875
76876 2006-10-24  Jim Meyering  <jim@meyering.net>
76877
76878         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76879         Reported by Karl Berry.
76880
76881 2006-10-23  Bruno Haible  <bruno@clisp.org>
76882
76883         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76884
76885 2006-10-24  Bruno Haible  <bruno@clisp.org>
76886
76887         * lib/gl_list.h: Use C comment style, not C++ comment style.
76888
76889 2006-10-23  Eric Blake  <ebb9@byu.net>
76890
76891         * lib/getaddrinfo.c (includes): Add missing include.
76892
76893 2006-10-23  Bruno Haible  <bruno@clisp.org>
76894             Paul Eggert  <eggert@cs.ucla.edu>
76895
76896         Ability to rename obstack_free.
76897         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76898         obstack_free.
76899         (obstack_free): Invoke the __obstack_free macro.
76900         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76901
76902 2006-10-23  Bruno Haible  <bruno@clisp.org>
76903             Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76906         __argc, __argv from the declaration. (They are defined as macros on
76907         mingw.)
76908
76909 2006-10-22  Bruno Haible  <bruno@clisp.org>
76910
76911         * doc/gnulib-intro.texi: New file.
76912         * doc/gnulib.texi: Include it.
76913
76914 2006-10-21  Bruno Haible  <bruno@clisp.org>
76915
76916         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76917         "Introduction", "Miscellanous Notes", "Particular Modules".
76918
76919 2006-10-21  Bruno Haible  <bruno@clisp.org>
76920
76921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76922         Change mostlyclean-local rule to avoid sh syntax error from bash
76923         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76924
76925 2006-10-23  Jim Meyering  <jim@meyering.net>
76926
76927         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76928         in place of snprintf.
76929
76930         * modules/inttostr (Files): Add lib/uinttostr.c.
76931         * lib/uinttostr.c (inttostr): New file/function.
76932         * lib/inttostr.h (uinttostr): Declare.
76933         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76934         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76935         Add uinttostr.
76936         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76937
76938 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/canonicalize.c (ELOOP): Define if not already defined.
76941         Problem reported by Bruno Haible in
76942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76943
76944 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76947         Problem reported by Perry Smith and Ville Laurikari.
76948
76949         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76950         uses.
76951
76952 2006-10-19  Bruno Haible  <bruno@clisp.org>
76953
76954         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76955         for mingw.
76956
76957 2006-10-19  Bruno Haible  <bruno@clisp.org>
76958
76959         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76960         Needed for mingw.
76961
76962 2006-10-19  Bruno Haible  <bruno@clisp.org>
76963
76964         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76965
76966 2006-10-19  Bruno Haible  <bruno@clisp.org>
76967
76968         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76969         it.
76970
76971 2006-10-19  Bruno Haible  <bruno@clisp.org>
76972
76973         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76974         invocation.
76975
76976 2006-10-19  Bruno Haible  <bruno@clisp.org>
76977
76978         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76979         mountlist by default.
76980
76981 2006-10-16  Bruno Haible  <bruno@clisp.org>
76982
76983         * lib/c-strstr.c: Include c-strstr.h.
76984
76985 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76986
76987         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76988         in a slash.
76989
76990 2006-10-18  Bruno Haible  <bruno@clisp.org>
76991
76992         * lib/lock.h [C++]: Wrap definitions in extern "C".
76993
76994 2006-10-18  Bruno Haible  <bruno@clisp.org>
76995
76996         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76997         gl_LIBOBJS list.
76998
76999 2006-10-18  Bruno Haible  <bruno@clisp.org>
77000
77001         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77002
77003 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         * lib/xstrtol.h: Include gettext.h.
77006         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77007         Problem reported by Eric Blake.
77008         * modules/xstrtol (Depends-on): Add gettext-h.
77009
77010 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77011
77012         * lib/strftime.c (advance): New macro.
77013         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77014         incomplete type, so you can't add 0 to it.  Problem and patch
77015         reported by Eelco Dolstra for dietlibc.
77016
77017 2006-10-18  Jim Meyering  <jim@meyering.net>
77018
77019         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77020         type for a local, and rename it: s/up/user_proc/.
77021
77022 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77023
77024         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77025         READ_UTMP_USER_PROCESS.
77026         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77027
77028 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77029
77030         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77031         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77032
77033 2006-10-17  Eric Blake  <ebb9@byu.net>
77034
77035         * lib/sigprocmask.c (sigprocmask): Fix typo.
77036
77037         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77038
77039         * modules/clean-temp (Makefile.am): Don't add to make output...
77040         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77041         config.h.
77042
77043 2006-10-17  Bruno Haible  <bruno@clisp.org>
77044
77045         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77046         differently if DEFAULT_TEXT_DOMAIN is set.
77047
77048 2006-10-16  Bruno Haible  <bruno@clisp.org>
77049
77050         * lib/clean-temp.c: Include fwriteerror.h.
77051
77052 2006-10-16  Bruno Haible  <bruno@clisp.org>
77053
77054         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77055
77056 2006-10-16  Bruno Haible  <bruno@clisp.org>
77057
77058         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77059         * lib/sigprocmask.h: Include <sys/types.h>.
77060         (sigset_t): Use the system's definition if present.
77061
77062 2006-10-17  Eric Blake  <ebb9@byu.net>
77063
77064         * lib/xvasprintf.c (includes): Assume config.h.
77065         * lib/xasprintf.c (includes): Likewise.
77066
77067 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
77070         at least as wide as intmax_t.
77071
77072 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
77073
77074         (Imported from Automake.)
77075         * build-aux/gnupload: Update to version 1.1 of directive file.
77076
77077 2006-10-16  Eric Blake  <ebb9@byu.net>
77078
77079         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
77080         match Automake 1.10a.
77081
77082 2006-10-14  Bruno Haible  <bruno@clisp.org>
77083
77084         * modules/sigprocmask: New file.
77085         * lib/sigprocmask.h: New file.
77086         * lib/sigprocmask.c: New file.
77087         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
77088         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
77089         request sigprocmask.o.
77090         (gl_PREREQ_SIGPROCMASK): New macro.
77091         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
77092         (Depends-on): Add sigprocmask.
77093         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
77094         gt_SIGNALBLOCKING. Test for 'raise' only once.
77095         * lib/fatal-signal.c: Include sigprocmask.h.
77096         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
77097         unblock_fatal_signals): Define always.
77098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77099         sigprocmask.
77100
77101 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         Sync from Automake.
77104         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
77105         which incorrectly sets the mode of an existing destination
77106         directory.  In some cases the unpatched install-sh could do the
77107         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
77108         system.  We hope this is rare in practice, but it's clearly worth
77109         fixing.  Problem reported by Alex Unleashed in
77110         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
77111         Also, don't bother to check for -m bugs unless we're using -m;
77112         suggested by Stepan Kasal.
77113
77114 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77115
77116         Sync from Automake.
77117         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
77118         `-c' flag, so they appear at the same position as in %FASTDEP%
77119         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
77120         which ignores unknown options only after the first non-option.
77121         Bug report against M4 by Nelson H. F. Beebe.
77122
77123 2006-10-13  Jim Meyering  <jim@meyering.net>
77124
77125         Fix a bug in yesterday's change.
77126         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
77127         p->fts_statp->st_dev would be used uninitialized.
77128         Ensures that we always call fts_stat on the very first entry.
77129         Miklos Szeredi reported that find -xdev stopped working.
77130
77131 2006-10-12  Bruno Haible  <bruno@clisp.org>
77132
77133         * gnulib-tool (func_get_automake_snippet): Append an automatically
77134         computed EXTRA_DIST augmentation.
77135         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
77136         * modules/alloca-opt (Makefile.am): Likewise.
77137         * modules/allocsa (Makefile.am): Likewise.
77138         * modules/arcfour (Makefile.am): Likewise.
77139         * modules/arctwo (Makefile.am): Likewise.
77140         * modules/argmatch (Makefile.am): Likewise.
77141         * modules/argz (Makefile.am): Likewise.
77142         * modules/atexit (Makefile.am): Likewise.
77143         * modules/backupfile (Makefile.am): Likewise.
77144         * modules/byteswap (Makefile.am): Likewise.
77145         * modules/c-strtod (Makefile.am): Likewise.
77146         * modules/c-strtold (Makefile.am): Likewise.
77147         * modules/calloc (Makefile.am): Likewise.
77148         * modules/canon-host (Makefile.am): Likewise.
77149         * modules/canonicalize (Makefile.am): Likewise.
77150         * modules/chdir-long (Makefile.am): Likewise.
77151         * modules/chdir-safer (Makefile.am): Likewise.
77152         * modules/check-version (Makefile.am): Likewise.
77153         * modules/chown (Makefile.am): Likewise.
77154         * modules/cloexec (Makefile.am): Likewise.
77155         * modules/close-stream (Makefile.am): Likewise.
77156         * modules/closeout (Makefile.am): Likewise.
77157         * modules/crc (Makefile.am): Likewise.
77158         * modules/csharpexec (Makefile.am): Likewise.
77159         * modules/cycle-check (Makefile.am): Likewise.
77160         * modules/des (Makefile.am): Likewise.
77161         * modules/dev-ino (Makefile.am): Likewise.
77162         * modules/dirfd (Makefile.am): Likewise.
77163         * modules/dirname (Makefile.am): Likewise.
77164         * modules/dup2 (Makefile.am): Likewise.
77165         * modules/eealloc (Makefile.am): Likewise.
77166         * modules/error (Makefile.am): Likewise.
77167         * modules/euidaccess (Makefile.am): Likewise.
77168         * modules/exclude (Makefile.am): Likewise.
77169         * modules/exitfail (Makefile.am): Likewise.
77170         * modules/fcntl-safer (Makefile.am): Likewise.
77171         * modules/fcntl (Makefile.am): Likewise.
77172         * modules/file-type (Makefile.am): Likewise.
77173         * modules/fileblocks (Makefile.am): Likewise.
77174         * modules/filemode (Makefile.am): Likewise.
77175         * modules/filenamecat (Makefile.am): Likewise.
77176         * modules/fnmatch (Makefile.am): Likewise.
77177         * modules/fopen-safer (Makefile.am): Likewise.
77178         * modules/fpending (Makefile.am): Likewise.
77179         * modules/fprintftime (Makefile.am): Likewise.
77180         * modules/free (Makefile.am): Likewise.
77181         * modules/fsusage (Makefile.am): Likewise.
77182         * modules/ftruncate (Makefile.am): Likewise.
77183         * modules/fts (Makefile.am): Likewise.
77184         * modules/gc-arcfour (Makefile.am): Likewise.
77185         * modules/gc-des (Makefile.am): Likewise.
77186         * modules/gc-hmac-md5 (Makefile.am): Likewise.
77187         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
77188         * modules/gc-md4 (Makefile.am): Likewise.
77189         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77190         * modules/gc-sha1 (Makefile.am): Likewise.
77191         * modules/gc (Makefile.am): Likewise.
77192         * modules/getaddrinfo (Makefile.am): Likewise.
77193         * modules/getcwd (Makefile.am): Likewise.
77194         * modules/getdelim (Makefile.am): Likewise.
77195         * modules/getdomainname (Makefile.am): Likewise.
77196         * modules/getgroups (Makefile.am): Likewise.
77197         * modules/gethostname (Makefile.am): Likewise.
77198         * modules/gethrxtime (Makefile.am): Likewise.
77199         * modules/getline (Makefile.am): Likewise.
77200         * modules/getloadavg (Makefile.am): Likewise.
77201         * modules/getlogin_r (Makefile.am): Likewise.
77202         * modules/getndelim2 (Makefile.am): Likewise.
77203         * modules/getopt (Makefile.am): Likewise.
77204         * modules/getpagesize (Makefile.am): Likewise.
77205         * modules/getpass-gnu (Makefile.am): Likewise.
77206         * modules/getpass (Makefile.am): Likewise.
77207         * modules/getsubopt (Makefile.am): Likewise.
77208         * modules/gettime (Makefile.am): Likewise.
77209         * modules/gettimeofday (Makefile.am): Likewise.
77210         * modules/getugroups (Makefile.am): Likewise.
77211         * modules/getusershell (Makefile.am): Likewise.
77212         * modules/glob (Makefile.am): Likewise.
77213         * modules/group-member (Makefile.am): Likewise.
77214         * modules/hard-locale (Makefile.am): Likewise.
77215         * modules/hash (Makefile.am): Likewise.
77216         * modules/hmac-md5 (Makefile.am): Likewise.
77217         * modules/hmac-sha1 (Makefile.am): Likewise.
77218         * modules/human (Makefile.am): Likewise.
77219         * modules/idcache (Makefile.am): Likewise.
77220         * modules/imaxabs (Makefile.am): Likewise.
77221         * modules/imaxdiv (Makefile.am): Likewise.
77222         * modules/inet_ntop (Makefile.am): Likewise.
77223         * modules/inet_pton (Makefile.am): Likewise.
77224         * modules/intprops (Makefile.am): Likewise.
77225         * modules/inttostr (Makefile.am): Likewise.
77226         * modules/inttypes (Makefile.am): Likewise.
77227         * modules/isapipe (Makefile.am): Likewise.
77228         * modules/javaversion (Makefile.am): Likewise.
77229         * modules/lchmod (Makefile.am): Likewise.
77230         * modules/lchown (Makefile.am): Likewise.
77231         * modules/localcharset (Makefile.am): Likewise.
77232         * modules/long-options (Makefile.am): Likewise.
77233         * modules/lstat (Makefile.am): Likewise.
77234         * modules/malloc (Makefile.am): Likewise.
77235         * modules/mathl (Makefile.am): Likewise.
77236         * modules/mbchar (Makefile.am): Likewise.
77237         * modules/md2 (Makefile.am): Likewise.
77238         * modules/md4 (Makefile.am): Likewise.
77239         * modules/md5 (Makefile.am): Likewise.
77240         * modules/memcasecmp (Makefile.am): Likewise.
77241         * modules/memchr (Makefile.am): Likewise.
77242         * modules/memcmp (Makefile.am): Likewise.
77243         * modules/memcoll (Makefile.am): Likewise.
77244         * modules/memcpy (Makefile.am): Likewise.
77245         * modules/memmem (Makefile.am): Likewise.
77246         * modules/memmove (Makefile.am): Likewise.
77247         * modules/mempcpy (Makefile.am): Likewise.
77248         * modules/memrchr (Makefile.am): Likewise.
77249         * modules/memset (Makefile.am): Likewise.
77250         * modules/memxor (Makefile.am): Likewise.
77251         * modules/mkancesdirs (Makefile.am): Likewise.
77252         * modules/mkdir-p (Makefile.am): Likewise.
77253         * modules/mkdir (Makefile.am): Likewise.
77254         * modules/mkdtemp (Makefile.am): Likewise.
77255         * modules/mkstemp (Makefile.am): Likewise.
77256         * modules/mktime (Makefile.am): Likewise.
77257         * modules/modechange (Makefile.am): Likewise.
77258         * modules/mountlist (Makefile.am): Likewise.
77259         * modules/nanosleep (Makefile.am): Likewise.
77260         * modules/obstack (Makefile.am): Likewise.
77261         * modules/openat (Makefile.am): Likewise.
77262         * modules/pagealign_alloc (Makefile.am): Likewise.
77263         * modules/pathmax (Makefile.am): Likewise.
77264         * modules/physmem (Makefile.am): Likewise.
77265         * modules/poll (Makefile.am): Likewise.
77266         * modules/posixtm (Makefile.am): Likewise.
77267         * modules/posixver (Makefile.am): Likewise.
77268         * modules/putenv (Makefile.am): Likewise.
77269         * modules/quote (Makefile.am): Likewise.
77270         * modules/quotearg (Makefile.am): Likewise.
77271         * modules/raise (Makefile.am): Likewise.
77272         * modules/read-file (Makefile.am): Likewise.
77273         * modules/readline (Makefile.am): Likewise.
77274         * modules/readlink (Makefile.am): Likewise.
77275         * modules/readtokens (Makefile.am): Likewise.
77276         * modules/readutmp (Makefile.am): Likewise.
77277         * modules/realloc (Makefile.am): Likewise.
77278         * modules/regex (Makefile.am): Likewise.
77279         * modules/rename-dest-slash (Makefile.am): Likewise.
77280         * modules/rename (Makefile.am): Likewise.
77281         * modules/rijndael (Makefile.am): Likewise.
77282         * modules/rmdir (Makefile.am): Likewise.
77283         * modules/rpmatch (Makefile.am): Likewise.
77284         * modules/safe-read (Makefile.am): Likewise.
77285         * modules/safe-write (Makefile.am): Likewise.
77286         * modules/same-inode (Makefile.am): Likewise.
77287         * modules/same (Makefile.am): Likewise.
77288         * modules/save-cwd (Makefile.am): Likewise.
77289         * modules/savedir (Makefile.am): Likewise.
77290         * modules/setenv (Makefile.am): Likewise.
77291         * modules/settime (Makefile.am): Likewise.
77292         * modules/sha1 (Makefile.am): Likewise.
77293         * modules/sig2str (Makefile.am): Likewise.
77294         * modules/snprintf (Makefile.am): Likewise.
77295         * modules/stat-macros (Makefile.am): Likewise.
77296         * modules/stat-time (Makefile.am): Likewise.
77297         * modules/stdbool (Makefile.am): Likewise.
77298         * modules/stdint (Makefile.am): Likewise.
77299         * modules/stdlib-safer (Makefile.am): Likewise.
77300         * modules/stpcpy (Makefile.am): Likewise.
77301         * modules/stpncpy (Makefile.am): Likewise.
77302         * modules/strcase (Makefile.am): Likewise.
77303         * modules/strcasestr (Makefile.am): Likewise.
77304         * modules/strchrnul (Makefile.am): Likewise.
77305         * modules/strcspn (Makefile.am): Likewise.
77306         * modules/strdup (Makefile.am): Likewise.
77307         * modules/strerror (Makefile.am): Likewise.
77308         * modules/strftime (Makefile.am): Likewise.
77309         * modules/strndup (Makefile.am): Likewise.
77310         * modules/strnlen (Makefile.am): Likewise.
77311         * modules/strpbrk (Makefile.am): Likewise.
77312         * modules/strsep (Makefile.am): Likewise.
77313         * modules/strstr (Makefile.am): Likewise.
77314         * modules/strtod (Makefile.am): Likewise.
77315         * modules/strtoimax (Makefile.am): Likewise.
77316         * modules/strtok_r (Makefile.am): Likewise.
77317         * modules/strtol (Makefile.am): Likewise.
77318         * modules/strtoll (Makefile.am): Likewise.
77319         * modules/strtoul (Makefile.am): Likewise.
77320         * modules/strtoull (Makefile.am): Likewise.
77321         * modules/strtoumax (Makefile.am): Likewise.
77322         * modules/strverscmp (Makefile.am): Likewise.
77323         * modules/sys_socket (Makefile.am): Likewise.
77324         * modules/sys_stat (Makefile.am): Likewise.
77325         * modules/sysexits (Makefile.am): Likewise.
77326         * modules/time_r (Makefile.am): Likewise.
77327         * modules/timegm (Makefile.am): Likewise.
77328         * modules/timespec (Makefile.am): Likewise.
77329         * modules/tmpfile-safer (Makefile.am): Likewise.
77330         * modules/trim (Makefile.am): Likewise.
77331         * modules/unistd-safer (Makefile.am): Likewise.
77332         * modules/unlinkdir (Makefile.am): Likewise.
77333         * modules/unlocked-io (Makefile.am): Likewise.
77334         * modules/userspec (Makefile.am): Likewise.
77335         * modules/utime (Makefile.am): Likewise.
77336         * modules/utimecmp (Makefile.am): Likewise.
77337         * modules/utimens (Makefile.am): Likewise.
77338         * modules/vasnprintf (Makefile.am): Likewise.
77339         * modules/vasprintf (Makefile.am): Likewise.
77340         * modules/vsnprintf (Makefile.am): Likewise.
77341         * modules/xalloc (Makefile.am): Likewise.
77342         * modules/xgetcwd (Makefile.am): Likewise.
77343         * modules/xnanosleep (Makefile.am): Likewise.
77344         * modules/xreadlink (Makefile.am): Likewise.
77345         * modules/xstrtod (Makefile.am): Likewise.
77346         * modules/xstrtol (Makefile.am): Likewise.
77347         * modules/xstrtold (Makefile.am): Likewise.
77348         * modules/yesno (Makefile.am): Likewise.
77349         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
77350
77351 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * modules/error (Makefile.am): Distribute files through
77354         EXTRA_DIST, not lib_SOURCES.
77355
77356 2006-10-12  Eric Blake  <ebb9@byu.net>
77357
77358         * modules/error (Makefile.am): Distribute files in /lib.
77359         * modules/obstack (Makefile.am): Likewise.
77360
77361 2006-10-12  Bruno Haible  <bruno@clisp.org>
77362
77363         * modules/acl (Makefile.am): Distribute all files in lib/ through
77364         EXTRA_DIST.
77365         * modules/arcfour (Makefile.am): Likewise.
77366         * modules/arctwo (Makefile.am): Likewise.
77367         * modules/argmatch (Makefile.am): Likewise.
77368         * modules/argz (Makefile.am): Likewise.
77369         * modules/atexit (Makefile.am): Likewise.
77370         * modules/backupfile (Makefile.am): Likewise.
77371         * modules/c-strtod (Makefile.am): Likewise.
77372         * modules/c-strtold (Makefile.am): Likewise.
77373         * modules/calloc (Makefile.am): Likewise.
77374         * modules/canon-host (Makefile.am): Likewise.
77375         * modules/canonicalize (Makefile.am): Likewise.
77376         * modules/chdir-long (Makefile.am): Likewise.
77377         * modules/chdir-safer (Makefile.am): Likewise.
77378         * modules/check-version (Makefile.am): Likewise.
77379         * modules/chown (Makefile.am): Likewise.
77380         * modules/cloexec (Makefile.am): Likewise.
77381         * modules/close-stream (Makefile.am): Likewise.
77382         * modules/closeout (Makefile.am): Likewise.
77383         * modules/crc (Makefile.am): Likewise.
77384         * modules/cycle-check (Makefile.am): Likewise.
77385         * modules/des (Makefile.am): Likewise.
77386         * modules/dirfd (Makefile.am): Likewise.
77387         * modules/dirname (Makefile.am): Likewise.
77388         * modules/dup2 (Makefile.am): Likewise.
77389         * modules/euidaccess (Makefile.am): Likewise.
77390         * modules/exclude (Makefile.am): Likewise.
77391         * modules/exitfail (Makefile.am): Likewise.
77392         * modules/fcntl-safer (Makefile.am): Likewise.
77393         * modules/file-type (Makefile.am): Likewise.
77394         * modules/fileblocks (Makefile.am): Likewise.
77395         * modules/filemode (Makefile.am): Likewise.
77396         * modules/filenamecat (Makefile.am): Likewise.
77397         * modules/fnmatch (Makefile.am): Likewise.
77398         * modules/fopen-safer (Makefile.am): Likewise.
77399         * modules/fpending (Makefile.am): Likewise.
77400         * modules/fprintftime (Makefile.am): Likewise.
77401         * modules/free (Makefile.am): Likewise.
77402         * modules/fsusage (Makefile.am): Likewise.
77403         * modules/ftruncate (Makefile.am): Likewise.
77404         * modules/fts (Makefile.am): Likewise.
77405         * modules/gc (Makefile.am): Likewise.
77406         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
77407         * modules/getaddrinfo (Makefile.am): Likewise.
77408         * modules/getcwd (Makefile.am): Likewise.
77409         * modules/getdelim (Makefile.am): Likewise.
77410         * modules/getdomainname (Makefile.am): Likewise.
77411         * modules/getgroups (Makefile.am): Likewise.
77412         * modules/gethostname (Makefile.am): Likewise.
77413         * modules/gethrxtime (Makefile.am): Likewise.
77414         * modules/getline (Makefile.am): Likewise.
77415         * modules/getloadavg (Makefile.am): Likewise.
77416         * modules/getlogin_r (Makefile.am): Likewise.
77417         * modules/getopt (Makefile.am): Likewise.
77418         * modules/getpass (Makefile.am): Likewise.
77419         * modules/getpass-gnu (Makefile.am): Likewise.
77420         * modules/getsubopt (Makefile.am): Likewise.
77421         * modules/gettime (Makefile.am): Likewise.
77422         * modules/gettimeofday (Makefile.am): Likewise.
77423         * modules/getugroups (Makefile.am): Likewise.
77424         * modules/getusershell (Makefile.am): Likewise.
77425         * modules/glob (Makefile.am): Likewise.
77426         * modules/group-member (Makefile.am): Likewise.
77427         * modules/hard-locale (Makefile.am): Likewise.
77428         * modules/hash (Makefile.am): Likewise.
77429         * modules/hmac-md5 (Makefile.am): Likewise.
77430         * modules/hmac-sha1 (Makefile.am): Likewise.
77431         * modules/human (Makefile.am): Likewise.
77432         * modules/idcache (Makefile.am): Likewise.
77433         * modules/imaxabs (Makefile.am): Likewise.
77434         * modules/imaxdiv (Makefile.am): Likewise.
77435         * modules/inet_ntop (Makefile.am): Likewise.
77436         * modules/inet_pton (Makefile.am): Likewise.
77437         * modules/inttostr (Makefile.am): Likewise.
77438         * modules/isapipe (Makefile.am): Likewise.
77439         * modules/lchown (Makefile.am): Likewise.
77440         * modules/long-options (Makefile.am): Likewise.
77441         * modules/lstat (Makefile.am): Likewise.
77442         * modules/malloc (Makefile.am): Likewise.
77443         * modules/mathl (Makefile.am): Likewise.
77444         * modules/mbchar (Makefile.am): Likewise.
77445         * modules/md2 (Makefile.am): Likewise.
77446         * modules/md4 (Makefile.am): Likewise.
77447         * modules/md5 (Makefile.am): Likewise.
77448         * modules/memcasecmp (Makefile.am): Likewise.
77449         * modules/memchr (Makefile.am): Likewise.
77450         * modules/memcmp (Makefile.am): Likewise.
77451         * modules/memcoll (Makefile.am): Likewise.
77452         * modules/memcpy (Makefile.am): Likewise.
77453         * modules/memmem (Makefile.am): Likewise.
77454         * modules/memmove (Makefile.am): Likewise.
77455         * modules/mempcpy (Makefile.am): Likewise.
77456         * modules/memrchr (Makefile.am): Likewise.
77457         * modules/memset (Makefile.am): Likewise.
77458         * modules/memxor (Makefile.am): Likewise.
77459         * modules/mkancesdirs (Makefile.am): Likewise.
77460         * modules/mkdir (Makefile.am): Likewise.
77461         * modules/mkdir-p (Makefile.am): Likewise.
77462         * modules/mkdtemp (Makefile.am): Likewise.
77463         * modules/mkstemp (Makefile.am): Likewise.
77464         * modules/mktime (Makefile.am): Likewise.
77465         * modules/modechange (Makefile.am): Likewise.
77466         * modules/mountlist (Makefile.am): Likewise.
77467         * modules/nanosleep (Makefile.am): Likewise.
77468         * modules/openat (Makefile.am): Likewise.
77469         * modules/pagealign_alloc (Makefile.am): Likewise.
77470         * modules/physmem (Makefile.am): Likewise.
77471         * modules/poll (Makefile.am): Likewise.
77472         * modules/posixtm (Makefile.am): Likewise.
77473         * modules/posixver (Makefile.am): Likewise.
77474         * modules/putenv (Makefile.am): Likewise.
77475         * modules/quote (Makefile.am): Likewise.
77476         * modules/quotearg (Makefile.am): Likewise.
77477         * modules/raise (Makefile.am): Likewise.
77478         * modules/read-file (Makefile.am): Likewise.
77479         * modules/readline (Makefile.am): Likewise.
77480         * modules/readlink (Makefile.am): Likewise.
77481         * modules/readtokens (Makefile.am): Likewise.
77482         * modules/readutmp (Makefile.am): Likewise.
77483         * modules/realloc (Makefile.am): Likewise.
77484         * modules/regex (Makefile.am): Likewise.
77485         * modules/rename (Makefile.am): Likewise.
77486         * modules/rename-dest-slash (Makefile.am): Likewise.
77487         * modules/rijndael (Makefile.am): Likewise.
77488         * modules/rmdir (Makefile.am): Likewise.
77489         * modules/rpmatch (Makefile.am): Likewise.
77490         * modules/safe-read (Makefile.am): Likewise.
77491         * modules/safe-write (Makefile.am): Likewise.
77492         * modules/same (Makefile.am): Likewise.
77493         * modules/save-cwd (Makefile.am): Likewise.
77494         * modules/savedir (Makefile.am): Likewise.
77495         * modules/setenv (Makefile.am): Likewise.
77496         * modules/settime (Makefile.am): Likewise.
77497         * modules/sha1 (Makefile.am): Likewise.
77498         * modules/sig2str (Makefile.am): Likewise.
77499         * modules/snprintf (Makefile.am): Likewise.
77500         * modules/stdlib-safer (Makefile.am): Likewise.
77501         * modules/stpcpy (Makefile.am): Likewise.
77502         * modules/stpncpy (Makefile.am): Likewise.
77503         * modules/strcase (Makefile.am): Likewise.
77504         * modules/strcasestr (Makefile.am): Likewise.
77505         * modules/strchrnul (Makefile.am): Likewise.
77506         * modules/strcspn (Makefile.am): Likewise.
77507         * modules/strdup (Makefile.am): Likewise.
77508         * modules/strerror (Makefile.am): Likewise.
77509         * modules/strftime (Makefile.am): Likewise.
77510         * modules/strndup (Makefile.am): Likewise.
77511         * modules/strnlen (Makefile.am): Likewise.
77512         * modules/strpbrk (Makefile.am): Likewise.
77513         * modules/strsep (Makefile.am): Likewise.
77514         * modules/strstr (Makefile.am): Likewise.
77515         * modules/strtod (Makefile.am): Likewise.
77516         * modules/strtoimax (Makefile.am): Likewise.
77517         * modules/strtok_r (Makefile.am): Likewise.
77518         * modules/strtol (Makefile.am): Likewise.
77519         * modules/strtoll (Makefile.am): Likewise.
77520         * modules/strtoul (Makefile.am): Likewise.
77521         * modules/strtoull (Makefile.am): Likewise.
77522         * modules/strtoumax (Makefile.am): Likewise.
77523         * modules/strverscmp (Makefile.am): Likewise.
77524         * modules/time_r (Makefile.am): Likewise.
77525         * modules/timegm (Makefile.am): Likewise.
77526         * modules/tmpfile-safer (Makefile.am): Likewise.
77527         * modules/unistd-safer (Makefile.am): Likewise.
77528         * modules/unlinkdir (Makefile.am): Likewise.
77529         * modules/userspec (Makefile.am): Likewise.
77530         * modules/utime (Makefile.am): Likewise.
77531         * modules/utimecmp (Makefile.am): Likewise.
77532         * modules/utimens (Makefile.am): Likewise.
77533         * modules/vasnprintf (Makefile.am): Likewise.
77534         * modules/vasprintf (Makefile.am): Likewise.
77535         * modules/vsnprintf (Makefile.am): Likewise.
77536         * modules/xalloc (Makefile.am): Likewise.
77537         * modules/xgetcwd (Makefile.am): Likewise.
77538         * modules/xnanosleep (Makefile.am): Likewise.
77539         * modules/xreadlink (Makefile.am): Likewise.
77540         * modules/xstrtod (Makefile.am): Likewise.
77541         * modules/xstrtol (Makefile.am): Likewise.
77542         * modules/xstrtold (Makefile.am): Likewise.
77543         * modules/yesno (Makefile.am): Likewise.
77544
77545 2006-10-12  Jim Meyering  <jim@meyering.net>
77546
77547         * m4/getloadavg.m4: Revert the change below.
77548
77549         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
77550         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
77551         fail with a symlink, which is what coreutils' ./bootstrap now
77552         creates by default.
77553
77554 2006-10-12  Bruno Haible  <bruno@clisp.org>
77555
77556         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
77557         mingw.
77558         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
77559         MSVC and mingw explicitly.
77560
77561 2006-10-11  Simon Josefsson  <jas@extundo.com>
77562             Bruno Haible  <bruno@clisp.org>
77563
77564         Add support for multiple gnulib-tool invocations in the scope of a
77565         single configure.ac file.
77566         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
77567         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
77568         with the same contents as the _LIBADD variable.
77569         (func_emit_initmacro_start, func_emit_initmacro_end,
77570         func_emit_initmacro_done): New functions.
77571         (func_import, func_create_testdir): Invoke them. Allow the identifiers
77572         gl_LIBOBJS and gl_LTLIBOBJS.
77573
77574 2006-10-11  Bruno Haible  <bruno@clisp.org>
77575
77576         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
77577         (func_create_testdir): Don't create po/Makefile.am, don't invoke
77578         autoreconf. Instead, invoke autopoint explicitly but move back the
77579         *.m4 files from gnulib.
77580
77581 2006-10-11  Bruno Haible  <bruno@clisp.org>
77582
77583         * gnulib-tool (func_usage): Make module names after --create-testdir
77584         optional.
77585         (func_create_testdir): If no module was specified, use nearly all
77586         modules.
77587
77588 2006-10-12  Jim Meyering  <jim@meyering.net>
77589
77590         Big performance improvement for fts-based tools that use FTS_NOSTAT.
77591         Avoid spurious inode-mismatch problems on non-POSIX file systems.
77592         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
77593         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
77594         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
77595         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
77596         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
77597         (fts_set_stat_required): New function.
77598         (fts_open): Defer the calls to fts_stat, if possible or requested.
77599         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
77600         into fts_stat itself.
77601         (fts_read): Perform any required (deferred) fts_stat call.
77602         (fts_build): Likewise, for the directory we're about to open and read.
77603         In the readdir loop, carefully decide whether each entry will require
77604         an eventual call to fts_stat, using dirent.d_type info if available.
77605         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
77606         a command line argument into this function.  Update all callers.
77607         Map a return value of FTS_DOT to FTS_D for a command line argument.
77608         * modules/fts (Depends-on): Add d-type.  Alphabetize.
77609         Thanks to Miklos Szeredi for his tenacity and for the initial
77610         bug report about "find" failing on a FUSE-based file system.
77611
77612         * lib/fts.c (fts_open): Use consistent indentation.
77613
77614 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
77615
77616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
77617         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
77618         reported by Jim Meyering.  All uses of cache variables renamed
77619         to match Autoconf's.
77620         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
77621         the other one.
77622
77623         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77624         Fix misspelling in diagnostic.
77625
77626 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77627
77628         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
77629         defined.  Problem reported by Matthew Woehlke.
77630
77631         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
77632         Add support for Tandem NonStop R series.
77633         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
77634         Use new macro.
77635
77636         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
77637         (has_trailing_slash): Omit size arg; all callers changed.
77638         Omit 'inline', since it doesn't help performance and we'd
77639         need to configure it.
77640         Don't count //, ///, etc. as having a trailing slash.
77641         As a side effect, this removes a C99ism reported by Matthew Woehlke.
77642         (rpl_rename_dest_slash): On failure, use rename's errno rather
77643         than (in some cases) an incorrect or junk errno.
77644         Simplify code by removing need to compute length; this does
77645         cause it to make two passes instead of one over the file name,
77646         but it's worth it.
77647
77648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
77649         change, since Autoconf's version may no longer be appropriate now
77650         that we are using CVS Autoconf's version.  Add support for Tandem.
77651
77652 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
77653             Bruno Haible  <bruno@clisp.org>
77654
77655         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
77656         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
77657         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
77658         gl_AC_TYPE_LONG_LONG.
77659
77660         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
77661         instead of HAVE_LONG_LONG.
77662         * lib/printf-args.c (printf_fetchargs): Likewise.
77663         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
77664         * lib/vasnprintf.c (VASNPRINTF): Likewise.
77665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
77666         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
77667         gl_AC_TYPE_LONG_LONG.
77668
77669 2006-10-11  Bruno Haible  <bruno@clisp.org>
77670
77671         * m4/longlong.m4: Add comments.
77672         * m4/ulonglong.m4: Likewise.
77673
77674 2006-10-10  Bruno Haible  <bruno@clisp.org>
77675
77676         Make it possible to #define stpcpy, strdup to aliases.
77677         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
77678         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
77679
77680 2006-10-10  Bruno Haible  <bruno@clisp.org>
77681
77682         Make it possible to #define gcd to an alias.
77683         * lib/gcd.c: Include config.h.
77684
77685 2006-10-10  Bruno Haible  <bruno@clisp.org>
77686
77687         Make it possible to #define c_isascii to an alias.
77688         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
77689         defined. Undefine the macros before defining them, to avoid gcc
77690         warnings.
77691         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
77692         define NO_C_CTYPE_MACROS early.
77693
77694 2006-10-10  Bruno Haible  <bruno@clisp.org>
77695
77696         Make it possible to #define set_program_name to an alias.
77697         * lib/progname.c: Don't undefine set_program_name; instead, undefine
77698         ENABLE_RELOCATABLE early.
77699
77700 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         Port to Tandem NSK OSS, which has 64-bit signed int but at most
77703         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
77704         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
77705         More generally, don't assume that 64-bit signed int is available
77706         if unsigned int is, and vice versa.
77707         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
77708         unsigned symbols, not on their signed counterparts.
77709         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
77710         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
77711         (UINT64_C, UINTMAX_C):
77712         Likewise.
77713         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
77714         unsigned counterparts.
77715         (Have_long_long, Unsigned): New macros.
77716         (Int): Renamed from INT.
77717         (strtoimax): Use the new macros.
77718         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
77719         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
77720         * modules/inttypes (inttypes.h): Substitute
77721         HAVE_UNSIGNED_LONG_LONG_INT.
77722         * modules/stdint (stdint.h): Likewise.
77723         (Files): Add m4/ulonglong.m4.
77724
77725 2006-10-10  Bruno Haible  <bruno@clisp.org>
77726
77727         Fix a gcc -Wshadow warning.
77728         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
77729         to 'bucket'.
77730         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
77731         gl_linked_indexof_from_to): Likewise.
77732         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
77733         Likewise.
77734         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
77735         Likewise.
77736         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
77737         Reported by Eric Blake.
77738
77739 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
77742         for NetBSD.  Problem reported by Bruno Haible.
77743
77744 2006-10-09  Jim Meyering  <jim@meyering.net>
77745
77746         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
77747         Patch from Bruno Haible.
77748
77749 2006-10-09  Jim Meyering  <jim@meyering.net>
77750
77751         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
77752         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
77753         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
77754
77755 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
77756
77757         Don't include <config.h> twice; this doesn't work in some cases,
77758         e.g., when config.h has "#define intmax_t long long int" and
77759         we include <config.h>, <inttypes.h>, <config.h> in that order.
77760         Problem reported by Matthew Woehlke in:
77761         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
77762         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
77763         * lib/fts-cycle.c: Don't include config.h.
77764         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
77765         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
77766         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
77767         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
77768         inttypes.h.
77769         * lib/xstrtoumax.c: Likewise.
77770         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
77771         __strtol and the like, so that this module is more like its siblings.
77772         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
77773         Remove; no longer needed now that we assume gnulib inttypes.h.
77774
77775 2006-10-08  Bruno Haible  <bruno@clisp.org>
77776
77777         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
77778         option.
77779
77780 2006-10-07  Jim Meyering  <jim@meyering.net>
77781
77782         * modules/inttypes (inttypes.h): Revert what seems to have been
77783         an inadvertent part of today's change: use "|", not "/" in the
77784         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
77785
77786 2006-10-07  Bruno Haible  <bruno@clisp.org>
77787
77788         * modules/sublist: New file.
77789
77790 2006-10-07  Bruno Haible  <bruno@clisp.org>
77791
77792         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
77793         * modules/argz (argz.h): Likewise.
77794         * modules/arpa_inet (arpa/inet.h): Likewise.
77795         * modules/byteswap (byteswap.h): Likewise.
77796         * modules/configmake (configmake.h): Likewise.
77797         * modules/fcntl (fcntl.h): Likewise.
77798         * modules/fnmatch (fnmatch.h): Likewise.
77799         * modules/getopt (getopt.h): Likewise.
77800         * modules/glob (glob.h): Likewise.
77801         * modules/inttypes (inttypes.h): Likewise.
77802         * modules/netinet_in (netinet/in.h): Likewise.
77803         * modules/poll (poll.h): Likewise.
77804         * modules/stdbool (stdbool.h): Likewise.
77805         * modules/stdint (stdint.h): Likewise.
77806         * modules/sys_select (sys/select.h): Likewise.
77807         * modules/sys_socket (sys/socket.h): Likewise.
77808         * modules/sys_stat (sys/stat.h): Likewise.
77809         * modules/sysexits (sysexits.h): Likewise.
77810         * modules/unistd (unistd.h): Likewise.
77811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77812         Add a "DO NOT EDIT" comment to the generated file.
77813         (func_import): Likewise for gnulib-comp.m4.
77814
77815 2006-10-07  Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/gl_sublist.h: New file.
77818         * lib/gl_sublist.c: New file.
77819
77820 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
77823         name (relative to the original working directory) and the file
77824         name component (relative to the temporary working directory).  All
77825         callers changed.
77826         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
77827         * lib/mkdir-p.c (make_dir_parents): Likewise.
77828         * lib/mkdir-p.h (make_dir_parents): Likewise.
77829
77830 2006-10-06  Eric Blake  <ebb9@byu.net>
77831
77832         Define several macros for use by the clean-temp module.
77833         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77834         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77835         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77836
77837         * lib/clean-temp.h (close_stream_temp): New declaration.
77838         * lib/clean-temp.c (includes): Pull in headers according to what
77839         other modules are in use.
77840         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77841
77842 2006-10-06  Bruno Haible  <bruno@clisp.org>
77843
77844         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77845         instead of fopen, fwriteerror.
77846
77847 2006-10-06  Bruno Haible  <bruno@clisp.org>
77848
77849         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77850         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77851         int.
77852         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77853         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77854         Return an error indicator.
77855         Suggested by Eric Blake.
77856
77857 2006-10-06  Bruno Haible  <bruno@clisp.org>
77858
77859         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77860         Reported by Eric Blake.
77861
77862 2006-10-06  Bruno Haible  <bruno@clisp.org>
77863
77864         * modules/closeout (Description): Mention stderr too.
77865
77866 2006-10-06  Bruno Haible  <bruno@clisp.org>
77867         and Paul Eggert  <eggert@cs.ucla.edu>
77868
77869         * lib/closeout.c (close_stdout): Also close stderr.
77870         * lib/closeout.h: Update comment.
77871
77872 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77873
77874         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77875         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77876         * lib/dirchownmod.c: Include lchown.h.
77877         * lib/lchown.c: Don't include files that lchown.h now includes.
77878         Don't declare chown, since lchown.h now does that.
77879         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77880         (lchown): Define to rpl_chown if lchown is declared but
77881         does not exist.  Declare using a prototype if lchown is not
77882         declared.  Add a copyright notice.
77883         * lib/mkstemp.h: Include <unistd.h>.
77884         * lib/openat.c: Include lchown.h.
77885
77886         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77887         we now test for that separately.
77888         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77889         rather than O_NOFOLLOW, when testing whether it's possible to
77890         avoid a race condition reliably.
77891         * lib/savewd.c (savewd_chdir): Likewise.
77892
77893         Remove macros that are no longer needed now that stdint.h is
77894         reliable.
77895         * lib/fsusage.c (UINTMAX_MAX): Remove.
77896         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77897         * lib/utimecmp.c (SIZE_MAX): Remove.
77898
77899         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77900
77901         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77902         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77903         O_NOATIME works.
77904
77905 2006-10-05  Bruno Haible  <bruno@clisp.org>
77906
77907         * lib/gl_list.h (gl_sortedlist_search_from_to,
77908         gl_sortedlist_indexof_from_to): New declarations.
77909         (gl_list_implementation): New fields sortedlist_search_from_to,
77910         sortedlist_indexof_from_to.
77911         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77912         inline functions.
77913         * lib/gl_list.c (gl_sortedlist_search_from_to,
77914         gl_sortedlist_indexof_from_to): New functions.
77915         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77916         function.
77917         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77918         (gl_array_sortedlist_search_from_to): New function.
77919         (gl_array_list_implementation): Update.
77920         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77921         function.
77922         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77923         (gl_carray_sortedlist_search_from_to): New function.
77924         (gl_carray_list_implementation): Update.
77925         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77926         gl_linked_sortedlist_indexof_from_to): New functions.
77927         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77928         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77929         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77930         gl_tree_sortedlist_indexof_from_to): New functions.
77931         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77932         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77933         Update.
77934         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77935         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77936         Update.
77937
77938 2006-10-05  Bruno Haible  <bruno@clisp.org>
77939
77940         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77941         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77942         (struct gl_list_implementation): Add fields search_from_to,
77943         indexof_from_to. Remove fields search, indexof.
77944         (gl_list_search): Use the search_from_to method.
77945         (gl_list_search_from, gl_list_search_from_to): New functions.
77946         (gl_list_indexof): Use the indexof_from_to method.
77947         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77948         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77949         (gl_list_search_from, gl_list_search_from_to): New functions.
77950         (gl_list_indexof): Use the indexof_from_to method.
77951         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77952         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77953         gl_array_indexof. Add start_index, end_index arguments.
77954         (gl_array_search_from_to): Renamed from gl_array_search. Add
77955         start_index, end_index arguments.
77956         (gl_array_remove, gl_array_list_implementation): Update.
77957         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77958         gl_carray_indexof. Add start_index, end_index arguments.
77959         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77960         start_index, end_index arguments.
77961         (gl_carray_remove, gl_carray_list_implementation): Update.
77962         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77963         gl_linked_search. Add start_index, end_index arguments.
77964         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77965         start_index, end_index arguments.
77966         (gl_linked_remove): Update.
77967         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77968         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77969         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77970         field to 'size_t'.
77971         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77972         gl_tree_search. Add start_index, end_index arguments.
77973         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77974         start_index, end_index arguments.
77975         (gl_tree_remove): Update.
77976         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77977         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77978         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77979         function.
77980         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77981         gl_tree_search. Add start_index, end_index arguments.
77982         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77983         start_index, end_index arguments.
77984         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77985         Update.
77986         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77987
77988 2006-10-05  Bruno Haible  <bruno@clisp.org>
77989
77990         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77991
77992         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77993         fwriteerror_temp): New declarations.
77994         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77995         (descriptors): New variable.
77996         (cleanup): First, close the descriptors.
77997         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77998         fclose_temp, fwriteerror_temp): New functions.
77999
78000 2006-10-04  Jim Meyering  <jim@meyering.net>
78001
78002         * lib/fts.c (fts_open): Tiny comment change.
78003
78004 2006-10-04  Bruno Haible  <bruno@clisp.org>
78005
78006         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78007         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78008         gl_LOCK_BODY.
78009         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78010         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78011         gl_LOCK_EARLY_BODY.
78012         (gl_LOCK): Require gl_LOCK_BODY.
78013
78014 2006-10-04  Bruno Haible  <bruno@clisp.org>
78015
78016         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78017         (gl_oset_search_atleast): New declaration.
78018         (struct gl_oset_implementation): Add field 'search_atleast'.
78019         (gl_oset_search_atleast): New inline function.
78020         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78021         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78022         (gl_array_oset_implementation): Update.
78023         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78024         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78025         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78026
78027 2006-10-04  Bruno Haible  <bruno@clisp.org>
78028
78029         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78030
78031 2006-10-03  Bruno Haible  <bruno@clisp.org>
78032
78033         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78034         from gl_avltreehash_list_implementation.
78035
78036 2006-10-03  Bruno Haible  <bruno@clisp.org>
78037
78038         * lib/gl_oset.c (gl_oset_add): Fix return type.
78039
78040 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78041
78042         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78043
78044 2006-10-02  Eric Blake  <ebb9@byu.net>
78045
78046         * modules/strnlen (Depends-on): Add extensions.
78047
78048 2006-10-02  Eric Blake  <ebb9@byu.net>
78049
78050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78051         definition in 2.60+.
78052
78053 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78054
78055         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78056         checks.
78057
78058 2006-10-02  Bruno Haible  <bruno@clisp.org>
78059
78060         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78061         to the AUTOMAKE_OPTIONS.
78062         Reported by Jim Meyering.
78063
78064 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         Work around bug in Solaris 10 /proc file system:
78067         /proc/self/fd/NNN/.. isn't the parent directory of
78068         the directory whose file descriptor is NNN.  This needs to
78069         be worked around at run time, not compile time, since a
78070         program might be built on Solaris 8, where things work, and
78071         run on Solaris 10.
78072         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
78073         to use the following interface instead:
78074         (OPENAT_BUFFER_SIZE): New macro.
78075         (openat_proc_name): New function.
78076         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
78077         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
78078         Likewise.
78079         * lib/openat-proc.c: New file.
78080         * modules/openat (Files): Add lib/openat-proc.c.
78081         (Depends-on): Add same-inode, stdbool.
78082         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
78083
78084 2006-09-29  Bruno Haible  <bruno@clisp.org>
78085
78086         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
78087         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
78088         argument. Set stdout_closed before testing for ferror, not after.
78089         (fwriteerror, fwriteerror_no_ebadf): New functions.
78090
78091 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78092
78093         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
78094
78095 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
78096
78097         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
78098         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
78099
78100 2006-09-28  Jim Meyering  <jim@meyering.net>
78101
78102         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
78103         Include <unistd.h>.
78104
78105 2006-09-28  Bruno Haible  <bruno@clisp.org>
78106
78107         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
78108         * modules/linkedhash-list (Depends-on): Likewise.
78109         * modules/rbtreehash-list (Depends-on): Likewise.
78110
78111 2006-09-28  Bruno Haible  <bruno@clisp.org>
78112
78113         * lib/strndup.h: Simplify the redefinition of strndup.
78114         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
78115         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
78116
78117 2006-09-28  Bruno Haible  <bruno@clisp.org>
78118
78119         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
78120         * lib/gl_linkedhash_list.c: Likewise.
78121         * lib/gl_rbtreehash_list.c: Likewise.
78122
78123 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
78126         getaddrinfo.
78127
78128         * lib/__fpending.h: Don't include <stdio_ext.h> unless
78129         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
78130         it causes <stdio_ext.h> to cause a compile-time error.
78131         Problem reported by Nelson H. F. Beebe.
78132         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
78133         of HAVE_DECL___PENDING.
78134
78135         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
78136         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
78137         declaration.
78138
78139 2006-09-27  Jim Meyering  <jim@meyering.net>
78140
78141         This file could end up with a definition for a function
78142         named __strndup, rather than rpl_strndup on a system with
78143         incomplete weak_alias support.
78144         * lib/strndup.c (strndup): Rename from __strndup.
78145         Remove #defines that used to map __strndup to strndup.
78146         Don't use K&R prototypes.
78147         Remove LIBC-related code, since this file is not sync'd with glibc.
78148         * lib/strndup.h: Revamp, accordingly.
78149         * m4/strndup.m4: Modernize.
78150
78151 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78152
78153         * modules/savewd (Depends-on): Add 'raise'.
78154         * lib/savewd.c: Include <signal.h>, for 'raise'.
78155
78156 2006-09-26  Jim Meyering  <jim@meyering.net>
78157
78158         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
78159         when we detect Darwin 8.7.0's acl_get_file bug.
78160         Rearrange to perform the new (below) run-test while $LIBS
78161         contains any acl-related library.  Set USE_ACL at the end.
78162         (gl_ACL_GET_FILE): New function.
78163
78164 2006-09-26  Eric Blake  <ebb9@byu.net>
78165
78166         * lib/verror.c: Include <config.h> unconditionally.
78167
78168 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * modules/clock-time (Maintainer): Add self.
78171         * modules/getlogin_r (Depends-on): Add extensions.
78172
78173 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78174
78175         * modules/clock-time: New module.
78176         * modules/nanosleep (Depends-on): Add clock-time.
78177         * modules/gethrxtime (Depends-on): Likewise.
78178         * modules/gettime (Depends-on): Likewise.
78179         * modules/settime (Depends-on): Likewise.
78180
78181         * modules/fts-lgpl: Depend on openat.
78182         * modules/mkancesdirs: Depend on savewd.
78183         * modules/mkdir-p: Likewise.
78184
78185 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78186
78187         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
78188
78189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
78190         `gl_have_arbitrary_file_name_length_limit' to
78191         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
78192         actually works between configure runs.
78193
78194 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78195             Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
78198
78199 2006-09-25  Jim Meyering  <jim@meyering.net>
78200
78201         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
78202         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
78203
78204 2006-09-25  Eric Blake  <ebb9@byu.net>
78205
78206         * gnulib-tool (func_import, func_create_testdir): Fix typos in
78207         exec's in 2006-09-18 patch when shuffling fds.
78208
78209 2006-09-25  Bruno Haible  <bruno@clisp.org>
78210
78211         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
78212         Reported by Jim Meyering.
78213
78214 2006-09-24  Jim Meyering  <jim@meyering.net>
78215
78216         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
78217         compare a pointer against a literal "0".  That caused failures with
78218         at least HP-UX's hpcc.
78219
78220 2006-09-22  Simon Josefsson  <jas@extundo.com>
78221
78222         * modules/gc-sha1:
78223         * modules/gc-md4:
78224         * modules/gc-hmac-sha1:
78225         * modules/gc-hmac-md5:
78226         * modules/gc-des:
78227         * modules/gc-arcfour: Distribute more files.
78228
78229 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78230
78231         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
78232         (gl_linked_iterator_from_to): Initialize struct completely.
78233         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
78234         (gl_tree_iterator_from_to): Likewise
78235         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
78236         * lib/gl_array_list.c [lint] (gl_array_iterator)
78237         (gl_array_iterator_from_to): Likewise.
78238         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
78239         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
78240         (gl_carray_iterator_from_to): Likewise.
78241
78242         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
78243         * lib/md4.c (md4_process_block): Remove unused variable.
78244         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
78245         parentheses for clarity.
78246
78247 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78248
78249         * modules/bison-i18n (Depends-on): Add gettext.
78250
78251 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78252
78253         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
78254         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
78255         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
78256         also add missing comma that caused broken test.
78257         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
78258         stdlib.h, for `abort'.
78259         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
78260         variables.
78261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
78262         include unistd.h if present, for `rmdir'.
78263         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
78264         variables.
78265         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
78266         in the process include standard headers for prototypes.
78267         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
78268         gets declared on GNU/Linux.
78269         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
78270         unistd.h, for `rmdir'.
78271         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
78272
78273         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
78274         always true.
78275         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
78276
78277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
78278
78279 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78280
78281         * gnulib-tool (func_version): Create output all at once.  This
78282         may help avoid triggering unnecessary SIGPIPEs, and at any
78283         rate it doesn't hurt.
78284
78285 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78286             Bruno Haible  <bruno@clisp.org>
78287
78288         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
78289         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78290         * m4/signed.m4 (bh_C_SIGNED): Likewise.
78291
78292         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
78293         (gl_FUNC_VASPRINTF): Invoke it.
78294
78295 2006-09-22  Bruno Haible  <bruno@clisp.org>
78296
78297         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
78298         getloadavg.c as first argument.
78299
78300 2006-09-22  Bruno Haible  <bruno@clisp.org>
78301
78302         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
78303         at the beginning of the gl_INIT macro.
78304         * modules/getloadavg (configure.ac): Pass $gl_source_base to
78305         gl_GETLOADAVG.
78306
78307 2006-09-22  Bruno Haible  <bruno@clisp.org>
78308
78309         * gnulib-tool (func_create_megatestdir): Don't include the config-h
78310         module.
78311         Suggested by Ralf Wildenhues.
78312
78313 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         Import this patch from libc:
78316
78317         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
78318
78319         * lib/regex_internal.c (re_string_reconstruct): Handle
78320         offset < pstr->valid_raw_len && pstr->offsets_needed case.
78321         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
78322         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
78323         re_string_context_at.
78324
78325         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
78326         now requires it.
78327         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
78328         gl_REGEX now does it for us.
78329         (gl_REGEX): Add test taken from
78330         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
78331
78332         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
78333         Check that large offsets work.  Modernize Autoconf usages.
78334         Prefer "yes" to mean a good thing rather than a bad.
78335         Don't put "#define mkstemp" in config.h, as this might interfere
78336         with standard system headers that "#define mkstemp mkstemp64".
78337
78338         * modules/mkstemp (Depends-on): Add extensions, so that
78339         mkstemp is visible on some platforms.
78340         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
78341         (Include): Change to "mkstemp.h" from <stdlib.h>.
78342         (Files): Add mkstemp.h.
78343
78344         * lib/mkstemp.h: New file, since some standard headers
78345         #define mkstemp.
78346         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
78347         Include "mkstemp.h".
78348         Make the _LIBC code resemble glibc original more,
78349         e.g., use K&R style.
78350         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
78351         (mkstemp): Remove, since mkstemp.h does this for us.
78352         * lib/stdlib--.h: Include mkstemp.h.
78353
78354         Import this patch from libc:
78355
78356         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78357
78358         * lib/tempname.c (__gen_tempname): Change attempts_min
78359         into a macro.  Use preprocessor to decide how to initialize
78360         attempts [Coverity CID 67].
78361
78362 2006-09-20  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/mkdtemp.c: Import from libc.
78365         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
78366                 * sysdeps/posix/tempname.c (__gen_tempname): Change
78367                 attempts_min into a macro.  Use preprocessor to decide how to
78368                 initialize attempts [Coverity CID 67].
78369         2001-11-27  Paul Eggert  <eggert@twinsun.com>
78370                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
78371                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
78372
78373 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78374
78375         * gnulib-tool (func_exit): New function, to allow to pass the
78376         exit status portably through the trap.  Use everywhere.
78377         (--help, --version): Signal a write error.
78378         (trap): catch SIGPIPE, for write errors.
78379         Exit at the end of the trap, with the correct exit status.
78380
78381 2006-09-19  Karl Berry  <karl@gnu.org>
78382
78383         * doc/gnulib.texi: note about the license texinfo files.
78384
78385 2006-09-19  Eric Blake  <ebb9@byu.net>
78386
78387         * gnulib-tool: Avoid space-tab.
78388
78389 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
78392         that prevented coreutils 6.1 from building.  Problem reported
78393         by Petter Reinholdtsen.
78394
78395 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * gnulib-tool (avoidlist): Fix typo that broke options like
78398         --avoid=lock that are used by coreutils bootstrap.
78399
78400 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
78401
78402         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
78403         more systematically.
78404
78405 2006-09-18  Jim Meyering  <jim@meyering.net>
78406
78407         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
78408
78409 2006-09-18  Bruno Haible  <bruno@clisp.org>
78410
78411         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
78412
78413 2006-09-18  Bruno Haible  <bruno@clisp.org>
78414
78415         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
78416         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
78417         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
78418         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
78419         * m4/gettext.m4: Require autoconf >= 2.52.
78420         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
78421         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
78422         of gl_cv_header_inttypes_h.
78423
78424 2006-09-18  Bruno Haible  <bruno@clisp.org>
78425
78426         * lib/javaversion.c: Include configmake.h.
78427
78428 2006-09-18  Bruno Haible  <bruno@clisp.org>
78429
78430         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
78431         avoid that the while loops be executed in a subshell.
78432
78433 2006-09-18  Bruno Haible  <bruno@clisp.org>
78434
78435         * MODULES.html.sh (func_module): Break long lines.
78436         Suggested by Bruce Korb <bkorb@gnu.org>.
78437
78438 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78439
78440         Speed up by a factor of 1.12.
78441         * gnulib-tool (nl): New variable.
78442         (func_import): Rewrite include directive extraction to only read each
78443         directive once.
78444
78445 2006-09-17  Bruno Haible  <bruno@clisp.org>
78446
78447         * modules/javaversion (Makefile.am): Remove DEFS setting.
78448         (Depends-on): Add configmake, for PKGDATADIR definition.
78449
78450 2006-09-17  Bruno Haible  <bruno@clisp.org>
78451
78452         * gnulib-tool (func_create_testdir): Rewrite all files at once.
78453
78454 2006-09-17  Bruno Haible  <bruno@clisp.org>
78455
78456         * gnulib-tool (func_append): New function, stolen from libtool.m4.
78457         (func_modules_transitive_closure, func_modules_add_dummy,
78458         func_modules_to_filelist, func_import, func_create_testdir,
78459         func_create_megatestdir, ...): Use it wherever possible.
78460         Suggested by Ralf Wildenhues.
78461
78462 2006-09-16  Karl Berry  <karl@gnu.org>
78463
78464         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
78465         to avoid sectioning errors.
78466         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
78467         [ifinfo]: blank line after @center-ed titles.
78468         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
78469         Spell FSF address consistently with others.
78470         (These changes approved by rms.)
78471
78472 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78473
78474         Speed up by a factor of 1.61.
78475         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
78476         already checked module names again.
78477
78478 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78479
78480         Speed up by a factor of 1.13.
78481         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
78482         for new_files, and the input to func_add_or_update.
78483
78484 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78485
78486         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
78487         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
78488
78489 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * modules/mkancesdirs (Depends-on): Add fcntl.
78492         * modules/savewd: New file.
78493         * MODULES.html.sh (File system functions): Add savewd.
78494
78495         * modules/configmake (Makefile.am): Add support for the
78496         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
78497
78498 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78499
78500         * m4/savewd.m4: New file.
78501
78502 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
78505         (dirchownmod): New arg FD.  All callers changed.
78506         Use FD rather than opening the directory ourself, as opening is
78507         now the caller's responsibility.
78508         * lib/dirchownmod.h: Likewise.
78509         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
78510         hosts that require <sys/types.h> before <sys/stat.h>.  Include
78511         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
78512         (test_dir): Remove.
78513         (mkancesdirs): Return length of prefix of FILE that has already
78514         been made, or -2 if there is a child doing the work.  Redo
78515         algorithm so that it is O(N) rather than O(N**2).  Optimize away
78516         ".", and treat ".." specially since it might stray back into
78517         already-created areas.  Use a subprocess if necessary.  New arg
78518         WD; all users changed.  MAKE_DIR function should now return 1
78519         if it creates a directory that is not readable.  Return -2 if
78520         a child process is spun off.
78521         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
78522         Adjust signature to match code.
78523         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
78524         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
78525         all users changed.
78526         * lib/savewd.c, lib/savewd.h: New files.
78527
78528 2006-09-15  Jim Meyering  <jim@meyering.net>
78529
78530         * modules/rename-dest-slash: New module.
78531         * MODULES.html.sh (posix_compat): Add it here.
78532
78533         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
78534
78535 2006-09-15  Jim Meyering  <jim@meyering.net>
78536
78537         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
78538         file.
78539
78540         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
78541
78542 2006-09-15  Jim Meyering  <jim@meyering.net>
78543
78544         * lib/rename-dest-slash.c (has_trailing_slash): Use
78545         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
78546         (rpl_rename_dest_slash): Perform the cheaper trailing slash
78547         test before testing whether SRC is a directory.
78548         Suggestions from Bruno Haible.
78549
78550         Avoid a warning about an unused variable.
78551         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
78552         into the #ifdef block where it's used.
78553
78554         * lib/rename-dest-slash.c: New file.
78555
78556 2006-09-14  Bruno Haible  <bruno@clisp.org>
78557
78558         * lib/allocsa.c: Include <config.h> unconditionally.
78559         * lib/asnprintf.c: Likewise.
78560         * lib/asprintf.c: Likewise.
78561         * lib/c-strcasecmp.c: Likewise.
78562         * lib/c-strcasestr.c: Likewise.
78563         * lib/c-strncasecmp.c: Likewise.
78564         * lib/c-strstr.c: Likewise.
78565         * lib/classpath.c: Likewise.
78566         * lib/clean-temp.c: Likewise.
78567         * lib/concatpath.c: Likewise.
78568         * lib/copy-file.c: Likewise.
78569         * lib/csharpcomp.c: Likewise.
78570         * lib/csharpexec.c: Likewise.
78571         * lib/execute.c: Likewise.
78572         * lib/fatal-signal.c: Likewise.
78573         * lib/findprog.c: Likewise.
78574         * lib/fwriteerror.c: Likewise.
78575         * lib/gl_array_list.c: Likewise.
78576         * lib/gl_array_oset.c: Likewise.
78577         * lib/gl_avltree_list.c: Likewise.
78578         * lib/gl_avltree_oset.c: Likewise.
78579         * lib/gl_avltreehash_list.c: Likewise.
78580         * lib/gl_carray_list.c: Likewise.
78581         * lib/gl_linked_list.c: Likewise.
78582         * lib/gl_linkedhash_list.c: Likewise.
78583         * lib/gl_list.c: Likewise.
78584         * lib/gl_oset.c: Likewise.
78585         * lib/gl_rbtree_list.c: Likewise.
78586         * lib/gl_rbtree_oset.c: Likewise.
78587         * lib/gl_rbtreehash_list.c: Likewise.
78588         * lib/imaxabs.c: Likewise.
78589         * lib/imaxdiv.c: Likewise.
78590         * lib/javacomp.c: Likewise.
78591         * lib/javaexec.c: Likewise.
78592         * lib/javaversion.c: Likewise.
78593         * lib/linebreak.c: Likewise.
78594         * lib/localcharset.c: Likewise.
78595         * lib/lock.c: Likewise.
78596         * lib/mbchar.c: Likewise.
78597         * lib/mbswidth.c: Likewise.
78598         * lib/mkdtemp.c: Likewise.
78599         * lib/pipe.c: Likewise.
78600         * lib/printf-args.c: Likewise.
78601         * lib/printf-parse.c: Likewise.
78602         * lib/progname.c: Likewise.
78603         * lib/progreloc.c: Likewise.
78604         * lib/readlink.c: Likewise.
78605         * lib/sh-quote.c: Likewise.
78606         * lib/stpcpy.c: Likewise.
78607         * lib/stpncpy.c: Likewise.
78608         * lib/strcasecmp.c: Likewise.
78609         * lib/strcasestr.c: Likewise.
78610         * lib/strcspn.c: Likewise.
78611         * lib/striconv.c: Likewise.
78612         * lib/strncasecmp.c: Likewise.
78613         * lib/strnlen1.c: Likewise.
78614         * lib/strstr.c: Likewise.
78615         * lib/strtok_r.c: Likewise.
78616         * lib/tls.c: Likewise.
78617         * lib/tmpdir.c: Likewise.
78618         * lib/unicodeio.c: Likewise.
78619         * lib/unsetenv.c: Likewise.
78620         * lib/vasnprintf.c: Likewise.
78621         * lib/vasprintf.c: Likewise.
78622         * lib/wait-process.c: Likewise.
78623         * lib/xallocsa.c: Likewise.
78624         * lib/xsetenv.c: Likewise.
78625         * lib/xstriconv.c: Likewise.
78626
78627 2006-09-13  Simon Josefsson  <jas@extundo.com>
78628
78629         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
78630         that internally, suggested by Ralf Wildenhues
78631         <Ralf.Wildenhues@gmx.de>.
78632
78633 2006-09-13  Simon Josefsson  <jas@extundo.com>
78634
78635         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
78636         @LIBOBJS@.
78637         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78638
78639 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
78640
78641         * lib/_fpending.c: Include <config.h> unconditionally, since we no
78642         longer worry about uses that don't define HAVE_CONFIG_H.
78643         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
78644         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
78645         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
78646         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
78647         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
78648         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
78649         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
78650         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
78651         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
78652         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
78653         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
78654         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
78655         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
78656         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
78657         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
78658         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
78659         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
78660         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
78661         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
78662         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
78663         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
78664         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
78665         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
78666         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
78667         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
78668         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
78669         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
78670         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
78671         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
78672         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
78673         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
78674         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
78675         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
78676         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
78677         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
78678         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
78679         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
78680         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
78681         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
78682         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
78683         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
78684         Likewise.
78685
78686 2006-09-13  Eric Blake  <ebb9@byu.net>
78687
78688         * lib/getopt.c: Fix typo in last commit.
78689
78690 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78691
78692         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
78693         dgettext.
78694
78695 2006-09-12  Jim Meyering  <jim@meyering.net>
78696
78697         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
78698         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
78699         Reported by Nelson H. F. Beebe.
78700
78701 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78702
78703         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
78704         program_invocation_name and program_invocation_short_name are
78705         initialized.
78706         * lib/argp-namefrob.h: Move declarations of program_invocation_name
78707         and program_invocation_short_name to argp.h, so they are visible
78708         to user programs.
78709         * lib/argp.h: Likewise
78710
78711 2006-09-10  Bruno Haible  <bruno@clisp.org>
78712
78713         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78714         m4/inttypes_h.m4, m4/uintmax_t.m4.
78715
78716 2006-09-10  Bruno Haible  <bruno@clisp.org>
78717
78718         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
78719         gl_AC_TYPE_UINTMAX_T.
78720
78721 2006-09-10  Bruno Haible  <bruno@clisp.org>
78722
78723         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
78724
78725 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78726
78727         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
78728         convention.  Text proposed by Bruno Haible.
78729         (struct argp_option): Document the use of N_() wrappers.
78730
78731         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
78732         '\v', and translate the two parts separately, instead of feeding
78733         the whole string to gettext.  This allows to exclude
78734         '\v' from the strings visible to the translator by writing doc
78735         strings as N_("..") "\v" N_("..").
78736
78737 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         * config/srclist.txt: Undo latest change; the bug was fixed.
78740
78741 2006-09-09  Bruno Haible  <bruno@clisp.org>
78742
78743         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
78744         assignments if building a library without libtool.
78745         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
78746         in func_emit_lib_Makefile_am.
78747         (func_import): When building a static library libfoo.a, arrange to
78748         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
78749         (func_create_testdir): Likewise.
78750         * modules/gc (configure.ac, Makefile.am): If building statically,
78751         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
78752         * modules/iconvme (configure.ac, Makefile.am): Likewise.
78753         * modules/striconv (configure.ac, Makefile.am): Likewise.
78754         Based on a suggestion by Ralf Wildenhues.
78755
78756 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
78759         Check for unistd.h too, since Autoconf doesn't assume POSIX.
78760         Also:
78761
78762         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78763         Add year_2050_test to catch glibc bug 2821
78764         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78765
78766         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78767         Prefer #ifdef to #if.
78768
78769         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
78770         Return from 'main' instead of calling 'exit'.
78771
78772 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78773
78774         * lib/mktime.c (guess_time_tm): Fix bug where mktime
78775         returned the maximum time_t value rather than (time_t) -1.
78776         Problem originally reported by William Bardwell
78777         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
78778
78779         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78780         Moved to here ...
78781         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
78782         ... from here.
78783
78784 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
78785
78786         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
78787         2821 is fixed.
78788
78789 2006-09-08  Jim Meyering  <jim@meyering.net>
78790
78791         Don't make generated files read-only.  That would bother too many
78792         people.  However, do retain the ability to work when targets are
78793         read-only: remove the destination and temporary files before writing
78794         them (when generated via sed or echo), or by using the -f option for
78795         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
78796         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78797         * modules/byteswap, modules/configmake, modules/fcntl:
78798         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78799         * modules/localcharset, modules/netinet_in, modules/poll:
78800         * modules/stdbool, modules/stdint, modules/sys_select:
78801         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78802
78803 2006-09-08  Jim Meyering  <jim@meyering.net>
78804
78805         Avoid new build failure on FreeBSD 6.0.
78806         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
78807         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
78808         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
78809
78810 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78811
78812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
78813
78814 2006-09-07  Jim Meyering  <jim@meyering.net>
78815
78816         Fix global typo in last change: use chmod u-w, not chmod u-x.
78817         Spotted by Paul Eggert and Bruce Korb.
78818         * modules/alloca-opt, modules/argz, modules/arpa_inet:
78819         * modules/byteswap, modules/configmake, modules/fcntl:
78820         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
78821         * modules/localcharset, modules/netinet_in, modules/poll:
78822         * modules/stdbool, modules/stdint, modules/sys_select:
78823         * modules/sys_socket, modules/sys_stat, modules/sysexits:
78824
78825 2006-09-06  Jim Meyering  <jim@meyering.net>
78826
78827         Make generated files be read-only.
78828         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
78829         Ensure that each generated file is now read-only.
78830         * modules/argz: Likewise.
78831         * modules/arpa_inet: Likewise.
78832         * modules/byteswap: Likewise.
78833         * modules/configmake: Likewise.
78834         * modules/fcntl: Likewise.
78835         * modules/fnmatch: Likewise.
78836         * modules/getopt: Likewise.
78837         * modules/glob: Likewise.
78838         * modules/inttypes: Likewise.
78839         * modules/netinet_in: Likewise.
78840         * modules/poll: Likewise.
78841         * modules/stdbool: Likewise.
78842         * modules/stdint: Likewise.
78843         * modules/sys_select: Likewise.
78844         * modules/sys_socket: Likewise.
78845         * modules/sys_stat: Likewise.
78846         * modules/sysexits: Likewise.
78847         * modules/localcharset: Same as above, but continue using temporary
78848         file named "t-$@" (why different?) rather than the "$@-t" used
78849         everywhere else.
78850
78851         * modules/sysexits (Makefile.am): Replace literal occurrences
78852         of "sysexit.h" more readable, and more consistent, "$@".
78853
78854 2006-09-06  Bruno Haible  <bruno@clisp.org>
78855
78856         * modules/striconv: New file.
78857         * modules/xstriconv: New file.
78858         * MODULES.html.sh (Internationalization functions): Add striconv,
78859         xstriconv.
78860
78861 2006-09-06  Bruno Haible  <bruno@clisp.org>
78862
78863         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78864         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78865         not using libtool correctly.
78866
78867 2006-09-06  Bruno Haible  <bruno@clisp.org>
78868
78869         * lib/striconv.h: New file.
78870         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78871         iconvstring.c.
78872         * lib/xstriconv.h: New file.
78873         * lib/xstriconv.c: New file.
78874
78875 2006-09-06  Bruno Haible  <bruno@clisp.org>
78876
78877         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78878         lib_..._LDFLAGS.
78879
78880 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78881
78882         * lib/argz_.h: Sync from Libtool.
78883
78884         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78885                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78886
78887         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78888
78889 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78890
78891         * modules/trim: New file.
78892
78893 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78894
78895         * lib/trim.h: New file.
78896         * lib/trim.c: New file.
78897
78898 2006-09-05  Bruno Haible  <bruno@clisp.org>
78899
78900         * MODULES.html.sh (String handling): Add trim.
78901
78902 2006-09-04  Karl Berry  <karl@gnu.org>
78903
78904         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78905         until next release.
78906
78907 2006-09-03  Bruno Haible  <bruno@clisp.org>
78908
78909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78910         correctly.
78911
78912 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78913
78914         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78915         not gl_GETLOADAVG.  Omit unneeded semicolons.
78916         Problems reported by Ralf Wildenhues in
78917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78918         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78919         at the end, which is the usual gnulib style.
78920
78921         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78922         of doing all the work ourselves.
78923         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78924         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78925
78926 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78929         Problem reported by Ralf Wildenhues in
78930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78931
78932         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78933         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78934
78935 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78936
78937         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78938         yesterday's patch by changing test -n to test -z.
78939
78940 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78943         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78944         the former is now obsolescent.
78945
78946         * modules/chdir-long (Depends-on): Add fcntl.
78947
78948 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78951         obsolescent, and programs should use gnulib instead.
78952         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78953         but with prefixes changed.
78954
78955 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78958         or stdbool.h, because they might not exist while configuring.
78959
78960         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78961         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78962         does that for us.
78963         (O_DIRECTORY): Remove.
78964
78965 2006-08-31  Eric Blake  <ebb9@byu.net>
78966
78967         * gnulib-tool: Don't let emacs change spaces to TAB.
78968
78969 2006-08-31  Bruno Haible  <bruno@clisp.org>
78970
78971         * gnulib-tool: When calling func_import more than once, do it in a
78972         subshell.
78973         Reported by Eric Blake <ebb9@byu.net>.
78974
78975 2006-08-31  Bruno Haible  <bruno@clisp.org>
78976
78977         * gnulib-tool (nl): Remove variable.
78978         (sed_transform_lib_file): Use more robust test for config-h module.
78979         (func_import): Fix typo in 2006-08-25 patch.
78980
78981 2006-08-31  Bruno Haible  <bruno@clisp.org>
78982
78983         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78984         specified, augment Makefile.am variables instead of assigning them.
78985
78986 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78987
78988         Work around a bug in both the Linux and SunOS 64-bit kernels:
78989         nanosleep mishandles sleeps for longer than 2**31 seconds.
78990         Problem reported by Frank v Waveren in
78991         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78993         Check for nanosleep bug.
78994         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78995
78996 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78997
78998         Work around a bug in both the Linux and SunOS 64-bit kernels:
78999         nanosleep mishandles sleeps for longer than 2**31 seconds.
79000         Problem reported by Frank v Waveren in
79001         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79002         * lib/nanosleep.c (BILLION): New constant.
79003         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79004         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79005         implementation.
79006
79007 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79008
79009         * modules/nanosleep (Depends-on): Add gettime.
79010
79011 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79012         and Simon Josefsson  <jas@extundo.com>
79013         and Oskar Liljeblad  <oskar@osk.mine.nu>
79014
79015         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79016         * gnulib-tool (func_import): New license type 'unmodifiable license
79017         text'.
79018         * modules/fdl: Use it.  Longer description.
79019         * module/gpl, module/lgpl: New files.
79020
79021 2006-08-30  Jim Meyering  <jim@meyering.net>
79022
79023         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79024         shadowing the parameter.
79025
79026 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79027
79028         Sync from Libtool:
79029
79030         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79031
79032         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79033         sharing with gnulib.  Report by Eric Blake.
79034
79035 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79036
79037         * modules/isapipe: New file.
79038         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79039
79040 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * modules/configmake (Makefile.am): Add a comment, and omit
79043         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79044         by Bruno Haible.
79045
79046 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * m4/isapipe.m4: New file.
79049
79050 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * lib/isapipe.c, lib/isapipe.h: New files.
79053
79054 2006-08-29  Jim Meyering  <jim@meyering.net>
79055
79056         * modules/configmake (Makefile.am): Make configmake.h depend on
79057         Makefile.  Otherwise, a stale configmake.h could hang around.
79058
79059 2006-08-29  Eric Blake  <ebb9@byu.net>
79060
79061         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79062         resolution of upstream bug 3044.
79063
79064 2006-08-29  Bruno Haible  <bruno@clisp.org>
79065
79066         * modules/localcharset (Depends-on): Add configmake.
79067         (Makefile.am): Remove setting of LIBDIR through DEFS.
79068
79069 2006-08-29  Bruno Haible  <bruno@clisp.org>
79070
79071         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
79072         defined.
79073
79074 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79075
79076         * modules/fcntl: New file.
79077         * modules/chdir-safer (Depends-on): Add fcntl.
79078         * modules/fts: Likewise.
79079         * modules/mkdir-p: Likewise.
79080
79081         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
79082         This undoes the most recent change, since we're now addressing the
79083         problem in a different way.
79084
79085         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
79086         into output, since the output might be called Makefile.am even
79087         if $makefile_name is something different.
79088         (func_import): Use $makefile_am rather than
79089         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
79090         empty.
79091
79092         * modules/inttypes (Files): Add m4/inttypes-h.m4.
79093
79094 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
79097         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
79098         recent change to stdint.m4, since we're now addressing the problem in a
79099         different way.
79100
79101 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * m4/fcntl_h.m4: New file.
79104
79105 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/fcntl_.h: New file.
79108         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
79109         the fcntl module.
79110         * lib/dirchownmod.c: Likewise.
79111         * lib/fts.c: Likewise.
79112
79113         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
79114         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
79115         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
79116         just before including <inttypes.h>, to avoid circular inclusion.
79117
79118 2006-08-28  Jim Meyering  <jim@meyering.net>
79119
79120         * doc/visibility.texi: Actually read and correct the grammar of the
79121         sentence affected by yesterday's change.
79122
79123 2006-08-28  Eric Blake  <ebb9@byu.net>
79124
79125         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
79126         needs wrapper.
79127
79128 2006-08-28  Eric Blake  <ebb9@byu.net>
79129
79130         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
79131
79132 2006-08-28  Eric Blake  <ebb9@byu.net>
79133
79134         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
79135
79136 2006-08-28  Bruno Haible  <bruno@clisp.org>
79137
79138         * modules/c-strstr: New file, from GNU gettext.
79139         * MODULES.html.sh (String handling): Add c-strstr.
79140
79141 2006-08-28  Bruno Haible  <bruno@clisp.org>
79142
79143         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
79144         macros.
79145         Reported by Eric Blake.
79146
79147 2006-08-28  Bruno Haible  <bruno@clisp.org>
79148
79149         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
79150         (VASNPRINTF): Return a string of length > INT_MAX without failing.
79151         * lib/vasprintf.c: Include errno.h, limits.h.
79152         (EOVERFLOW): New fallback definition.
79153         (vasprintf): Test here whether the string length is > INT_MAX.
79154         * lib/vsnprintf.c: Include errno.h, limits.h.
79155         (EOVERFLOW): New fallback definition.
79156         (vsnprintf): Fix bug when generated string was too long for the buffer.
79157         Test here whether the string length is > INT_MAX.
79158
79159 2006-08-28  Bruno Haible  <bruno@clisp.org>
79160
79161         * lib/inttypes_.h (SCNX*): Remove definitions.
79162         Reported by Eric Blake.
79163
79164 2006-08-28  Bruno Haible  <bruno@clisp.org>
79165
79166         * lib/c-strstr.h: New file, from GNU gettext.
79167         * lib/c-strstr.c: New file, from GNU gettext.
79168
79169 2006-08-28  Bruno Haible  <bruno@clisp.org>
79170
79171         * gnulib-tool: Reorder some statements.
79172
79173 2006-08-28  Bruno Haible  <bruno@clisp.org>
79174
79175         * gnulib-tool: New option --makefile-name.
79176         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
79177         $makefile_name.
79178         (func_import): Write $makefile_name to the cache file, and read it from
79179         there unless explicitly specified. Use $makefile_name as file name
79180         instead of Makefile.am. Adjust the recommendations accordingly.
79181
79182 2006-08-28  Bruno Haible  <bruno@clisp.org>
79183
79184         * gnulib-tool (func_verify_module): Check against misapplying patch.
79185
79186 2006-08-28  Bruno Haible  <bruno@clisp.org>
79187
79188         * gnulib-tool (func_relativize, func_relconcat): New functions.
79189         Give an error if --local-dir is given with --update.
79190         Remove trailing slashes from $local_gnulib_dir.
79191         (func_import): Store the relativized $local_gnulib_dir in
79192         gnulib-cache.m4, and read it from there if not specified explicitly.
79193
79194 2006-08-28  Bruno Haible  <bruno@clisp.org>
79195
79196         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
79197         is the current directory. Respect also $local_gnulib_dir.
79198
79199 2006-08-28  Bruno Haible  <bruno@clisp.org>
79200             Simon Josefsson  <jas@extundo.com>
79201
79202         BeOS portability.
79203         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
79204
79205 2006-08-27  Jim Meyering  <jim@meyering.net>
79206
79207         * doc/visibility.texi: Remove duplicate word: "pointer".
79208
79209 2006-08-26  Bruno Haible  <bruno@clisp.org>
79210
79211         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
79212         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
79213         (Makefile.am): Create inttypes.h from inttypes_.h.
79214         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
79215
79216         * modules/imaxabs: New file.
79217
79218         * modules/imaxdiv: New file.
79219
79220 2006-08-26  Bruno Haible  <bruno@clisp.org>
79221
79222         * m4/inttypes.m4: New file.
79223         * m4/_inttypes_h.m4: Remove file.
79224         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
79225         PRI_MACROS_BROKEN.
79226         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
79227
79228         * m4/imaxabs.m4: New file.
79229
79230         * m4/imaxdiv.m4: New file.
79231
79232 2006-08-26  Bruno Haible  <bruno@clisp.org>
79233
79234         * lib/inttypes_.h: New file.
79235         * lib/inttypes.h: Remove file.
79236         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
79237
79238         * lib/imaxabs.c: New file.
79239
79240         * lib/imaxdiv.c: New file.
79241
79242 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79243
79244         New config-h module, so that "make" output needn't be cluttered
79245         by -DHAVE_CONFIG_H.
79246         * MODULES.html.sh (Support for building libraries and executables):
79247         Add config-h.
79248         * modules/config-h: New file.
79249         * gnulib-tool (nl, sed_transform_lib_file): New vars.
79250         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
79251         the config-h module is used.
79252
79253         New configmake module, so that "make" output needn't be cluttered
79254         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
79255         * MODULES.html.sh (Support for building libraries and executables):
79256         Add configmake.
79257         * modules/configmake: New file.
79258
79259 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * m4/config-h.m4: New file.
79262
79263 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * config/srclist.txt: Add elisp-comp.
79266
79267 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79268
79269         * MODULES.html.sh (Support for building libraries and executables):
79270         Add elisp-comp.
79271         * build-aux/elisp-comp: New file.
79272         * modules/elisp-comp: New file.
79273
79274 2006-08-24  Bruno Haible  <bruno@clisp.org>
79275
79276         * gnulib-tool (func_create_testdir): Use non-default values of
79277         sourcebase and m4base.
79278
79279 2006-08-24  Bruno Haible  <bruno@clisp.org>
79280
79281         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
79282         HTML structure.
79283
79284 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
79285
79286         * modules/openat (Depends-on): Add lchown.
79287
79288 2006-08-23  Bruno Haible  <bruno@clisp.org>
79289
79290         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
79291         of gl_LOCK_EARLY instead of gl_LOCK.
79292
79293 2006-08-23  Bruno Haible  <bruno@clisp.org>
79294
79295         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
79296         on OSF/1 to no.
79297         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
79298
79299 2006-08-23  Bruno Haible  <bruno@clisp.org>
79300
79301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
79302         as unusable.
79303
79304         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
79305         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
79306         (gl_LOCK): New macro.
79307
79308 2006-08-22  Simon Josefsson  <jas@extundo.com>
79309
79310         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
79311         to md5 module.
79312
79313 2006-08-22  Simon Josefsson  <jas@extundo.com>
79314
79315         * MODULES.html.sh: Add "Support for maintaining and release
79316         projects".
79317
79318         * build-aux/gnupload: New file, from coreutils.
79319
79320 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         Avoid the need for AC_LIBSOURCES in m4 macros.
79323         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
79324         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
79325         * modules/check-version (EXTRA_DIST): Add check-version.h.
79326         * modules/crc (EXTRA_DIST): Add crc.h.
79327         * modules/des (EXTRA_DIST): Add des.h.
79328         * modules/gc (EXTRA_DIST): Add gc.h.
79329         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
79330         * modules/getline (EXTRA_DIST): Add getline.h.
79331         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
79332         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
79333         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
79334         * modules/md2 (EXTRA_DIST): Add md2.h.
79335         * modules/md4 (EXTRA_DIST): Add md4.h.
79336         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
79337         * modules/read-file (EXTRA_DIST): Add read-file.h.
79338         * modules/readline (EXTRA_DIST): Add readline.h.
79339         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
79340         rijndael-api-fst.h.
79341
79342 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79343
79344         * m4/rijndael.m4 (gl_ARCFOUR):
79345         * m4/arctwo.m4 (gl_ARCTWO):
79346         * m4/check-version.m4 (gl_CHECK_VERSION):
79347         * m4/crc.m4 (gl_CRC):
79348         * m4/des.m4 (gl_DES):
79349         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
79350         * m4/gc.m4 (gl_GC):
79351         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
79352         * m4/getline.m4 (gl_FUNC_GETLINE):
79353         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
79354         * m4/hmac-md5.m4 (gl_HMAC_MD5):
79355         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
79356         * m4/md2.m4 (gl_MD2):
79357         * m4/md4.m4 (gl_MD4):
79358         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
79359         * m4/read-file.m4 (gl_FUNC_READ_FILE):
79360         * m4/readline.m4 (gl_FUNC_READLINE):
79361         * m4/rijndael.m4 (gl_RIJNDAEL):
79362         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79363         to get the necessary .h files and whatnot.
79364
79365 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
79368         gnulib rather than the other way around.
79369         * config/srclistvars.sh (COREUTILS): Remove.
79370
79371 2006-08-22  Jim Meyering  <jim@meyering.net>
79372
79373         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
79374
79375         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
79376
79377 2006-08-22  Eric Blake  <ebb9@byu.net>
79378
79379         * modules/regexprops-generic: New file.
79380         * MODULES.html.sh (Support for building documentation): List it.
79381
79382 2006-08-22  Eric Blake  <ebb9@byu.net>
79383
79384         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
79385         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
79386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
79387         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
79388
79389 2006-08-22  Bruno Haible  <bruno@clisp.org>
79390
79391         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
79392         and lib_LTLIBRARIES like the other lib_* variables.
79393
79394 2006-08-22  Bruno Haible  <bruno@clisp.org>
79395
79396         * build-aux/x-to-1.in: New file, from GNU gettext.
79397
79398 2006-08-22  Bruno Haible  <bruno@clisp.org>
79399
79400         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
79401         <utmpx.h> exists.
79402
79403 2006-08-22  Bruno Haible  <bruno@clisp.org>
79404
79405         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
79406         <utmpx.h> exists.
79407
79408 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         BeOS portability.
79411         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
79412         exist.
79413         Problem reported by Bruno Haible.
79414
79415 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         Avoid the need for AC_LIBSOURCES in m4 macros.
79418         * modules/acl (EXTRA_DIST): Add acl.h.
79419         * modules/argmatch (Files): Add m4/argmatch.m4.
79420         (configure.ac): Add gl_ARGMATCH.
79421         (EXTRA_DIST): Renamed from lib_SOURCES, for
79422         consistency with the other modules.  Remove argmatch.c.
79423         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
79424         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
79425         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
79426         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
79427         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
79428         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
79429         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
79430         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
79431         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
79432         * modules/closeout (EXTRA_DIST): Add closeout.h.
79433         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
79434         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
79435         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
79436         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
79437         dirname.h; remove basename.c and stripslash.c.
79438         * modules/exclude (EXTRA_DIST): Add exclude.h.
79439         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
79440         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
79441         * modules/file-type (EXTRA_DIST): Add file-type.h.
79442         * modules/filemode (EXTRA_DIST): Add filemode.h.
79443         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
79444         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79445         * modules/fpending (EXTRA_DIST): Add __fpending.h.
79446         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
79447         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
79448         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
79449         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
79450         * modules/getdate (EXTRA_DIST): Add getdate.c.
79451         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
79452         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
79453         * modules/getpass (EXTRA_DIST): Add getpass.h.
79454         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
79455         * modules/group-member (EXTRA_DIST): Add group-member.h.
79456         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
79457         * modules/hash (EXTRA_DIST): Add hash.h.
79458         * modules/human (EXTRA_DIST): Add human.h.
79459         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
79460         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
79461         * modules/lchown (EXTRA_DIST): Add lchown.h.
79462         * modules/long-options (EXTRA_DIST): Add long-options.h.
79463         * modules/lstat (EXTRA_DIST): Add lstat.h.
79464         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
79465         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
79466         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
79467         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
79468         * modules/memxor (EXTRA_DIST): Add memxor.h.
79469         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
79470         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
79471         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
79472         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
79473         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
79474         * modules/physmem (EXTRA_DIST): Add physmem.h.
79475         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
79476         * modules/posixver (EXTRA_DIST): Add posixver.h.
79477         * modules/quote (EXTRA_DIST): Add quote.h.
79478         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
79479         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
79480         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
79481         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
79482         regex_internal.h regexec.c.
79483         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
79484         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
79485         * modules/same (EXTRA_DIST): Add same.h.
79486         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
79487         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
79488         * modules/savedir (EXTRA_DIST): Add savedir.h.
79489         * modules/sha1 (EXTRA_DIST): Add sha1.h.
79490         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
79491         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
79492         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
79493         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
79494         * modules/strdup (EXTRA_DIST): Add strdup.h.
79495         * modules/strftime (EXTRA_DIST): Add strftime.h.
79496         * modules/strndup (EXTRA_DIST): Add strndup.h.
79497         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
79498         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
79499         * modules/time_r (EXTRA_DIST): Add time_r.h.
79500         * modules/timespec (EXTRA_DIST): Add timespec.h.
79501         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
79502         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
79503         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
79504         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
79505         * modules/userspec (EXTRA_DIST): Add userspec.h.
79506         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
79507         * modules/utimens (EXTRA_DIST): Add utimens.h.
79508         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
79509         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
79510         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
79511         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
79512         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
79513         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
79514         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
79515         * modules/yesno (EXTRA_DIST): Add yesno.h.
79516
79517 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
79518
79519         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
79520
79521         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
79522         * m4/dev-ino.m4, same-inode.m4: Remove.
79523
79524         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
79525         * m4/acl.m4 (AC_FUNC_ACL):
79526         * m4/backupfile.m4 (gl_BACKUPFILE):
79527         * m4/c-strtod.m4 (gl_C99_STRTOLD):
79528         * m4/canon-host.m4 (gl_CANON_HOST):
79529         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
79530         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
79531         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
79532         * m4/cloexec.m4 (gl_CLOEXEC):
79533         * m4/close-stream.m4 (gl_CLOSE_STREAM):
79534         * m4/closeout.m4 (gl_CLOSEOUT):
79535         * m4/dirfd.m4 (gl_FUNC_DIRFD):
79536         * m4/dirname.m4 (gl_DIRNAME):
79537         * m4/exclude.m4 (gl_EXCLUDE):
79538         * m4/exitfail.m4 (gl_EXITFAIL):
79539         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
79540         * m4/file-type.m4 (gl_FILE_TYPE):
79541         * m4/filemode.m4 (gl_FILEMODE):
79542         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
79543         * m4/fpending.m4 (gl_FUNC_FPENDING):
79544         * m4/fprintftime.m4 (gl_FPRINTFTIME):
79545         * m4/fts.m4 (gl_FUNC_FTS):
79546         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
79547         * m4/getdate.m4 (gl_GETDATE):
79548         * m4/gethrxtime.m4 (gl_GETHRXTIME):
79549         * m4/getpagesize.m4 (gl_GETPAGESIZE):
79550         * m4/getpass.m4 (gl_FUNC_GETPASS):
79551         * m4/gettime.m4 (gl_GETTIME):
79552         * m4/getugroups.m4 (gl_GETUGROUPS):
79553         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
79554         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
79555         * m4/hard-locale.m4 (gl_HARD_LOCALE):
79556         * m4/hash.m4 (gl_HASH):
79557         * m4/idcache.m4 (gl_IDCACHE):
79558         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
79559         * m4/lchown.m4 (gl_FUNC_LCHOWN):
79560         * m4/long-options.m4 (gl_LONG_OPTIONS):
79561         * m4/lstat.m4 (gl_FUNC_LSTAT):
79562         * m4/md5.m4 (gl_MD5):
79563         * m4/memcasecmp.m4 (gl_MEMCASECMP):
79564         * m4/memcoll.m4 (gl_MEMCOLL):
79565         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
79566         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
79567         * m4/memxor.m4 (gl_MEMXOR):
79568         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
79569         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
79570         * m4/modechange.m4 (gl_MODECHANGE):
79571         * m4/mountlist.m4 (gl_MOUNTLIST):
79572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
79573         * m4/openat.m4 (gl_FUNC_OPENAT):
79574         * m4/pathmax.m4 (gl_PATHMAX):
79575         * m4/physmem.m4 (gl_PHYSMEM):
79576         * m4/posixtm.m4 (gl_POSIXTM):
79577         * m4/posixver.m4 (gl_POSIXVER):
79578         * m4/quote.m4 (gl_QUOTE):
79579         * m4/quotearg.m4 (gl_QUOTEARG):
79580         * m4/readtokens.m4 (gl_READTOKENS):
79581         * m4/readutmp.m4 (gl_READUTMP):
79582         * m4/regex.m4 (gl_REGEX):
79583         * m4/safe-read.m4 (gl_SAFE_READ):
79584         * m4/safe-write.m4 (gl_SAFE_WRITE):
79585         * m4/same.m4 (gl_SAME):
79586         * m4/save-cwd.m4 (gl_SAVE_CWD):
79587         * m4/savedir.m4 (gl_SAVEDIR):
79588         * m4/settime.m4 (gl_SETTIME):
79589         * m4/sha1.m4 (gl_SHA1):
79590         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
79591         * m4/stat-macros.m4 (gl_STAT_MACROS):
79592         * m4/stat-time.m4 (gl_STAT_TIME):
79593         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
79594         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
79595         * m4/strdup.m4 (gl_FUNC_STRDUP):
79596         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
79597         * m4/strndup.m4 (gl_FUNC_STRNDUP):
79598         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
79599         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
79600         * m4/time_r.m4 (gl_TIME_R):
79601         * m4/timespec.m4 (gl_TIMESPEC):
79602         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
79603         * m4/unlinkdir.m4 (gl_UNLINKDIR):
79604         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
79605         * m4/userspec.m4 (gl_USERSPEC):
79606         * m4/utimecmp.m4 (gl_UTIMECMP):
79607         * m4/utimens.m4 (gl_UTIMENS):
79608         * m4/xalloc.m4 (gl_XALLOC):
79609         * m4/xgetcwd.m4 (gl_XGETCWD):
79610         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
79611         * m4/xreadlink.m4 (gl_XREADLINK):
79612         * m4/xstrtod.m4 (gl_XSTRTOD):
79613         * m4/yesno.m4 (gl_YESNO):
79614         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
79615         to get the necessary .h files and whatnot.
79616
79617 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
79618             Bruno Haible  <bruno@clisp.org>
79619
79620         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
79621         /bin/sh understanding of '!' conditional negation.
79622
79623 2006-08-21  Jim Meyering  <jim@meyering.net>
79624
79625         * modules/openat (Depends-on): Really alphabetize.
79626
79627         * modules/acl (Depends-on): Add error and quote.
79628
79629         * check-module (find_included_lib_files): Add at-func.c to the
79630         ok-to-include-more-than-once white list.
79631
79632         * modules/openat (Depends-on): Add lstat.  Alphabetize.
79633
79634 2006-08-21  Bruno Haible  <bruno@clisp.org>
79635
79636         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79637         Emit a pkgdata_DATA variable only if some snippets add contents to it.
79638         Reported by Martin Lambers <marlam@marlam.de>.
79639
79640 2006-08-21  Bruno Haible  <bruno@clisp.org>
79641
79642         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
79643         specify an installation location, don't emit a noinst_LIBRARIES or
79644         noinst_LTLIBRARIES assignment.
79645
79646 2006-08-21  Bruno Haible  <bruno@clisp.org>
79647
79648         BeOS portability.
79649         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
79650         BeOS has mbrtowc() but no <wctype.h>.
79651
79652 2006-08-21  Bruno Haible  <bruno@clisp.org>
79653
79654         BeOS portability.
79655         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
79656         exist.
79657
79658 2006-08-21  Bruno Haible  <bruno@clisp.org>
79659
79660         BeOS portability.
79661         * lib/mbchar.h: Include <wctype.h> only if it exists.
79662
79663 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         Remove files that are no longer needed by their respective modules.
79666         * m4/obstack.m4: Remove.
79667         * m4/strerror_r.m4: Remove.
79668         * m4/uint32_t.m4: Remove.
79669         * m4/uintptr_t.m4: Remove.
79670         * m4/ullong_max.m4: Remove.
79671         * m4/xstrtoimax.m4: Remove.
79672         * m4/xstrtoumax.m4: Remove.
79673
79674         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
79675         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
79676         dependencies now capture this.
79677
79678         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
79679         Do not use AC_LIBSOURCES, since gnulib modules now do this.
79680         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
79681         * m4/human.m4 (gl_HUMAN): Likewise.
79682         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
79683         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
79684
79685         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
79686
79687         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
79688         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
79689         stdint.
79690         * m4/human.m4 (gl_HUMAN): Likewise.
79691         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
79692         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
79693         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79694         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79695         * m4/xstrtol (gl_XSTRTOL): Likewise.
79696
79697         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
79698         AC_TYPE_LONG_LONG_INT.
79699         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
79700         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
79701         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
79702         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
79703
79704         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
79705         on stdbool.
79706
79707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
79708         (gl_PREREQ_XSTRTOUL): Remove.
79709
79710         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
79711
79712         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
79713         mode.
79714
79715 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         Add and change modules to make it easier for coreutils to use
79718         gnulib-tool.
79719         * modules/backupfile (Files): Remove m4/d-ino.m4.
79720         (Depends-on): Add d-ino.
79721         * modules/cycle-check (Depends-on): Add stdint.
79722         (lib_SOURCES): Add cycle-check.h.
79723         * modules/d-ino: New module.
79724         * modules/d-type: New module.
79725         * modules/error (Files): Remove m4/strerror_r.m4.
79726         * modules/filemode (Files): Add m4/st_dm_mode.m4.
79727         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79728         m4/inttypes_h.m4, m4/uintmax_t.m4.
79729         (Depends-on): Add stdint.
79730         (lib_SOURCES): Add fsusage.h.
79731         * modules/getcwd (Files): Remove d-ino.m4.
79732         (Depends-on): Add d-ino.
79733         * modules/getndelim2 (Depends-on): Add stdint.
79734         * modules/glob (Files): Remove m4/d-type.m4.
79735         (Depends-on): Add d-type.
79736         * modules/host-os: New module.
79737         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
79738         m4/inttypes_h.m4, m4/uintmax_t.m4.
79739         * Depends-on: Add stdint.
79740         (lib_SOURCES): Add human.h.
79741         * modules/inttostr (Files): Remove m4/intmax_t.m4,
79742         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
79743         m4/uintmax_t.m4, m4/ulonglong.m4.
79744         (Depends-on): Add stdint.
79745         (EXTRA_DIST): Add inttostr.h.
79746         * modules/lchmod: New module.
79747         * modules/link-follow: New module.
79748         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
79749         (Depends-on): Add lchmod.
79750         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
79751         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
79752         (Depends-on): Add stdint.
79753         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
79754         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
79755         (Depends-on): Add stdint.
79756         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
79757         * modules/perl: New module.
79758         * modules/regex (Depends-on): Add stdint.
79759         * modules/rmdir-errno: New module.
79760         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79761         m4/intmax_t.m4.
79762         (Depends-on): Add stdint.
79763         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
79764         m4/uintmax_t.m4.
79765         (Depends-on): Add stdint.
79766         * modules/unlink-busy: New module.
79767         * modules/utimecmp (Depends-on): Add stdint.
79768         * modules/uptime: New module.
79769         * modules/winsz-ioctl: New module.
79770         * modules/winsz-termios: New module.
79771         * modules/xnanosleep (Depends-on): Add nanosleep.
79772         * modules/ullong_max: Remove.
79773         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
79774         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
79775         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
79776         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
79777         (Depends-on): Add inttypes.
79778         (lib_SOURCES): Add xstrtol.h.
79779         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
79780         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
79781         * MODULES.html.sh: Move 'assert' into the assert section.
79782         Move 'dummy' into the linking section.
79783         Remove ullong_max.
79784         Add section for compatibility checks for POSIX:2001 functions,
79785         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
79786         winsz-ioctl, and winsz-termios into it.
79787         Add lchmod.
79788         Add top-level Misc section and put host-os, perl, and uptime
79789         into it.
79790
79791 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
79794         now assume the stdint module.  Do not include inttypes.h.
79795         * lib/fsusage.h: Likewise.
79796         * lib/getndelim2.c: Likewise.
79797         * lib/human.h: Likewise.
79798         * lib/inttostr.h: Likewise.
79799         * lib/obstack.c: Likewise.
79800         * lib/regex_internal.h: Likewise.
79801         * lib/tempname.c: Likewise.
79802         * lib/utimecmp.c: Likewise.
79803         * lib/xstrtol.h: Likewise.
79804
79805         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
79806
79807         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
79808         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
79809         * lib/xtime.h: Likewise.
79810
79811 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * modules/openat (Files): Add lib/fchmodat.c.
79814         Fixes problem reported by Jay Youngman.
79815
79816 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79817
79818         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
79819         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
79820
79821 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
79822             Bruno Haible  <bruno@clisp.org>
79823
79824         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
79825         and is a script that invokes bison. Tighten the code. Add comments.
79826
79827 2006-08-18  Jim Meyering  <jim@meyering.net>
79828
79829         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
79830         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
79831         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79832         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79833
79834 2006-08-18  Bruno Haible  <bruno@clisp.org>
79835
79836         * modules/bison-i18n: New file.
79837         * MODULES.html.sh (Internationalization functions): Add it.
79838
79839 2006-08-18  Bruno Haible  <bruno@clisp.org>
79840
79841         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79842         sys/statvfs.h. When getmntinfo was found, check its declaration and
79843         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79844
79845 2006-08-18  Bruno Haible  <bruno@clisp.org>
79846
79847         * m4/bison-i18n.m4: New file, from bison.
79848
79849 2006-08-18  Bruno Haible  <bruno@clisp.org>
79850
79851         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79852         (ME_DUMMY): Treat "kernfs" as a dummy.
79853         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79854
79855 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         Update from coreutils.
79858
79859         2006-08-15  Jim Meyering  <jim@meyering.net>
79860
79861         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79862
79863         2006-01-17  Jim Meyering  <jim@meyering.net>
79864
79865         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79866
79867         2006-01-11  Jim Meyering  <jim@meyering.net>
79868
79869         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79870         Check for the lchmod function.
79871
79872 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         Update from coreutils.
79875
79876         * lib/__fpending.h: Add copyright notice.
79877         * lib/fprintftime.h: Likewise.
79878         * lib/savedir.c: Use (C) in copyright notice.
79879         * lib/savedir.h: Likewise.
79880
79881         2006-08-15  Jim Meyering  <jim@meyering.net>
79882
79883         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79884         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79885         in support of the EXPECTED_ERRNO macro.
79886         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79887         definitions.  Instead, define the appropriate symbols and include
79888         "at-func.c".
79889         * lib/mkdirat.c (mkdirat): Likewise.
79890         * lib/fchmodat.c (fchmodat): Likewise.
79891         (ENOSYS): Remove definition.
79892         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79893         it.  Don't include "unistd--.h" -- it wasn't ever used.
79894
79895         2006-01-17  Jim Meyering  <jim@meyering.net>
79896
79897         Rewrite fts.c not to change the current working directory,
79898         by using openat, fstatat, fdopendir, etc..
79899
79900         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79901         (HAVE_OPENAT_SUPPORT): Define.
79902         [_LIBC] (fchdir): Don't undef or define; no longer used.
79903         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79904         Now, this `function' always succeeds, and consumes its file descriptor
79905         parameter -- so callers must not close such FDs.  Update callers.
79906         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79907         (diropen): Add parameter, SP.  Adjust all callers.
79908         Implement using diropen_fd, rather than open.
79909         (fts_open): Initialize new member, fts_cwd_fd.
79910         Remove fts_rft-setting code.
79911         (fts_close): Close fts_cwd_fd, if necessary.
79912         (__opendir2): Define in terms of opendir or opendirat,
79913         depending on whether the FST_NOCHDIR flag is set.
79914         (fts_build): Since fts_safe_changedir consumes its FD, and since
79915         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79916         and close the dup'd file descriptor upon failure.
79917         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79918         (fts_safe_changedir): Tweak semantics to reflect that this function
79919         now calls cwd_advance_fd and hence consumes its FD argument.
79920         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79921         [struct FTS] (fts_rft): Remove now-unused member.
79922         [struct FTS] (fts_cycle.state): Improve comment.
79923
79924         * lib/openat.c (openat_needs_fchdir): New function.
79925         * lib/openat.h (openat_needs_fchdir): Declare it.
79926
79927 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79930         Problem and fix reported by Pádraig Brady in
79931         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79932
79933 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79936
79937 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79938
79939         * lib/memcoll.c (memcoll): Optimize for the common case where the
79940         arguments are bytewise equal.
79941
79942 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79943
79944         * doc/regexprops-generic.texi: Add a copyright notice.
79945
79946 2006-08-15  Bruno Haible  <bruno@clisp.org>
79947
79948         * modules/tmpdir (License): Change to LGPL.
79949
79950 2006-08-15  Bruno Haible  <bruno@clisp.org>
79951
79952         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79953         module.
79954
79955 2006-08-14  Simon Josefsson  <jas@extundo.com>
79956
79957         * config/srclist.txt: Add gnupload.
79958
79959 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         Change copyright notice from LGPL 2 to GPL 2, since that's the
79962         standard form used in the gnulib repository.
79963         * tests/test-lock.c: Likewise.
79964         * tests/test-stdint.c: Likewise.
79965         * tests/test-tls.c: Likewise.
79966
79967         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79968         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79969         Add copyright notice.
79970
79971         * check-module: Add copyright notice.  Output a copyright
79972         notice if "--version" is specified.
79973         * modules/COPYING: New file.
79974         * tests/test-getaddrinfo.c: Add copyright notice.
79975         * tests/test-verify.c: Likewise.
79976
79977 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         Change copyright notice from LGPL 2 to GPL 2, since that's the
79980         standard form used in the gnulib repository.
79981         * lib/lock.c: LGPL -> GPL.
79982         * lib/lock.h: Likewise.
79983         * lib/strnlen1.c: Likewise.
79984         * lib/strnlen1.h: Likewise.
79985         * lib/tls.c: Likewise.
79986         * lib/tls.h: Likewise.
79987         * lib/tmpdir.c: Likewise.
79988
79989         * lib/TODO: Remove; this belongs only in coreutils.
79990
79991 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         Add copyright notices to long-enough files that lack them, since
79994         otherwise the files aren't clearly free.  Use the same notice that
79995         getdate.texi already uses.
79996         * doc/alloca-opt.texi: Add copyright notice.
79997         * doc/alloca.texi: Likewise.
79998         * doc/ctime.texi: Likewise.
79999         * doc/functions.texi: Likewise.
80000         * doc/gcd.texi: Likewise.
80001         * doc/gnulib-tool.texi: Likewise.
80002         * doc/inet_ntoa.texi: Likewise.
80003         * doc/visibility.texi: Likewise.
80004
80005         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80006         * doc/quote.texi: Add copyright notice.
80007
80008         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80009         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80010         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80011         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80012         is now obsolete, and give a pointer to the Sun list.
80013         Add copyright notice.
80014
80015 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * config/srclistvars.sh: Add copyright notice.
80018
80019 2006-08-14  Eric Blake  <ebb9@byu.net>
80020
80021         Import the following change from libc:
80022
80023         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80024
80025         Upstream bug 2997.
80026         * lib/misc/error.c: Add space between program name and message if file
80027         name is missing.
80028
80029 2006-08-12  Karl Berry  <karl@gnu.org>
80030
80031         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80032         remove, these originate in gnulib now.
80033
80034 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80035
80036         * doc/Makefile (standards.info standards.html standards.dvi):
80037         Also depend on make-stds.texi.
80038
80039 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80040
80041         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80042         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80043
80044         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80045         in wchar_t.  Problem reported by Eric Blake.
80046
80047         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80048         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80049         Also, help the compiler to keep LEN in a register.
80050
80051 2006-08-11  Eric Blake  <ebb9@byu.net>
80052
80053         * users.txt: Sort.  Add tar.
80054
80055 2006-08-11  Bruno Haible  <bruno@clisp.org>
80056
80057         * users.txt: New file.
80058
80059 2006-08-11  Bruno Haible  <bruno@clisp.org>
80060
80061         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80062         before <wchar.h>. Needed for OSF/1 and BSD/OS.
80063
80064 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80065
80066         * modules/snprintf (Depends-on): Remove minmax.
80067         (Maintainer): Add self and Bruno.
80068
80069 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * lib/.cppi-disable: Add snprintf.h, socket_.h.
80072         * lib/snprintf.c: Include <errno.h> and <limits.h>.
80073         (EOVERFLOW): Define if the system does not.
80074         Do not include "minmax.h"; it wasn't used.
80075         (snprintf): Don't assume size_t promotes to an unsigned type.
80076         Fix bug when generated string was too long for the buffer: the
80077         buffer's contents are supposed to be the initial prefix of the
80078         output.  Don't assume vasnprintf returns EOVERFLOW if the size
80079         exceeds INT_MAX; do the check ourselves.
80080
80081         Import the following changes from libc:
80082
80083         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
80084
80085         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
80086         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
80087         set wc to the byte which couldn't be converted.
80088         (re_string_reconstruct): Don't clear valid_raw_len before calling
80089         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
80090         tip_context using re_string_context_at.
80091
80092         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
80093
80094         * lib/posix/regex.h: g++ still cannot handled [restrict].
80095
80096         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
80097
80098         * lib/posix/regex.h: Remove special handling for VMS.
80099
80100 2006-08-10  Jim Meyering  <jim@meyering.net>
80101
80102         * modules/same-inode: New module.
80103         * modules/dev-ino: New module.
80104         * modules/cycle-check: Depend on these modules, rather than simply
80105         including their .h files.
80106         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
80107         required via m4/cycle-check.m4.
80108         * modules/same: Depend on new same-inode module, rather than
80109         including same-inode.h.
80110         * modules/chdir-safer: New file.
80111
80112         * modules/chown (Depends-on): Add stat-macros.
80113
80114 2006-08-10  Jim Meyering  <jim@meyering.net>
80115
80116         * m4/cycle-check.m4: New file.
80117         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
80118         * m4/dev-ino.m4, m4/same-inode.m4: New files.
80119
80120 2006-08-10  Eric Blake  <ebb9@byu.net>
80121
80122         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
80123         in from original proposal.
80124
80125 2006-08-10  Eric Blake  <ebb9@byu.net>
80126         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
80127
80128         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
80129         namespace.
80130
80131 2006-08-10  Bruno Haible  <bruno@clisp.org>
80132
80133         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
80134         as well.
80135
80136 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         Sync from coreutils.
80139
80140         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
80141
80142         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
80143         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
80144
80145 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80146
80147         * modules/restrict: Remove; no longer needed now that we assume
80148         Autoconf 2.59 or later.
80149         * MODULES.html.sh: Remove 'restrict'.
80150         * modules/argp (Depends-on): Remove 'restrict'.
80151         * modules/base64 (Depends-on): Likewise.
80152         * modules/gc (Depends-on): Likewise.
80153         * modules/getaddrinfo (Depends-on): Likewise.
80154         * modules/glob (Depends-on): Likewise.
80155         * modules/inet_ntop (Depends-on): Likewise.
80156         * modules/inet_pton (Depends-on): Likewise.
80157         * modules/memxor (Depends-on): Likewise.
80158         * modules/regex (Depends-on): Likewise.
80159         * modules/strtok_r (Depends-on): Likewise.
80160         * modules/time_r (Depends-on): Likewise.
80161
80162 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
80165         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
80166         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80167         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
80168         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
80169         * m4/memxor.m4 (gl_MEMXOR): Likewise.
80170         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
80171         gl_C_RESTRICT replaced by AC_C_RESTRICT.
80172
80173         Merge from coreutils.
80174         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
80175         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
80176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
80177         * m4/time_r.m4 (gl_TIME_R): Likewise.
80178
80179 2006-08-09  Karl Berry  <karl@gnu.org>
80180
80181         * config/srclist.txt: no more gettext-tools, per Bruno.
80182
80183 2006-08-08  Eric Blake  <ebb9@byu.net>
80184
80185         * modules/verror: New module.
80186         * MODULES.html.sh: Document it.
80187
80188 2006-08-08  Eric Blake  <ebb9@byu.net>
80189
80190         * lib/verror.h, lib/verror.c: New files.
80191
80192 2006-08-08  Eric Blake  <ebb9@byu.net>
80193
80194         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
80195         verror_at_line output complies with GNU Coding Standards even when
80196         file is NULL.
80197
80198 2006-08-07  Bruno Haible  <bruno@clisp.org>
80199
80200         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
80201         versions of AIX.
80202         Reported by Ralf Wildenhues.
80203
80204 2006-08-07  Bruno Haible  <bruno@clisp.org>
80205
80206         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
80207         in an AC_DEFUN. Needed so that the autoconf snippets can use
80208         AC_REQUIRE.
80209
80210 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80211
80212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80213         Initialize pkgdata_DATA.
80214         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
80215         overriding it.
80216
80217 2006-08-06  Eric Blake  <ebb9@byu.net>
80218
80219         * lib/error.h: Fold in some upstream changes from glibc.
80220         * lib/error.c: Likewise.
80221
80222 2006-08-04  Bruno Haible  <bruno@clisp.org>
80223
80224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80225         Make the mostlyclean-local rule depend on mostlyclean-generic.
80226         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
80227
80228 2006-07-31  Bruno Haible  <bruno@clisp.org>
80229
80230         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
80231         <stdlib.h>, <string.h>.
80232
80233 2006-07-30  Bruno Haible  <bruno@clisp.org>
80234
80235         * modules/readlink (License): Change to LGPL.
80236
80237 2006-07-30  Bruno Haible  <bruno@clisp.org>
80238
80239         * modules/javaversion (Makefile.am): Distribute javaversion.java and
80240         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
80241         set PKGDATADIR to point to it.
80242
80243 2006-07-30  Bruno Haible  <bruno@clisp.org>
80244
80245         * modules/csharpexec (configure.ac): Comment out macro invocation.
80246         * modules/javaexec (configure.ac): Likewise.
80247         * modules/javacomp-script (configure.ac): Likewise.
80248
80249         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
80250
80251 2006-07-30  Bruno Haible  <bruno@clisp.org>
80252
80253         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
80254         linked-list.
80255
80256 2006-07-30  Bruno Haible  <bruno@clisp.org>
80257
80258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
80259
80260 2006-07-30  Bruno Haible  <bruno@clisp.org>
80261
80262         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80263         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
80264         get removed.
80265
80266 2006-07-29  Bruno Haible  <bruno@clisp.org>
80267
80268         Make it possible for gnulib-tool to work with locally modified or
80269         augmented gnulib repositories.
80270         * gnulib-tool (func_usage): Document --local-dir option.
80271         (local_gnulib_dir): New variable.
80272         Handle --local-dir option.
80273         (func_lookup_file): New function.
80274         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
80275         (func_get_description, func_get_filelist, func_get_description,
80276         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
80277         func_get_automake_snippet, func_get_include_directive,
80278         func_get_license, func_get_maintainer): Use func_lookup_file.
80279         (func_import, func_create_testdir): Use func_lookup_file.
80280
80281 2006-07-29  Bruno Haible  <bruno@clisp.org>
80282
80283         * modules/setenv (Depends-on): Add unistd.
80284
80285 2006-07-29  Bruno Haible  <bruno@clisp.org>
80286
80287         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
80288
80289 2006-07-29  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
80292
80293 2006-07-29  Bruno Haible  <bruno@clisp.org>
80294
80295         * gnulib-tool (import, update): If there is no Makefile.am, look at
80296         aclocal.m4, instead of bailing out.
80297
80298 2006-07-29  Bruno Haible  <bruno@clisp.org>
80299
80300         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
80301         Categorize the options by when they are useful.
80302
80303 2006-07-29  Bruno Haible  <bruno@clisp.org>
80304
80305         * gnulib-tool (func_usage): Document option --no-libtool.
80306         Handle option --no-libtool.
80307         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
80308         for changed semantics of $libtool variable.
80309         (func_import): Likewise. If libtool is not used, show this through
80310         an option --no-libtool.
80311         (func_create_testdir): Update.
80312
80313 2006-07-29  Bruno Haible  <bruno@clisp.org>
80314
80315         * gnulib-tool (func_import): Extend error message about missing
80316         --doc-base.
80317
80318 2006-07-29  Bruno Haible  <bruno@clisp.org>
80319
80320         * gnulib-tool (func_import): Don't create the $docbase directory if
80321         there is no file to store there.
80322
80323 2006-07-29  Bruno Haible  <bruno@clisp.org>
80324
80325         * gnulib-tool (autoconf_minversion): If a --dir option is given and
80326         relevant, look for configure.ac there, not in the current directory.
80327         Also use a simple search for AC_PREREQ, not "autoconf --trace".
80328
80329 2006-07-29  Bruno Haible  <bruno@clisp.org>
80330
80331         * gnulib-tool (SORT): New variable.
80332         (func_usage): Undocument --assume-autoconf option.
80333         Remove --assume-autoconf option handling.
80334         (autoconf_minversion): Determine from the contents of configure.ac.
80335         (func_import): Remove autoconf_minversion handling.
80336         Suggested by Eric Blake.
80337
80338 2006-07-29  Bruno Haible  <bruno@clisp.org>
80339
80340         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
80341
80342 2006-07-29  Bruno Haible  <bruno@clisp.org>
80343
80344         * config/srclist.txt (*setenv.[ch]): Remove rules.
80345
80346 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80347
80348         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
80349
80350 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80351
80352         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
80353         arpa/inet.h.
80354
80355 2006-07-28  Simon Josefsson  <jas@extundo.com>
80356
80357         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
80358         * modules/inet_pton (Depends-on): Likewise.
80359
80360 2006-07-28  Simon Josefsson  <jas@extundo.com>
80361
80362         * m4/netinet_in_h.m4: New file.
80363
80364 2006-07-28  Simon Josefsson  <jas@extundo.com>
80365
80366         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
80367         #include's.
80368
80369 2006-07-28  Simon Josefsson  <jas@extundo.com>
80370
80371         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
80372         #include's.
80373
80374 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
80377         setgid on directories only if they set these bits.
80378         * lib/modechange.h: Remove obsolete comment about masks.
80379
80380 2006-07-28  Eric Blake  <ebb9@byu.net>
80381
80382         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
80383         macro expansion.
80384
80385 2006-07-28  Bruno Haible  <bruno@clisp.org>
80386
80387         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
80388
80389 2006-07-28  Bruno Haible  <bruno@clisp.org>
80390
80391         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
80392
80393 2006-07-28  Bruno Haible  <bruno@clisp.org>
80394
80395         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
80396         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
80397         Define fallbacks.
80398         Avoids link error on FreeBSD 4.x.
80399         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80400
80401         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
80402         encoding.
80403         * lib/mbswidth.c (iswcntrl): Likewise.
80404
80405 2006-07-27  Bruno Haible  <bruno@clisp.org>
80406
80407         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
80408         test.
80409
80410 2006-07-27  Bruno Haible  <bruno@clisp.org>
80411
80412         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
80413         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
80414         defined.
80415
80416 2006-07-26  Eric Blake  <ebb9@byu.net>
80417
80418         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
80419
80420 2006-07-26  Eric Blake  <ebb9@byu.net>
80421
80422         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
80423         like mingw that lack mkstemp.
80424         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
80425         avoid compilation warning on mingw.
80426
80427 2006-07-26  Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
80430         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
80431         INT_FAST*_MIN, INTPTR_MIN.
80432
80433 2006-07-25  Bruno Haible  <bruno@clisp.org>
80434
80435         * modules/version-etc (Depends-on): Add stdarg.
80436
80437 2006-07-25  Bruno Haible  <bruno@clisp.org>
80438
80439         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
80440         complex commands.
80441
80442 2006-07-25  Bruno Haible  <bruno@clisp.org>
80443
80444         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
80445         defined in <stdarg.h> or config.h.
80446
80447 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
80450         (gl_STDIO_SAFER): Remove.
80451
80452 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * MODULES.html.sh (File stream based Input/Output):
80455         Add fopen-safer, tmpfile-safer; remove stdio-safer.
80456         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
80457         * modules/fopen-safer, modules/tmpfile-safer: New files.
80458         * modules/stdio-safer: Remove.
80459
80460 2006-07-24  Bruno Haible  <bruno@clisp.org>
80461
80462         * modules/tmpdir: New file.
80463         * MODULES.html.sh (File system functions): Add it.
80464
80465 2006-07-24  Bruno Haible  <bruno@clisp.org>
80466
80467         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
80468         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
80469
80470 2006-07-24  Bruno Haible  <bruno@clisp.org>
80471
80472         * modules/clean-temp: New file.
80473
80474 2006-07-24  Bruno Haible  <bruno@clisp.org>
80475
80476         * m4/tmpdir.m4: New file, from GNU gettext.
80477
80478 2006-07-24  Bruno Haible  <bruno@clisp.org>
80479
80480         * lib/tmpdir.h: New file, from GNU gettext.
80481         * lib/tmpdir.c: New file, from GNU gettext.
80482
80483 2006-07-24  Bruno Haible  <bruno@clisp.org>
80484
80485         * lib/clean-temp.h: New file, from GNU gettext.
80486         * lib/clean-temp.c: New file, from GNU gettext.
80487
80488 2006-07-23  Eric Blake  <ebb9@byu.net>
80489
80490         * modules/stdio-safer (Files): Add tmpfile-safer.c.
80491         (Depends-on): Add binary-io.
80492
80493 2006-07-23  Eric Blake  <ebb9@byu.net>
80494
80495         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
80496
80497 2006-07-23  Eric Blake  <ebb9@byu.net>
80498
80499         * lib/tmpfile-safer.c: New file.
80500         * lib/stdio-safer.h (fopen_safer): Add prototype.
80501         * lib/stdio--.h (tmpfile): Make safer.
80502
80503 2006-07-23  Bruno Haible  <bruno@clisp.org>
80504
80505         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
80506         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
80507         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
80508         gl_linked_remove_at): Use it.
80509
80510 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80511         and Simon Josefsson <jas@extundo.com>
80512
80513         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
80514
80515         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
80516
80517 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80518
80519         * modules/close-stream: New file.
80520         * modules/closeout (Description): Make it clear that it exits
80521         with a diagnostic on error.
80522         (Depends-on): Add close-stream.  Remove fpending, stdbool.
80523         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
80524
80525 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * m4/close-stream.m4: New file.
80528
80529 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * lib/close-stream.c, lib/close-stream.h: New files.
80532
80533 2006-07-22  Bruno Haible  <bruno@clisp.org>
80534
80535         Merge from GNU gettext 0.15.
80536
80537         2006-05-01  Bruno Haible  <bruno@clisp.org>
80538
80539                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
80540
80541         2006-07-22  Bruno Haible  <bruno@clisp.org>
80542
80543                 * modules/javaversion: New file.
80544                 * MODULES.html.sh (Java): Add javaversion.
80545
80546         2006-03-12  Bruno Haible  <bruno@clisp.org>
80547
80548                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
80549
80550         2005-12-04  Bruno Haible  <bruno@clisp.org>
80551
80552                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
80553                 (untested).
80554
80555         2006-06-21  Bruno Haible  <bruno@clisp.org>
80556
80557                 Avoid warnings from recent versions of mcs.
80558                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
80559                 -o, -L, -r any more. Use options documented since mcs-1.0
80560                 instead. Similarly for -g.
80561
80562         2005-12-04  Bruno Haible  <bruno@clisp.org>
80563
80564                 * build-aux/csharpcomp.sh.in: Suffix for resources is
80565                 .resources, not .resource.
80566
80567         2005-07-09  Bruno Haible  <bruno@clisp.org>
80568
80569                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
80570                 add a .dll suffix.
80571                 Reported by Mark Junker <mjscod@gmx.de>.
80572
80573         2006-07-22  Bruno Haible  <bruno@clisp.org>
80574
80575                 * modules/gettext: Upgrade to gettext-0.15.
80576                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
80577                 m4/visibility.m4.
80578                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
80579
80580 2006-07-22  Bruno Haible  <bruno@clisp.org>
80581
80582         Merge from GNU gettext 0.15.
80583
80584         2006-03-25  Bruno Haible  <bruno@clisp.org>
80585
80586                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
80587
80588         2006-07-21  Bruno Haible  <bruno@clisp.org>
80589
80590                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
80591                 "1.1".
80592
80593         2006-05-09  Bruno Haible  <bruno@clisp.org>
80594
80595                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
80596                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
80597                 for the conftestver execution.
80598
80599         2006-05-01  Bruno Haible  <bruno@clisp.org>
80600
80601                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
80602                 optional target-version argument. Verify that the compiler
80603                 groks source of the specified source-version, or add -source
80604                 option as necessary. Verify that the compiler produces
80605                 bytecode in the specified target-version, or add -target and
80606                 -source options as necessary. Make the result of the test
80607                 available as variable CONF_JAVAC. Also log error output in
80608                 config.log.
80609
80610         2006-03-11  Bruno Haible  <bruno@clisp.org>
80611
80612                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
80613
80614         2006-05-09  Bruno Haible  <bruno@clisp.org>
80615
80616                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
80617                 CLASSPATH_SEPARATOR to a semicolon.
80618
80619         2006-03-12  Bruno Haible  <bruno@clisp.org>
80620
80621                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
80622                 available as variable CONF_JAVA, for subsequent autoconf
80623                 tests. Also log error output in config.log.
80624
80625         2006-07-19  Bruno Haible  <bruno@clisp.org>
80626
80627                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
80628                 that getline works on glibc2 systems. Needed to avoid trouble
80629                 in relocatable.c.
80630                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
80631
80632         2005-12-04  Bruno Haible  <bruno@clisp.org>
80633
80634                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
80635                 launcher (untested).
80636
80637         2005-12-04  Bruno Haible  <bruno@clisp.org>
80638
80639                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
80640
80641         2006-07-22  Bruno Haible  <bruno@clisp.org>
80642
80643                 * gettext.m4: Update from GNU gettext-0.15.
80644                 * nls.m4: Likewise.
80645                 * po.m4: Likewise.
80646                 * inttypes-pri.m4: Likewise.
80647                 * inttypes-h.m4: Renamed from inttypes.m4.
80648                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
80649
80650 2006-07-22  Bruno Haible  <bruno@clisp.org>
80651
80652         Merge from GNU gettext 0.15.
80653
80654         2005-07-05  Bruno Haible  <bruno@clisp.org>
80655
80656                 * printf-args.c (printf_fetchargs): Work around broken
80657                 definition of wint_t on mingw.
80658
80659         2005-02-12  Bruno Haible  <bruno@clisp.org>
80660
80661                 * xallocsa.h: Add extern "C" for C++.
80662
80663         2006-05-17  Bruno Haible  <bruno@clisp.org>
80664
80665                 Cygwin portability.
80666                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
80667
80668         2006-04-30  Bruno Haible  <bruno@clisp.org>
80669
80670                 * progreloc.c: Include <mach-o/dyld.h> if available.
80671                 (find_executable): Use _NSGetExecutablePath when possible.
80672
80673         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
80674
80675                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
80676                 function.
80677
80678         2005-12-29  Bruno Haible  <bruno@clisp.org>
80679
80680                 * progreloc.c (set_program_name_and_installdir): Fix
80681                 compilation error.
80682
80683         2005-12-04  Bruno Haible  <bruno@clisp.org>
80684
80685                 Cygwin portability.
80686                 * progreloc.c: Include <windows.h> also on Cygwin.
80687                 (find_executable): Add support for Cygwin.
80688                 (set_program_name_and_installdir): Handle also platforms with
80689                 nonempty EXEEXT.
80690
80691         2006-07-11  Bruno Haible  <bruno@clisp.org>
80692
80693                 * javacomp.c: Fix a comment.
80694                 Reported by Jim Meyering.
80695
80696         2006-04-30  Bruno Haible  <bruno@clisp.org>
80697
80698                 * javacomp.h (compile_java_class): Add source_version,
80699                 target_version arguments.
80700                 * javacomp.c: Rewritten to choose only a compiler that
80701                 respects the specified source_version and target_version.
80702
80703         2006-06-27  Bruno Haible  <bruno@clisp.org>
80704
80705                 Assume correct S_ISDIR macro.
80706                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
80707
80708         2006-07-22  Bruno Haible  <bruno@clisp.org>
80709
80710                 * javaversion.h: New file, from GNU gettext.
80711                 * javaversion.c: New file, from GNU gettext.
80712                 * javaversion.java: New file, from GNU gettext.
80713                 * javaversion.class: New file, from GNU gettext.
80714
80715         2006-05-17  Bruno Haible  <bruno@clisp.org>
80716
80717                 Cygwin portability.
80718                 * javaexec.c (execute_java_class): Test for jview program
80719                 also on Cygwin.
80720
80721         2006-04-09  Bruno Haible  <bruno@clisp.org>
80722
80723                 * fatal-signal.c: Don't include string.h.
80724                 (at_fatal_signal): Use a copying loop instead of memcpy.
80725
80726         2005-12-04  Bruno Haible  <bruno@clisp.org>
80727
80728                 * csharpexec.c: Add support for 'clix' launcher (untested).
80729                 (execute_csharp_using_sscli): New function.
80730                 (execute_csharp_program): Call it.
80731
80732         2006-06-21  Bruno Haible  <bruno@clisp.org>
80733
80734                 Avoid warnings from recent versions of mcs.
80735                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
80736                 -o, -L, -r any more. Use options documented since mcs-1.0
80737                 instead. Similarly for -g.
80738
80739         2005-07-09  Bruno Haible  <bruno@clisp.org>
80740
80741                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
80742                 add a .dll suffix.
80743                 Reported by Mark Junker <mjscod@gmx.de>.
80744
80745         2006-06-17  Bruno Haible  <bruno@clisp.org>
80746
80747                 * config.charset: Update for NetBSD 3.0.
80748
80749         2006-05-17  Bruno Haible  <bruno@clisp.org>
80750
80751                 Cygwin portability.
80752                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
80753
80754         2006-05-16  Bruno Haible  <bruno@clisp.org>
80755
80756                 * localcharset.c [CYGWIN]: Include <windows.h>.
80757                 (get_charset_aliases): For Cygwin, return the same CPxxx
80758                 aliases list as under WIN32.
80759                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
80760                 the environment variables. Fall back to GetACP().
80761
80762         2006-04-05  Bruno Haible  <bruno@clisp.org>
80763
80764                 * config.charset: Update Juan Manuel Guerrero's address.
80765
80766         2005-02-12  Bruno Haible  <bruno@clisp.org>
80767
80768                 * allocsa.h: Add extern "C" for C++.
80769
80770         2005-02-10  Bruno Haible  <bruno@clisp.org>
80771
80772                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
80773                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
80774
80775         2006-07-22  Bruno Haible  <bruno@clisp.org>
80776
80777                 * gettext.h: Update to GNU gettext-0.15.
80778
80779 2006-07-22  Bruno Haible  <bruno@clisp.org>
80780
80781         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
80782         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
80783         lib-prefix.m4, longdouble.m4, ssize_t.m4.
80784
80785 2006-07-21  Eric Blake  <ebb9@byu.net>
80786
80787         * modules/stdlib-safer: New file.
80788         * MODULES.html.sh (File stream based Input/Output): Add
80789         stdlib-safer.
80790
80791 2006-07-21  Eric Blake  <ebb9@byu.net>
80792
80793         * lib/stdlib-safer.h: New file from coreutils, required by
80794         stdlib--.h.
80795
80796 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
80799
80800 2006-07-20  Bruno Haible  <bruno@clisp.org>
80801
80802         * gnulib-tool: Recognize new option --assume-autoconf.
80803         (autoconf_minversion): New variable.
80804         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
80805
80806 2006-07-20  Bruno Haible  <bruno@clisp.org>
80807
80808         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
80809
80810 2006-07-19  Derek R. Price  <derek@ximbiot.com>
80811
80812         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
80813         Reindent and repaginate.
80814
80815 2006-07-19  Derek Price  <derek@ximbiot.com>
80816
80817         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
80818         Correct grammar.
80819
80820 2006-07-17  Bruno Haible  <bruno@clisp.org>
80821
80822         * modules/list: New file.
80823         * modules/array-list: New file.
80824         * modules/carray-list, modules/carray-list-tests: New files.
80825         * modules/linked-list, modules/linked-list-tests: New files.
80826         * modules/avltree-list, modules/avltree-list-tests: New files.
80827         * modules/rbtree-list, modules/rbtree-list-tests: New files.
80828         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
80829         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
80830         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
80831         * modules/oset: New file.
80832         * modules/array-oset: New file.
80833         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80834         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80835         * tests/test-carray_list.c: New file.
80836         * tests/test-linked_list.c: New file.
80837         * tests/test-avltree_list.c: New file.
80838         * tests/test-rbtree_list.c: New file.
80839         * tests/test-linkedhash_list.c: New file.
80840         * tests/test-avltreehash_list.c: New file.
80841         * tests/test-rbtreehash_list.c: New file.
80842         * tests/test-avltree_oset.c: New file.
80843         * tests/test-rbtree_oset.c: New file.
80844         * MODULES.html.sh (Container data structures): New section.
80845
80846 2006-07-17  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/gl_list.m4: New file.
80849
80850 2006-07-17  Bruno Haible  <bruno@clisp.org>
80851
80852         * lib/gl_list.h: New file.
80853         * lib/gl_list.c: New file.
80854         * lib/gl_array_list.h: New file.
80855         * lib/gl_array_list.c: New file.
80856         * lib/gl_carray_list.h: New file.
80857         * lib/gl_carray_list.c: New file.
80858         * lib/gl_linked_list.h: New file.
80859         * lib/gl_linked_list.c: New file.
80860         * lib/gl_anylinked_list1.h: New file.
80861         * lib/gl_anylinked_list2.h: New file.
80862         * lib/gl_avltree_list.h: New file.
80863         * lib/gl_avltree_list.c: New file.
80864         * lib/gl_anyavltree_list1.h: New file.
80865         * lib/gl_anyavltree_list2.h: New file.
80866         * lib/gl_rbtree_list.h: New file.
80867         * lib/gl_rbtree_list.c: New file.
80868         * lib/gl_anyrbtree_list1.h: New file.
80869         * lib/gl_anyrbtree_list2.h: New file.
80870         * lib/gl_anytree_list1.h: New file.
80871         * lib/gl_anytree_list2.h: New file.
80872         * lib/gl_linkedhash_list.h: New file.
80873         * lib/gl_linkedhash_list.c: New file.
80874         * lib/gl_anyhash_list1.h: New file.
80875         * lib/gl_anyhash_list2.h: New file.
80876         * lib/gl_avltreehash_list.h: New file.
80877         * lib/gl_avltreehash_list.c: New file.
80878         * lib/gl_rbtreehash_list.h: New file.
80879         * lib/gl_rbtreehash_list.c: New file.
80880         * lib/gl_anytreehash_list1.h: New file.
80881         * lib/gl_anytreehash_list2.h: New file.
80882
80883         * lib/gl_oset.h: New file.
80884         * lib/gl_oset.c: New file.
80885         * lib/gl_array_oset.h: New file.
80886         * lib/gl_array_oset.c: New file.
80887         * lib/gl_avltree_oset.h: New file.
80888         * lib/gl_avltree_oset.c: New file.
80889         * lib/gl_rbtree_oset.h: New file.
80890         * lib/gl_rbtree_oset.c: New file.
80891         * lib/gl_anytree_oset.h: New file.
80892
80893 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * m4/mkancesdirs.m4: New file.
80896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80897         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80898         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80899         it.
80900
80901 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80904         * lib/mkancesdirs.h: New files.
80905         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80906         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80907         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80908         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80909         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80910         callers changed.  Revamp internals significantly, by not
80911         attempting to create directories that are temporarily more
80912         permissive than the final results.  Do not attempt to use
80913         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80914         This removes some race conditions, fixes some bugs, and simplifies
80915         things.  Use new dirchownmod function to do owner and mode changes.
80916         * lib/mkdir-p.h: Likewise.
80917         * lib/modechange.c (octal_to_mode): New function.
80918         (struct mode_change): New member mentioned.
80919         (make_node_op_equals): New arg mentioned.  All callers changed.
80920         (mode_compile): Keep track of which mode bits the user has explicitly
80921         mentioned.
80922         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80923         New arg PMODE_BITS, to keep track of which mode bits the user
80924         mentioned; it treats S_ISUID and S_ISGID speciall.
80925         All callers changed.
80926         * lib/modechange.h: Likewise.
80927
80928 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         * MODULES.html.sh: Add mkancestors.
80931         * modules/mkancesdirs: New module.
80932         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80933         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80934         The chdir-safer and afs files are now orphans; I'll remove them
80935         unless someone speaks up.
80936         Add lib/dirchownmod.c, lib/dirchownmod.h.
80937         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80938         Add lchown, mkancesdirs.
80939         (Maintainer): Add self.
80940
80941 2006-07-15  Karl Berry  <karl@gnu.org>
80942
80943         * gnulib-tool: help message wording/arrangement.
80944
80945 2006-07-14  Simon Josefsson  <jas@extundo.com>
80946
80947         * doc/gnulib.texi (Libtool and Windows): New section.
80948
80949 2006-07-12  Simon Josefsson  <jas@extundo.com>
80950
80951         * modules/gendocs (License): Fix license, approved by Karl.
80952
80953 2006-07-12  Eric Blake  <ebb9@byu.net>
80954
80955         * MODULES.html.sh: Add gendocs.
80956
80957 2006-07-11  Eric Blake  <ebb9@byu.net>
80958
80959         * modules/fdl: New module, to install doc/fdl.texi.
80960         * MODULES.html.sh: Add new section for documentation modules.
80961         * gnulib-tool: Avoid space-tab.
80962         (--doc-base): New option, to manage files from doc.
80963
80964 2006-07-11  Eric Blake  <ebb9@byu.net>
80965
80966         * m4/absolute-header.m4: Fix comments to match recent change.
80967
80968 2006-07-11  Eric Blake  <ebb9@byu.net>
80969
80970         * gnulib-tool: List --doc-base before --tests-base.
80971
80972 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80973
80974         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80975
80976 2006-07-11  Bruno Haible  <bruno@clisp.org>
80977
80978         * README: Mention where to put documentation.
80979
80980 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80981
80982         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80983
80984 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80985
80986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80987         to stdint.m4.
80988
80989 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80990
80991         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80992         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80993         "no/such/file/stdint.h" when there is no such file, so that
80994         the resulting C code can be parsed by dodgy compilers.
80995         Problems reported by Bob Proulx.
80996
80997 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80998
80999         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81000         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81001         macros into the GNU _D_EXACT_NAMLEN.
81002         * lib/savedir.c:  Likewise.
81003         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81004
81005 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81006         and Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81009         * m4/savedir.m4:
81010         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81011         macros into the GNU _D_EXACT_NAMLEN.
81012
81013 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81014
81015         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81016         around the absolute name, to work around a problem with the HP-UX
81017         11.23 native C compiler, reported by Bob Proulx.
81018
81019 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         * doc/maintain.texi, make-stds.texi: Sync from
81022         <http://savannah.gnu.org/projects/gnustandards>.
81023
81024 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81027
81028 2006-07-09  Jim Meyering  <jim@meyering.net>
81029
81030         * m4/glob.m4: Remove a doubled word in a comment.
81031
81032 2006-07-09  Jim Meyering  <jim@meyering.net>
81033
81034         * lib/argp-pv.c: Remove a doubled word in a comment.
81035         * lib/check-version.c (check_version): Likewise.
81036         * lib/javacomp.c (compile_java_class): Likewise.
81037
81038 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81041         for the benefit of people using Autoconf 2.60.  If you want to
81042         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81043         (or m4/onceonly.m4, if pre-2.57) manually.
81044
81045 2006-07-08  Jim Meyering  <jim@meyering.net>
81046
81047         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81048         comment.
81049         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81050         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81051         comment.
81052
81053 2006-07-08  Jim Meyering  <jim@meyering.net>
81054
81055         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81056
81057 2006-07-07  Simon Josefsson  <jas@extundo.com>
81058
81059         * tests/test-crc.c: Change expected crc value, the test vector
81060         were probably computed using the old broken crc.c?
81061
81062 2006-07-06  Simon Josefsson  <jas@extundo.com>
81063
81064         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
81065         now the canonical place for the M4 file).
81066
81067         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
81068         from the sys_socket dependency now.
81069
81070         * modules/inet_pton (Files): Ditto.
81071
81072         * modules/inet_ntop (Files): Ditto.
81073
81074 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81075
81076         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
81077         not gl_PREREQ_GETUSERSHELL.
81078
81079 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81080
81081         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
81082         with only one argument, for Autoconf 2.60.
81083         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
81084         expand to nothing, so add a shell command to avoid syntax error.
81085         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81086
81087 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81088
81089         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
81090
81091 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81092
81093         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
81094         no longer needed.  Check for isblank decl.
81095         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
81096         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
81097         of existence.
81098
81099 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81100
81101         * lib/getloadavg.c: Use __VMS, not VMS.
81102         * lib/getopt.c: Likewise.
81103         * lib/getpagesize.h: Likewise.
81104         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
81105         and probably does not work.
81106
81107 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * lib/.cppi-disable: Add wcwidth.
81110         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
81111         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
81112         (ISGRAPH): Remove.  All uses changed to isgraph.
81113         (FOLD) [!defined _LIBC]: Remove special case.
81114         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
81115         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
81116         HAVE_ISBLANK.
81117         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
81118         case.
81119
81120 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81121
81122         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
81123         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
81124         brackets.  Other minor changes to suppress some compiler
81125         warnings.
81126
81127 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81128         and Paul Eggert  <eggert@cs.ucla.edu>
81129
81130         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
81131         of invoking obsolescent AC_HEADER_DIRENT macro.
81132         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
81133         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
81134         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
81136         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
81137         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81138         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
81139         * m4/readdir.m4: Remove; no longer needed.
81140
81141 2006-07-06  Derek R. Price  <derek@ximbiot.com>
81142         and Paul Eggert  <eggert@cs.ucla.edu>
81143
81144         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
81145         Don't worry about this obsolete case any more.
81146         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
81147         directories.
81148         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
81149         worry about this obsolete case any more.
81150         * lib/fts.c: Likewise.
81151         * lib/getcwd.c: Likewise.
81152         * lib/glob.h: Likewise.
81153         * lib/savedir.c: Likewise.
81154
81155 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81156
81157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
81158         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
81159         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
81160         needed.
81161         All uses removed.
81162         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81163         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81164         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
81165         needed.
81166         * m4/getdate.m4 (gl_GETDATE): Likewise.
81167         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81168         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81169         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81170         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81171         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
81172         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81173         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
81174         needed.
81175
81176 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81177
81178         * lib/memcasecmp.c: Include <limits.h>.
81179         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
81180         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
81181         Don't assume isdigit succeeds only on '0' through '9'.
81182
81183 2006-07-05  Eric Blake  <ebb9@byu.net>
81184
81185         * modules/getaddrinfo (Depends-on): Add snprintf.
81186
81187 2006-07-05  Eric Blake  <ebb9@byu.net>
81188
81189         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
81190         to avoid 'header present but could not be compiled' on cygwin.
81191
81192 2006-07-05  Eric Blake  <ebb9@byu.net>
81193
81194         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
81195         missing from netdb.h.
81196         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
81197
81198 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81199
81200         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
81201         no longer needed.
81202         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
81203         * m4/getdate.m4 (gl_GETDATE): Likewise.
81204         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
81205         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
81206         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
81207         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
81208         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81209
81210 2006-07-05  Derek R. Price  <derek@ximbiot.com>
81211
81212         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
81213         All uses of is_space replaced by isspace.
81214         * lib/exit.h: Don't talk about STDC_HEADERS.
81215         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
81216         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
81217         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
81218         replaced by isprint etc.
81219         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
81220         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81221         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
81222         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
81223         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
81224         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
81225
81226 2006-07-05  Bruno Haible  <bruno@clisp.org>
81227
81228         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
81229         the function exists, before testing against AIX.
81230         Reported by Martin Lambers <marlam@marlam.de>.
81231
81232 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81233
81234         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
81235         From Mark D. Baushke.
81236
81237 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
81240         to the absolute name, not just one, to bypass Sun C 5.8's
81241         "warning: #include of /usr/include/... may be non-portable".
81242
81243 2006-07-04  Eric Blake  <ebb9@byu.net>
81244
81245         * modules/dirname-tests: New test module.
81246         * tests/test-dirname.c: New file, replacing dirname.c
81247         TEST_DIRNAME section that was recently deleted.
81248
81249 2006-07-04  Bruno Haible  <bruno@clisp.org>
81250
81251         Assume ANSI C header files and <ctype.h> functions.
81252         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
81253         (mbsnwidth): Use isprint, iscntrl instead.
81254
81255 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81256
81257         Merge from coreutils.
81258         * MODULES.html.sh: Add xstrtold.
81259         * modules/xstrtold: New file.
81260         * modules/cycle-check (Files): Add lib/same-inode.h.
81261         * modules/dirname (Files): Add m4/double-slash-root.m4.
81262         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
81263         * modules/mkdir-p (Files): Add lib/same-inode.h.
81264         * modules/same (Files): Add lib/same-inode.h.
81265
81266 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81267
81268         * m4/absolute-header.m4: Renamed from full-header-path.m4.
81269         This is to keep the terminology clean; POSIX talks about
81270         "absolute pathnames", not "full pathnames", but the GNU
81271         Coding Standards say to use "path" for something else;
81272         so use "absolute" to keep both sides happy.
81273         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
81274         Set gl_absolute_header, not gl_full_header_path.
81275         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
81276         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
81277         All uses changed.
81278
81279         Merge from coreutils.
81280
81281         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
81284         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
81285         want to require the building of c-strtod.o.
81286         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
81287         needs -lm directly.
81288         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
81289
81290         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
81293         --as-needed option if available.  Problem reported by Albert Chin in
81294         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
81295         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
81296         cc merely issues a bunch of annoying warnings for --as-needed
81297         (this problem was reported by Bob Proulx).  Also, try linking with
81298         -lm to detect a bug in binutils 2.16 (this problem was reported
81299         by Ralf Wildenhues).
81300
81301         2006-06-18  Jim Meyering  <jim@meyering.net>
81302
81303         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
81304         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
81305         macro.
81306         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
81307         also check for glibc-2.4's abort-inducing bug.
81308
81309         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
81310         Low-probability clean-up should be to use rmdir to get rid of
81311         the just-created directory, not unlink.
81312
81313         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
81314         configure fail, and request a bug report to inform us about it.
81315         Add a comment that, barring reports to the contrary, in 2007 we'll
81316         assume ftruncate is universally available.
81317
81318         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
81321
81322         2006-03-12  Jim Meyering  <jim@meyering.net>
81323
81324         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
81325         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
81326         * m4/same.m4 (gl_SAME): Likewise.
81327         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
81328
81329         2006-03-11  Eric Blake  <ebb9@byu.net>
81330
81331         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
81332         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
81333         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
81334         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
81335
81336 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
81339         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
81340         reported by Mark D. Baushke, one in
81341         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
81342
81343         Merge from coreutils.
81344
81345         * lib/.cppi-disable: Add stdint_.h.
81346         * lib/.cvsignore: Add stdint.h.
81347
81348         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
81349
81350         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
81351         both double and long double versions.
81352         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
81353         * lib/xstrtold.c: New file.
81354         * lib/xstrtod.h (xstrtold): New decl.
81355
81356         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * lib/filemode.c (setst): Remove.
81359         (strmode): Rewrite to avoid setst.  This makes the code shorter,
81360         (arguably) clearer, and the generated code is a bit smaller on my
81361         Debian GNU/Linux stable x86 host.
81362
81363         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * lib/filemode.c: Include "filemode.h" first, to test the interface.
81366         Assume that filemode.h includes sys/types.h and sys/stat.h.
81367         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
81368         (ftypelet): Reorder to put common cases first, for efficiency.
81369         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
81370         to do 'M'.
81371         (strmode): Renamed from mode_string, and now stores 12 bytes instead
81372         of 10, for compatibility with FreeBSD.  All callers changed.
81373         (filemodestring): Now stores 12 bytes instead of 10, and sets file
81374         types that can't be deduced solely from st_mode.  First arg is now a
81375         const pointer.
81376         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
81377         (strmode): Renamed from mode_string.
81378         (filemodestring): New decl.
81379         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
81380         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
81381         needed.
81382         (S_ISPORT, S_ISWHT): New macros, if not already defined.
81383
81384         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81385
81386         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
81387         fsusage.h now does that.  Include fsusage.h first, to test interface.
81388         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
81389         at most one method (the old code could have generated decls that
81390         didn't conform to C89, not that this was ever exercised).
81391         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
81392
81393         2006-03-19  Jim Meyering  <jim@meyering.net>
81394
81395         Work even in a chroot where d_ino values for entries in "/"
81396         don't match the stat.st_ino values for the same names.
81397         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
81398         number, iterate through all entries again, using lstat instead.
81399         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
81400         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
81401
81402         * lib/getcwd.c (__getcwd): Clarify a comment.
81403         Use memcpy in place of a call to strcpy.
81404
81405         2006-03-12  Jim Meyering  <jim@meyering.net>
81406
81407         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
81408         matches that of the current directory (which we're about to chdir ".."
81409         out of), then save the dev-ino of the parent, instead.
81410
81411         * lib/same-inode.h (SAME_INODE): New file/macro.
81412         * lib/chdir-safer.c (SAME_INODE): Remove definition.
81413         Include "same-inode.h", instead.
81414         * lib/same.c: Likewise.
81415         * lib/cycle-check.h: Include "same-inode.h".
81416         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
81417         * lib/cycle-check.c (SAME_INODE): Remove definition.
81418         * lib/root-dev-ino.h: Include "same-inode.h".
81419
81420         2006-03-11  Eric Blake  <ebb9@byu.net>
81421
81422         * lib/same.c (same_name): s/base_name/last_component/
81423         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
81424         * lib/filenamecat.c (file_name_concat): Likewise.
81425
81426         2006-03-11  Eric Blake  <ebb9@byu.net>,
81427                     Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
81430         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
81431         drive prefix.
81432         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
81433         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
81434         (last_component): New method.
81435         * lib/dirname.c (dir_len): Determine when drive letters need a
81436         subsequent slash.  Preserve // when it is special.
81437         (dir_name): Don't append dot when drive letter is absolute.
81438         [TEST_DIRNAME]: Move into a full-blown gnulib test.
81439         * lib/basename.c (base_name): New semantics - malloc the result.
81440         Preserve // when it is special.  Preserve relative files that look
81441         like drive letters.
81442         (base_len): Preserve // when it is special.
81443         (last_component): New method, similar to old base_name semantics.
81444         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
81445         base_name.  Strip redundant slashes from ///.
81446
81447 2006-07-03  Jim Meyering  <jim@meyering.net>
81448
81449         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
81450         macro is used before the first cycle_check call.
81451
81452 2006-07-03  Eric Blake  <ebb9@byu.net>
81453
81454         * modules/dirname (Depends-on): Add xstrndup.
81455
81456 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81457
81458         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
81459         test cases, so that config.log is a bit easier to follow.
81460
81461 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
81464         both are 64 bits, since this seems to be the tradition, and this
81465         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
81466         we ever run into a host that prefers long long to long in this
81467         case, we'll need another configure-time test.  Problem reported by
81468         Jim Meyering.
81469
81470 2006-07-02  Eric Blake  <ebb9@byu.net>
81471
81472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
81473
81474 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * modules/inttypes (Depends-on): No longer depends on stdint.
81477         * modules/stdint (Description): Say more about assumptions.
81478         Say that the fast types might differ.  Say macros are used.
81479         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
81480         (Makefile.am): Revise list of substituted symbols to match
81481         new stdint.m4.
81482         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
81483         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
81484         * tests/test-stdint.c (verify_same_types)
81485         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
81486         the code conforms to C99/C89.
81487         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
81488         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
81489
81490 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
81493         but fix a bug, by requiring at least 64 bits.
81494         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
81495         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
81496         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
81497         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
81498
81499         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
81500         changes.  Make 2.59 a prerequisite.  Check and substitute for
81501         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
81502         inttypes.h.  Do not use special include files; just use the
81503         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
81504         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
81505         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
81506         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
81507         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
81508         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
81509         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
81510         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
81511         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
81512         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
81513         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
81514         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
81515         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
81516         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
81517         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
81518         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
81519         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
81520         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
81521         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
81522         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
81523         WINT_MAX.  Check for C99 conformance more strictly, by detecting
81524         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
81525         not check for things that C99 does not require, e.g., int8_t.  If
81526         a test isn't needed unless <stdint.h> isn't working, and is
81527         unlikely to be needed for any other reason, then don't do it
81528         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
81529         size_t, since we assume C89 freestanding at least.  Do not check
81530         for sig_atomic_t, wchar_t, or wint_t, since the code now does
81531         the right thing even if the types are not defined.  Instead use:
81532         (gl_STDINT_TYPE_PROPERTIES): New macro.
81533         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
81534         testing whether <sys/types.h> clashes, as Autoconf does this for
81535         us now.  All uses removed.
81536         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
81537         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
81538         (gl_CHECK_TYPE_SAME):
81539         Remove; no longer needed.
81540         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
81541         exists, since we'll return 0 anyway in that case.
81542         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
81543
81544 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81545
81546         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
81547         possible collision with system files.
81548         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
81549         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
81550         WCHAR_MIN and WCHAR_MAX in this case.
81551         (<stddef.h>): Do not include; no longer needed.
81552         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
81553         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
81554         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
81555         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
81556         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
81557         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
81558         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
81559         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
81560         !defined(__c99))]: Include in this case too, since it's harmless
81561         now.
81562         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
81563         dangerous to do so.
81564         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
81565         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
81566         (_STDINT_MIN, _STDINT_MAX): New macros.
81567         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
81568         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
81569         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
81570         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
81571         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
81572         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
81573         macros, not typedefs; this simplifies things quite a bit.
81574         Use long int for all types narrower than int64_t.
81575         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
81576         Define in terms of long long int or int64_t or long int,
81577         not int64_t or int32_t.  This saves some compile-time testing.
81578         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
81579         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
81580         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
81581         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
81582         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
81583         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
81584         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
81585         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
81586         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
81587         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
81588         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81589         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81590         undef any previous version and define our own version, for
81591         simplicity and consistency with the new macros for types.
81592         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
81593         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
81594         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
81595         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
81596         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
81597         @WINT_T_SUFFIX@ to keep things simple here.
81598         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
81599         Simplify by assuming typical 8/16/32/64 host, since we're
81600         already doing that elsewhere anyway.
81601         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
81602         and assume long long int is 64 bits if available.  This
81603         speeds up 'configure'.
81604
81605 2006-07-01  Eric Blake  <ebb9@byu.net>
81606
81607         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
81608         Reported by Andreas Buening.
81609
81610 2006-07-01  Eric Blake  <ebb9@byu.net>
81611
81612         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
81613
81614 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
81615
81616         * lib/getaddrinfo.c: fixed typo
81617
81618 2006-06-29  Jim Meyering  <jim@meyering.net>
81619
81620         * modules/strftime (Maintainer): Add my name, since with the
81621         FPRINTFTIME changes strftime.c has forked from glibc.
81622
81623 2006-06-29  Eric Blake  <ebb9@byu.net>
81624
81625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
81626
81627 2006-06-29  Eric Blake  <ebb9@byu.net>
81628
81629         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
81630
81631 2006-06-29  Eric Blake  <ebb9@byu.net>
81632
81633         * lib/stat_.h: New file.
81634
81635 2006-06-29  Eric Blake  <ebb9@byu.net>
81636
81637         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
81638         unused static function.
81639
81640 2006-06-29  Eric Blake  <ebb9@byu.net>
81641
81642         * doc/functions.texi (Function Portability): Document missing lstat
81643         on mingw.
81644
81645 2006-06-29  Eric Blake  <ebb9@byu.net>
81646
81647         * MODULES.html.sh: Add sys_stat.
81648         * modules/sys_stat: New module.
81649         * modules/mkstemp (Depends-on): Add sys_stat.
81650
81651 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81652
81653         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
81654
81655 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81656
81657         * m4/c-bs-a.m4: Removed.
81658
81659 2006-06-29  Derek R. Price  <derek@ximbiot.com>
81660
81661         * lib/strftime.c: Assume strftime() exists.
81662
81663 2006-06-29  Derek Price  <derek@ximbiot.com>
81664
81665         * modules/c-bs-a: Removed - \a is C89.
81666         * MODULES.html.sh: Remove c-bs-a.
81667
81668 2006-06-29  Bruno Haible  <bruno@clisp.org>
81669
81670         * modules/wcwidth (License): Change to LGPL.
81671
81672 2006-06-28  Simon Josefsson  <jas@extundo.com>
81673
81674         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
81675         on _WIN32.
81676
81677         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
81678         getnameinfo.
81679
81680 2006-06-28  Simon Josefsson  <jas@extundo.com>
81681
81682         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
81683
81684 2006-06-28  Simon Josefsson  <jas@extundo.com>
81685
81686         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
81687         functions there.  It will succeed on Windows XP, but on Windows
81688         2000 and (presumably) earlier, it will fail, and use the internal
81689         re-implementation.
81690         (use_win32_p): New function.
81691         (getaddrinfo): Use strtoul on servname, to support numeric ports.
81692         Support AI_NUMERICSERV to disable getservbyname.
81693         (getnameinfo): New function, only supports
81694         NI_NUMERICHOST|NI_NUMERICSERV for now.
81695
81696         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
81697         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
81698         getnameinfo.
81699
81700 2006-06-28  Eric Blake  <ebb9@byu.net>
81701
81702         * modules/wcwidth: New file.
81703         * modules/mbchar (Depends-on): Add wcwidth.
81704         * modules/mbswidth (Depends-on): Add wcwidth.
81705         * MODULES.html.sh: Add wcwidth.
81706
81707 2006-06-28  Eric Blake  <ebb9@byu.net>
81708
81709         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
81710         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
81711
81712 2006-06-28  Eric Blake  <ebb9@byu.net>
81713
81714         * lib/xvasprintf.h: Fix comments.
81715
81716 2006-06-28  Eric Blake  <ebb9@byu.net>
81717
81718         * lib/mbchar.h (wcwidth): Include wcwidth.h.
81719         * lib/mbswidth.c (wcwidth): Move from here...
81720         * lib/wcwidth.h: ...to this new file.
81721
81722 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81723
81724         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
81725
81726         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
81727         it's obsolete.
81728         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
81729
81730 2006-06-28  Derek R. Price  <derek@ximbiot.com>
81731
81732         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
81733         Autoconf 2.60 says this stuff was obsolete.
81734
81735 2006-06-28  Bruno Haible  <bruno@clisp.org>
81736
81737         * modules/wcwidth (Files): Add m4/wchar_t.m4.
81738
81739 2006-06-28  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
81742         gt_TYPE_WCHAR_T.
81743
81744 2006-06-28  Bruno Haible  <bruno@clisp.org>
81745
81746         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
81747         declaration for wcwidth.
81748         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
81749
81750 2006-06-28  Bruno Haible  <bruno@clisp.org>
81751
81752         * lib/mkdtemp.c [MINGW]: Include <io.h>.
81753         (mkdir): Define using _mkdir.
81754
81755 2006-06-28  Bruno Haible  <bruno@clisp.org>
81756
81757         * lib/getaddrinfo.h: Fix POSIX URL.
81758         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
81759         _WIN32.
81760         (use_win32_p): Make static.
81761         (getaddrinfo): Reject service name if it is empty or does not consist
81762         solely of decimal digits, or if its value is > 65535.
81763         (getnameinfo): Remove useless casts.
81764
81765 2006-06-27  Simon Josefsson  <jas@extundo.com>
81766
81767         * modules/sys_select: New file, suggested by Bruno Haible, Paul
81768         Eggert and Martin Lambers.
81769
81770 2006-06-27  Simon Josefsson  <jas@extundo.com>
81771
81772         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
81773         Eggert and Martin Lambers.
81774
81775 2006-06-27  Bruno Haible  <bruno@clisp.org>
81776
81777         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
81778         result to 0, not to empty.
81779         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
81780
81781 2006-06-27  Bruno Haible  <bruno@clisp.org>
81782
81783         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
81784
81785 2006-06-26  Simon Josefsson  <jas@extundo.com>
81786
81787         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
81788         present.
81789
81790 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
81793         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
81794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
81795
81796 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
81797
81798         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
81799
81800 2006-06-26  Bruno Haible  <bruno@clisp.org>
81801
81802         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
81803
81804 2006-06-26  Bruno Haible  <bruno@clisp.org>
81805
81806         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
81807
81808 2006-06-26  Bruno Haible  <bruno@clisp.org>
81809
81810         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
81811         SGI C compiler in pre-C99 mode.
81812         Suggested by Mark D. Baushke and Larry Jones.
81813
81814 2006-06-26  Bruno Haible  <bruno@clisp.org>
81815
81816         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
81817         WCHAR_MAX.
81818         Reported by Mark D. Baushke and Larry Jones.
81819
81820 2006-06-26  Bruno Haible  <bruno@clisp.org>
81821
81822         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
81823         in pre-C99 mode.
81824         Suggested by Mark D. Baushke and Larry Jones.
81825
81826 2006-06-23  Simon Josefsson  <jas@extundo.com>
81827             Bruno Haible  <bruno@clisp.org>
81828
81829         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
81830         Emit mostlyclean-local rule.
81831         (func_emit_tests_Makefile_am): Likewise.
81832         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81833
81834 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81835
81836         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81837
81838 2006-06-23  Bruno Haible  <bruno@clisp.org>
81839
81840         * tests/test-stdint.c: Update to match ISO C 99 Technical
81841         Corrigendum 1.
81842
81843 2006-06-23  Bruno Haible  <bruno@clisp.org>
81844
81845         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81846
81847 2006-06-23  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/stdint_.h: Treat IRIX like OpenBSD.
81850
81851 2006-06-23  Bruno Haible  <bruno@clisp.org>
81852
81853         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81854         ISO C 99 Technical Corrigendum 1.
81855
81856 2006-06-22  Simon Josefsson  <jas@extundo.com>
81857
81858         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81859         MinGW.
81860
81861 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81864         needed.  Some compiler complained about some of them.  Problem reported
81865         by Larry Jones in
81866         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81867
81868 2006-06-21  Simon Josefsson  <jas@extundo.com>
81869
81870         * tests/test-getaddrinfo.c: New file.
81871
81872         * modules/getaddrinfo-tests: New file.
81873
81874         * MODULES.html.sh: Add inet_pton.
81875
81876         * modules/inet_pton: New file.
81877
81878 2006-06-21  Simon Josefsson  <jas@extundo.com>
81879
81880         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81881         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81882         of using the (limited) gnulib implementation on Windows XP.
81883
81884         * m4/inet_pton.m4: New file.
81885
81886 2006-06-21  Simon Josefsson  <jas@extundo.com>
81887
81888         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81889         variable.
81890
81891         * lib/socket_.h: Don't define WINVER.
81892
81893         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81894         slightly modified to work in gnulib.
81895
81896 2006-06-21  Simon Josefsson  <jas@extundo.com>
81897
81898         * doc/gnulib.texi (Windows sockets): Add.
81899
81900 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81901
81902         * lib/read-file.c (fread_file): Start with buffer allocation of
81903         0 bytes rather than 1 byte; this simplifies the code.
81904         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81905         code to free buffer and save/restore errno.
81906         (internal_read_file): Remove unused local.
81907
81908 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81911         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81912         Problem reported by Denis Excoffier in
81913         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81914
81915 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81916
81917         * modules/sys_socket, modules/socklen: Include sys/types since
81918         FreeBSD 4.x's sys/socket.h needs it.
81919
81920 2006-06-19  Simon Josefsson  <jas@extundo.com>
81921
81922         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81923
81924 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81925
81926         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81927
81928 2006-06-19  Bruno Haible  <bruno@clisp.org>
81929
81930         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81931         and FULL_PATH_INTTYPES_H in angle brackets.
81932         Reported by Mark D. Baushke <mdb@gnu.org>.
81933
81934 2006-06-17  Eric Blake  <ebb9@byu.net>
81935
81936         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81937         errno.
81938
81939 2006-06-17  Bruno Haible  <bruno@clisp.org>
81940
81941         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81942         <sys/inttypes.h>.
81943
81944 2006-06-17  Bruno Haible  <bruno@clisp.org>
81945
81946         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81947         whether errno is declared. Assume <errno.h> declares errno.
81948
81949 2006-06-17  Bruno Haible  <bruno@clisp.org>
81950
81951         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81952
81953 2006-06-17  Bruno Haible  <bruno@clisp.org>
81954
81955         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81956         problem on Solaris 2.5.1.
81957
81958 2006-06-16  Eric Blake  <ebb9@byu.net>
81959
81960         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81961         * lib/unicodeio.c [!defined errno]: Likewise.
81962         * lib/strtol.c [!defined errno]: Likewise.
81963         * lib/strtod.c [!defined errno]: Likewise.
81964
81965 2006-06-15  Eric Blake  <ebb9@byu.net>
81966
81967         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81968
81969 2006-06-15  Eric Blake  <ebb9@byu.net>
81970
81971         * config/srclist.txt (ssize_t.m4): Lose sync.
81972
81973 2006-06-15  Bruno Haible  <bruno@clisp.org>
81974
81975         * modules/stdint (Files): Include m4/full-header-path.m4,
81976         m4/size_max.m4, m4/wchar_t.m4.
81977         (Makefile.am): Many more substitutions.
81978         * modules/stdint-tests: New file.
81979         * tests/test-stdint.c: New file.
81980
81981 2006-06-15  Bruno Haible  <bruno@clisp.org>
81982
81983         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81984         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81985         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81986         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81987         gl_CHECK_TYPE_SAME): New macros.
81988
81989 2006-06-15  Bruno Haible  <bruno@clisp.org>
81990
81991         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81992
81993 2006-06-15  Bruno Haible  <bruno@clisp.org>
81994
81995         * lib/stdint_.h: Rewritten to be fully auto-configured.
81996         Fixes bug on HP-UX/IA64.
81997
81998 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81999
82000         * lib/getdate.y (__attribute__): Don't define if already defined.
82001         Problem reported by Larry Jones.
82002         * lib/utimens.c (__attribute__): Likewise.
82003
82004 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82005
82006         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82007         reported by Andreas Schwab.
82008
82009 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82010             Bruno Haible  <bruno@clisp.org>
82011
82012         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82013         check for the declaration of strnlen and a run test that exposes the
82014         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82015         rpl_strndup.
82016
82017 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82018             Bruno Haible  <bruno@clisp.org>
82019
82020         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82021
82022 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82023
82024         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82025         compile test, for Tru64 4.0D.
82026
82027 2006-05-28  Karl Berry  <karl@gnu.org>
82028
82029         * config/srclist.txt (printf-args.c): lose sync.
82030
82031 2006-05-26  Martin Lambers  <marlam@marlam.de>
82032
82033         * lib/getpass.c: Updates the test for the native W32 API, and adds
82034         missing includes, thus fixing compilation warnings.
82035
82036 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82037
82038         * lib/exclude.c (exclude_fnmatch): New function.
82039         (excluded_file_name): Call exclude_fnmatch.
82040         * lib/exclude.h (excluded_file_name): New prototype
82041
82042 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * lib/tempname.c (small_open, large_open): New macros.
82045         (__open, __open64) [!_LIBC]: Remove.
82046         (__gen_tempname): Use small_open and large_open instead of __open
82047         and __open64.  This fixes a portability bug on HP-UX 11.11i
82048         reported by Simon Wing-Tang in
82049         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82050
82051 2006-05-24  Bruno Haible  <bruno@clisp.org>
82052
82053         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82054         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82055         Reported by Thorsten Maerz <torte@netztorte.de> via
82056         Aaron Stone <aaron@serendipity.cx>.
82057
82058 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82059
82060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82061         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82062         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
82063         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
82064         not really conditional on the cache.
82065         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
82066
82067 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82068
82069         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
82070         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
82071         (my_usleep): Don't mishandle maximum value.
82072
82073 2006-05-19  Jim Meyering  <jim@meyering.net>
82074
82075         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
82076
82077 2006-05-17  Bruno Haible  <bruno@clisp.org>
82078
82079         Cygwin portability.
82080         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
82081
82082 2006-05-17  Bruno Haible  <bruno@clisp.org>
82083
82084         * lib/stdint_.h: Fix recognition of Cygwin.
82085
82086 2006-05-15  Bruno Haible  <bruno@clisp.org>
82087
82088         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
82089         on libtool patch by Ralf Wildenhues.
82090
82091 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82092
82093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
82094         test for C99 conformance; (bool) 0.5 is an integer constant
82095         expression, but (bool) -0.5 is not.  Problem reported by Fedor
82096         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
82097
82098 2006-05-11  Simon Josefsson  <jas@extundo.com>
82099
82100         * m4/xvasprintf.m4: Fix obvious typo.
82101
82102 2006-05-11  Jim Meyering  <jim@meyering.net>
82103
82104         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
82105         James Lemley.
82106
82107 2006-05-10  Simon Josefsson  <jas@extundo.com>
82108
82109         * lib/md4.c: Typo fix, update copyright years.
82110         (K1, K2): Don't use L because it turn computations into 64-bit on
82111         64-bit platforms.
82112
82113 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
82116         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
82117         unwanted sign propagation, e.g., on hosts with 64-bit int.
82118         There still are some problems with reeelly weird theoretical hosts
82119         (e.g., 33-bit int) but it's not worth worrying about now.
82120         * lib/sha1.c (rol): Likewise.
82121         (K1, K2, K3, K4): Remove unnecessary L suffix.
82122
82123 2006-05-10  Bruno Haible  <bruno@clisp.org>
82124
82125         * lib/des.c: Cast to avoid warnings.
82126
82127 2006-05-09  Bruno Haible  <bruno@clisp.org>
82128
82129         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
82130         (Depends-on): Depend also on xsize, stdarg.
82131         (configure.ac): Add gl_XVASPRINTF.
82132
82133 2006-05-09  Bruno Haible  <bruno@clisp.org>
82134
82135         * m4/xvasprintf.m4: New file.
82136
82137 2006-05-09  Bruno Haible  <bruno@clisp.org>
82138
82139         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
82140         (EOVERFLOW): Define fallback value.
82141         (xstrcat): New function.
82142         (xvasprintf): Recognize the special case of a string concatenation.
82143
82144 2006-05-08  Eric Blake  <ebb9@byu.net>
82145
82146         * gnulib-tool (func_version): Base copyright year on CVS date.
82147         (func_emit_copyright_notice): New function.
82148         (func_emit_lib_Makefile_am): Use it.
82149         (func_emit_tests_Makefile_am): Likewise.
82150         (func_import): Likewise.
82151
82152 2006-05-08  Bruno Haible  <bruno@clisp.org>
82153
82154         * modules/stdarg: New file.
82155         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
82156
82157 2006-05-08  Bruno Haible  <bruno@clisp.org>
82158
82159         * m4/stdarg.m4: New file, from GNU gettext.
82160
82161 2006-05-08  Bruno Haible  <bruno@clisp.org>
82162
82163         * config/srclist.txt (build-aux/config.rpath): different from latest
82164         release.
82165
82166 2006-05-08  Bruno Haible  <bruno@clisp.org>
82167
82168         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
82169
82170 2006-05-05  Jim Meyering  <jim@meyering.net>
82171
82172         * m4/warning.m4: New file, derived from bison's file by the same name.
82173
82174 2006-05-03  Bruno Haible  <bruno@clisp.org>
82175
82176         * lib/stdint_.h: Shorter URL.
82177         * lib/inttypes.h: Likewise.
82178
82179 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82180
82181         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
82182
82183 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82184
82185         * lib/verify.h: Document the internals better.  Most of this change
82186         was written by Bruno Haible.
82187
82188 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * doc/verify.texi: New file, partly based on a proposal by
82191         Bruno Haible.
82192
82193 2006-05-02  Bruno Haible  <bruno@clisp.org>
82194
82195         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
82196         test from here...
82197         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
82198
82199 2006-04-29  Bruno Haible  <bruno@clisp.org>
82200
82201         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
82202         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
82203
82204 2006-04-29  Bruno Haible  <bruno@clisp.org>
82205
82206         * gnulib-tool: Make --update option actually work.
82207
82208 2006-04-29  Bruno Haible  <bruno@clisp.org>
82209
82210         * doc/gcd.texi: New file.
82211         * doc/gnulib.texi: Include it.
82212
82213 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * lib/getdate.y (get_date): When adding relative date, start with the
82216         initial time, not with the result of the first mktime call.
82217
82218 2006-04-25  Bruno Haible  <bruno@clisp.org>
82219
82220         * gnulib-tool (func_import): Output the include directives in three
82221         blocks, sorted separately.
82222         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82223
82224 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82225
82226         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
82227         to define main with arguments, for C++.  Reported by Eric Blake.
82228         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
82229         Prefer 'int main ()' to 'int main (void)', for C++.
82230         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
82231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
82232         for 'main', for C99 and C++.
82233
82234 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
82235
82236         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
82237         Don't assume that exit status -1 is valid.
82238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82239         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
82240         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
82241         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
82242         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
82243         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
82244         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
82245         functions can be used without declaring them, or that you can
82246         exit with status -1.
82247         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
82248
82249 2006-04-24  Karl Berry  <karl@gnu.org>
82250
82251         * config/srclist.txt (longdouble.m4): sync lost.
82252
82253 2006-04-24  Eric Blake  <ebb9@byu.net>
82254
82255         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
82256
82257 2006-04-24  Bruno Haible  <bruno@clisp.org>
82258
82259         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
82260         poll() implementation in AIX.
82261         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82262
82263 2006-04-24  Bruno Haible  <bruno@clisp.org>
82264
82265         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
82266         assigned exactly once.
82267
82268 2006-04-23  Claudio Fontana  <claudio@gnu.org>
82269             Bruno Haible  <bruno@clisp.org>
82270
82271         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
82272         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
82273         for AM_CPPFLAGS.
82274
82275 2006-04-23  Bruno Haible  <bruno@clisp.org>
82276
82277         * modules/copy-file: Depend on unistd.
82278         * modules/execute: Likewise.
82279         * modules/fatal-signal: Likewise.
82280         * modules/findprog: Likewise.
82281         * modules/mkdtemp : Likewise.
82282         * modules/pipe: Likewise.
82283         * modules/wait-process: Likewise.
82284
82285 2006-04-23  Bruno Haible  <bruno@clisp.org>
82286
82287         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
82288         condition was already detected.
82289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82290
82291 2006-04-23  Bruno Haible  <bruno@clisp.org>
82292
82293         * lib/copy-file.c: Include <unistd.h> unconditionally.
82294         * lib/execute.c: Likewise.
82295         * lib/fatal-signal.c: Likewise.
82296         * lib/findprog.c: Likewise.
82297         * lib/mkdtemp.c: Likewise.
82298         * lib/pipe.h: Likewise.
82299         * lib/pipe.c: Likewise.
82300         * lib/wait-process.h: Likewise.
82301
82302 2006-04-23  Bruno Haible  <bruno@clisp.org>
82303
82304         * gnulib-tool (func_usage): Fix --import description. Document
82305         --update.
82306         (func_import): Create temporary file in a temporary directory, if
82307         --dry-run is specified. Silence errors from 'grep' when there are no
82308         m4 files in $m4dir.
82309         (func_create_testdir): Silence errors from 'grep' when there are no
82310         m4 files in $m4dir.
82311         Reported by Karl Berry <karl@freefriends.org>.
82312
82313 2006-04-20  Bruno Haible  <bruno@clisp.org>
82314
82315         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
82316         one argument, so that the code will be portable to Autoconf 2.60.
82317         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
82318         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82319         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
82320
82321 2006-04-19  Derek Price  <derek@ximbiot.com>
82322             Eric Blake  <ebb9@byu.net>
82323
82324         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
82325         rather than "/full/path.h".  Update comment to match.  Shorten &
82326         generalize m4_translit call via AS_TR_CPP.
82327
82328 2006-04-19  Derek Price  <derek@ximbiot.com>
82329             Eric Blake  <ebb9@byu.net>
82330
82331         * lib/inttypes.h: Correct grammar in comment.
82332
82333 2006-04-18  Derek Price  <derek@ximbiot.com>
82334             Paul Eggert  <eggert@cs.ucla.edu>
82335
82336         * modules/inttypes: New file.
82337         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
82338
82339 2006-04-18  Derek Price  <derek@ximbiot.com>
82340             Paul Eggert  <eggert@cs.ucla.edu>
82341
82342         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
82343         New files.
82344
82345 2006-04-18  Derek Price  <derek@ximbiot.com>
82346             Paul Eggert  <eggert@cs.ucla.edu>
82347
82348         * lib/inttypes.h: New file.
82349         * lib/strtoimax.c: Assume <inttypes.h>.
82350
82351 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
82352
82353         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
82354         isn't mounted.  Problem reported by Kir Kolyshkin.
82355
82356 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
82359         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
82360         Derek R. Price.
82361         * lib/regex.h (RE_DUP_MAX): Update comment to match current
82362         implementation.
82363
82364 2006-04-12  Eric Blake  <ebb9@byu.net>
82365
82366         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
82367         is now done automatically by the corresponding Autoconf macro.
82368
82369 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
82370
82371         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
82372         time_r.h.
82373
82374 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         Merge regex changes from libc, removing some of our
82377         POSIX-conformance changes that were rejected and redoing them in a
82378         less-intrusive way.
82379
82380         * lib/regcomp.c (re_compile_internal, init_dfa):
82381         Length arg is now size_t, not Idx.  All uses changed.
82382         (peek_token): Forward decl now says internal_function.
82383         (__re_error_msgid, __re_error_msgid_idx):
82384         Now static rather than extern with attribute_hidden.
82385         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
82386         For some reason libc prefers K&R style defns for external functions.
82387         (regerror) [!defined _LIBC]: Likewise.
82388         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
82389         (seek_collating_symbol_entry, lookup_collation_sequence_value):
82390         (build_range_exp, build_collating_symbol):
82391         Use K&R-style defn.
82392         (re_compile_fastmap): Use '\0' to memset, not 0.
82393         (utf8_sb_map): Make the calculations more obvious.
82394         (init_dfa, parse_bracket_exp, build_charclass_op):
82395         Call calloc and cast result, as glibc does.
82396         (init_word_char, fetch_token, peek_token, peek_token_bracket):
82397         (build_range_exp, build_collating_symbol):
82398         Now internal functions.
82399
82400         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
82401
82402         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
82403         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
82404         Don't depend on VMS; depend on __VMS instead, for POSIX
82405         namespace cleanness.
82406         (regoff_t): Define to ssize_t, not long int.
82407
82408         Remove the REG_ macros named below.  Instead, make the old names
82409         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
82410         __USE_GNU_REGEX.
82411         (REG_BACKSLASH_ESCAPE_IN_LISTS):
82412         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
82413         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
82414         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
82415         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
82416         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
82417         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
82418         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
82419         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
82420         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
82421         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
82422         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
82423         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
82424         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
82425         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
82426         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
82427         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
82428         (REG_NREGS):
82429         Remove.  All uses replaced by the old RE_* names.
82430         (RE_BACKSLASH_ESCAPE_IN_LISTS):
82431         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
82432         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
82433         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
82434         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
82435         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
82436         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
82437         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
82438         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
82439         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
82440         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
82441         Don't bother having these macros be independent of each others'
82442         values, since they no longer exist in the POSIX name space.
82443
82444         Rename the following member names back to their old names,
82445         unless !__USE_GNU_REGEX.  All uses changed back.
82446         (buffer): Renamed from re_buffer.
82447         (allocated): Renamed from re_allocated.
82448         (used): Renamed from re_used.
82449         (syntax): Renamed from re_syntax.
82450         (fastmap): Renamed from re_fastmap.
82451         (translate): Renamed from re_translate.
82452         (can_be_null): Renamed from re_can_be_null.
82453         (regs_allocated): Renamed from re_regs_allocated.
82454         (fastmap_accurate): Renamed from re_fastmap_accurate.
82455         (no_sub): Renamed from re_no_sub.
82456         (not_bol): Renamed from re_not_bol.
82457         (not_eol): Renamed from re_not_eol.
82458         (newline_anchor): Renamed from re_newline_anchor.
82459         (num_regs): Renamed from rm_num_regs.
82460         (start): Renamed from rm_start.
82461         (end): Renamed from rm_end.
82462
82463         (free_state): Move up a bit.
82464
82465         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
82466         #define to be empty.
82467         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
82468         when that is what is intended.
82469         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
82470         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
82471         (MAX): New macro.
82472         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
82473         All uses changed back to re_malloc, etc.  It's now the caller's
82474         responsibility to check for overflow; all callers changed.
82475         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
82476         (re_x2nrealloc): Remove.
82477         (free_state): Remove decl.
82478
82479         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
82480         (re_set_registers, re_exec):
82481         Use K&R-style defn.
82482
82483         2006-01-31  Roland McGrath  <roland@redhat.com>
82484
82485         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
82486         Reported by Mike Frysinger <vapier@gentoo.org>.
82487
82488         2006-01-15  Andreas Jaeger  <aj@suse.de>
82489
82490         [BZ #1950]
82491         * lib/regex_internal.c (re_string_reconstruct): Adjust for
82492         build_wcs_upper_buffer change.
82493         (build_wcs_upper_buffer): Change return type.
82494
82495         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
82496
82497         * lib/regex_internal.h: Include <stdint.h> if available.
82498
82499         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
82500
82501         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
82502
82503         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
82504
82505         * lib/regcomp.c: Adjust for changed secondary hash function.
82506
82507         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
82508
82509         * lib/regex.h: Pretty printing.
82510         Clean up namespace a bit.
82511
82512         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
82513
82514         * lib/regexec.c (update_cur_sifted_state, check_arrival,
82515         check_arrival_add_next_nodes): Avoid using uninitialized variable.
82516
82517         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82518                     Ulrich Drepper  <drepper@redhat.com>
82519
82520         [BZ #1302]
82521         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
82522         changed.
82523         (bitset_word_t): Renamed from bitset_word.  All uses changed.
82524
82525         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
82526
82527         [BZ #281]
82528         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
82529         * lib/regcomp.c: Remove unnecessary uses of
82530         unsigned RE_TRANSLATE_TYPE.
82531         * lib/regex_internal.h: Likewise.
82532         * lib/regex_internal.c: Likewise.
82533         * lib/regexec.c: Likewise.
82534         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
82535
82536         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
82537
82538         * lib/regexec.c (find_recover_state): Remove unnecessary
82539         initialization.
82540         (transit_state_bkref): Make DFA a const pointer.
82541         (get_subexp): Likewise.
82542         (check_arrival): Likewise.
82543         (update_cur_sifted_state): Likewise.
82544         (re_search_internal): Likewise.
82545         (prune_impossible_nodes): Likewise.
82546         (acquire_init_state_context): Likewise.
82547         (proceed_next_node): Likewise.
82548         (set_regs): Likewise.
82549         (free_fail_stack_return): Likewise.
82550         (check_arrival_expand_ecl): Mark DFA parameter as const.
82551         (check_arrival_expand_ecl_sub): Likewise.
82552         (check_subexp_limits): Likewise.
82553         (sub_epsilon_src_nodes):  Likewise.
82554         (add_epsilon_src_nodes):  Likewise.
82555         (merge_state_array): Likewise.
82556         (update_regs): Likewise.
82557         (build_trtable): Likewise.
82558         (sift_states_backward): Mark MCTX parameter as const.
82559         (build_sifted_states): Likewise.
82560         (update_cur_sifted_state): Likewise.
82561         (sift_states_mkref): Likewise.
82562         (check_arrival_expand_ecl): Mark eclosure as const.
82563         (check_dst_limits_calc_pos_1): Likewise.
82564         * lib/regex_internal.h (re_match_context_t): Make dfa a const
82565         pointer.
82566
82567         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
82568
82569         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
82570         (transit_state_sb): Likewise.
82571         (transit_state_mb): Likewise.
82572         (sift_states_iter_mb): Likewise.
82573         (check_arrival_add_next_nodes): Likewise.
82574         (check_node_accept_bytes): Change first parameter to pointer-to-const.
82575         [_LIBC] (re_search_2_stub): Use mempcpy.
82576
82577         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
82578         mbrtowc for very simple UTF-8 case.
82579
82580         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
82581         a pointer-to-const.
82582         (re_acquire_state_context): Likewise.
82583         * lib/regex_internal.h: Adjust prototypes.
82584
82585         * lib/regex.c: Prevent using C++ compilers.
82586
82587         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
82588         (re_acquire_state_context): Likewise.
82589
82590 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82591
82592         * modules/regex (Depends-on): Add ssize_t.
82593
82594 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
82597         translation table.
82598
82599 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
82602
82603 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
82604             Bruno Haible  <bruno@clisp.org>
82605
82606         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
82607         <sys/types.h> and <inttypes.h>.
82608
82609 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82610
82611         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
82612         `__error_t_defined', so argp.h will not typedef the former.
82613
82614 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
82615
82616         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
82617         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
82618         glibc names.  Even if glibc is changed to conform to POSIX, the
82619         traditional names will be available anyway, since regex depends on
82620         the extensions module.  Also, fix a longstanding typo in the
82621         implementation of Spencer ERE test #75 from grep 2.3.  Problems
82622         reported by Emanuele Giaquinta.  Also, change sense of cached
82623         variable, so that the message makes sense.
82624
82625 2006-03-24  Simon Josefsson  <jas@extundo.com>
82626
82627         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
82628         including some doc fixes.
82629         (base64_encode_alloc): Fix +1 bug on allocation failures.
82630
82631 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82632
82633         * lib/base64.c (base64_encode): Do not read past end of array with
82634         unsanitized input on systems with CHAR_BIT > 8.
82635
82636 2006-03-24  Eric Blake  <ebb9@byu.net>
82637
82638         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
82639
82640 2006-03-22  Karl Berry  <karl@gnu.org>
82641
82642         * config/srclist.txt (*setenv.[ch]): get from coreutils.
82643         * config/srclistvars.sh (COREUTILS): new var.
82644
82645 2006-03-17  Jim Meyering  <jim@meyering.net>
82646
82647         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
82648         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
82649
82650 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82651
82652         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
82653         no longer needs it.  Instead, check that regoff_t is as least
82654         as wide as ptrdiff_t.
82655
82656         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
82657         so that our regex.h stays compatible with the installed regex.
82658         This is helpful for installers who configure --without-included-regex.
82659         Problem reported by Emanuele Giaquinta.
82660
82661 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
82664         Typedef to long int, not to off_, as POSIX will likely change
82665         in that direction.
82666
82667 2006-03-15  Eric Blake  <ebb9@byu.net>
82668
82669         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
82670
82671 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82672
82673         * lib/argp-help.c (validate_uparams): Fix typo
82674         * lib/argp-parse.c (argp_default_options): Consistently begin help
82675         messages with a lowercase letter.
82676
82677 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
82678
82679         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
82680         overrun buffers and shouldn't be used (much as gets shouldn't be
82681         used).
82682         * lib/time_r.c (asctime_r, ctime_r): Likewise.
82683
82684 2006-03-08  Simon Josefsson  <jas@extundo.com>
82685
82686         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
82687         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82688
82689 2006-03-08  Simon Josefsson  <jas@extundo.com>
82690
82691         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
82692         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82693
82694 2006-03-08  Simon Josefsson  <jas@extundo.com>
82695
82696         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
82697         signal that configure disabled the device.
82698
82699 2006-03-08  Simon Josefsson  <jas@extundo.com>
82700
82701         * build-aux/maint.mk: Fix refresh-po, to handle no translated
82702         languages.
82703
82704 2006-03-07  Simon Josefsson  <jas@extundo.com>
82705
82706         * modules/getopt (Depends-on): Add unistd.
82707
82708         * modules/unistd: New file.
82709
82710 2006-03-07  Simon Josefsson  <jas@extundo.com>
82711
82712         * modules/gc-random: New file.
82713
82714 2006-03-07  Simon Josefsson  <jas@extundo.com>
82715
82716         * m4/unistd_h.m4: New file.
82717
82718 2006-03-07  Simon Josefsson  <jas@extundo.com>
82719
82720         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
82721         test to be side-effect free by storing the result in the cache
82722         variable gl_cv_lib_readline, and moving the assignment of
82723         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
82724         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82725
82726 2006-03-07  Simon Josefsson  <jas@extundo.com>
82727
82728         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
82729         error on missing devices (the functions will return an error).
82730
82731         * m4/gc.m4: Move random stuff to gc-random.m4
82732
82733 2006-03-07  Simon Josefsson  <jas@extundo.com>
82734
82735         * lib/unistd_.h: New file.
82736
82737 2006-03-07  Simon Josefsson  <jas@extundo.com>
82738
82739         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
82740
82741 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
82744         Problem reported by Juan Manuel Guerrero.
82745
82746 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82747
82748         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
82749         the unistd module.
82750         * lib/getlogin_r.c: Likewise.
82751         * lib/getlogin_r.h: Likewise.
82752         * lib/glob.c: Likewise.
82753         * lib/pagealign_alloc.c: Likewise.
82754         * lib/unistd_.h: Remove; no longer needed.
82755
82756 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * MODULES.html.sh (Support for systems lacking POSIX:2001):
82759         Add unistd.
82760         * modules/c-stack (Depends-on): Add unistd.
82761         * modules/getlogin_r: Likewise.
82762         * modules/glob: Likewise.
82763         * modules/pagealign_alloc: Likewise.
82764         * modules/unistd (Files): Remove lib/unistd_.h.
82765         (EXTRA_DIST): Remove.
82766         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
82767         need unistd_.h.
82768         (MOSTLYCLEANFILES): Remove unistd.h-t.
82769
82770 2006-03-03  Simon Josefsson  <jas@extundo.com>
82771
82772         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
82773
82774 2006-03-03  Simon Josefsson  <jas@extundo.com>
82775
82776         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
82777         libidn and bison.
82778
82779 2006-03-03  Simon Josefsson  <jas@extundo.com>
82780
82781         * build-aux/maint.mk: Add indent target.
82782
82783 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
82784
82785         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
82786         our replacement poll.h in any case, to avoid a differing
82787         declaration from a system header.  Seen on AIX.
82788
82789 2006-03-01  Simon Josefsson  <jas@extundo.com>
82790
82791         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
82792         <kasal@ucw.cz>.
82793
82794 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82795
82796         * modules/gettime (Depends-on): Add extensions module.
82797         * modules/nanosleep (Depends-on): Likewise.
82798         * modules/settime (Depends-on): Likewise.
82799
82800 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
82803         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
82804         pedantically.
82805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
82806         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
82807
82808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
82809         not "==".  Reported by Ralf Wildenhues.
82810
82811 2006-03-01  Karl Berry  <karl@gnu.org>
82812
82813         * doc/Copyright/request-*: new files, synced from gnuorg.
82814
82815 2006-03-01  Karl Berry  <karl@gnu.org>
82816
82817         * config/srclist.txt (Copyright/*): new entries.
82818
82819 2006-02-28  Simon Josefsson  <jas@extundo.com>
82820
82821         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
82822
82823 2006-02-27  Simon Josefsson  <jas@extundo.com>
82824
82825         * lib/base64.h: Indent #define's.  From Jim Meyering
82826         <jim@meyering.net>.
82827
82828 2006-02-27  Jim Meyering  <jim@meyering.net>
82829
82830         Revert the change of 2006-02-24, so these files can continue
82831         to be sync'd from gettext.
82832         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82833         of `config.h'.
82834
82835 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * modules/intprops: New file.
82838         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82839         Add intprops.
82840         * modules/getloadavg (Files): Remove lib/intprops.h.
82841         (Depends-on): Add intprops.
82842         * modules/human: Likewise.
82843         * modules/inttostr: Likewise.
82844         * modules/openat: Likewise.
82845         * modules/sig2str: Likewise.
82846         * modules/userspec: Likewise.
82847         * modules/utimecmp: Likewise.
82848         * modules/xnanosleep: Likewise.
82849         * modules/xstrtol: Likewise.
82850
82851 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82852
82853         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82854         * modules/lock-tests (TESTS): Use $(EXEEXT).
82855         * modules/tls-tests: Likewise.
82856         * modules/argp-tests: Likewise.
82857         (check_PROGRAMS): New var, replacing...
82858         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82859
82860 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82861
82862         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82863         `config.h'.
82864
82865 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82866
82867         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82868
82869 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82870
82871         Sync from coreutils.
82872         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82873         gl_CHDIR_SAFER.
82874
82875 2006-02-22  Jim Meyering  <jim@meyering.net>
82876
82877         Sync from coreutils.
82878         * m4/chdir-safer.m4: New file.
82879
82880 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82881
82882         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82883         AT_FDCWD exceeds INT_MAX.
82884         * lib/openat.h (AT_FDCWD): Likewise.
82885
82886 2006-02-17  Eric Blake  <address@hidden>
82887
82888         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82889
82890 2006-02-16  Simon Josefsson  <jas@extundo.com>
82891
82892         * modules/getaddrinfo (Depends-on): Add sys_socket.
82893
82894 2006-02-15  Simon Josefsson  <jas@extundo.com>
82895
82896         * build-aux/maint.mk: Add dsyntax-check rule.
82897
82898 2006-02-15  Eric Blake  <ebb9@byu.net>
82899
82900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82901         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82902         'present but cannot compile' warnings on cygwin.
82903         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82904         use ws2tcpip.h if sys/socket.h works.
82905         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82906         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82907
82908 2006-02-14  Simon Josefsson  <jas@extundo.com>
82909
82910         * modules/maintainer-makefile (Files): Rename.
82911
82912         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82913         and (the local) Makefile.cfg to maint-cfg.mk.
82914
82915         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82916         to the latter.
82917
82918         * modules/maintainer-makefile: New module.
82919
82920         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82921         severaly stripped to make it possible to build it up from scratch
82922         with reliable tests.
82923
82924         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82925         fixes to permit overriding the default actions when configure and
82926         makefile are not available.
82927
82928 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82929
82930         Sync from coreutils.
82931         * modules/lstat (Depends-on): Don't depend on xalloc.
82932         (License): Change from GPL to LGPL, since this is now simply a
82933         replacement for a libc function.
82934
82935 2006-02-14  Jim Meyering  <jim@meyering.net>
82936
82937         Sync from coreutils.
82938
82939         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82940         failure on deficient systems, and simplify gnulib lgpl dependencies.
82941         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82942         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82943
82944         * lib/xalloc-die.c: Remove unused definition of N_.
82945
82946 2006-02-14  Jim Meyering  <jim@meyering.net>
82947
82948         Sync from coreutils.
82949         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82950         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82951         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82952         double-quote uses of that variable, to accommodate the rare case in
82953         which getmntent is available in none of the libraries checked.  This
82954         happens at least on FreeBSD 5.0.
82955
82956 2006-02-13  Simon Josefsson  <jas@extundo.com>
82957
82958         * gnulib-tool (Usage): Fix --import, from
82959         karl@freefriends.org (Karl Berry).
82960
82961 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82962
82963         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82964
82965 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82966
82967         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82968         "autoupdate" on 2005-12-12.
82969
82970 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82971
82972         * modules/closeout (Depends-on): Remove atexit.
82973
82974 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82975
82976         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82977         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82978
82979 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82982         __EXTENSIONS__ if this causes compilation to fail.  Problem
82983         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82984         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82985
82986 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82987
82988         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82989         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82990         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82991         All uses changed.
82992
82993 2006-01-26  Simon Josefsson  <jas@extundo.com>
82994
82995         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82996         prototype is visible on mingw32.
82997
82998         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82999         for mingw32.
83000
83001         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83002         mingw32).
83003
83004 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83007         attempt to open for write; this always fails, at least on POSIX
83008         hosts.  This reinstates the 2006-01-09 change, which was
83009         inadvertently removed.
83010
83011 2006-01-26  Bruno Haible  <bruno@clisp.org>
83012
83013         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83014         Reported by Paul Eggert.
83015
83016 2006-01-26  Bruno Haible  <bruno@clisp.org>
83017             Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * lib/stdbool_.h (_Bool)
83020         [(! (defined __cplusplus || defined __BEOS__)
83021           && !defined __GNUC__
83022           && !(defined __HP_cc || defined __xlc__
83023                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83024                || defined __sgi))]:
83025         #define to signed char in these cases too; this simplifies
83026         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83027         etc., separately) and makes it more conservative.
83028
83029 2006-01-25  Simon Josefsson  <jas@extundo.com>
83030
83031         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83032         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83033         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83034
83035 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83036
83037         * lib/argp-namefrob.h: Bugfix. Remove stray #
83038
83039 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83042         so that we test the test.
83043         Check for yet another HP-UX cc bug involving *bool |= bool.
83044
83045 2006-01-25  Karl Berry  <karl@gnu.org>
83046
83047         * config/srclist.txt (vasnprintf.c): sync lost.
83048
83049 2006-01-25  Jim Meyering  <jim@meyering.net>
83050
83051         Sync from the stable (b5) branch of coreutils:
83052
83053         * lib/fts.c (fts_children): Don't let close() clobber errno from
83054         failed fchdir().
83055
83056         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83057         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83058         a dangling symlink.  That can also happen at least for ELOOP.
83059         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83060         FYI, this bug predates the inclusion of fts.c in coreutils.
83061
83062         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
83063         in their own block, so pre-c99 compilers don't object.
83064
83065         Avoid the double-free (first in fts_read, second in fts_close) that
83066         would occur when an `active' directory is made inaccessible (e.g.,
83067         via chmod a-x) during a traversal.
83068         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83069         before returning.  Reproduce this failure by
83070         mkdir -p a/b; cd a; chmod a-x . b
83071         Reported by Stavros Passas.
83072
83073 2006-01-25  Jim Meyering  <jim@meyering.net>
83074
83075         * lib/fileblocks.c: Remove more useless parentheses.
83076         * lib/readutmp.h: Likewise.
83077
83078 2006-01-25  Bruno Haible  <bruno@clisp.org>
83079
83080         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
83081         warnings.
83082         Reported by Paul Eggert.
83083
83084 2006-01-25  Bruno Haible  <bruno@clisp.org>
83085
83086         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
83087         rid of a trap command. For Solaris sh.
83088         Reported by Mark D. Baushke <mdb@gnu.org>.
83089
83090 2006-01-24  Simon Josefsson  <jas@extundo.com>
83091
83092         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
83093         Bruno.
83094
83095 2006-01-24  Karl Berry  <karl@gnu.org>
83096
83097         * config/srclist.txt (argp-namefrob.h): sync lost.
83098
83099 2006-01-24  Jim Meyering  <jim@meyering.net>
83100
83101         * modules/openat (Files): Add lib/intprops.h.
83102         From Mark D. Baushke.
83103
83104 2006-01-24  Jim Meyering  <jim@meyering.net>
83105
83106         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
83107         Reported by Mark D. Baushke.
83108
83109 2006-01-24  Jim Meyering  <jim@meyering.net>
83110
83111         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
83112
83113 2006-01-24  Bruno Haible  <bruno@clisp.org>
83114
83115         * modules/strnlen (Maintainer): Change from glibc to all.
83116
83117 2006-01-24  Bruno Haible  <bruno@clisp.org>
83118
83119         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
83120         Patch by Paul Eggert.
83121
83122 2006-01-24  Bruno Haible  <bruno@clisp.org>
83123
83124         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
83125         already has it.
83126         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
83127         2005-11-26.
83128
83129         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
83130         'signed char' to avoid problems with the built-in _Bool type.
83131         Reported by Paul Eggert on 2005-11-26.
83132
83133 2006-01-24  Bruno Haible  <bruno@clisp.org>
83134
83135         * gnulib-tool (func_import): Avoid constructing complicated sed
83136         expressions inside backquote.
83137         Report and solution by Mark D. Baushke <mdb@gnu.org>.
83138
83139 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
83140
83141         These changes imported from libc.
83142         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
83143         test and two separate function calls.
83144         * lib/strndup.c (__strndup): Add libc_hidden_def.
83145
83146 2006-01-23  Simon Josefsson  <jas@extundo.com>
83147
83148         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
83149         Remove the test_*_SOURCES variable: automake infers it by default.
83150         * modules/tls-tests: Likewise.
83151
83152 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83153
83154         Work around porting bugs reported by Dieter in
83155         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
83156         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
83157         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
83158         Include "getopt.h" first, to check interface.
83159         (getenv): Declare only if defined HAVE_DECL_GETENV &&
83160         !HAVE_DECL_GETENV.
83161         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
83162         (__strndup): Revert to K&R-style function dfns, the glibc style.
83163         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
83164         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
83165         Include strnlen.h first, to get prototype properly.
83166         (strnlen): Renamed from __strnlen.
83167         Remove weak alias.
83168
83169 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83170
83171         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
83172
83173 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83174
83175         * config/srclist.txt: Adjust to reflect glibc reorganization.
83176         This affects only comments.
83177
83178 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83179
83180          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
83181          Reported by Bruce Korb <bkorb@gnu.org>.
83182
83183 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
83184
83185         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
83186         to pacify gcc -Wswitch-default.
83187
83188 2006-01-22  Bruno Haible  <bruno@clisp.org>
83189
83190         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
83191         temporary buffer for sprintf, take into account the precision also
83192         for 'd', 'i', 'u', 'o', 'x', 'X'.
83193
83194 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83195
83196         * modules/argp-tests: New module
83197         * tests/test-argp.c: New file
83198         * tests/test-argp-2.sh: New file
83199
83200 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
83201
83202         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
83203         (__argp_base_name): Removed
83204         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
83205         typo.
83206         (__argp_base_name): Provide macro definition or extern declaration
83207         depending on the configuration
83208
83209 2006-01-20  Simon Josefsson  <jas@extundo.com>
83210
83211         * modules/inet_ntop (Depends-on): Depend on sys_socket.
83212
83213 2006-01-20  Simon Josefsson  <jas@extundo.com>
83214
83215         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
83216
83217 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83218
83219         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
83220         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
83221         Suggested by Bruno Haible.
83222
83223 2006-01-20  Karl Berry  <karl@gnu.org>
83224
83225         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
83226         until changes propagate, I guess.
83227
83228 2006-01-19  Simon Josefsson  <jas@extundo.com>
83229
83230         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
83231
83232 2006-01-19  Simon Josefsson  <jas@extundo.com>
83233
83234         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
83235
83236 2006-01-19  Simon Josefsson  <jas@extundo.com>
83237
83238         * gnulib-tool: Set check_PROGRAMS.
83239
83240         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83241         modules/des-tests, modules/gc-arcfour-tests,
83242         modules/gc-arctwo-tests, modules/gc-des-tests,
83243         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83244         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83245         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83246         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83247         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83248         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
83249         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
83250         test_*_SOURCES.
83251
83252 2006-01-18  Simon Josefsson  <jas@extundo.com>
83253
83254         * modules/socklen (Depends-on): Depend on sys_socket.
83255
83256 2006-01-18  Simon Josefsson  <jas@extundo.com>
83257
83258         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
83259         modules/des-tests, modules/gc-arcfour-tests,
83260         modules/gc-arctwo-tests, modules/gc-des-tests,
83261         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
83262         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
83263         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
83264         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
83265         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
83266         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
83267         $(EXEEXT) to automake TESTS variable, for mingw32.
83268
83269 2006-01-17  Simon Josefsson  <jas@extundo.com>
83270
83271         * modules/socklen (Include): Need sys/socket.h.
83272
83273 2006-01-17  Bruno Haible  <bruno@clisp.org>
83274
83275         * modules/ssize_t (Include): Add <sys/types.h>.
83276
83277 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
83278
83279         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
83280         it's not portable and it doesn't work with cross-compiles.
83281         Problem reported by Bruno Haible.  Fix missing-$ typo in
83282         'test "gl_cv_ignore_unused_libraries" ...' that prevented
83283         -zignore from being used with Sun's C compiler.
83284
83285 2006-01-12  Simon Josefsson  <jas@extundo.com>
83286
83287         * lib/base64.c: Fix warning, reported by Bruno Haible
83288         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
83289
83290 2006-01-12  Bruno Haible  <bruno@clisp.org>
83291
83292         * modules/ldd: New file.
83293         * build-aux/ldd.sh.in: New file.
83294         * MODULES.html.sh (Support for building libraries and executables): Add
83295         ldd.
83296
83297 2006-01-12  Bruno Haible  <bruno@clisp.org>
83298
83299         * m4/ldd.m4: New file.
83300
83301 2006-01-12  Bruno Haible  <bruno@clisp.org>
83302
83303         * gnulib-tool (func_import, func_create_testdir): Don't go into an
83304         endless loop while replacing $auxdir with build-aux.
83305
83306 2006-01-11  Simon Josefsson  <jas@extundo.com>
83307
83308         * lib/stdint_.h (SIZE_MAX): Add missing (.
83309
83310 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
83311
83312         Sync from coreutils.
83313         * lib/md5.c: Fix commentary typos.
83314         (alignof, UNALIGNED_P): No need for a GCC-specific version.
83315         * lib/md5.h (__attribute__): Remove; unused.
83316         * lib/sha1.c: Fix commentary to match md5 better.
83317         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
83318         so that we don't need to worry about alignment.  All uses changed.
83319         This merges the 2005-10-28 md5 change into sha1.
83320
83321 2006-01-11  Jim Meyering  <jim@meyering.net>
83322
83323         Sync from coreutils.
83324         * lib/md5.c (OP): Fix spacing.
83325
83326 2006-01-11  Bruno Haible  <bruno@clisp.org>
83327
83328         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83329         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
83330         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
83331
83332 2006-01-11  Bruno Haible  <bruno@clisp.org>
83333
83334         Ensure automatic ordering between gl_LOCK and gl_ARGP.
83335         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
83336         the "early" section as well.
83337
83338 2006-01-11  Bruno Haible  <bruno@clisp.org>
83339
83340         Avoid "ar: no archive members specified" error on MacOS X.
83341         * gnulib-tool (func_modules_add_dummy): New function.
83342         (func_import, func_create_testdir): Invoke it.
83343
83344 2006-01-11  Bruno Haible  <bruno@clisp.org>
83345
83346         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
83347         with $auxdir in AC_CONFIG_FILES statements.
83348
83349 2006-01-11  Bruno Haible  <bruno@clisp.org>
83350
83351         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
83352         Initialize also noinst_HEADERS to empty.
83353
83354 2006-01-11  Bruno Haible  <bruno@clisp.org>
83355
83356         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
83357         variables.
83358         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
83359         autoreconf.
83360
83361 2006-01-11  Bruno Haible  <bruno@clisp.org>
83362
83363         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
83364         overridable by the user.
83365         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83366
83367 2006-01-10  Simon Josefsson  <jas@extundo.com>
83368
83369         * modules/sys_socket: New file.
83370
83371 2006-01-10  Simon Josefsson  <jas@extundo.com>
83372
83373         * m4/sys_socket_h.m4: New file.
83374
83375 2006-01-10  Simon Josefsson  <jas@extundo.com>
83376
83377         * lib/socket_.h: New file.
83378
83379 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * modules/readutmp (Maintainer): Add myself.
83382
83383 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83384
83385         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
83386         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
83387         People who are still concerned with buggy memcmp implementations
83388         can invoke gl_FUNC_MEMCMP themselves.
83389
83390 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * lib/regex_internal.h (BITSET_WORD_BITS):
83393         Work around a bug in 64-bit PGC (before version 6.1-2), where the
83394         preprocessor mishandles large unsigned values as if they were signed.
83395         Problem reported by Claudio Fontana in
83396         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
83397
83398 2006-01-10  Jim Meyering  <jim@meyering.net>
83399
83400         Avoid the double-free (first in fts_read, second in fts_close) that
83401         would occur when an `active' directory is made inaccessible (e.g.,
83402         via chmod a-x) during a traversal.
83403         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
83404         before returning.  Reproduce this failure by
83405         mkdir -p a/b; cd a; chmod a-x . b
83406         Reported by Stavros Passas.
83407
83408         Sync from coreutils.
83409         * lib/sha1.c: Tweak grammar in a comment.
83410
83411 2006-01-10  Jim Meyering  <jim@meyering.net>
83412
83413         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
83414         Patch by Joerg Sonnenberger.
83415
83416 2006-01-10  Bruno Haible  <bruno@clisp.org>
83417
83418         * modules/readutmp: Depend on module free.
83419         * modules/strtok_r: Depend on module restrict.
83420
83421 2006-01-10  Bruno Haible  <bruno@clisp.org>
83422
83423         * modules/gettext (configure.ac): Add an invocation of
83424         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
83425
83426 2006-01-10  Bruno Haible  <bruno@clisp.org>
83427
83428         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
83429         Reported by Werner Lemberg <wl@gnu.org>.
83430
83431 2006-01-10  Bruno Haible  <bruno@clisp.org>
83432
83433         * lib/localcharset.c: Update from GNU gettext.
83434
83435 2006-01-10  Bruno Haible  <bruno@clisp.org>
83436
83437         * lib/argp.h (__const): Remove macro. Use const instead.
83438         * lib/argp-fmtstream.h (__const): Likewise.
83439         * lib/glob_.h (__const): Remove macro.
83440         * lib/glob-libc.h: Use const instead of __const.
83441
83442 2006-01-10  Bruno Haible  <bruno@clisp.org>
83443
83444         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
83445         variable.
83446         Needed to avoid an automake error regarding the 'gettext' module.
83447
83448 2006-01-09  Simon Josefsson  <jas@extundo.com>
83449
83450         * modules/inet_ntop (Depends-on): Add restrict.
83451
83452 2006-01-09  Simon Josefsson  <jas@extundo.com>
83453
83454         * modules/gc-rijndael-tests (License): Put under LGPL.
83455
83456         * modules/gc-des-tests (License): Likewise.
83457
83458         * modules/gc-arcfour-tests (License): Likewise.
83459
83460         * modules/gc-arctwo-tests (License): Likewise.
83461
83462         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
83463
83464         * modules/gc-hmac-sha1-tests (Files): Likewise.
83465
83466         * modules/gc-hmac-md5-tests (License): Likewise.
83467
83468         * modules/gc-sha1-tests (License): Likewise.
83469
83470         * modules/gc-md5-tests (License): Likewise.
83471
83472         * modules/gc-md4-tests (License): Likewise.
83473
83474         * modules/gc-md2-tests (License): Likewise.
83475
83476         * modules/gc-tests (License): Likewise.
83477
83478         * modules/des-tests (License): Likewise.
83479
83480         * modules/md4-tests (License): Likewise.
83481
83482         * modules/md2-tests (License): Likewise.
83483
83484 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         Sync from coreutils:
83487
83488         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
83489         * modules/lib-ignore: New file.
83490         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
83491         chdir-safer.m4, lchmod.m4.
83492         * modules/openat: Add mkdirat.c, openat-priv.h.
83493
83494 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83495
83496         Sync from coreutils.
83497         * m4/lib-ignore.m4: New file.
83498         * m4/lchmod.m4: New file.
83499
83500 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83501
83502         Sync from coreutils.
83503         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
83504         for write access: POSIX says that must fail.
83505         * lib/fts.c (diropen): Likewise.
83506         * lib/save-cwd.c (save_cwd): Likewise.
83507         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
83508         well, for minor improvements on hosts that lack O_DIRECTORY.
83509         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
83510         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
83511         Fall back on chown if open failed with EACCES.
83512
83513         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
83514         Report an error at compile-time if only a 1-second nominal clock
83515         resolution is found.
83516
83517         * lib/lchmod.h: New file.
83518         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
83519         (make_dir_parents): Use lchown rather than chown, and
83520         lchmod rather than chmod.
83521
83522         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
83523         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
83524         "proc" reported by n0dalus.
83525
83526         * lib/mountlist.c: Include <limits.h>.
83527         (dev_from_mount_options)
83528         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
83529         New function.  It no longer assumes "dev=" has the System V meaning
83530         on Linux (since it doesn't).  It also parses "dev=" more carefully.
83531         (read_file_system_list)
83532         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
83533         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
83534         dev= in that case.
83535
83536         * lib/posixtm.h (PDS_PRE_2000): New macro.
83537         * lib/posixtm.c (year): Arg is now syntax_bits rather than
83538         allow_century.  All usages changed.  Reject dates outside the range
83539         1969-1999 if PDS_PRE_2000 is used.
83540
83541 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
83542
83543         Sync from coreutils.
83544         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
83545         (Time of day items): Mention the possibility of leap seconds.
83546         Problem reported by Dr. David Alan Gilbert.
83547
83548 2006-01-09  Jim Meyering  <jim@meyering.net>
83549
83550         Sync from coreutils.
83551
83552         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
83553
83554         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
83555
83556         * lib/modechange.c (mode_compile): Reject an invalid mode string
83557         that starts with an octal digit.  From Andreas Gruenbacher.
83558
83559         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
83560         and dup to open_safer and dup_safer, respectively.
83561         (openat_permissive): Fix typo in comment.
83562
83563         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
83564         "gettext.h"; either no longer needed or are guaranteed by openat.h.
83565         (_): Remove; no longer needed.
83566         (openat): Renamed from rpl_openat; no need for rpl_openat
83567         since openat.h renames openat for us.
83568         Replace most of the body with a call to openat_permissive,
83569         to avoid duplicate code.
83570         Port to (probably hypothetical) environments were mode_t is
83571         wider than int.
83572         (openat_permissive): Require mode arg, so that we can check
83573         types better.  Put it just after flags.  Change cwd failure
83574         indicator from pointer-to-bool to pointer-to-errno-value.
83575         All callers changed.
83576         Invoke openat_save_fail and/or openat_restore_fail if
83577         cwd_errno is null, so that openat can call us.
83578         (openat_permissive, fdopendir, fstatat, unlinkat):
83579         Simplify errno handling to avoid some duplicate code,
83580         as it's OK to set errno on success.
83581         * lib/openat.h: Revamp code so that function macros depend on
83582         __OPENAT_PREFIX only, not also on AT_FDCWD.
83583         (openat_ro): Remove.  Caller changed to use openat_permissive.
83584         (openat_permissive): Now a macro, if not a function.
83585         (openat_restore_fail, openat_save_fail): Now always functions,
83586         since mkdirat needs them even if __OPENAT_PREFIX is defined.
83587
83588         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
83589         and openat.c.
83590         * lib/mkdirat.c: Include openat-priv.h.
83591         Remove definitions of macros defined therein.
83592         * lib/openat.c: Likewise.
83593
83594         * lib/mkdirat.c (mkdirat): New file and function.
83595         * lib/openat.h (mkdirat): Declare.
83596
83597         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
83598
83599         * lib/openat.h (openat_permissive): Declare.
83600         (openat_ro): Define.
83601
83602         * lib/openat.c (EXPECTED_ERRNO): New macro.
83603         (openat_permissive): New function -- used in remove.c rewrite.
83604         (all functions): Set errno just before returning, only if there
83605         was an actual failure.
83606         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
83607
83608         Emulate openat-family functions using Linux's procfs, if possible.
83609         Idea and some code based on Ulrich Drepper's glibc changes.
83610
83611         * lib/openat.c: (BUILD_PROC_NAME): New macro.
83612         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
83613         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
83614         before falling back on save_cwd and restore_cwd.
83615         (fdopendir, fstatat, unlinkat): Likewise.
83616
83617         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
83618         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
83619
83620         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
83621         as second argument to va_arg.  Otherwise, some versions of gcc
83622         warn that `if this code is reached, the program will abort'.
83623
83624 2006-01-09  Jim Meyering  <jim@meyering.net>
83625
83626         Sync from coreutils.
83627         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
83628         Require openat-priv.h.
83629
83630 2006-01-09  Bruno Haible  <bruno@clisp.org>
83631
83632         * modules/strnlen (Include): Use strnlen.h.
83633
83634 2006-01-09  Bruno Haible  <bruno@clisp.org>
83635
83636         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
83637
83638 2006-01-09  Bruno Haible  <bruno@clisp.org>
83639
83640         * lib/sysexit_.h (EX_OK): New macro.
83641         Suggested by Martin Lambers <marlam@marlam.de>.
83642
83643 2006-01-09  Bruno Haible  <bruno@clisp.org>
83644
83645         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
83646         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
83647
83648 2006-01-09  Bruno Haible  <bruno@clisp.org>
83649
83650         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
83651         numbers.
83652
83653 2006-01-09  Bruno Haible  <bruno@clisp.org>
83654
83655         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
83656         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
83657         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
83658         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
83659
83660 2006-01-09  Bruno Haible  <bruno@clisp.org>
83661
83662         * build-aux/javacomp.sh.in: New file, moved from lib/.
83663         * modules/javacomp-script (Files): Update.
83664         (configure.ac): Add AC_CONFIG_FILES invocation.
83665         (EXTRA_DIST): Remove variable.
83666
83667         * build-aux/javaexec.sh.in: New file, moved from lib/.
83668         * modules/javaexec (Files): Update.
83669         (configure.ac): Add AC_CONFIG_FILES invocation.
83670         (EXTRA_DIST): Remove javaexec.sh.in.
83671
83672         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
83673         * modules/csharpcomp-script (Files): Update.
83674         (configure.ac): Add AC_CONFIG_FILES invocation.
83675         (EXTRA_DIST): Remove variable.
83676
83677         * build-aux/csharpexec.sh.in: New file, moved from lib/.
83678         * modules/csharpexec (Files): Update.
83679         (configure.ac): Add AC_CONFIG_FILES invocation.
83680         (EXTRA_DIST): Remove csharpexec.sh.in.
83681
83682 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83683
83684         Sync from coreutils.
83685
83686         Add POSIX ACL support
83687         * lib/acl.h (copy_acl, set_acl): Add declarations.
83688         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
83689         systems other than Linux.
83690         (chmod_or_fchmod): New function: use fchmod when possible,
83691         and chmod otherwise.
83692         (file_has_acl): Add a POSIX ACL implementation, with a
83693         Linux-specific subcase.
83694         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
83695         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
83696         acls are unsupported.
83697         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
83698         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
83699         are unsupported.
83700
83701 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
83702
83703         Sync from coreutils.
83704         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
83705
83706 2006-01-07  Bruno Haible  <bruno@clisp.org>
83707
83708         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
83709         gl_EARLY.
83710
83711 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83712
83713         * lib/strftime.c (tzname): Don't declare if it is already #defined.
83714         Problem reported for Mingw by Mark Junker.
83715
83716 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * README: Gnulib normally doesn't generate a tarball.
83719
83720 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
83721
83722         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
83723         long int, not int, for nanosecond counts, so that people who are
83724         used to POSIX struct timespec won't be surprised.  Reported by Jim
83725         Meyering.
83726
83727 2005-12-28  Bruno Haible  <bruno@clisp.org>
83728
83729         * build-aux/config.rpath: Update from GNU gettext.
83730
83731 2005-12-16  Jim Meyering  <jim@meyering.net>
83732
83733         * modules/fprintftime: New module.
83734         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
83735
83736 2005-12-16  Jim Meyering  <jim@meyering.net>
83737
83738         * m4/fprintftime.m4: New file.
83739
83740 2005-12-16  Jim Meyering  <jim@meyering.net>
83741
83742         * lib/fprintftime.c, lib/fprintftime.h: New files.
83743
83744 2005-12-15  Simon Josefsson  <jas@extundo.com>
83745
83746         * modules/socklen (configure.ac): Fix M4 macro name, to align with
83747         new m4/socklen.m4.
83748
83749 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83750
83751         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
83752         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
83753
83754 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
83755
83756         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
83757         * lib/argp-help.c (fill_in_uparams): Check if the constructed
83758         struct uparams is valid. Fall back to the default values if it is
83759         not.
83760
83761 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83762
83763         * modules/argp (Files): Add argp-pin.c
83764         (Depends-on): dirname
83765         (lib_SOURCES): Add argp-pin.c
83766
83767 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83768
83769         * m4/argp.m4:  Check if program_invocation_name and
83770         program_invocation_short_name are declared and define appropriate
83771         macros if they are not.
83772
83773 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83774
83775         * lib/argp-help.c (__argp_base_name): New function
83776         (__argp_short_program_name): Rewrite using __argp_base_name
83777         * lib/argp-namefrob.h: Define program_invocation_name and
83778         program_invocation_short_name if requested
83779         (__argp_base_name): Add prototype
83780         * lib/argp-parse.c (argp_def): Use gettext wrappers
83781         (argp_default_parser): Use __argp_base_name
83782         * lib/argp-pin.c: New file. Defines program_invocation_name and
83783         program_invocation_short_name on systems that lack them.
83784
83785 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83786
83787         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
83788         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83789         porting problem reported by Georg Schwarz in
83790         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83791
83792 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83793
83794         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
83795         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
83796         porting problem reported by Georg Schwarz in
83797         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
83798
83799 2005-12-05  Bruno Haible  <bruno@clisp.org>
83800
83801         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
83802         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
83803         Reported by Mark Junker <mjscod@gmx.de>.
83804
83805 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
83808         Use implementation from Albert Chin, with some
83809         comments/corrections by Stepan Kasal and myself.
83810
83811 2005-12-02  Bruno Haible  <bruno@clisp.org>
83812
83813         * gnulib-tool (func_import): Accept GPLed build tool modules when
83814         --lgpl is given.
83815         * modules/csharpcomp-script: New file.
83816         * modules/csharpcomp: Depend on it.
83817         * modules/javacomp-script: New file.
83818         * modules/javacomp: Depend on it.
83819         Suggested by Simon Josefsson.
83820
83821 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
83822
83823         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
83824         statement, to work around an HP-UX 10.20 compiler bug reported by
83825         Peter O'Gorman.
83826
83827 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83828
83829         * modules/savedir (Depends-on): Add openat.
83830
83831 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83832
83833         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83834         (uintmax_t) [defined uintmax_t]: Do not declare.
83835         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83836         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83837         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83838         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83839         sake of portability to weird hosts that C allows (though we don't
83840         know of any practical examples).
83841
83842         * lib/savedir.h (fdsavedir): New decl.
83843         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83844         contains most of the former guts of savedir.
83845         (savedir): Use savedirstream.
83846         Include "openat.h".
83847
83848 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83849
83850         * modules/obstack (Files): Add m4/ulonglong.m4.
83851         Problem reported by Davide Angelocola.
83852
83853 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83854
83855         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83856         coreutils no longer futzes with rounding modes.
83857
83858 2005-11-14  Jim Meyering  <jim@meyering.net>
83859
83860         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83861         replacement of mkstemp.
83862
83863 2005-11-10  Simon Josefsson  <jas@extundo.com>
83864
83865         * lib/readline.c: Remove EOL.
83866
83867 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83868
83869         * modules/gethrxtime (Depends-on): Add gettime.
83870
83871 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83874         or gettimeofday; no longer needed.
83875
83876 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83877
83878         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83879         time business.
83880         (gethrxtime) [! (HAVE_NANOUPTIME
83881         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83882         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83883         our own approximation.
83884
83885 2005-11-08  Eric Blake  <ebb9@byu.net>
83886
83887         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83888
83889 2005-11-08  Eric Blake  <ebb9@byu.net>
83890
83891         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83892
83893 2005-11-04  Bruno Haible  <bruno@clisp.org>
83894
83895         * gnulib-tool: Implement --update mode.
83896
83897 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83898
83899         Fix porting problem reported by Theodoros V. Kalamatianos.
83900         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83901         Don't assume that futimes failing means we must fail.
83902
83903 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83904
83905         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83906         variables to suggest the intended function of the PATH_MAX check.
83907
83908 2005-10-30  Kean Johnston  <jkj@sco.com>
83909
83910         Trivial changes to support SCO systems.
83911         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83912         as PATH_MAX.
83913         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83914         where __ptr is null when no I/O is pending.
83915
83916 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83919         leave errno alone.  Problem reported by Dmitry V. Levin.
83920
83921 2005-10-28  Simon Josefsson  <jas@extundo.com>
83922
83923         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83924         Test more.
83925
83926         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83927
83928         * modules/md2, modules/md2-tests: New files.
83929
83930 2005-10-28  Simon Josefsson  <jas@extundo.com>
83931
83932         * m4/inet_ntop.m4: More tests.
83933
83934         * m4/gc-md2.m4, md2.m4: New file.
83935
83936 2005-10-28  Simon Josefsson  <jas@extundo.com>
83937
83938         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83939         "restrict" keywords, as per POSIX.  Protect the function
83940         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83941         Don't use K&R prototypes.  Check the sprintf return values.
83942         Re-define EAFNOSUPPORT if not present.  Indent.
83943
83944         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83945         suggested by Bruno Haible <bruno@clisp.org>.
83946
83947         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83948
83949         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83950
83951         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83952         libgcrypt).
83953
83954         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83955
83956         * lib/md2.h, lib/md2.c: New files.
83957
83958 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83961         errno alone.  Problem reported by Frederic Jolliton.
83962
83963 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         * modules/verify (License): Change from GPL to LGPL.  This is a
83966         tiny module and there are apparently near-equivalents that are
83967         under the BSD license.
83968
83969 2005-10-24  Simon Josefsson  <jas@extundo.com>
83970
83971         * modules/sha1: Relicense to LGPL.
83972
83973 2005-10-24  Simon Josefsson  <jas@extundo.com>
83974
83975         * lib/md4.h: Shrink buffer size, now that we changed the type.
83976
83977 2005-10-23  Simon Josefsson  <jas@extundo.com>
83978
83979         * gnulib-tool (func_import): Fix --tests-base.
83980
83981 2005-10-22  Simon Josefsson  <jas@extundo.com>
83982
83983         * modules/arcfour (Depends-on): Need stdint.
83984
83985 2005-10-22  Simon Josefsson  <jas@extundo.com>
83986
83987         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83988         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83989
83990 2005-10-22  Simon Josefsson  <jas@extundo.com>
83991
83992         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83993         suggested by Bruno Haible <bruno@clisp.org>.
83994
83995 2005-10-22  Simon Josefsson  <jas@extundo.com>
83996
83997         * lib/crc.h: Include stddef.h, for size_t.
83998
83999 2005-10-22  Simon Josefsson  <jas@extundo.com>
84000
84001         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84002         arcfour_context struct (simplify test vector testing in GNU
84003         Shishi).
84004
84005 2005-10-21  Simon Josefsson  <jas@extundo.com>
84006
84007         * modules/des, modules/des-tests: New files.
84008
84009         * modules/gc-des, modules/gc-des-tests: New files.
84010
84011         * tests/test-des.c, tests/test-gc-des.c: New file.
84012
84013 2005-10-21  Simon Josefsson  <jas@extundo.com>
84014
84015         * modules/arctwo, modules/arctwo-tests: New files.
84016
84017         * tests/test-arctwo.c: New file.
84018
84019         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84020
84021         * tests/test-gc-arctwo.c: New file.
84022
84023 2005-10-21  Simon Josefsson  <jas@extundo.com>
84024
84025         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84026         Bruno Haible <bruno@clisp.org>.
84027
84028         * m4/gc-des.m4: New file.
84029
84030 2005-10-21  Simon Josefsson  <jas@extundo.com>
84031
84032         * m4/arctwo.m4: New file.
84033
84034         * m4/gc-arctwo.m4: New file.
84035
84036 2005-10-21  Simon Josefsson  <jas@extundo.com>
84037
84038         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84039         block.
84040
84041 2005-10-21  Simon Josefsson  <jas@extundo.com>
84042
84043         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84044         <bruno@clisp.org>.
84045
84046         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84047
84048         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84049         Bruno Haible <bruno@clisp.org>.
84050
84051         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84052         <bruno@clisp.org>.
84053
84054 2005-10-21  Simon Josefsson  <jas@extundo.com>
84055
84056         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84057
84058 2005-10-21  Simon Josefsson  <jas@extundo.com>
84059
84060         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84061
84062 2005-10-21  Simon Josefsson  <jas@extundo.com>
84063
84064         * lib/des.h, lib/des.c: New files.
84065
84066         * lib/gc-gnulib.c: Support DES.c
84067
84068 2005-10-21  Simon Josefsson  <jas@extundo.com>
84069
84070         * lib/arctwo.h, lib/arctwo.c: New files.
84071
84072         * lib/gc-gnulib.c: Support ARCTWO.
84073
84074 2005-10-21  Simon Josefsson  <jas@extundo.com>
84075
84076         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
84077         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84078
84079 2005-10-21  Simon Josefsson  <jas@extundo.com>
84080
84081         * gnulib-tool (func_import, func_create_testdir): Define automake
84082         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
84083         Makefile.am snippet),
84084         suggested by Bruno Haible <bruno@clisp.org>.
84085
84086         * modules/gc (Makefile.am): Use it.
84087
84088 2005-10-21  Bruno Haible  <bruno@clisp.org>
84089
84090         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
84091         patch.
84092
84093 2005-10-19  Simon Josefsson  <jas@extundo.com>
84094
84095         * tests/test-gc-rijndael.c: New file.
84096
84097         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
84098
84099 2005-10-19  Simon Josefsson  <jas@extundo.com>
84100
84101         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
84102         interface too.
84103
84104 2005-10-19  Simon Josefsson  <jas@extundo.com>
84105
84106         * tests/test-gc-arcfour.c: New file.
84107
84108         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
84109
84110 2005-10-19  Simon Josefsson  <jas@extundo.com>
84111
84112         * modules/gc-md4, modules/gc-md4-tests: New file.
84113
84114         * tests/test-gc-md4.c: New file.
84115
84116 2005-10-19  Simon Josefsson  <jas@extundo.com>
84117
84118         * m4/gc-md4.m4: New file.
84119
84120 2005-10-19  Simon Josefsson  <jas@extundo.com>
84121
84122         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
84123         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
84124         <kasal@ucw.cz>.
84125
84126 2005-10-19  Simon Josefsson  <jas@extundo.com>
84127
84128         * m4/gc-arcfour.m4: New file.
84129
84130         * m4/gc-rijndael.m4: New file.
84131
84132 2005-10-19  Simon Josefsson  <jas@extundo.com>
84133
84134         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
84135
84136 2005-10-19  Simon Josefsson  <jas@extundo.com>
84137
84138         * lib/gc-gnulib.c: Support ARCFOUR.
84139
84140 2005-10-19  Simon Josefsson  <jas@extundo.com>
84141
84142         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
84143         support.
84144
84145         * lib/gc.h: Add ECB enum type.
84146
84147         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
84148
84149 2005-10-18  Simon Josefsson  <jas@extundo.com>
84150
84151         * tests/test-md5.c: New file.
84152
84153         * modules/md5-tests: New file.
84154
84155 2005-10-18  Simon Josefsson  <jas@extundo.com>
84156
84157         * tests/test-md4.c: New file.
84158
84159         * modules/md4, modules/md4-tests: New files.
84160
84161 2005-10-18  Simon Josefsson  <jas@extundo.com>
84162
84163         * m4/md4.m4: New file.
84164
84165 2005-10-18  Simon Josefsson  <jas@extundo.com>
84166
84167         * lib/md4.h, lib/md4.c: New files, based on md5.?.
84168
84169 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
84170
84171         * gnulib-tool (func_create_testdir): Omit the second check whether
84172         BUILT_SOURCES in nonempty.
84173
84174 2005-10-17  Simon Josefsson  <jas@extundo.com>
84175
84176         * tests/test-rijndael.c: New file.
84177
84178 2005-10-17  Simon Josefsson  <jas@extundo.com>
84179
84180         * modules/sha1: Depend on stdint instead of md5.
84181
84182         * modules/md5: Depend on stdint, remove uint32_t.
84183
84184 2005-10-17  Simon Josefsson  <jas@extundo.com>
84185
84186         * modules/gc-sha1-tests: New file.
84187
84188         * tests/test-gc-sha1.c: New file.
84189
84190 2005-10-17  Simon Josefsson  <jas@extundo.com>
84191
84192         * m4/md5.m4: Remove call to uint32_t.m4.
84193
84194 2005-10-17  Simon Josefsson  <jas@extundo.com>
84195
84196         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
84197
84198         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
84199         md5.h.
84200
84201         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
84202
84203         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
84204
84205 2005-10-17  Simon Josefsson  <jas@extundo.com>
84206
84207         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
84208
84209 2005-10-17  Simon Josefsson  <jas@extundo.com>
84210
84211         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
84212
84213 2005-10-17  Simon Josefsson  <jas@extundo.com>
84214
84215         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
84216
84217         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
84218
84219 2005-10-17  Bruno Haible  <bruno@clisp.org>
84220
84221         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
84222         that it can also be used in a test.
84223
84224 2005-10-16  Bruno Haible  <bruno@clisp.org>
84225
84226         * gnulib-tool (func_emit_tests_Makefile_am): Also define
84227         TESTS_ENVIRONMENT, so that individual tests can augment it.
84228
84229         * gnulib-tool (func_create_testdir): Use an intermediate target for
84230         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
84231         macros, like $(ALLOCA_H), which cannot be passed through the command
84232         line.
84233
84234 2005-10-15  Simon Josefsson  <jas@extundo.com>
84235
84236         * modules/rijndael-tests: New file.
84237
84238         * modules/rijndael: New file.
84239
84240 2005-10-15  Simon Josefsson  <jas@extundo.com>
84241
84242         * m4/rijndael.m4: New file.
84243
84244 2005-10-15  Simon Josefsson  <jas@extundo.com>
84245
84246         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
84247
84248         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
84249
84250 2005-10-14  Simon Josefsson  <jas@extundo.com>
84251
84252         * tests/test-arcfour.c: New file.
84253
84254         * modules/arcfour, modules/arcfour-tests: New files.
84255
84256 2005-10-14  Simon Josefsson  <jas@extundo.com>
84257
84258         * m4/arcfour.m4: New file.
84259
84260 2005-10-14  Simon Josefsson  <jas@extundo.com>
84261
84262         * lib/arcfour.h, lib/arcfour.c: New files.
84263
84264 2005-10-14  Roland McGrath  <roland@redhat.com>
84265
84266         Import from libc.  [BZ #1331]
84267         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
84268         macro argument.
84269         Reported by Matej Vela <vela@debian.org>.
84270
84271 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84272
84273         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
84274         include <wchar.h>; no longer needed.
84275
84276 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
84279
84280 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
84281         and  Ulrich Drepper  <drepper@redhat.com>
84282
84283         Import from libc.
84284         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
84285         instead of inline stream orientation test and two separate
84286         function calls.  Pay no attention to USE_IN_LIBIO.
84287
84288 2005-10-13  Simon Josefsson  <jas@extundo.com>
84289
84290         * modules/gc-hmac-md5-tests: New file.
84291
84292         * tests/test-gc-hmac-sha1.c: New file.
84293
84294         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
84295
84296         * modules/gc-hmac-md5-tests: New file.
84297
84298         * tests/test-gc-md5.c: New file.
84299
84300         * modules/gc-md5-tests: New file.
84301
84302 2005-10-13  Simon Josefsson  <jas@extundo.com>
84303
84304         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
84305         Move memory allocation outside of loop.
84306
84307 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
84310         intermediate directory is in a read-only file system.  Problem
84311         reported by Eric Blake.
84312
84313 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
84314
84315         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
84316
84317 2005-10-12  Simon Josefsson  <jas@extundo.com>
84318
84319         * tests/test-hmac-sha1.c: New file.
84320
84321         * modules/hmac-sha1-tests: New file.
84322
84323         * modules/hmac-sha1: New file.
84324
84325 2005-10-12  Simon Josefsson  <jas@extundo.com>
84326
84327         * modules/gc-sha1: New file.
84328
84329 2005-10-12  Simon Josefsson  <jas@extundo.com>
84330
84331         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
84332
84333         * tests/test-gc-pbkdf2-sha1.c: New file.
84334
84335 2005-10-12  Simon Josefsson  <jas@extundo.com>
84336
84337         * modules/gc-md5, modules/gc-hmac-md5: New files.
84338
84339         * modules/gc (Files): Remove md5, memxor and hmac files.
84340
84341 2005-10-12  Simon Josefsson  <jas@extundo.com>
84342
84343         * m4/gc-pbkdf2-sha1.m4: New file.
84344
84345         * m4/gc-hmac-sha1.m4: New file.
84346
84347         * m4/gc-sha1: New file.
84348
84349         * m4/hmac-sha1.m4: New file.
84350
84351 2005-10-12  Simon Josefsson  <jas@extundo.com>
84352
84353         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
84354
84355         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
84356
84357 2005-10-12  Simon Josefsson  <jas@extundo.com>
84358
84359         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
84360         suggested by Bruno Haible <bruno@clisp.org>.
84361
84362 2005-10-12  Simon Josefsson  <jas@extundo.com>
84363
84364         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
84365
84366 2005-10-12  Simon Josefsson  <jas@extundo.com>
84367
84368         * lib/gc-pbkdf2-sha1.c: New file.
84369
84370         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
84371
84372 2005-10-12  Simon Josefsson  <jas@extundo.com>
84373
84374         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
84375
84376         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
84377
84378 2005-10-12  Simon Josefsson  <jas@extundo.com>
84379
84380         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
84381         GC_USE_HMAC_MD5, respectively.
84382
84383         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
84384         (gc_md5): Fix typo.
84385
84386         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
84387
84388         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
84389
84390         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
84391
84392 2005-10-12  Bruno Haible  <bruno@clisp.org>
84393
84394         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
84395         Reported by Stepan Kasal <kasal@ucw.cz>.
84396
84397 2005-10-11  Simon Josefsson  <jas@extundo.com>
84398
84399         * tests/test-crc.c: New file.
84400
84401         * modules/crc, modules/crc-tests: New files.
84402
84403 2005-10-11  Simon Josefsson  <jas@extundo.com>
84404
84405         * m4/crc.m4: New file.
84406
84407 2005-10-11  Simon Josefsson  <jas@extundo.com>
84408
84409         * lib/gc.h: Add gc_hash and gc_hash_buffer.
84410
84411         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
84412
84413         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
84414
84415 2005-10-11  Simon Josefsson  <jas@extundo.com>
84416
84417         * lib/crc.h, lib/crc.c: New files.
84418
84419         * lib/gc.h (gc_hash_buffer): Add doc.
84420
84421 2005-10-11  Bruno Haible  <bruno@clisp.org>
84422
84423         * modules/c-strcasestr: New file.
84424         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
84425
84426 2005-10-11  Bruno Haible  <bruno@clisp.org>
84427
84428         * modules/c-strcase: New file.
84429         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
84430
84431 2005-10-11  Bruno Haible  <bruno@clisp.org>
84432
84433         * lib/strcasecmp.c: Include limits.h.
84434         (strcasecmp): Avoid integer overflow on exotic platforms.
84435         * lib/strncasecmp.c: Include limits.h.
84436         (strncasecmp): Avoid integer overflow on exotic platforms.
84437         Reported by Paul Eggert.
84438
84439 2005-10-11  Bruno Haible  <bruno@clisp.org>
84440
84441         * lib/c-strcasestr.h: New file, from GNU gettext.
84442         * lib/c-strcasestr.c: New file, from GNU gettext.
84443
84444 2005-10-11  Bruno Haible  <bruno@clisp.org>
84445
84446         * lib/c-strcase.h: New file, from GNU gettext.
84447         * lib/c-strcasecmp.c: New file, from GNU gettext.
84448         * lib/c-strncasecmp.c: New file, from GNU gettext.
84449
84450 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84451
84452         * modules/mempcpy (License): GPL -> LGPL.
84453         * modules/strchrnul (License): Likewise.
84454         * modules/sysexits (License): Likewise.
84455
84456 2005-10-08  Simon Josefsson  <jas@extundo.com>
84457
84458         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
84459
84460 2005-10-07  Simon Josefsson  <jas@extundo.com>
84461
84462         * m4/memxor.m4: Remove gl_C_RESTRICT call.
84463
84464 2005-10-06  Simon Josefsson  <jas@extundo.com>
84465
84466         * tests/test-hmac-md5.c: New file.
84467
84468         * modules/hmac-md5-tests: New file.
84469
84470         * modules/hmac-md5: New file.
84471
84472 2005-10-06  Simon Josefsson  <jas@extundo.com>
84473
84474         * m4/hmac-md5.m4: New file.
84475
84476         * m4/memxor.m4: Require gl_C_RESTRICT.
84477
84478 2005-10-06  Simon Josefsson  <jas@extundo.com>
84479
84480         * lib/memxor.c (memxor): Avoid casts and warnings.
84481
84482 2005-10-06  Simon Josefsson  <jas@extundo.com>
84483
84484         * lib/hmac-md5.c: New file.
84485
84486         * lib/hmac.h: New file.
84487
84488 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84489
84490         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
84491         promotes to int, not unsigned int, to catch the AIX 5.3
84492         compiler bug.
84493
84494 2005-10-05  Simon Josefsson  <jas@extundo.com>
84495
84496         * modules/memxor: New file.
84497
84498         * modules/iconv (Files): Move config.rpath to havelib, it is used
84499         there.
84500
84501         * modules/havelib (Files): Add config.rpath.
84502
84503 2005-10-05  Simon Josefsson  <jas@extundo.com>
84504
84505         * m4/memxor.m4: New file.
84506
84507 2005-10-05  Simon Josefsson  <jas@extundo.com>
84508
84509         * lib/memxor.c (memxor): Fix compiler error.
84510
84511         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
84512         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
84513
84514         * lib/memxor.h, lib/memxor.c: New files.
84515
84516         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
84517         we assume all systems have it, suggested by Jim Meyering
84518         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
84519         any systems lack sys/socket.h; mingw32 is known to lack it, but we
84520         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
84521         same reasons.
84522
84523 2005-10-05  Simon Josefsson  <jas@extundo.com>
84524
84525         * config/srclist.txt: Add glibc bug 1423 for md5.h.
84526
84527 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
84530         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
84531         needed, since the source code now assumes these .h files.
84532
84533 2005-10-05  Derek Price  <derek@ximbiot.com>
84534
84535         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
84536
84537 2005-10-05  Bruno Haible  <bruno@clisp.org>
84538
84539         * modules/stdint (License): Change to LGPL.
84540
84541 2005-10-04  Simon Josefsson  <jas@extundo.com>
84542
84543         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
84544         D. Baushke" <mdb@gnu.org>.
84545
84546 2005-10-04  Bruno Haible  <bruno@clisp.org>
84547
84548         * lib/verify.h (verify_true): Provide alternative definition for C++.
84549
84550 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
84553         (SSIZE_MAX): New macro, if not already defined.
84554         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
84555         than 2 GiB.
84556
84557 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84558
84559         Sync from coreutils.
84560         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
84561         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
84562         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
84563         ULLONG_MAX doesn't work with 2.7.2.1.
84564
84565 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84566
84567         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
84568         From Ben Pfaff.
84569
84570         * modules/exclude (Depends-on): Depend on verify.
84571         * modules/strtoimax (Depends-on): Likewise.
84572         * modules/utimecmp (Depends-on): Likewise.
84573
84574 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
84575
84576         * lib/exclude.c: Include verify.h.
84577         (verify): Remove.  All callers changed to use verify.h's version.
84578         * lib/strtoimax.c: Likewise.
84579         * lib/utimecmp.c: Likewis.e
84580
84581         Sync from coreutils.
84582         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
84583         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
84584         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
84585         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
84586         bother returning ENOSYS if settimeofday or stime fails; just let
84587         them return whatever errno they want to return.
84588         * lib/utimens.c: Include unistd.h, for dup2.
84589         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
84590         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
84591
84592 2005-10-02  Jim Meyering  <jim@meyering.net>
84593
84594         Sync from coreutils.
84595         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
84596         from glibc-2.2.5 that fails for read-only files.
84597
84598 2005-10-02  Jim Meyering  <jim@meyering.net>
84599
84600         Sync from coreutils.
84601         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
84602         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
84603         `#if HAVE_CONFIG_H'.
84604         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
84605         Remove AT_FDCWD test.
84606         Do not consume the fd unless successful.
84607         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
84608         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
84609         block, so that we don't even try to compile it if settimeofday is
84610         available.  This works around a compilation failure on OSF1 V5.1,
84611         due to stime requiring a `long int*' while tv_sec is `int'.
84612
84613 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
84614
84615         Sync from coreutils.
84616         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
84617         against `yes', rather than just testing for nonempty.
84618
84619 2005-10-01  Simon Josefsson  <jas@extundo.com>
84620
84621         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
84622         and Darwin.
84623
84624         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
84625         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
84626         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
84627         freeaddrinfo and gai_strerror are declared by the POSIX headers.
84628         Check if struct addrinfo is declared.
84629
84630 2005-10-01  Simon Josefsson  <jas@extundo.com>
84631
84632         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
84633         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
84634         AI_* and EAI_* definitions.  Protect function declarations.
84635
84636 2005-10-01  Jim Meyering  <jim@meyering.net>
84637
84638         Sync from coreutils.
84639
84640         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
84641         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
84642         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
84643         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84644         in the inet and nsl libraries.  Required on Solaris 5.7.
84645
84646 2005-10-01  Jim Meyering  <jim@meyering.net>
84647
84648         Sync from coreutils.
84649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
84650         in the inet and nsl libraries.  Required on Solaris 5.7.
84651
84652 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
84653
84654         * lib/getdelim.c (getdelim): Remove unused variables.
84655
84656 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
84657
84658         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
84659         so that the code works even with ancient cpp.  Portability problem
84660         with GCC 2.7.2.1 reported by Thomas M.Ott.
84661
84662 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
84663
84664         * modules/regex (Depends-on): Add strcase.
84665
84666         * modules/gethostname (Licence): Change from GPL to LGPL, since
84667         gethostname.c is a trivial implementation of a standard library
84668         function.
84669         * modules/poll (License): Change from GPL to LGPL, since it's
84670         derived from LGPL code.
84671
84672 2005-09-27  Jim Meyering  <jim@meyering.net>
84673
84674         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
84675         HAVE_CONFIG_H.
84676
84677         * lib/intprops.h (signed_type_or_expr__): Define.
84678         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
84679         for unsigned types.
84680
84681 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
84682
84683         * lib/verify.h (verify_expr): Remove, replacing with:
84684         (verify_true): New macro that returns true instead of void.
84685         (verify_type__): Remove.
84686         (verify): Use verify_true rather than verify_type__.
84687
84688 2005-09-26  Bruno Haible  <bruno@clisp.org>
84689
84690         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
84691         is necessary.
84692         (lib_SOURCES): Remove mbchar.c.
84693         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
84694         (Files): Add m4/mbrtowc.m4.
84695         * modules/mbiter: Likewise.
84696         * modules/mbuiter: Likewise.
84697
84698 2005-09-26  Bruno Haible  <bruno@clisp.org>
84699
84700         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
84701         compile mbchar.c if they are not both present.
84702         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
84703         * m4/mbiter.m4 (gl_MBITER): Likewise.
84704         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
84705         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
84706         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
84707
84708 2005-09-25  Jim Meyering  <jim@meyering.net>
84709
84710         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
84711         also uses socklen_t.
84712
84713 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         * lib/utimens.c (ENOSYS): Define if not already defined.
84716         (futimens): Support having a null PATH if the file descriptor
84717         is nonnegative.
84718
84719         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
84720         Remove.
84721         (__attribute): Define to empty unless GCC 3.1 or later.
84722         This works around a core dump on OpenBSD 3.4, which has GCC
84723         2.95.3, which dumps core when given __attribute__(()).  It also
84724         simplifies other tests, since we really don't want to bother with
84725         worrying about which ancient version of GCC supported what.
84726         Original problem reported by Yoann Vandoorselaere, with part of
84727         the fix suggested by Derek Price.
84728
84729 2005-09-24  Jim Meyering  <jim@meyering.net>
84730
84731         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
84732         so we can once again use a positive bitfield width of 1 -- now we
84733         don't have to explain why we were using a bitfield width of 2.
84734
84735 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84736
84737         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
84738         and similarly for the other external symbols.  Problem reported
84739         by James Gallager.
84740
84741         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
84742         bug reported by Jim Meyering.
84743
84744         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
84745         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
84746         not needed, since socklen is a prerequisite module.
84747
84748 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
84749
84750         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
84751         Problem reported by Eric Blake.
84752         (getaddrinfo): Initialize se so that it's not garbage.
84753         Redo internal storage allocation so that it doesn't make unportable
84754         assumptions about alignment.
84755         Fix a memory leak.
84756
84757         * lib/utimens.c (futimens): Use futimesat if available.
84758         Prefer it to futimes since it doesn't have the futimes bug.
84759
84760         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
84761         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
84762         Instead, declare a function that returns a pointer to an array,
84763         and use verify_type__ to declare the size of the array.
84764         Problem and germ of a solution reported by Bruno Haible.
84765         (verify_type__): Use 2, not 1, for bitfield size, to avoid
84766         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
84767
84768 2005-09-23  Jim Meyering  <jim@meyering.net>
84769
84770         Sync from coreutils.
84771         Correct build failure (socklen_t not defined) on at least
84772         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
84773         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
84774
84775 2005-09-23  Jim Meyering  <jim@meyering.net>
84776
84777         * modules/getaddrinfo (Depends-on): Add socklen.
84778
84779 2005-09-23  Bruno Haible  <bruno@clisp.org>
84780
84781         * tests/test-verify.c: New file.
84782
84783 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84784
84785         Sync from coreutils.
84786
84787         * modules/argmatch (Depends-on): Add verify.
84788         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
84789         unistd-safer.
84790         * modules/save-cwd (Depends-on): Likewise.
84791
84792         * modules/openat (Files): Add lib/openat-die.c.
84793         (Depends-on): Remove error, exitfail.
84794         Add dirname.
84795
84796         * modules/verify: New file.
84797         * MODULES.html.sh (Diagnostics <assert.h>): New section,
84798         with "verify" module.
84799
84800 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         Sync from coreutils.
84803
84804         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
84805         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
84806         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
84807         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
84808         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
84809         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
84810         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
84811         Don't bother checking for string.h, stdlib.h, unistd.h.
84812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
84813         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
84814         module's job.
84815         * m4/jm-macros.m4 (gl_MACROS): Likewise.
84816         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
84817
84818         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
84819         (gl_GETDATE): Use it.
84820
84821         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
84822
84823 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         Sync from coreutils.
84826
84827         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
84828         stat-time.h.
84829         * lib/argmatch.h: Include verify.h
84830         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
84831         (ARGMATCH_ASSERT): Remove; unused.
84832         * lib/canonicalize.c: Assume STDC_HEADERS.
84833         * lib/exclude.c: Include "strcase.h".
84834         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84835         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84836         and stdio-safer.h.
84837         (getusershell): Call fopen, not fopen_safer.
84838         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84839         Do not include unistd-safer.h.
84840         (save_cwd): Don't call fd_safer; no longer needed
84841         now that we include fcntl--.h.
84842
84843         * lib/getdate.y (relative_time): New type.
84844         (RELATIVE_TIME_0): New constant.
84845         (parser_control): Use relative_time instead of doing it ourselves.
84846         (%union): Add new relative_time rel member.
84847         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84848         Now typeless.
84849         (relunit, relunit_snumber): Now of type rel.
84850         (zone, rel, relunit, get_date): Adjust to above changes.
84851
84852         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84853         Do not include unistd-safer.h.
84854         (getloadavg): Don't call fd_safer; no longer needed
84855         now that we include fcntl--.h.
84856
84857         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84858         (make_dir_parents): Treat ENOSYS like EEXIST.
84859
84860         Improve quality of diagnostics on restore_cwd failure.
84861         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84862         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84863         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84864         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84865         each time through the loop.  Do not diagnose restore_cwd failure;
84866         that is the caller's job (and perhaps the caller does not care).
84867
84868         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84869         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84870         If the file already exists but is not a directory, don't bother
84871         to try to make its parents.
84872         Close potential file descriptor leak if we can't chdir("/") (!).
84873         Don't always return true if chdir($PWD) fails; return true only
84874         if the requested action was done successfully (except for the
84875         chdir($PWD)).
84876         Don't log final directory unless we actually made it.
84877         Refactor to avoid duplicate code to fix up permissions.
84878         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84879
84880         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84881         to make it a bit faster and (I hope) clearer.
84882         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84883         Fix bug in formats like %2N.
84884
84885         * lib/verify.h: New file.
84886
84887 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         Sync from coreutils.
84890         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84891
84892 2005-09-22  Jim Meyering  <jim@meyering.net>
84893
84894         Sync from coreutils.
84895
84896         * m4/lstat.m4 (gl_FUNC_LSTAT):
84897         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84898         Remove obsolete comment.
84899         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84900         * m4/xstrtod.m4: Likewise.
84901
84902         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84903
84904 2005-09-22  Jim Meyering  <jim@meyering.net>
84905
84906         Sync from coreutils.
84907
84908         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84909
84910         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84911         the .tm_year member, since otherwise gcc-4.0 would now warn about
84912         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84913
84914         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84915         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84916
84917         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84918         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84919         when run in a time zone for which daylight savings time is in effect
84920         for the starting date.
84921
84922         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84923         stop us from restricting permissions of just-created absolute-named
84924         directories.
84925         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84926         to restore initial working directory.
84927         * lib/mkdir-p.c (make_dir_parents): New parameter:
84928         different_working_dir, to tell caller if/when we change the working
84929         directory and are unable to return to the initial one.
84930         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84931         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84932         `return false'.  This fixes a bug introduced on 2004-07-30.
84933
84934         * lib/openat.c (fdopendir): Be sure to close the supplied
84935         file descriptor before returning.  This makes our replacement
84936         implementation a little closer to Solaris's, where fdopendir
84937         ties the file descriptor to the returned DIR* pointer.
84938         * lib/openat.c (unlinkat): New function.
84939         * lib/openat.h (unlinkat): Add prototype.
84940         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84941         (openat_restore_fail): Rename from openat_restore_die.
84942         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84943
84944         Provide an alternative to exiting immediately upon save_cwd or
84945         restore_cwd failure.  Now, an application can arrange e.g.,
84946         to perform a longjump in that case.
84947         * lib/openat.c: Include dirname.h.
84948         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84949         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84950         and openat_restore_die rather than calling error directly.
84951         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84952
84953         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84954         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84955         define.
84956
84957         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84958         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84959                             int utc, int nanoseconds);
84960         Background:
84961         date should not have to allocate a megabyte of virtual memory to
84962         handle a format argument like +%1048575T.  When implemented with
84963         strftime, it must allocate such a buffer, use strftime to fill it
84964         in, print it, then free it.
84965         With fprintftime, it simply prints everything and exits.
84966         With no need for memory allocation, that's one fewer way to fail.
84967         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84968         optional field width, not before, so we accept %9:z, not %:9z.
84969         (my_strftime): Be sure to use L_('x') for literals.
84970
84971         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84972         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84973         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84974         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84975         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84976         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84977         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84978         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84979         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84980         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84981         * lib/xgethostname.c, lib/xreadlink.c:
84982         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84983
84984         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84985         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84986         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84987         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84988         and don't include <sys/file.h>).
84989
84990 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84991
84992         Sync from coreutils.
84993
84994         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84995         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84996         [!LDAV_DONE]: Avoid unused variable warning.
84997
84998 2005-09-21  Bruno Haible  <bruno@clisp.org>
84999
85000         * lib/unicodeio.h (unicode_to_mb): New declaration.
85001
85002 2005-09-20  Derek Price  <derek@ximbiot.com>
85003
85004         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85005         getaddrinfo.h.
85006
85007 2005-09-20  Bruno Haible  <bruno@clisp.org>
85008
85009         * gnulib-tool: Remove trailing slashes from the values specified for
85010         --source-base, --m4-base, --tests-base, --aux-dir.
85011         Suggested by Simon Josefsson <jas@extundo.com>.
85012
85013 2005-09-20  Bruno Haible  <bruno@clisp.org>
85014
85015         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85016         func_modules_to_filelist, func_import, func_create_testdir): Make all
85017         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85018         change when gnulib-tool is invoked in a different locale.
85019
85020 2005-09-19  Simon Josefsson  <jas@extundo.com>
85021
85022         * m4/socklen.m4: Fix typo.
85023
85024 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85025
85026         Use a consistent style for including <config.h>.
85027         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85028         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85029         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85030         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85031         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85032         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85033         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85034         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85035         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85036         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85037         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85038         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85039         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85040         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85041         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85042         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85043         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85044         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85045         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85046         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85047         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85048         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85049         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85050         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85051         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85052         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85053         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85054         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85055         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85056         lib/xstrtoumax.c, lib/yesno.c:
85057         Standardize inclusion of config.h.
85058         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85059         lib/inttostr.h:  Removed inclusion of config.h from header files.
85060         * lib/inttostr.c:  Adjusted in-tree users.
85061         * lib/timespec.h: Remove superfluous warning to include config.h.
85062         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
85063         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
85064         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
85065         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
85066         config.h with HAVE_CONFIG_H.
85067
85068 2005-09-19  Jim Meyering  <jim@meyering.net>
85069
85070         * modules/pathmax (License): Change to LGPL.
85071
85072 2005-09-19  Derek Price  <derek@ximbiot.com>
85073
85074         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
85075
85076 2005-09-19  Bruno Haible  <bruno@clisp.org>
85077
85078         * gnulib-tool (import): Provide default for --tests-base.
85079
85080 2005-09-19  Bruno Haible  <bruno@clisp.org>
85081
85082         * doc/quote.texi: New file, extracted from gnulib.texi.
85083         * doc/ctime.texi: New file, extracted from gnulib.texi.
85084         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
85085         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
85086         * doc/gnulib.texi: Include them.
85087
85088 2005-09-18  Bruno Haible  <bruno@clisp.org>
85089
85090         Portability fix.
85091         * gnulib-tool (func_readlink): New function.
85092         (func_ln_if_changed): Use it.
85093
85094 2005-09-18  Bruno Haible  <bruno@clisp.org>
85095
85096         * gnulib-tool: Support --with-tests also with --import.
85097         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
85098         (func_import): Use variables $testsbase and $inctests. Emit a
85099         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
85100         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
85101         SUBDIRS += $testsdir.
85102         (func_create_testdir): Update.
85103
85104 2005-09-18  Bruno Haible  <bruno@clisp.org>
85105
85106         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
85107         instead of $dry_run.
85108         (func_cp_if_changed, func_mv_if_changed): Remove functions.
85109         (func_ln_if_changed): Don't handle dry-run here.
85110         (func_import): In dry-run mode, detect more precisely which actions
85111         would be performed, and don't use "...ing" verbs.
85112
85113 2005-09-18  Bruno Haible  <bruno@clisp.org>
85114
85115         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
85116         (func_import): Use join on two temporary files instead of three nested
85117         loops, in order to determine which files are new or old.
85118
85119 2005-09-18  Bruno Haible  <bruno@clisp.org>
85120
85121         * gnulib-tool (func_import): Comment out code that spits out the
85122         new files with --dry-run.
85123
85124 2005-09-18  Bruno Haible  <bruno@clisp.org>
85125
85126         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
85127
85128 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         * lib/stat-time.h: New file.
85131         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
85132         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
85133         in a different way.
85134         (timespec_cmp): New function.
85135         * lib/utimecmp.c: Include stat-time.h.
85136         (SYSCALL_RESOLUTION): Depend on whether various struct stat
85137         members exist, not on the obsolescent ST_MTIM_NSEC.
85138         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
85139
85140 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85141
85142         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
85143
85144 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * MODULES.html.sh (File system functions): Add stat-time.
85147         * modules/stat-time: New file.
85148         * modules/timespec (Files): Remove m4/st_mtim.m4; this
85149         is now done in a different way, by the stat-time module.
85150         * modules/utimecmp (Depends-on): Add stat-time.
85151
85152 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
85153
85154         * m4/st_mtim.m4: Remove.  Superseded by...
85155         * m4/stat-time.m4: New file.
85156         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
85157         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
85158
85159 2005-09-15  Derek Price  <derek@ximbiot.com>
85160
85161         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
85162
85163 2005-09-15  Derek Price  <derek@ximbiot.com>
85164
85165         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
85166         * lib/regex_internal.c: Ditto, using this...
85167         (__GNUC_PREREQ): ...new macro.
85168         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
85169         using...
85170         (__GNUC_PREREQ): ...this new macro.
85171
85172         * lib/strstr.h: Include string.h. Define strstr as a macro here.
85173
85174 2005-09-15  Derek Price  <derek@ximbiot.com>
85175             Paul Eggert  <eggert@cs.ucla.edu>
85176
85177         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
85178         changes, consolidating in...
85179         * lib/regex_internal.h: ...this file.
85180
85181 2005-09-13  Jim Meyering  <jim@meyering.net>
85182
85183         * lib/canon-host.c: Filter through gnu indent and reword comments
85184         slightly.
85185         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
85186
85187 2005-09-13  Derek Price  <derek@ximbiot.com>
85188
85189         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
85190         failure.
85191         Reported by Jim Meyering  <jim@meyering.net>.
85192
85193 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85194
85195         * lib/base64.c: Typo.
85196         (base64_encode): Put b64str in initialized data section.
85197
85198 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         Merge glibc and coreutils changes into gnulib, plus a few
85201         extra fixes.
85202         * lib/md5.c: Use #error rather than a string.
85203         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
85204         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
85205         (__attribute__): Define to empty for non recent-GCC.
85206         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
85207         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
85208         Renamed from their non-__ counterparts, with new macros replacing
85209         them if not _LIBC.  Add __THROW attribute.
85210         (rol): Remove.
85211         (struct md5_ctx): Align buffer if using GCC.
85212         * lib/sha1.h (struct sha1_ctx): Likewise.
85213         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
85214         The old name was backwards.
85215         (NOTSWAP): Remove; not used.
85216         (rol): New macro, moved here from md5.h.
85217         (sha1_process_block): Remove a FIXME that doesn't make sense.
85218
85219 2005-09-12  Derek Price  <derek@ximbiot.com>
85220
85221         Return usable errors from canon-host.
85222         * lib/canon-host.h: New file.
85223         * lib/canon-host.c (canon_host): Wrap...
85224         (canon_host_r): ...this new function, which now relies exclusively on
85225         getaddrinfo.
85226         (ch_strerror): New function.
85227         (last_cherror): New global.
85228         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
85229         interface.
85230         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
85231         void *.
85232         (freeaddrinfo): Free ai->ai_canonname when set.
85233
85234 2005-09-12  Derek Price  <derek@ximbiot.com>
85235
85236         Make canon-host require getaddrinfo.
85237         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
85238         AC_LIBSOURCE canon-host.h.  Call...
85239         (gl_PREREQ_CANON_HOST): ...this new function, which requires
85240         gl_GETADDRINFO.
85241         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
85242
85243 2005-09-12  Derek Price  <derek@ximbiot.com>
85244
85245         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
85246         LGPL.
85247         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
85248
85249 2005-09-12  Derek Price  <derek@ximbiot.com>
85250
85251         * lib/gai_strerror.c: Include config.h when available.  Include
85252         getaddrinfo.h before other headers to test interface.
85253         Reported by Larry Jones <lawrence.jones@ugs.com>.
85254
85255 2005-09-12  Derek Price  <derek@ximbiot.com>
85256             Paul Eggert  <eggert@cs.ucla.edu>
85257
85258         * modules/glob (Files): Add glob-libc.h.
85259
85260 2005-09-12  Derek Price  <derek@ximbiot.com>
85261             Paul Eggert  <eggert@cs.ucla.edu>
85262
85263         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
85264         glob_.h, glob-libc.h.
85265         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
85266
85267 2005-09-12  Derek Price  <derek@ximbiot.com>
85268             Paul Eggert  <eggert@cs.ucla.edu>
85269
85270         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
85271         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
85272         protecting things that should be done only in gnulib contexts.
85273         * lib/glob_.h: New file, containing only the glob things needed for
85274         gnulib.
85275         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
85276         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
85277         (glob, globfree, glob_pattern_p): Now defined simply in terms of
85278         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
85279         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
85280         and to respect the namespace rules better.
85281
85282 2005-09-08  Simon Josefsson  <jas@extundo.com>
85283
85284         * modules/socklen: New file.
85285
85286 2005-09-08  Simon Josefsson  <jas@extundo.com>
85287
85288         * m4/socklen.m4: New file.
85289
85290 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85291
85292         * modules/utimens (Files): Add m4/utimbuf.m4, since
85293         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
85294         Reported by Sergey Poznyakoff.
85295
85296 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
85299         definitions, since that's the preferred style in glibc.
85300         Fix a minor spacing issue, and update copyright notice to match
85301         glibc's.
85302
85303 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
85304
85305         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
85306
85307 2005-09-06  Simon Josefsson  <jas@extundo.com>
85308
85309         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
85310         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
85311
85312 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85313
85314         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
85315         warning.
85316
85317 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
85318
85319         * config/srclist.txt: Add glibc bug 1302.
85320
85321 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
85322
85323         Change bitset word type from unsigned int to unsigned long int,
85324         as this has better performance on typical 64-bit hosts.
85325         Port bitset code to hosts with unusual word sizes.
85326         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
85327         (build_collating_symbol):
85328         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
85329         argument is a bitset.  This is merely a style issue, but it makes
85330         it clearer that an entire array is expected.
85331         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
85332         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
85333         Port to the case where bitset_word is not the same as unsigned int.
85334         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85335         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
85336         Likewise.
85337         * lib/regexec.c (check_dst_limits_calc_pos_1,
85338         check_subexp_matching_top):
85339         (build_trtable, group_nodes_into_DFAstates):
85340         Likewise.
85341         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
85342         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
85343         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
85344         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
85345         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
85346         * lib/regcomp.c (optimize_subexps, lower_subexp):
85347         Work even if bitset_word has holes in its bitwise representation.
85348         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
85349         * lib/regexec.c (check_dst_limits_calc_pos_1,
85350         check_subexp_matching_top):
85351         Likewise.
85352         * lib/regex_internal.c (re_string_reconstruct):
85353         Don't assume UCHAR_MAX == 255.
85354         * lib/regex_internal.h (bitset_set_all): Likewise.
85355         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
85356         All uses changed.
85357         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
85358         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
85359         All uses changed.
85360         (BITSET_WORD_MAX): New macro.
85361         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
85362         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
85363         (bitset_empty, bitset_copy):
85364         Prefer sizeof (bitset) to multiplying it out ourselves.
85365         (bitset_not_merge): Remove; unused.
85366         (bitset_contain): Return bool, not unsigned int with one bit on.
85367         All callers changed.
85368         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
85369         alignment than re_node_set; do this by defining a new internal
85370         type struct dests_alloc and using it to allocate memory.
85371
85372 2005-09-05  Bruno Haible  <bruno@clisp.org>
85373
85374         * gnulib-tool (func_import): Fix comparison in handling of symbolic
85375         links.
85376
85377 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
85378
85379         * modules/size_max (Makefile.am): Add size_max.h
85380
85381 2005-09-04  Derek Price  <derek@ximbiot.com>
85382
85383         * gnulib-tool (func_import): Fix reversed $symbolic logic.
85384
85385 2005-09-03  Simon Josefsson  <jas@extundo.com>
85386
85387         * gnulib-tool: Fix typo.
85388
85389 2005-09-03  Simon Josefsson  <jas@extundo.com>
85390
85391         * config/srclist.txt: Add glibc bug 1293.
85392
85393 2005-09-03  Derek Price  <derek@ximbiot.com>
85394
85395         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
85396         From Larry Jones <lawrence.jones@ugs.com>.
85397
85398 2005-09-02  Simon Josefsson  <jas@extundo.com>
85399
85400         * modules/socklen: New file.
85401
85402 2005-09-02  Simon Josefsson  <jas@extundo.com>
85403
85404         * modules/havelib: New module.
85405
85406         * modules/gettext, modules/iconv, modules/lock, modules/readline:
85407         Use havelib.
85408
85409 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85410
85411         Check for arithmetic overflow when calculating sizes, to prevent
85412         some buffer-overflow issues.  These patches are conservative, in the
85413         sense that when I couldn't determine whether an overflow was possible,
85414         I inserted a run-time check.
85415         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
85416         macros.
85417         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
85418         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
85419         (re_xnrealloc, re_x2nrealloc): New inline functions.
85420         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
85421         parse_bracket_exp):
85422         (build_equiv_class, build_charclass): Check for arithmetic overflow
85423         in size expression calculations.
85424         * lib/regex_internal.c (re_string_realloc_buffers):
85425         (build_wcs_upper_buffer, re_node_set_add_intersect):
85426         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
85427         (re_dfa_add_node, register_state): Likewise.
85428         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
85429         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
85430         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
85431         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
85432
85433 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
85434
85435         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85436         m4/ulonglong.m4.  Problem reported by Martin Lambers.
85437
85438 2005-09-02  Bruno Haible  <bruno@clisp.org>
85439
85440         Support for lib vs. lib64 distinction on biarch platforms.
85441         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
85442         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
85443         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
85444
85445 2005-09-02  Bruno Haible  <bruno@clisp.org>
85446
85447         * gnulib-tool (import): In the other first-use case, provide defaults
85448         as well.
85449
85450 2005-09-02  Bruno Haible  <bruno@clisp.org>
85451
85452         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
85453         patches not yet found in the latest gettext release.
85454
85455 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85456
85457         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
85458         to avoid a collision with bits/local_lim.h in glibc.
85459         All uses changed.  Problem reported by Dmitry V. Levin in
85460         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
85461
85462         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
85463         bugs in int versus size_t comparisons.
85464         (re_string_context_at): Fix bug where the code assumed that
85465         Idx is signed.
85466
85467         Use bool where appropriate.
85468         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
85469         All callers changed.
85470         (calc_eclosure_iter): Likewise, for ROOT arg.
85471         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
85472         (build_charclass_op): Likewise, for NON_MATCH arg.
85473         * lib/regex_internal.c (re_string_allocate, re_string_construct):
85474         (re_string_construct_common): Likewise, for ICASE arg.
85475         * lib/regexec.c (re_search_2_stub, re_search_stub):
85476         Likewise, for RET_LEN arg.
85477         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
85478         (set_regs): Likewise, for FL_BACKTRACK arg.
85479         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
85480         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
85481         (calc_eclosure_iter, parse_bracket_exp):
85482         Use bool for internal variables that are booleans.
85483         * lib/regexec.c (re_search_internal, check_matching,
85484         proceed_next_node):
85485         (set_regs, build_sifted_states, sift_states_bkref):
85486         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
85487         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85488         (find_collation_sequence_value):
85489         Likewise.
85490         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
85491         (re_node_set_compare):
85492         Return bool, not int. All callers changed.
85493         * lib/regexec.c (check_halt_node_context, check_dst_limits):
85494         (build_trtable, check_node_accept): Likewise.
85495         * lib/regex_internal.h: Include stdbool.h.
85496
85497         Fix bugs uncovered when converting to bool.
85498         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
85499         failure instead of charging ahead blindly.
85500         * lib/regex_internal.c (register_state): Likewise.
85501         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
85502         for freeing internal storage.
85503         (group_nodes_into_DFA_states): Use unsigned int, not int, for
85504         bitset pieces used as boolean, to avoid undefined behavior
85505         on hosts that do int overflow checking.
85506
85507 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
85508
85509         * config/srclist.txt: Add glibc bugs 1285-1287.
85510
85511 2005-09-01  Jim Meyering  <jim@meyering.net>
85512
85513         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
85514         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
85515         Require gl_STAT_MACROS, too.
85516
85517 2005-09-01  Bruno Haible  <bruno@clisp.org>
85518
85519         * gnulib-tool (import): In the first-use case, provide defaults.
85520
85521 2005-09-01  Bruno Haible  <bruno@clisp.org>
85522
85523         * gnulib-tool (func_import): Remove the .tmp files.
85524
85525 2005-09-01  Bruno Haible  <bruno@clisp.org>
85526
85527         * gnulib-tool (func_import): Fix handling of symbolic links.
85528
85529 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
85532         old glibc regex code mishandles strings longer than 2**31 bytes.
85533         This patch fixes this when the regex code is used in gnulib
85534         (i.e., outside glibc).
85535
85536         This patch should not affect the use of the regex code inside
85537         glibc.  No doubt this problem also needs to be handled for glibc
85538         as well, but the result will be an incompatible change to the
85539         glibc ABI, and the old ABI will have to be supported too.  That
85540         can be the the subject for another patch.
85541
85542         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
85543         governing whether the rest of this patch is active.  By default,
85544         the macro is disabled and the patch has no effect.
85545         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
85546         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
85547         (struct re_pattern_buffer, re_search, re_search_2, re_match):
85548         (re_match_2, re_set_registers): Use the new types.
85549         * lib/regex_internal.h (Idx, re_hashval_t): New types.
85550         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
85551         New macros.
85552         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
85553         (re_string_context_at, bin_tree_t, re_dfastate_t):
85554         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
85555         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
85556         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
85557         (re_string_char_size_at, re_string_wchar_at):
85558         (re_string_elem_size_at):
85559         Use the new types and macros to port to 64-bit hosts.
85560         Use unsigned types for internal values, so that the code
85561         mostly works even for arrays larger than SSIZE_MAX.
85562         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
85563         (search_duplicated_node, calc_eclosure_iter, fetch_number):
85564         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
85565         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
85566         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
85567         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
85568         (calc_inveclosure, parse_dup_op, build_range_exp):
85569         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
85570         (fetch_number, create_token_tree, mark_opt_subexp):
85571         Likewise.
85572         * lib/regex_internal.c (re_string_construct_common,
85573         create_ci_newstate):
85574         (create_cd_newstate, re_string_allocate, re_string_construct):
85575         (re_string_realloc_buffers, build_wcs_upper_buffer):
85576         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85577         (re_string_reconstruct, re_string_peek_byte_case):
85578         (re_string_fetch_byte_case, re_string_context_at):
85579         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85580         (re_node_set_init_copy, re_node_set_add_intersect):
85581         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85582         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85583         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85584         (re_acquire_state, re_acquire_state_context, register_state):
85585         Likewise.
85586         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
85587         search_cur_bkref_entry):
85588         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
85589         (re_search_internal, re_search_2_stub, re_search_stub)
85590         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
85591         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
85592         (update_cur_sifted_state, check_dst_limits):
85593         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85594         (check_subexp_limits, sift_states_bkref, merge_state_array):
85595         (check_subexp_matching_top, get_subexp, get_subexp_sub):
85596         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
85597         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85598         (expand_bkref_cache, check_node_accept_bytes):
85599         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
85600         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
85601         (acquire_init_state_context, check_halt_node_context):
85602         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
85603         (sift_states_backward, clean_state_log_if_needed):
85604         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
85605         (find_recover_state, transit_state_sb, transit_state_mb):
85606         (transit_state_bkref, build_trtable, match_ctx_clean):
85607         Likewise.
85608         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
85609         to work around an assumption that REG_MISSING is negative.
85610
85611         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
85612         (seek_collating_symbol_entry) [defined _LIBC]:
85613         (lookup_collation_sequence_value) [defined _LIBC]:
85614         (build_range_exp, build_collating_symbol) [defined _LIBC]:
85615         Use prototypes rather than old-style function definitions.
85616         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
85617         (transit_state_sb) [0]:
85618         (find_collation_sequence_value) [defined _LIBC]: Likewise.
85619
85620         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
85621         rm_eo.
85622
85623         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
85624         (optimize_subexps, lower_subexp):
85625         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
85626         since the signed shift might overflow.  Use 1u<<31 instead.
85627         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
85628         Likewise.
85629         * lib/regexec.c (check_dst_limits_calc_pos_1,
85630         check_subexp_matching_top): Likewise.
85631
85632         * lib/regcomp.c (optimize_subexps, lower_subexp):
85633         Use CHAR_BIT rather than 8, for clarity.
85634         * lib/regexec.c (check_dst_limits_calc_pos_1):
85635         (check_subexp_matching_top): Likewise.
85636         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
85637         have to worry about portability issues when shifting it left.
85638         Remove no-longer-needed test for table_size > 0.
85639         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
85640         in a word, as the resulting behavior is undefined.
85641         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
85642         in one case, a <= should have been an <, and in another case the
85643         whole test was missing.
85644         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
85645         the standard name CHAR_BIT.
85646         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
85647         this is not true on one's complement and signed-magnitude hosts.
85648
85649         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
85650         next_last_offset.
85651         (struct re_dfa_t): Remove unused member states_alloc.
85652         * lib/regcomp.c (init_dfa): Don't initialize unused members.
85653
85654 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85655
85656         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
85657         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
85658         and large-file glibc and in 32-bit large-file Solaris.
85659
85660 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85661
85662         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
85663         lengths fit in regoff_t; this isn't true if regoff_t is the same
85664         width as size_t.
85665         * lib/regex.c (re_search_internal): 5th arg is LAST_START
85666         (= START + RANGE) instead of RANGE.  This avoids overflow
85667         problems when regoff_t is the same width as size_t.
85668         All callers changed.
85669         (re_search_2_stub): Check for overflow when adding the
85670         sizes of the two strings.
85671         (re_search_stub): Check for overflow when adding START
85672         to RANGE; if it occurs, substitute the extreme value.
85673
85674 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
85677
85678 2005-08-31  Jim Meyering  <jim@meyering.net>
85679
85680         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
85681         a pointer-to-const.
85682         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
85683         (register_state): Likewise.
85684         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
85685         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
85686         (group_nodes_into_DFAstates): Likewise.
85687
85688 2005-08-31  Jim Meyering  <jim@meyering.net>
85689
85690         * check-module: Add a FIXME comment.
85691
85692 2005-08-31  Eric Blake  <ebb9@byu.net>
85693
85694         * modules/unistd-safer (Files): Add unistd--.h.
85695         * modules/stdio-safer (Files): Add stdio--.h.
85696
85697 2005-08-31  Derek Price  <derek@ximbiot.com>
85698
85699         * lib/getdelim.c (getdelim): Return EOF on EOF.
85700         Reported by Larry Jones <lawrence.jones@ugs.com>.
85701
85702 2005-08-31  Bruno Haible  <bruno@clisp.org>
85703
85704         Avoid unnecessary diffs in the generated lib/Makefile.am.
85705         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
85706         the generated files.
85707         (func_import): Don't set cmd.
85708
85709 2005-08-31  Bruno Haible  <bruno@clisp.org>
85710
85711         * lib/strstr.c: Include <stddef.h>, for NULL.
85712         * lib/strcasestr.c: Likewise.
85713         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85714
85715 2005-08-31  Bruno Haible  <bruno@clisp.org>
85716
85717         * gnulib-tool: New option --macro-prefix.
85718         (func_import): Use macro_prefix.
85719         (import): Handle option --macro-prefix.
85720
85721 2005-08-31  Bruno Haible  <bruno@clisp.org>
85722
85723         * gnulib-tool (import): Rename most ac_* variables to cached_*.
85724         Also use new variables cached_lgpl, cached_libtool.
85725
85726 2005-08-31  Bruno Haible  <bruno@clisp.org>
85727
85728         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
85729         always instantiating them.
85730
85731 2005-08-31  Bruno Haible  <bruno@clisp.org>
85732
85733         * gnulib-tool (func_import): Read the previous cached settings
85734         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
85735         earlier added by gnulib but are now dropped. Warn when a gnulib file
85736         overwrites a non-gnulib file.
85737
85738 2005-08-31  Bruno Haible  <bruno@clisp.org>
85739
85740         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
85741         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
85742         projects that don't keep autogenerated files in CVS. Put into
85743         actioncmd only the specified modules, not the transitive closure.
85744
85745 2005-08-31  Bruno Haible  <bruno@clisp.org>
85746
85747         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
85748         Create directories that shall be filled.
85749         (import): Don't look for gl_* macros in configure.ac. Recurse across
85750         all directories containing a gnulib-cache.m4 files, if meaningful.
85751
85752 2005-08-31  Bruno Haible  <bruno@clisp.org>
85753
85754         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
85755         (import): Set seen_libtool when we see gl_LIBTOOL.
85756
85757 2005-08-31  Bruno Haible  <bruno@clisp.org>
85758
85759         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
85760         declaration macro definitions from generated gnulib.m4.
85761
85762 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
85763
85764         * lib/iconvme.h: Add prototype for iconv_alloc.
85765
85766 2005-08-29  Simon Josefsson  <jas@extundo.com>
85767
85768         * lib/iconvme.c: Fix errno.
85769
85770 2005-08-29  Bruno Haible  <bruno@clisp.org>
85771
85772         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
85773         that it works when the directory contains spaces.
85774
85775 2005-08-29  Bruno Haible  <bruno@clisp.org>
85776
85777         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
85778
85779 2005-08-29  Bruno Haible  <bruno@clisp.org>
85780
85781         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
85782         Emit more advice.
85783
85784 2005-08-29  Bruno Haible  <bruno@clisp.org>
85785         and Stepan Kasal  <kasal@ucw.cz>
85786
85787         * check-module: If more parameters are given, check each of them
85788         separately; add more exceptions, as noted by Jim Meyering.
85789         (check_module): New procedure.
85790         (%exempt_header): Now contains all exceptions.
85791
85792 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
85793
85794         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
85795
85796 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85797
85798         * lib/iconvme.c: Split iconv_string into iconv_alloc.
85799
85800 2005-08-28  Bruno Haible  <bruno@clisp.org>
85801
85802         * m4/gnulib-tool.m4: New file.
85803
85804 2005-08-27  Jim Meyering  <jim@meyering.net>
85805
85806         * modules/unistd-safer (Files): Add pipe-safer.c.
85807         * modules/fcntl-safer (Files): Add creat-safer.c.
85808
85809 2005-08-27  Jim Meyering  <jim@meyering.net>
85810
85811         * m4/stdlib-safer.m4: New file.  From coreutils.
85812         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
85813         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
85814         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
85815         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
85816         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
85817
85818 2005-08-27  Jim Meyering  <jim@meyering.net>
85819
85820         * lib/fopen-safer.c: Merge minor changes from coreutils.
85821         * lib/dup-safer.c: Likewise.
85822         * lib/fd-safer.c: Likewise.
85823
85824         Merge from coreutils.
85825         * lib/stdio--.h: New file.
85826         * lib/stdlib--.h: New file.
85827         * lib/mkstemp-safer.c: New file.
85828
85829         GNU tar needs these.
85830         * lib/pipe-safer.c: New file.
85831         * lib/creat-safer.c: New file.
85832         * lib/fcntl--.h (creat): Define to creat_safer.
85833         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85834         * lib/unistd--.h (pipe): Define to pipe_safer.
85835         * lib/unistd-safer.h: Declare pipe_safer.
85836
85837 2005-08-26  Simon Josefsson  <jas@extundo.com>
85838
85839         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85840         Haible <bruno@clisp.org>.
85841
85842 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * lib/regex_internal.h: Remove all references to
85845         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85846         or better.
85847         (bitset_not, bitset_merge, bitset_not_merge):
85848         (bitset_mask, re_string_allocate, re_string_construct):
85849         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85850         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85851         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85852         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85853         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85854         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85855         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85856         (re_acquire_state_context):
85857         Remove unnecessary forward decls.
85858         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85859         Put __attribute at function definition,
85860         now that the function decl has been removed.
85861         * lib/regex_internal.c (re_string_peek_byte_case):
85862         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85863         Likewise.
85864
85865 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85866
85867         * m4/regex.m4: Add AC_PREREQ(2.50).
85868         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85869
85870 2005-08-25  Simon Josefsson  <jas@extundo.com>
85871
85872         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85873         __fsetlocking.
85874
85875 2005-08-25  Simon Josefsson  <jas@extundo.com>
85876
85877         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85878         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85879         GLIBC specific code.
85880
85881 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         Make regex safe for g++.  This fixes one real bug (an "err"
85884         that should have been "*err").  g++ problem reported by
85885         Sam Steingold.
85886         * lib/regex_internal.h (re_calloc): New macro, consistent with
85887         re_malloc etc.  All callers of calloc changed to use re_calloc.
85888         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85889         not int.  All callers changed.
85890         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85891         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85892         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85893         (find_recover_state): Change "err" to "*err"; this fixes what
85894         appears to be a real bug.
85895         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85896         versus int.
85897
85898 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85899
85900         * modules/regex (Depends-on): Add malloc, since the code
85901         assumes that !malloc(0) means failure.
85902
85903 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85904
85905         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85906
85907         alloca modernization/simplification for regex.
85908         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85909         needs to be at the start of the file, and can be moved into
85910         regex_internal.h and simplified.
85911         * lib/regex_internal.h: Include <alloca.h>.
85912         (__libc_use_alloca) [!defined _LIBC]: New macro.
85913         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85914         now works outside glibc.
85915
85916 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         * config/srclist.txt: Add glibc bugs 1241, 1245.
85919
85920 2005-08-25  Jim Meyering  <jim@meyering.net>
85921
85922         * lib/open-safer.c: Include <config.h>.
85923         Otherwise, we'd lose LARGEFILE support in any file using
85924         e.g. "fcntl--.h"
85925
85926 2005-08-25  Bruno Haible  <bruno@clisp.org>
85927
85928         * m4/minmax.m4: Require autoconf 2.52.
85929         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85930         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85931         alternatives of translit over the alphabet.
85932         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85933
85934 2005-08-24  Simon Josefsson  <jas@extundo.com>
85935
85936         * tests/test-getpass.c: New file.
85937
85938 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85939
85940         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85941         for GNU regex features.
85942
85943 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85946         * lib/regex.h (regerror): Likewise.
85947
85948         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85949         requires this.  (The code never needed it.)
85950
85951         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85952         All uses of recently-renamed identifiers changed to use the new,
85953         POSIX-compliant names.  The code will build and run just fine
85954         without these changes, but it's better to eat our own dog food
85955         and use the standard-conforming names.
85956
85957         * lib/regex.h: Fix a multitude of POSIX name space violations.
85958         These changes have an effect only for programs that define
85959         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85960         do not change anything for programs compiled in the normal way.
85961         Also, there is no effect on the ABI.
85962
85963         (_REGEX_SOURCE): New macro.
85964         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85965         defined and _GNU_SOURCE is not; this fixes a name space violation.
85966
85967         Rename the following macros to obey POSIX requirements.
85968         The old names are still visible as macros if _REGEX_SOURCE is defined.
85969         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85970         RE_BACKSLASH_ESCAPE_IN_LISTS.
85971         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85972         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85973         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85974         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85975         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85976         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85977         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85978         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85979         (REG_INTERVALS): renamed from RE_INTERVALS.
85980         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85981         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85982         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85983         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85984         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85985         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85986         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85987         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85988         RE_UNMATCHED_RIGHT_PAREN_ORD.
85989         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85990         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85991         (REG_DEBUG): renamed from RE_DEBUG.
85992         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85993         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85994         unusual, since we can't clash with the POSIX REG_ICASE.
85995         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85996         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85997         (REG_NO_SUB): renamed from RE_NO_SUB.
85998         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85999         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86000         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86001         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86002         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86003         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86004         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86005         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86006         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86007         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86008         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86009         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86010         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86011         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86012         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86013         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86014         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86015         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86016         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86017         (REG_FIXED): Renamed from REGS_FIXED.
86018         (REG_NREGS): Renamed from RE_NREGS.
86019
86020         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86021         of other REG_* macros, since POSIX says the user is allowed to
86022         #undef these macros selectively.
86023
86024         (reg_errcode_t): Update comment stating what other tables need
86025         to be consistent.
86026
86027         Rename the following enum values to obey POSIX requirements.
86028         The old names are still visible as macros.
86029         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86030         is not defined, since GNU is supposed to be a superset of POSIX as
86031         much as possible, and since we want reg_errcode_t to be a signed
86032         type for implementation consistency.
86033         (_REG_NOERROR): Renamed from REG_NOERROR.
86034         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86035         (_REG_BADPAT): Renamed from REG_BADPAT.
86036         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86037         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86038         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86039         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86040         (_REG_EBRACK): Renamed from REG_EBRACK.
86041         (_REG_EPAREN): Renamed from REG_EPAREN.
86042         (_REG_EBRACE): Renamed from REG_EBRACE.
86043         (_REG_BADBR): Renamed from REG_BADBR.
86044         (_REG_ERANGE): Renamed from REG_ERANGE.
86045         (_REG_ESPACE): Renamed from REG_ESPACE.
86046         (_REG_BADRPT): Renamed from REG_BADRPT.
86047         (_REG_EEND): Renamed from REG_EEND.
86048         (_REG_ESIZE): Renamed from REG_ESIZE.
86049         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86050         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86051         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86052         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86053         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86054
86055         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86056         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86057         changed.  But support the old name if the new one is not defined
86058         and if _REGEX_SOURCE.
86059
86060         Change the following member names in struct re_pattern_buffer.
86061         The old names are still supported if !_REGEX_SOURCE.
86062         The new names are always supported, regardless of _REGEX_SOURCE.
86063         (re_buffer): Renamed from buffer.
86064         (re_allocated): Renamed from allocated.
86065         (re_used): Renamed from used.
86066         (re_syntax): Renamed from syntax.
86067         (re_fastmap): Renamed from fastmap.
86068         (re_translate): Renamed from translate.
86069         (re_can_be_null): Renamed from can_be_null.
86070         (re_regs_allocated): Renamed from regs_allocated.
86071         (re_fastmap_accurate): Renamed from fastmap_accurate.
86072         (re_no_sub): Renamed from no_sub.
86073         (re_not_bol): Renamed from not_bol.
86074         (re_not_eol): Renamed from not_eol.
86075         (re_newline_anchor): Renamed from newline_anchor.
86076
86077         Change the following member names in struct re_registers.
86078         The old names are still supported if !_REGEX_SOURCE.
86079         The new names are always supported, regardless of _REGEX_SOURCE.
86080         (rm_num_regs): Renamed from num_regs.
86081         (rm_start): Renamed from start.
86082         (rm_end): Renamed from end.
86083
86084         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
86085         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
86086         Prepend __ to parameter names.
86087
86088         Undo yesterday's changes.
86089
86090 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86091
86092         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
86093         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
86094         lib/regex.c.
86095
86096 2005-08-24  Jim Meyering  <jim@meyering.net>
86097
86098         Sync from coreutils.
86099         * m4/fcntl-safer.m4: New file.
86100
86101         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
86102         and object files for this module.
86103
86104 2005-08-24  Jim Meyering  <jim@meyering.net>
86105
86106         Sync from coreutils.
86107         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
86108
86109 2005-08-24  Jim Meyering  <jim@meyering.net>
86110
86111         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
86112         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
86113
86114 2005-08-24  Jim Meyering  <jim@meyering.net>
86115
86116         * modules/fcntl-safer: New module.
86117         * modules/fts (Depends-on): Add fcntl-safer.
86118         * MODULES.html.sh (File descriptor based Input/Output):
86119         Add fcntl-safer.
86120
86121 2005-08-24  Bruno Haible  <bruno@clisp.org>
86122
86123         Support for unit test modules.
86124         * modules/README: Mention tests modules.
86125         * modules/TEMPLATE-TESTS: New file.
86126         * gnulib-tool: New options --extract-tests-module, --with-tests and
86127         --tests-base (unused for the moment).
86128         (testsbase, inctests): New variables.
86129         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
86130         (func_verify_module): Exclude TEMPLATE-TESTS.
86131         (func_verify_nontests_module, func_verify_tests_module): New functions.
86132         (func_get_dependencies): Add implicit dependency for tests modules.
86133         (func_get_tests_module): New function.
86134         (func_modules_transitive_closure): When --with-tests was specified,
86135         include the unit tests as well, unless explicitly avoided.
86136         (func_emit_lib_Makefile_am): Ignore the tests modules here.
86137         (func_emit_tests_Makefile_am): New function.
86138         (func_create_testdir): When --with-tests was specified, emit a
86139         tests/ directory.
86140         * MODULES.html.sh (Future developments): Update.
86141
86142 2005-08-24  Bruno Haible  <bruno@clisp.org>
86143
86144         * modules/tls-tests: New file.
86145         * tests/test-tls.c: New file, from GNU gettext.
86146
86147 2005-08-24  Bruno Haible  <bruno@clisp.org>
86148
86149         * modules/lock-tests: New file.
86150         * tests/test-lock.c: New file, from GNU gettext.
86151
86152 2005-08-24  Bruno Haible  <bruno@clisp.org>
86153
86154         * lib/lock.h: Add multiple inclusion guard.
86155         * lib/tls.h: Add multiple inclusion guard.
86156
86157 2005-08-24  Bruno Haible  <bruno@clisp.org>
86158
86159         * gnulib-tool: Add support for the --aux-dir option to
86160         --create-testdir, --create-megatestdir, --test, --megatest.
86161         (func_create_testdir, func_create_megatestdir): Optionally emit a
86162         AC_CONFIG_AUX_DIR directive.
86163         (create-testdir, create-megatestdir, test, megatest): Provide a
86164         default value for $auxdir.
86165
86166 2005-08-24  Bruno Haible  <bruno@clisp.org>
86167
86168         * gnulib-tool (import): Use compound statement instead of subshell
86169         where possible.
86170
86171 2005-08-24  Bruno Haible  <bruno@clisp.org>
86172
86173         * gnulib-tool (import): Change --aux-dir default to "build-aux".
86174
86175 2005-08-24  Bruno Haible  <bruno@clisp.org>
86176
86177         * gnulib-tool (func_version): Update.
86178
86179 2005-08-24  Bruno Haible  <bruno@clisp.org>
86180
86181         * gnulib-tool (func_import, func_create_testdir,
86182         func_create_megatestdir): Quote all autoconf macro arguments.
86183
86184 2005-08-24  Bruno Haible  <bruno@clisp.org>
86185
86186         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
86187         option --force, because --force causes the aclocal.m4 of each
86188         subdirectory to be newer than the corresponding config.h.in.
86189
86190 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86191
86192         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
86193         All contents moved to gl_REGEX.
86194         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
86195         assume that it does.
86196
86197 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86198
86199         * lib/regex.h (REG_NOSYS)
86200         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
86201         Define, since POSIX requires it as of 2001.
86202         (_REG_ENOSYS)
86203         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
86204         New private symbol, used to keep the enum signed in all cases.
86205         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
86206         Youngman in
86207         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
86208
86209         * lib/regex_internal.c (re_string_skip_chars, register_state):
86210         (calc_state_hash):
86211         Remove forward decls; no longer needed now that we use prototypes.
86212         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
86213         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
86214         (clean_state_log_if_needed): Likewise.
86215
86216 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
86217
86218         * config/srclist.txt: Add glibc bugs 1231-1233.
86219
86220 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86221
86222         Fix problems reported by Sam Steingold in
86223         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
86224         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
86225         assumed that reg_errcode_t is a signed type, which is not
86226         necessarily true if _XOPEN_SOURCE is not defined.
86227         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
86228         since some compilers warn about it otherwise.
86229
86230 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
86233         (init_word_char, create_initial_state, duplicate_node_closure):
86234         (fetch_token, peek_token_bracket, build_range_exp):
86235         (build_collating_symbol): Remove forward decls; no longer needed
86236         now that we use prototypes.
86237
86238         * lib/regcomp.c:
86239         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
86240         (re_compile_fastmap_iter, regcomp, regerror, regfree):
86241         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
86242         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
86243         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
86244         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
86245         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
86246         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
86247         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
86248         (build_range_exp, build_collating_symbol, parse_bracket_exp):
86249         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
86250         (build_charclass, build_charclass_op, fetch_number, create_tree):
86251         (create_token_tree, mark_opt_subexp, duplicate_tree):
86252         Use prototypes rather than old-style definitions.
86253
86254         * lib/regex_internal.c:
86255         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
86256         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
86257         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86258         (re_string_reconstruct, re_string_peek_byte_case):
86259         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
86260         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86261         (re_node_set_init_copy, re_node_set_add_intersect):
86262         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86263         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86264         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86265         (re_acquire_state, re_acquire_state_context, register_state):
86266         (create_ci_newstate, create_cd_newstate, free_state):
86267         Likewise.
86268         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
86269         re_search_2):
86270         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
86271         (re_search_internal, prune_impossible_nodes):
86272         (acquire_init_state_context, check_matching, static):
86273         (check_halt_node_context, check_halt_state_context, proceed_next_node):
86274         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
86275         (update_regs, sift_states_backward, build_sifted_states):
86276         (clean_state_log_if_needed, merge_state_array):
86277         (update_cur_sifted_state, add_epsilon_src_nodes):
86278         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
86279         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
86280         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
86281         (find_recover_state, check_subexp_matching_top, transit_state_mb):
86282         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
86283         (check_arrival, check_arrival_add_next_nodes):
86284         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86285         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86286         (check_node_accept_bytes, check_node_accept, extend_buffers):
86287         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
86288         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
86289         (sift_ctx_init):
86290         Likewise.
86291
86292         * lib/regex_internal.h:
86293         (re_string_allocate, re_string_construct, re_string_reconstruct):
86294         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
86295         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
86296         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
86297         (re_string_context_at, re_string_peek_byte_case):
86298         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
86299         is defined, since we now use prototypes always.
86300
86301         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
86302         C89 or better.  All uses removed.
86303
86304 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
86305
86306         * config/srclist.txt: Add glibc bugs 1220-1227.
86307
86308 2005-08-20  Jim Meyering  <jim@meyering.net>
86309
86310         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
86311         of unused local, dfa.
86312
86313 2005-08-20  Bruno Haible  <bruno@clisp.org>
86314
86315         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
86316
86317 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86318
86319         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
86320         (re_node_set_insert_last, re_dfa_add_node):
86321         Rename local variables to avoid GCC shadowing warnings.
86322
86323 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86324
86325         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
86326         [defined lint]: Suppress bogus uninitialized-variable warnings.
86327
86328         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
86329         and let the caller return REG_ESPACE if out of space.  This
86330         removes an uninitialied-variable warning with GCC 4.0.1, and also
86331         avoids taking the address of a local variable.  All callers
86332         changed.
86333
86334 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86335
86336         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
86337         $LIBCSRC/posix/regexec.c.
86338         Add glibc bug 1217 for regcomp.c.
86339
86340 2005-08-19  Jim Meyering  <jim@meyering.net>
86341
86342         * lib/regexec.c (proceed_next_node): Redo local variables to
86343         avoid GCC shadowing warnings.
86344
86345 2005-08-18  Bruno Haible  <bruno@clisp.org>
86346
86347         * lib/strstr.c (strstr): Fix return value in multibyte case.
86348         * lib/strcasestr.c (strcasestr): Likewise.
86349
86350 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86351
86352         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
86353
86354 2005-08-17  Jim Meyering  <jim@meyering.net>
86355
86356         Make the %s format (seconds since the epoch) work for a negative
86357         number and when used with a zero-padded field width, e.g. %015s.
86358
86359         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
86360         label so that it precedes the code to set `digits'.  Otherwise,
86361         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
86362         print `00-22'.  Now, it prints `-0022', as it should.
86363
86364 2005-08-17  Bruno Haible  <bruno@clisp.org>
86365
86366         * modules/strstr (Files): Add m4/mbrtowc.m4.
86367         (Depends-on): Add mbuiter.
86368
86369 2005-08-17  Bruno Haible  <bruno@clisp.org>
86370
86371         * modules/strcasestr: New file.
86372         * MODULES.html.sh (String handling, based on ANSI C 89): Add
86373         strcasestr.
86374
86375 2005-08-17  Bruno Haible  <bruno@clisp.org>
86376
86377         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
86378
86379 2005-08-17  Bruno Haible  <bruno@clisp.org>
86380
86381         * modules/mbuiter: New file.
86382         * MODULES.html.sh (Extended multibyte and wide character utilities):
86383         Add mbuiter.
86384
86385 2005-08-17  Bruno Haible  <bruno@clisp.org>
86386
86387         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
86388         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
86389
86390 2005-08-17  Bruno Haible  <bruno@clisp.org>
86391
86392         * m4/strcasestr.m4: New file.
86393
86394 2005-08-17  Bruno Haible  <bruno@clisp.org>
86395
86396         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
86397         * lib/strstr.c: Completely rewritten, with multibyte locale support.
86398
86399 2005-08-17  Bruno Haible  <bruno@clisp.org>
86400
86401         * lib/strcasestr.h: New file.
86402         * lib/strcasestr.c: New file.
86403
86404 2005-08-17  Bruno Haible  <bruno@clisp.org>
86405
86406         * lib/strcasecmp.c: Use mbuiter.h.
86407
86408 2005-08-17  Bruno Haible  <bruno@clisp.org>
86409
86410         * lib/mbuiter.h: New file.
86411
86412 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
86413
86414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
86415         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
86416         and gl_GETOPT are both invoked via different paths (as happens
86417         with GNU tar CVS because it uses both argp and getopt), the former
86418         wins.
86419
86420 2005-08-16  Bruno Haible  <bruno@clisp.org>
86421
86422         * modules/tls: New file.
86423         * MODULES.html.sh (Multithreading): Add tls.
86424
86425 2005-08-16  Bruno Haible  <bruno@clisp.org>
86426
86427         * modules/strnlen1: New file.
86428         * MODULES.html.sh (String handling): Add strnlen1.
86429
86430 2005-08-16  Bruno Haible  <bruno@clisp.org>
86431
86432         * modules/strcase (Files): Add m4/mbrtowc.m4.
86433         (Depends-on): Add strnlen1, mbchar.
86434
86435 2005-08-16  Bruno Haible  <bruno@clisp.org>
86436
86437         * modules/mbiter: New file.
86438         * MODULES.html.sh (Extended multibyte and wide character utilities):
86439         Add mbiter.
86440
86441 2005-08-16  Bruno Haible  <bruno@clisp.org>
86442
86443         * modules/mbfile: New file.
86444         * MODULES.html.sh (Extended multibyte and wide character utilities):
86445         Add mbfile.
86446
86447 2005-08-16  Bruno Haible  <bruno@clisp.org>
86448
86449         * modules/mbchar: New file.
86450         * MODULES.html.sh (Extended multibyte and wide character utilities):
86451         New section.
86452
86453 2005-08-16  Bruno Haible  <bruno@clisp.org>
86454
86455         * m4/tls.m4: New file, from GNU gettext.
86456
86457 2005-08-16  Bruno Haible  <bruno@clisp.org>
86458
86459         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
86460         always.
86461         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
86462
86463 2005-08-16  Bruno Haible  <bruno@clisp.org>
86464
86465         * m4/mbiter.m4: New file.
86466
86467 2005-08-16  Bruno Haible  <bruno@clisp.org>
86468
86469         * m4/mbfile.m4: New file.
86470
86471 2005-08-16  Bruno Haible  <bruno@clisp.org>
86472
86473         * m4/mbchar.m4: New file.
86474
86475 2005-08-16  Bruno Haible  <bruno@clisp.org>
86476
86477         * lib/tls.h: New file, from GNU gettext.
86478         * lib/tls.c: New file, from GNU gettext.
86479
86480 2005-08-16  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/strnlen1.h: New file.
86483         * lib/strnlen1.c: New file.
86484
86485 2005-08-16  Bruno Haible  <bruno@clisp.org>
86486
86487         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
86488         (mbi_init): Update.
86489         (mbi_avail, mbi_advance): Let the iteration end before the terminating
86490         NUL byte, not after it.
86491
86492 2005-08-16  Bruno Haible  <bruno@clisp.org>
86493
86494         * lib/strcase.h (strcasecmp): Add note in comments.
86495         * lib/strncasecmp.c: Use code from strcasecmp.c.
86496         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
86497         (strcasecmp): Work correctly in multibyte locales.
86498
86499 2005-08-16  Bruno Haible  <bruno@clisp.org>
86500
86501         * lib/mbiter.h: New file.
86502
86503 2005-08-16  Bruno Haible  <bruno@clisp.org>
86504
86505         * lib/mbfile.h: New file.
86506
86507 2005-08-16  Bruno Haible  <bruno@clisp.org>
86508
86509         * lib/mbchar.h: New file.
86510         * lib/mbchar.c: New file.
86511
86512 2005-08-16  Bruno Haible  <bruno@clisp.org>
86513
86514         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
86515         the valid ones. Makes the comparison operations transitive:
86516         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
86517         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
86518
86519 2005-08-15  Simon Josefsson  <jas@extundo.com>
86520
86521         * modules/ssize_t (License): Change to 'unlimited'.
86522
86523         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
86524
86525 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86526
86527         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
86528         Add comments for each pending glibc patch.
86529
86530 2005-08-15  Bruno Haible  <bruno@clisp.org>
86531
86532         * lib/regex.h (__restrict_arr): Don't define to __restrict if
86533         __cplusplus is defined.
86534
86535 2005-08-14  Jim Meyering  <jim@meyering.net>
86536
86537         Sync from coreutils.
86538
86539         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
86540         Use the hash-table-based cycle-detection code not just when
86541         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
86542         Reported by James Youngman in
86543         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
86544         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
86545         FTS_TIGHT_CYCLE_CHECK.
86546         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
86547         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
86548         once again.
86549         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
86550         * lib/fts.c (fd_safer): Remove decl.
86551         Include fcntl--.h rather than unistd-safer.h
86552         (fts_safe_changedir): Don't call fd_safer; no longer needed
86553         now that we include fcntl--.h.
86554
86555 2005-08-12  Simon Josefsson  <jas@extundo.com>
86556
86557         * modules/getndelim2: Use ssize_t module.
86558         * modules/getnline: Likewise.
86559         * modules/safe-read: Likewise.
86560         * modules/xreadlink: Likewise.
86561
86562         * modules/ssize_t: New file.
86563
86564 2005-08-12  Simon Josefsson  <jas@extundo.com>
86565
86566         * m4/readline.m4: Look for termcap, curses or ncurses if required.
86567
86568 2005-08-12  Simon Josefsson  <jas@extundo.com>
86569
86570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86571         ssize_t.
86572
86573 2005-08-12  Simon Josefsson  <jas@extundo.com>
86574
86575         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
86576         readline, getdelim and check_version.
86577         (Support for systems lacking ISO C 99: Sizes of integer types):
86578         Add size_max.
86579
86580 2005-08-12  Bruno Haible  <bruno@clisp.org>
86581
86582         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
86583
86584 2005-08-11  Simon Josefsson  <jas@extundo.com>
86585
86586         * modules/readline: New file.
86587
86588         * modules/strnlen (Files): Add strnlen.h.
86589
86590 2005-08-11  Simon Josefsson  <jas@extundo.com>
86591
86592         * m4/readline.m4: New file.
86593
86594 2005-08-11  Simon Josefsson  <jas@extundo.com>
86595
86596         * lib/readline.h, readline.c: New file.
86597
86598 2005-08-11  Simon Josefsson  <jas@extundo.com>
86599
86600         * doc/gnulib.texi (Initial import, Finishing touches): Mention
86601         gl_AVOID.
86602
86603 2005-08-11  Bruno Haible  <bruno@clisp.org>
86604
86605         * lib/strnlen.h (strnlen): Change parameter name to match comment.
86606
86607 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
86608
86609         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
86610
86611 2005-08-10  Simon Josefsson  <jas@extundo.com>
86612
86613         * tests/test-iconvme.c: New file.
86614
86615 2005-08-10  Simon Josefsson  <jas@extundo.com>
86616
86617         * m4/strnlen.m4: New file.
86618
86619         * m4/strndup.m4: Don't check for strnlen declaration, done in
86620         strnlen.m4.
86621
86622 2005-08-10  Simon Josefsson  <jas@extundo.com>
86623
86624         * lib/strndup.c: Use strnlen.h.
86625
86626         * lib/strnlen.h: New file.
86627
86628 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86629
86630         * README: Typos.
86631
86632 2005-08-02  Simon Josefsson  <jas@extundo.com>
86633
86634         * modules/readline: New file.
86635
86636 2005-08-02  Simon Josefsson  <jas@extundo.com>
86637
86638         * modules/getdelim: New file.
86639
86640         * modules/getline: Rewrite, don't use getndelim2.
86641
86642 2005-08-02  Simon Josefsson  <jas@extundo.com>
86643
86644         * m4/getline.m4: Separate out getdelim stuff into separate module.
86645
86646         * m4/getdelim.m4: New file.
86647
86648 2005-08-02  Simon Josefsson  <jas@extundo.com>
86649
86650         * lib/getline.h, getline.c: Rewrite.
86651
86652         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
86653
86654 2005-07-31  Bruno Haible  <bruno@clisp.org>
86655
86656         * lib/lock.h (gl_lock_initializer): New macro.
86657         (gl_lock_define_initialized): Use it.
86658         (gl_rwlock_initializer): New macro.
86659         (gl_rwlock_define_initialized): Use it.
86660         (gl_recursive_lock_initializer): New macro.
86661         (gl_recursive_lock_define_initialized): Use it.
86662
86663 2005-07-30  Karl Berry  <karl@gnu.org>
86664
86665         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
86666         Report from Ben Pfaff, regarding getopt.
86667
86668 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
86669
86670         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
86671         normal way.
86672         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
86673         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
86674         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
86675         (gl_GETOPT): Use the new macros.  Most of the implementation
86676         is moved to the new macros.  This is for programs like Emacs
86677         that don't want all the functionality of gl_GETOPT.
86678
86679 2005-07-26  Bruno Haible  <bruno@clisp.org>
86680
86681         * m4/lock.m4: Update from GNU gettext.
86682
86683 2005-07-26  Bruno Haible  <bruno@clisp.org>
86684
86685         * lib/lock.h: Update from GNU gettext.
86686         * lib/lock.c: Update from GNU gettext.
86687
86688 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
86691         obsolescent AC_TRY_RUN.  Include the default includes files, for
86692         'exit'.
86693
86694 2005-07-24  Bruno Haible  <bruno@clisp.org>
86695
86696         * modules/visibility: New file.
86697         * MODULES.html.sh (Misc): Add visibility.
86698
86699 2005-07-24  Bruno Haible  <bruno@clisp.org>
86700
86701         * m4/visibility.m4: New file.
86702
86703 2005-07-24  Bruno Haible  <bruno@clisp.org>
86704
86705         * doc/visibility.texi: New file.
86706
86707 2005-07-22  Bruno Haible  <bruno@clisp.org>
86708
86709         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
86710         $(ALLOCA_H), redundant through BUILT_SOURCES.
86711         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
86712         redundant through BUILT_SOURCES.
86713         * modules/byteswap (Makefile.am): Remove explicit dependency on
86714         $(BYTESWAP_H), redundant through BUILT_SOURCES.
86715         * modules/fnmatch (Makefile.am): Remove explicit dependency on
86716         $(FNMATCH_H), redundant through BUILT_SOURCES.
86717         * modules/getopt (Makefile.am): Remove explicit dependency on
86718         $(GETOPT_H), redundant through BUILT_SOURCES.
86719         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
86720         redundant through BUILT_SOURCES.
86721         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
86722         redundant through BUILT_SOURCES.
86723         * modules/stdbool (Makefile.am): Remove explicit dependency on
86724         $(STDBOOL_H), redundant through BUILT_SOURCES.
86725         * modules/stdint (Makefile.am): Remove explicit dependency on
86726         $(STDINT_H), redundant through BUILT_SOURCES.
86727         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
86728         Remove explicit dependency on $(SYSEXITS_H).
86729         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
86730
86731 2005-07-18  Simon Josefsson  <jas@extundo.com>
86732
86733         * lib/check-version.c (check_version): Accept identical versions too.
86734
86735 2005-07-18  Bruno Haible  <bruno@clisp.org>
86736
86737         * modules/lock: New file.
86738         * MODULES.html.sh (Multithreading): New section.
86739
86740 2005-07-18  Bruno Haible  <bruno@clisp.org>
86741
86742         * m4/lock.m4: New file, from GNU gettext.
86743
86744 2005-07-18  Bruno Haible  <bruno@clisp.org>
86745
86746         * lib/lock.h: New file, from GNU gettext.
86747         * lib/lock.c: New file, from GNU gettext.
86748
86749 2005-07-18  Bruno Haible  <bruno@clisp.org>
86750
86751         * lib/lock.h (gl_once_t): New type.
86752         (gl_once_define, gl_once): New macros.
86753         * lib/lock.c (fresh_once): New variable.
86754         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
86755         functions.
86756
86757 2005-07-16  Simon Josefsson  <jas@extundo.com>
86758
86759         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
86760         workaround, suggested by Bruno.
86761
86762 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86763
86764         * modules/xalloc (Depends-on): Add xalloc-die.
86765         * modules/xvasprintf (Depends-on): Add xalloc-die.
86766
86767 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
86768
86769         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
86770         with a minor change.
86771
86772 2005-07-15  Bruno Haible  <bruno@clisp.org>
86773
86774         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
86775         When using lib/poll.c, define poll as rpl_poll.
86776
86777 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * modules/argp (Depends-on): Remove unlocked-io.
86780
86781 2005-07-14  Derek Price  <derek@ximbiot.com>
86782
86783         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
86784         for glob symlink bug.
86785
86786 2005-07-14  Bruno Haible  <bruno@clisp.org>
86787
86788         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
86789         Instead, test for *_unlocked function declarations directly.
86790
86791 2005-07-11  Simon Josefsson  <jas@extundo.com>
86792
86793         * modules/size_max: New file.
86794
86795         * modules/xsize: Depend on size_max module for size_max.m4.
86796
86797 2005-07-11  Simon Josefsson  <jas@extundo.com>
86798
86799         * lib/size_max.h: New file.
86800
86801 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
86802
86803         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
86804         copyright symbol and the year.
86805         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
86806         (version_etc_va): Use parameterized copyright notice.
86807         Reword to conform to the current GNU coding standards.
86808
86809 2005-07-11  Karl Berry  <karl@gnu.org>
86810
86811         * doc/gnulib.texi (Quoting): new node.
86812         (Initial import): more info, from Patrice.
86813
86814 2005-07-11  Bruno Haible  <bruno@clisp.org>
86815
86816         * gnulib-tool (func_usage): Document option --avoid.
86817         (Command line options): Handle --avoid.
86818         (func_acceptable): New function.
86819         (func_modules_transitive_closure): Use it.
86820
86821 2005-07-11  Bruno Haible  <bruno@clisp.org>
86822
86823         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
86824         Reported by Jim Meyering.
86825
86826 2005-07-10  Bruno Haible  <bruno@clisp.org>
86827
86828         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
86829         Needed when size_t is smaller than 'unsigned int'.
86830         Reported by Paul Eggert.
86831
86832 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86833
86834         * modules/argp (Depends-on): Add unlocked-io
86835
86836 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86837
86838         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86839         block of defines.
86840
86841 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86842
86843         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86844         fix now.
86845
86846 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86847         and Paul Eggert  <eggert@cs.ucla.edu>
86848
86849         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86850         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86851
86852 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86853
86854         * modules/regex (Files): Add lib/regex_internal.c,
86855         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86856         (Depends-on): Add extensions.
86857         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86858
86859 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86860
86861         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86862         pathconf.
86863         * m4/same.m4 (gl_SAME): Likewise.
86864         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86865
86866         * m4/regex.m4: Adjust to new libc regex implementation.
86867         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86868         all the .c and .h parts of (the new) regex.
86869         Quote the m4 stuff better.
86870         Check for RE_ICASE bug of old gnulib.
86871         Check for REG_STARTEND of recent libc.
86872         Rename local variables from jm_* to gl_*.
86873         Quote operand of "test -f".
86874         Say "recent enough" version of libc, not "version 2".
86875         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86876         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86877         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86878         Remove check for btowc, isascii.
86879         Require AM_LANGINFO_CODESET.
86880
86881 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86882
86883         * lib/regex.c, regex.h: Sync from libc.
86884         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86885         * lib/regexec.c:
86886         New files, synced from libc, except that regex_internal.h
86887         currently has a small porting fix.
86888
86889 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86890
86891         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86892         regex_internal.c, regexec.c.
86893         Add regex_internal.h too, but as a comment, since the libc version
86894         is currently broken in gnulib mode.
86895
86896 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86897
86898         Support programs like Emacs that use gnulib but not gettext.
86899         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86900         * modules/gettext-h: New file.
86901         * modules/gettext (Files): Remove lib/gettext.h.
86902         (Depends-on): Add gettext-h.
86903         (Makefile.am): Remove lib_SOURCES.
86904         * modules/argmatch, modules/c-stack, modules/closeout:
86905         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86906         * modules/execute, modules/file-type, modules/getaddrinfo:
86907         * modules/getopt, modules/human, modules/javacomp:
86908         * modules/javaexec, modules/mkdir-p, modules/obstack:
86909         * modules/openat, modules/pagealign_alloc, modules/pipe:
86910         * modules/quotearg, modules/regex, modules/rpmatch:
86911         * modules/unicodeio, modules/userspec, modules/version-etc:
86912         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86913         * modules/xsetenv:
86914         Depend on gettext-h, not gettext.
86915
86916 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86917
86918         * gnulib-tool (func_import): Add support for 'public domain' license.
86919         * modules/alloca, modules/atexit, modules/memmove:
86920         Now public domain, not GPL.
86921         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86922         * modules/realloc, modules/strerror, modules/strtod:
86923         Now LGPL, not GPL.
86924
86925 2005-07-05  Bruno Haible  <bruno@clisp.org>
86926
86927         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86928         autoconf CVS. Needed for mingw.
86929
86930 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86931
86932         Remove the dependency of the strftime module on the tzset module.
86933         * modules/strftime (Depends-on): Remove dependency on tzset.
86934
86935 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         Remove the dependency of the strftime module on the tzset module.
86938         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86939         gl_FUNC_TZSET_CLOBBER.
86940
86941 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86942
86943         Remove the dependency of the strftime module on the tzset module.
86944         * lib/strftime.c (my_strftime)
86945         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86946         Copy the input structure, to work around some of the bug with
86947         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86948         Solaris releases, you should also use the tzset module, but we won't
86949         require it as a dependency any more since we don't want LGPLed code
86950         to depend on GPLed code.
86951
86952 2005-07-02  Jim Meyering  <jim@meyering.net>
86953
86954         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86955         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86956         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86957         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86958
86959 2005-07-02  Jim Meyering  <jim@meyering.net>
86960
86961         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86962
86963 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86964
86965         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86966         declares only 'struct timespec;' (!).
86967
86968 2005-07-01  Jim Meyering  <jim@meyering.net>
86969
86970         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86971         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86972         * lib/save-cwd.c, tempname.c:
86973         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86974         and don't include <sys/file.h>).
86975
86976 2005-06-29  Jim Meyering  <jim@meyering.net>
86977
86978         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86979         type name.  Use the variable name instead.
86980         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86981         Likewise.
86982
86983 2005-06-28  Simon Josefsson  <jas@extundo.com>
86984
86985         * modules/check-version (Files): Add check-version.m4.
86986
86987 2005-06-28  Simon Josefsson  <jas@extundo.com>
86988
86989         * m4/check-version.m4: New file, suggested by Jim Meyering
86990         <jim@meyering.net>.
86991
86992 2005-06-28  Simon Josefsson  <jas@extundo.com>
86993
86994         * lib/check-version.h, lib/check-version.c: New files.
86995
86996 2005-06-28  Simon Josefsson  <jas@extundo.com>
86997
86998         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86999         collision with global variable.  Better indentation.  Don't
87000         increment buffer pointer beyond buffer end.  Based on comments
87001         from Paul Eggert <eggert@cs.ucla.edu>.
87002
87003         * lib/base64.h: Indent.
87004
87005 2005-06-28  Simon Josefsson  <jas@extundo.com>
87006
87007         * doc/gnulib.texi (Library version handling): New section.
87008
87009 2005-06-28  Jim Meyering  <jim@meyering.net>
87010
87011         * check-module (find_included_lib_files): Hard-code another
87012         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87013         but modules/fts-lgpl (correctly) does not list those files.
87014
87015         * modules/canonicalize (Files): Add lib/pathmax.h.
87016
87017 2005-06-25  Simon Josefsson  <jas@extundo.com>
87018
87019         * modules/check-version: New file.
87020
87021 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87022
87023         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87024         initializer of struct addrinfo, as an indication that we don't
87025         care how many members the structure has.
87026
87027 2005-06-24  Derek Price  <derek@ximbiot.com>
87028         and Bruno Haible  <bruno@clisp.org>
87029
87030         Remove stat module & update lstat.
87031         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87032         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87033         * m4/stat.m4: Remove this file.
87034
87035 2005-06-24  Derek Price  <derek@ximbiot.com>
87036         and Bruno Haible  <bruno@clisp.org>
87037
87038         Remove stat module & update lstat.
87039         * lib/stat.c: Remove this file...
87040         (slash_aware_lstat): ...moving this content and its support...
87041         * lib/lstat.c (rpl_lstat): ...into here.
87042         * lib/lstat.h: New file.
87043
87044 2005-06-24  Derek Price  <derek@ximbiot.com>
87045         and Bruno Haible  <bruno@clisp.org>
87046
87047         Remove stat module & update lstat.
87048         * config/srclist.txt (libc sources): Remove stat.
87049
87050 2005-06-24  Derek Price  <derek@ximbiot.com>
87051         and Bruno Haible  <bruno@clisp.org>
87052
87053         Remove stat module & update lstat.
87054         * MODULES.html.sh (stat): Remove.
87055         * MODULES.html: Regenerated.
87056         * modules/lstat (Description): Correct function name.
87057         (Files): Add "lstat.h".
87058         (Depends-on): Remove stat, add xalloc, stat-macros.
87059         * modules/stat: Remove this file.
87060         (Include): Add "lstat.h", remove <sys/stat.h>.
87061
87062 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87063
87064         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
87065         (ranged_convert): Don't save conversion in a temporary struct.
87066         This causes a warning with GCC 4.0.0, and anyway in the typical
87067         case it's not worth the extra 100 bytes or so of code.
87068         (ranged_convert, __mktime_internal): When calling a function via a
87069         pointer P, use P () rather than (*P) (), as we now assume C89 or
87070         better.
87071
87072 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87073
87074         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
87075         "who -r" failed to give output.  Problem reported by Tim Waugh.
87076
87077         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
87078         (xcalloc): Use it to avoid needless tests.
87079         Problem reported by Jim Meyering.
87080
87081 2005-06-20  Derek Price  <derek@ximbiot.com>
87082
87083         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
87084         unnecessary for Autoconfs > 2.59c.
87085
87086 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87087
87088         * lib/argp.h (__option_is_short): Check upper limit of
87089         __key. Isprint() requires its argument to have the value
87090         of an unsigned char or EOF.
87091
87092 2005-06-16  Jim Meyering  <jim@meyering.net>
87093
87094         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
87095         when either N or S is zero.
87096
87097 2005-06-16  Derek Price  <derek@ximbiot.com>
87098
87099         * m4/bison.m4: Declare YACC & YFLAGS precious.
87100
87101 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
87102
87103         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
87104         multibyte string or pattern, fall back on unibyte matching.
87105         Problem reported by James Youngman.
87106
87107 2005-06-08  Bruno Haible  <bruno@clisp.org>
87108
87109         * modules/csharpcomp: New file.
87110         * MODULES.html.sh (C#): Add csharpcomp.
87111
87112 2005-06-08  Bruno Haible  <bruno@clisp.org>
87113
87114         * m4/csharpcomp.m4: New file, from GNU gettext.
87115
87116 2005-06-08  Bruno Haible  <bruno@clisp.org>
87117
87118         * lib/csharpcomp.h: New file, from GNU gettext.
87119         * lib/csharpcomp.c: New file, from GNU gettext.
87120         * lib/csharpcomp.sh.in: New file, from GNU gettext.
87121
87122 2005-06-08  Bruno Haible  <bruno@clisp.org>
87123
87124         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
87125         warning on mingw.
87126
87127 2005-06-07  Derek Price  <derek@ximbiot.com>
87128
87129         Sync from CVS.
87130         * lib/glob_.h: Indent nested #ifdef.
87131
87132 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87133
87134         Sync from coreutils.
87135         Use "file name" when talking about file names, instead of "filename"
87136         or "path", as per the GNU coding standards.
87137         * lib/mkdir-p.c: Renamed from makepath.c.
87138         (make_dir_parents): Renamed from make_path.  All callers changed.
87139         * lib/mkdir-p.h: Likewise.  All includers changed.
87140         * lib/filenamecat.c: Renamed from path-concat.c.
87141         (file_name_concat): Renamed from path_concat.  All callers changed.
87142         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
87143         * lib/filenamecat.h: Likewise.  All includers changed.
87144         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
87145         in comments or local variable names.
87146         * lib/basename.c: Likewise.
87147         * lib/canonicalize.c, canonicalize.h: Likewise.
87148         * lib/dirname.c, dirname.h: Likewise.
87149         * lib/euidaccess.c: Likewise.
87150         * lib/exclude.c: Likewise
87151         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
87152         * lib/fsusage.c, fsuage.h: Likewise.
87153         * lib/fts.c, fts_.h: Likewise.
87154         * lib/getcwd.c: Likewise.
87155         * lib/getloadavg.c: Likewise.
87156         * lib/mkstemp.c: Likewise.
87157         * lib/mountlist.c, mountlist.h: Likewise.
87158         * lib/openat.c, openat.h: Likewise.
87159         * lib/readlink-stub.c: Likewise.
87160         * lib/readutmp.c, readutmp.h: Likewise.
87161         * lib/rename.c: Likewise.
87162         * lib/rmdir.c: Likewise.
87163         * lib/same.c: Likewise.
87164         * lib/savedir.c: Likewise.
87165         * lib/stripslash.c: Likewise.
87166         * lib/tempname.c: Likewise.
87167         * lib/xreadlink.c: Likewise.
87168         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
87169         All uses changed.
87170         * lib/exclude.h: Likewise.
87171
87172         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
87173         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87174         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
87175         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87176         * lib/pathmax.h: Include <limits.h> unconditionally, since other
87177         files have been getting away with it for years (MORE/BSD 4.3
87178         is extinct now).
87179         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
87180         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
87181
87182         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
87183         Define to 256, not 255, as per modern POSIX.
87184
87185 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87186
87187         Sync from coreutils.
87188         Use "file name" when talking about file names, instead of "filename"
87189         or "path", as per the GNU coding standards.
87190         * MODULES.html.sh: mkdir-p renamed from makepath.
87191         filenamecat renamed from path-concat.
87192         * modules/filenamecat: Renamed from modules/path-concat.
87193         (Files): filenamecat.h and filenamecat.c renamed from
87194         path-concat.h and path-concat.c.
87195         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
87196         (Include): filenamecat.h, not path-concat.h.
87197         * modules/mkdir-p: Renamed from modules/makepath.
87198         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
87199         makepath.c.
87200         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
87201         (Include): mkdir-p.h, not makepath.h.
87202
87203 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
87204
87205         Sync from coreutils.
87206         * m4/mkdir-p.m4: Renamed from makepath.m4.
87207         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
87208         Rename files from makepath.c to mkdir-p.c, and from
87209         makepath.h to mkdir-p.h.
87210         * m4/filenamecat.m4: Renamed from path-concat.m4.
87211         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
87212         Rename files from path-concat.c to filenamecat.c,
87213         and from path-concat.h to filenamecat.h.
87214         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
87215         "file name" in local variables or comments.
87216         * m4/rename.m4: Likewise.
87217
87218 2005-06-01  Bruno Haible  <bruno@clisp.org>
87219
87220         * modules/csharpexec: New file.
87221         * MODULES.html.sh (C#): New section.
87222
87223 2005-06-01  Bruno Haible  <bruno@clisp.org>
87224
87225         * m4/csharp.m4: New file, from GNU gettext.
87226         * m4/csharpexec.m4: New file, from GNU gettext.
87227
87228 2005-06-01  Bruno Haible  <bruno@clisp.org>
87229
87230         * lib/csharpexec.h: New file, from GNU gettext.
87231         * lib/csharpexec.c: New file, from GNU gettext.
87232         * lib/csharpexec.sh.in: New file, from GNU gettext.
87233
87234 2005-05-31  Derek Price  <derek@ximbiot.com>
87235             Paul Eggert  <eggert@cs.ucla.edu>
87236
87237         Sync from cvs.
87238         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87239
87240 2005-05-31  Derek Price  <derek@ximbiot.com>
87241             Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         Sync from cvs.
87244         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
87245
87246 2005-05-29  Derek Price  <derek@ximbiot.com>
87247
87248         * config/srclist.txt (glob_.h, glob.c): Add these files.
87249
87250 2005-05-29  Derek Price  <derek@ximbiot.com>
87251
87252         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
87253         * modules/glob: New file.
87254         * modules/getlogin_r: Add link to POSIX spec in description.
87255
87256 2005-05-29  Derek Price  <derek@ximbiot.com>
87257             Paul Eggert  <eggert@cs.ucla.edu>
87258
87259         * m4/glob.m4: New file.
87260
87261 2005-05-29  Derek Price  <derek@ximbiot.com>
87262             Paul Eggert  <eggert@cs.ucla.edu>
87263
87264         * lib/glob_.h, lib/glob.c: New files.
87265
87266 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87267
87268         * modules/fts (Files): Remove m4/inttypes-pri.m4.
87269         * modules/fts-lgpl (Depends-on): Remove gettext.
87270
87271 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87272
87273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
87274         and don't require gt_INTTYPES_PRI.
87275
87276 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
87277
87278         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
87279
87280         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
87281         the configuration hassle isn't worth it.
87282         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
87283         (LONGEST_MODIFIER, PRIuMAX): Remove.
87284
87285 2005-05-27  Bruno Haible  <bruno@clisp.org>
87286
87287         * lib/getlogin_r.h: Remove second include of <stddef.h>.
87288
87289 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
87290
87291         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
87292         _POSIX_PTHREAD_SEMANTICS for Solaris.
87293
87294 2005-05-25  Derek Price  <derek@ximbiot.com>
87295
87296         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
87297
87298 2005-05-25  Derek Price  <derek@ximbiot.com>
87299             Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * modules/getlogin_r, m4/getlogin_r.m4: New files.
87302         * lib/getlogin_r.c, getlogin_r.h: New files.
87303
87304 2005-05-25  Bruno Haible  <bruno@clisp.org>
87305             Derek Price  <derek@ximbiot.com>
87306
87307         * lib/getlogin_r.h: Simplify API documentation.
87308
87309 2005-05-23  Derek Price  <derek@ximbiot.com>
87310
87311         * modules/minmax (Files): Add m4/minmax.m4.
87312         (configure.ac): Add gl_MINMAX.
87313
87314 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
87315
87316         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
87317         so that unistd-safer.h (GPL'ed code) need not be included.
87318
87319 2005-05-22  Bruno Haible  <bruno@clisp.org>
87320
87321         * m4/minmax.m4: New file.
87322         Based on a patch by Derek Price <derek@ximbiot.com>.
87323
87324 2005-05-22  Bruno Haible  <bruno@clisp.org>
87325
87326         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
87327         (INT64_MIN): Fix definition.
87328         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
87329
87330         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
87331         NEED_SIGNED_INT_TYPES.
87332
87333         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
87334         HAVE_SYSTEM_INTTYPES.
87335
87336 2005-05-22  Bruno Haible  <bruno@clisp.org>
87337
87338         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
87339         Also include <sys/param.h> if it defines MIN, MAX.
87340         Based on a patch by Derek Price <derek@ximbiot.com>.
87341
87342 2005-05-21  Jim Meyering  <jim@meyering.net>
87343
87344         * modules/fts (Files): Add m4/inttypes-pri.m4.
87345         (Depends-on): Add lstat and remove gettext.  Alphabetize.
87346
87347 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87348
87349         New fts module.
87350         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
87351         (setup_dir, free_dir): New functions.
87352         (enter_dir, leave_dir): Define trivial
87353         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
87354         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
87355         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
87356         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
87357         Move to fts-cycle.c.
87358         (fts_open): Use setup_dir.
87359         (fts_close): Use free_dir.
87360         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
87361         This adds a label and some gotos, but the alternatives were messier.
87362         Check for memory allocation failure when entering a dir.
87363         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
87364         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
87365         (FTS): New member fts_cycle, that is a union that contains the
87366         old active_dir_ht and cycle_state.  All uses changed to mention
87367         fts_cycle.ht and fts_cycle.state.
87368         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
87369         fts.c, with the following changes:
87370         (setup_dir, free_dir): New functions.
87371         (enter_dir): Now returns bool.  Return true if successful, false
87372         if memory exhausted.  All callers changed.
87373         Do not bother partly cleaning up on
87374         memory allocation failure; that is free_dir's job.
87375         However, free ad if hash_insert fails, to avoid memory leak.
87376         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
87377         fts->fts_options to see which union member to use.
87378
87379 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87380
87381         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
87382         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
87383
87384 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
87387
87388 2005-05-20  Jim Meyering  <jim@meyering.net>
87389
87390         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
87391         Now a macro, to pacify GCC.
87392
87393 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87394
87395         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
87396         of -1.
87397
87398 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
87399
87400         * lib/chown.c (rpl_chown): Return -1 on failure.
87401
87402 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87403
87404         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
87405         Don't check for stddef.h.
87406         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
87407         don't use its results.
87408         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
87409         since we include them unconditionally.  Don't require
87410         AM_STDBOOL_H, since stdbool is a prerequisite.
87411         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
87412         since we assume C89 or better.
87413         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
87414         as we don't use their results.
87415         Don't check for fchdir, memmove, memset, strrchr, as we use
87416         them unconditionally.
87417         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
87418         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
87419
87420 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
87421
87422         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
87423         Include <stddef.h> unconditionally, since we assume C89 now.
87424         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
87425         * lib/fts.c: Include fts_.h first, to check interface.
87426         Do not include intprops.h; no longer needed.
87427         Include cycle-check.h and hash.h, since fts_.h no longer does.
87428         Remove unnecessary casts of closedir to void.
87429         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
87430         decide whether to decrement nlinks.
87431         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
87432         (FTS): Use struct hash_table * instead of Hash_table, so that
87433         we no longer need to include hash.h here.
87434
87435 2005-05-18  Jim Meyering  <jim@meyering.net>
87436
87437         * modules/dirfd (License): Change to LGPL.  Most of the code
87438         is already in the public domain.
87439
87440 2005-05-18  Jim Meyering  <jim@meyering.net>
87441
87442         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
87443         Reported by Yoann Vandoorselaere.
87444
87445 2005-05-17  Jim Meyering  <jim@meyering.net>
87446
87447         * m4/fts.m4: New file, from coreutils.
87448
87449 2005-05-17  Jim Meyering  <jim@meyering.net>
87450
87451         * lib/fts.c, lib/fts_.h: New files, from coreutils.
87452
87453 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87454
87455         Sync from coreutils.
87456         * m4/unlinkdir.m4: New file.
87457
87458 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87459
87460         Sync from coreutils.
87461         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
87462         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
87463         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
87464         White space changes only.
87465         * lib/makepath.c (make_path): Port to hosts where leading "//" is
87466         special.
87467         * lib/yesno.c: Include getline.h, not ctype.h.
87468         (yesno): Don't remove leading white space; POSIX doesn't allow it.
87469         Use getline to remove arbitrary restriction on response length.
87470
87471 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
87472
87473         * config/srclist-update: Spell out "Street" in FSF postal
87474         mail address; this is the style the FSF seems to prefer.
87475
87476         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
87477         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
87478         this updates FSF postal mail address.
87479
87480         Sync from coreutils.
87481         * modules/unlinkdir: New file.
87482         * modules/yesno (Depends-on): Add getline.
87483         * MODULES.html.sh (File system functions): Add unlinkdir.
87484
87485 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87486
87487         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
87488         lib/strsep.h:
87489         Change the initial comment to refer to GPL, not LGPL.
87490         gnulib-tool will change it to LGPL as needed.
87491
87492         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
87493         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
87494         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
87495         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
87496         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
87497         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
87498         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
87499         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
87500         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
87501         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
87502         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
87503         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
87504         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
87505         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
87506         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
87507         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
87508         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
87509         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
87510         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
87511         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
87512         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
87513         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
87514         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
87515         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
87516         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
87517         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
87518         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
87519         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
87520         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
87521         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
87522         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
87523         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
87524         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
87525         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
87526         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
87527         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
87528         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
87529         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
87530         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
87531         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
87532         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
87533         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
87534         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
87535         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
87536         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
87537         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
87538         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
87539         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
87540         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
87541         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
87542         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87543         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
87544         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
87545         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
87546         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
87547         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
87548         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
87549         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
87550         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
87551         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
87552         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
87553         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
87554         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
87555         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
87556         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
87557         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
87558         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
87559         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
87560         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
87561         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
87562         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
87563         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
87564         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
87565         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
87566         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
87567         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
87568         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
87569         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
87570         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
87571         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
87572         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
87573         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
87574         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
87575         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
87576         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
87577         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
87578         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
87579         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
87580         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
87581         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
87582         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
87583         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
87584         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
87585         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
87586         lib/yesno.c, lib/yesno.h:
87587         Update FSF postal mail address.
87588
87589 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87590
87591         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
87592         tests/test-memmem.c, tests/test-stpncpy.c:
87593         Update FSF postal mail address.
87594
87595 2005-05-13  Bruno Haible  <bruno@clisp.org>
87596
87597         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
87598         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
87599         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
87600         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
87601         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
87602         Add support for 64-bit integers in the MSVC compiler.
87603
87604 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87605
87606         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
87607
87608 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
87609
87610         * gnulib-tool (func_import): Sort and uniquify recommended includes.
87611
87612 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         * doc/getdate.texi (General date syntax): Don't say that date
87615         date --iso-8601=ns generates acceptable dates; it doesn't yet.
87616         Problem reported by Nic Ferrier.
87617
87618 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87619
87620         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
87621         specified in ai_socktype. Fix invalid ai_protocol
87622         check. ai_protocol is usually set to 0 or depending on
87623         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
87624         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
87625         ai_socktype / ai_protocol in the returned addrinfo structure.
87626
87627 2005-05-10  Simon Josefsson  <jas@extundo.com>
87628
87629         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
87630         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87631
87632 2005-05-10  Karl Berry  <karl@gnu.org>
87633
87634         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
87635         (from http://www.gnu.org/licenses).
87636         * doc/COPYING.LIB: also rename to COPYING.LESSER.
87637         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
87638         fdl.texi suffices.
87639
87640 2005-05-10  Karl Berry  <karl@gnu.org>
87641
87642         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
87643         (COPYING.DOC): remove.
87644
87645         * config/srclist-update: new FSF address.
87646
87647 2005-05-10  Derek Price  <derek@ximbiot.com>
87648
87649         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
87650         possible.
87651
87652 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87653             Bruno Haible  <bruno@clisp.org>
87654
87655         * modules/inet_ntop: New file.
87656         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87657         inet_ntop.
87658
87659 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87660             Bruno Haible  <bruno@clisp.org>
87661
87662         * m4/inet_ntop.m4: New file.
87663
87664 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87665             Bruno Haible  <bruno@clisp.org>
87666
87667         * lib/inet_ntop.h: New file.
87668         * lib/inet_ntop.c: New file, from glibc with modifications.
87669
87670 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
87671
87672         * modules/time_r (License): Change to LGPL.
87673         * modules/extensions (License): Change to LGPL.  Actually,
87674         the license is more permissive than that, but currently gnulib-tool
87675         doesn't know how to handle more-permissive licenses.
87676
87677         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
87678         Problem reported by Dave Love.
87679
87680 2005-05-08  Jim Meyering  <jim@meyering.net>
87681
87682         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
87683         blank.
87684
87685 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87686
87687         * modules/argmatch (Depends-on): Add stdbool.
87688         * modules/backupfile (Depends-on): Likewise.
87689         * modules/chdir-long (Depends-on): Likewise.
87690         * modules/closeout (Depends-on): Likewise.
87691         * modules/cycle-check (Depends-on): Likewise.
87692         * modules/dirname (Depends-on): Likewise.
87693         * modules/fnmatch (Depends-on): Likewise.
87694         * modules/fsusage (Depends-on): Likewise.
87695         * modules/fwriteerror (Depends-on): Likewise.
87696         * modules/getcwd (Depends-on): Likewise.
87697         * modules/getloadavg (Depends-on): Likewise.
87698         * modules/hard-locale (Depends-on): Likewise.
87699         * modules/makepath (Depends-on): Likewise.
87700         * modules/mountlist (Depends-on): Likewise.
87701         * modules/nanosleep (Depends-on): Likewise.
87702         * modules/posixtm (Depends-on): Likewise.
87703         * modules/quotearg (Depends-on): Likewise.
87704         * modules/readtokens (Depends-on): Likewise.
87705         * modules/readtokens0 (Depends-on): Likewise.
87706         * modules/readutmp (Depends-on): Likewise.
87707         * modules/save-cwd (Depends-on): Likewise.
87708         * modules/strftime (Depends-on): Likewise.
87709         * modules/userspec (Depends-on): Likewise.
87710         * modules/utimecmp (Depends-on): Likewise.
87711         * modules/xgetcwd (Depends-on): Likewise.
87712         * modules/xnanosleep (Depends-on): Likewise.
87713         * modules/xstrtod (Depends-on): Likewise.
87714         * modules/yesno (Depends-on): Likewise.
87715
87716 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
87717
87718         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
87719         needless checks.
87720
87721 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87722
87723         Merge from coreutils.  Among other things,
87724         add bulletproofing for cases where stdin, stdout, or stderr are closed.
87725         * lib/fd-safer.c: New file.
87726         * lib/fcntl-safer.h, open-safer.c: Remove.
87727         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
87728         * lib/dup-safer.c: Include unistd-safer.h first.
87729         Don't include errno.h.
87730         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
87731         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
87732         * lib/file-type.c: Rely on file-type.h change.
87733         * lib/getloadavg.c: Include unistd-safer.h.
87734         (getloadavg): Use safer open.
87735         * lib/getusershell.c: Include "stdio-safer.h".
87736         (getusershell): Use safer fopen.
87737         * lib/long-options.c (long_options): Use NULL rather than 0.
87738         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
87739         'free'.
87740         * lib/modechange.c: Likewise.
87741         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
87742         (MODE_DONE): New constant.
87743         (struct mode_change): Remove 'next' member.
87744         (make_node_op_equals): New function; like the old one of the
87745         same name, except it allocates an array.
87746         (mode_compile, mode_create_from_ref): Use it.
87747         (mode_compile): Allocate result as an array, not a linked list.
87748         Parse octal string ourself, so that we catch mistakes like "+0".
87749         (mode_adjust): Arg is an array, not a linked list.
87750         * lib/modechange.c: Include stat-macros.h, xalloc.h.
87751         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
87752         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
87753         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
87754         Remove.  This is now stat-macros.h's job.
87755         (talloc): Remove.  All callers replaced by xalloc, so that
87756         our invokers don't have to worry about reporting memory failures.
87757         (make_node_op_equals): Remove.
87758         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87759         New constants.
87760         (struct mode_change): Moved here from modechange.h.
87761         (mode_append_entry): Remove.
87762         (mode_compile): Remove MASKED_OPS arg, since it encouraged
87763         apps to have incorrect behavior.  Use simpler algorithm for head
87764         and tail.  Don't futz with umask; that's now the job of mode_adjust.
87765         Detect more invalid usages rather than having somewhat-random behavior.
87766         Don't insert an "a=" action, as that leads to incorrect behavior.
87767         (mode_compile, mode_create_from_ref): Return NULL on error instead
87768         of an enum, since now there's only one way to have an error.  All
87769         callers changed.
87770         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
87771         at the correct time.  Simplify calculation of "+u" and its ilk.
87772         Don't mishandle "+X".
87773         (mode_free): Remove "register" and localize decls.
87774         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
87775         (struct mode_change): Move to modechange.c; callers don't
87776         need to see this stuff.
87777         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
87778         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
87779         (mode_change, mode_adjust): Reflect the new signatures noted above.
87780         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
87781         that might redefine system include files.
87782         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
87783         (my_usleep): Use NULL rather than (void *) 0.
87784         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
87785         Use siginterrupt to specify that system calls should be interrupted.
87786         (rpl_nanosleep): Move initialization of suspended closer to call of
87787         my_usleep.
87788         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
87789         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
87790         (desirable_utmp_entry): New function.
87791         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
87792         using x2nrealloc, to simplify logic.
87793         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
87794         size calculation.  Do not assume utmp file is a regular file.
87795         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
87796         (READ_UTMP_CHECK_PIDS): New constant.
87797         * lib/save-cwd.c: Include unistd-safer.h.
87798         (save_cwd): Use fd_safer.
87799         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
87800         [!_LIBC] Include "stat-macros.h" instead.
87801         * lib/unistd-safer.h (fd_safer): New decl.
87802
87803 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87804
87805         * modules/getloadavg (Depends-on): Add unistd-safer.
87806         * modules/getusershell (Depends-on): Add stdio-safer.
87807         * modules/lstat (Depends-on): Remove xalloc.
87808         * modules/mkstemp (Depends-on): Add stat-macros.
87809         * modules/modechange (Depends-on): Remove xstrtol.
87810         Add stat-macros, xalloc.
87811         * modules/save-cwd (Depends-on): Add unistd-safer.
87812         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
87813         * modules/unistd-safer (Files): Add lib/fd-safer.c
87814         (Makefile.am): Remove lib_SOURCES.
87815
87816         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
87817         Remove fcntl-safer; unistd-safer supersedes it.
87818
87819 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87820
87821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
87822         AC_HEADER_STAT.
87823         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
87824         (gl_PREREQ_CHOWN): Remove.
87825         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
87826         it.  Don't require AC_HEADER_STAT.
87827         (gl_PREREQ_LSTAT): Remove.
87828         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
87829         Don't require AC_HEADER_STAT.
87830         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
87831         (gl_PREREQ_RMDIR): Remove.
87832         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87833         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87834         the stat-macros module a prerequisite.
87835         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87836         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87837         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87838         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87839         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87840         variable names.
87841         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87842         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87843         variable prefixes.
87844         * m4/fcntl-safer.m4: Remove.
87845         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87846         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87847         Invoke gl_PREREQ_FD_SAFER.
87848         (gl_PREREQ_FD_SAFER): New macro.
87849         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87850         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87851         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87852         Remove duplicate call to AC_LIBOBJ(readutmp).
87853         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87854
87855         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87856         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87857
87858 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87859
87860         * MODULES.html.sh (Misc): Add byteswap.
87861
87862 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87863
87864         * modules/getcwd (Depends-on): Add extensions.
87865         * modules/openat (Depends-on): Likewise.
87866
87867 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87868
87869         * modules/byteswap: New file.
87870
87871 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87872
87873         * m4/byteswap.m4: New file.
87874
87875 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87876
87877         * lib/byteswap_.h: New file.
87878
87879 2005-04-25  Karl Berry  <karl@gnu.org>
87880
87881         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87882
87883 2005-04-25  Albert Chin  <china@thewrittenword.com>
87884
87885         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87886         Toolkit C bug.
87887
87888 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87889
87890         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87891         (func_ln_if_changed): Remove forcibly for no error message
87892         in case file does not exist.
87893
87894 2005-04-19  Simon Josefsson  <jas@extundo.com>
87895
87896         * gnulib-tool (Options): Make --symlink mean --symbolic.
87897
87898 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87899
87900         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87901
87902 2005-04-16  Simon Josefsson  <jas@extundo.com>
87903
87904         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87905
87906 2005-04-15  Simon Josefsson  <jas@extundo.com>
87907
87908         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87909
87910 2005-04-15  Simon Josefsson  <jas@extundo.com>
87911
87912         * gnulib-tool: Rename --symlink to --symbolic.
87913
87914 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87915
87916         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87917         symbolic links to files instead of copying/moving.  Add --aux-dir,
87918         specifying directory relative --dir where auxiliary build tools
87919         are placed.
87920
87921 2005-04-14  Bruno Haible  <bruno@clisp.org>
87922
87923         * modules/allocsa (License): Change to LGPL.
87924         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87925
87926 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87927
87928         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87929         that "UTC +1 second" continues to work.  Problem reported
87930         by Dmitry V. Levin.
87931         (relunit_snumber): New rule.
87932         (relunit): Use it.
87933
87934 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87935
87936         * lib/getdate.y (universal_time_zone_table): New constant.
87937         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87938         universal_time_zone_table.
87939         (lookup_zone): Prefer universal_time_zone_table to
87940         local_time_zone_table, so that "GMT" time stamps are allowed in
87941         London during the summer.  Problem reported by Ian Abbott.
87942
87943 2005-04-12  Jim Meyering  <jim@meyering.net>
87944
87945         * lib/human.c (humblock): Set *options even when returning due to
87946         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87947         warning from gcc-4.
87948
87949 2005-04-09  Jim Meyering  <jim@meyering.net>
87950
87951         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87952         -Wuninitialized: initialize tm0.tm_year.
87953
87954 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87955
87956         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87957         count, since there's no maximum.  All uses changed.
87958         Add member dsts_seen.
87959         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87960         not being INT_MAX.
87961         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87962         Use pc_rels_seen to decide whether a date is absolute.
87963
87964         * lib/getdate.y (number): Don't overwrite year.
87965         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87966         check.
87967
87968 2005-04-02  Simon Josefsson  <jas@extundo.com>
87969
87970         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87971         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87972
87973 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87974
87975         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87976         where no absolute path name can be longer than PATH_MAX.
87977
87978 2005-03-27  Jim Meyering  <jim@meyering.net>
87979
87980         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87981
87982 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87983
87984         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87985         "one's complement" -> "ones' complement" in comment, as per Knuth.
87986         "value of type" -> "type or expression" in comment.
87987         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87988
87989 2005-03-26  Jim Meyering  <jim@meyering.net>
87990
87991         Comment nits.
87992         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87993         Correct typos: s/or/of/.
87994
87995 2005-03-26  Jim Meyering  <jim@meyering.net>
87996
87997         * modules/check-include-files: Move to ../ and rename to...
87998         * check-module: ...this.
87999
88000 2005-03-25  Jim Meyering  <jim@meyering.net>
88001
88002         * modules/xvasprintf (Files): Add xalloc.h.
88003
88004 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88005
88006         * modules/gettext (Files): config/config.rpath ->
88007         build-aux/config.rpath
88008         * modules/iconv (Files): Likewise.
88009         Problem reported by Oskar Liljeblad.
88010
88011 2005-03-23  Jim Meyering  <jim@meyering.net>
88012
88013         * modules/check-include-files: New script to check for
88014         missing dependencies, multiple includes, etc.
88015
88016         * modules/c-strtold (Depends-on): Add xalloc.
88017         * modules/c-strtod (Depends-on): Add xalloc.
88018         * modules/hash (Depends-on): Add xalloc.
88019         (Files): Remove lib/xalloc.h.
88020
88021         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88022         * modules/userspec (Files): Add lib/inttostr.h.
88023
88024 2005-03-23  Jim Meyering  <jim@meyering.net>
88025
88026         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88027
88028 2005-03-22  Jim Meyering  <jim@meyering.net>
88029
88030         * modules/stat-macros: New module.
88031         * modules/canonicalize, modules/euidaccess, modules/file-type,
88032         * modules/filemode, modules/lchown, modules/makepath,
88033         * modules/rmdir, modules/stat: Depend on new stat-macros module
88034         rather than listing lib/stat-macros.h manually.
88035         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88036
88037 2005-03-22  Jim Meyering  <jim@meyering.net>
88038
88039         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88040
88041 2005-03-22  Bruno Haible  <bruno@clisp.org>
88042
88043         * config/srclist.txt: Replace target directory 'config' with
88044         'build-aux'.
88045         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88046         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88047         ../build-aux/.
88048
88049 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88050
88051         * modules/chdir-long (Depends-on): Add mempcpy.
88052
88053         * modules/acl, modules/backupfile, modules/c-strtod,
88054         modules/c-strtold, modules/canon-host, modules/canonicalize,
88055         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88056         modules/exclude, modules/exitfail, modules/file-type,
88057         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88058         modules/getdate, modules/getline, modules/getpagesize,
88059         modules/getpass, modules/getugroups, modules/group-member,
88060         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88061         modules/inttostr, modules/long-options, modules/makepath,
88062         modules/md5, modules/memcasecmp, modules/memcoll,
88063         modules/modechange, modules/mountlist, modules/path-concat,
88064         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
88065         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
88066         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
88067         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
88068         modules/strftime, modules/strndup, modules/strverscmp,
88069         modules/timespec, modules/unlocked-io, modules/userspec,
88070         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
88071         modules/yesno:
88072         Remove lib_SOURCES line from Makefile.am section, as this is now
88073         done automatically by the corresponding Autoconf macro.
88074
88075 2005-03-21  Jim Meyering  <jim@meyering.net>
88076
88077         Changes imported from coreutils.
88078
88079         * lib/cycle-check.c: Don't include xalloc.h.
88080
88081         * lib/path-concat.c: Don't include assert.h.
88082         (path_concat): Remove assertion that would have triggered
88083         for ABASE starting with more than one slash.
88084         Reported by Andreas Schwab.
88085
88086         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
88087         properly when ABASE is an absolute file name.
88088         Correct the description of this function.
88089         Include <assert.h>.
88090         Add an assertion and a test driver.
88091         This fixes a bug introduced on 2004-07-02.
88092         Andreas Schwab reported the resulting failure of cp --parents:
88093         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
88094
88095 2005-03-21  Jim Meyering  <jim@meyering.net>
88096
88097         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
88098         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
88099
88100 2005-03-21  Jim Meyering  <jim@meyering.net>
88101         and  Paul Eggert  <eggert@cs.ucla.edu>
88102
88103         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
88104         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
88105         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
88106         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
88107         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
88108         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
88109         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
88110         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
88111         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
88112         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
88113         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
88114         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
88115         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
88116         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
88117         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
88118         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
88119         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
88120         for these modules.
88121
88122 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
88123
88124         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
88125         (which shouldn't happen), generate nothing instead of returning 0
88126         immediately, so that nstrftime (NULL, ...) doesn't return 0.
88127
88128 2005-03-16  Bruno Haible  <bruno@clisp.org>
88129
88130         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
88131         HAVE_LONGLONG_64BIT.
88132
88133 2005-03-16  Bruno Haible  <bruno@clisp.org>
88134
88135         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
88136         HAVE_LONGLONG_64BIT.
88137
88138 2005-03-16  Bruno Haible  <bruno@clisp.org>
88139
88140         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
88141         HAVE_LONGLONG_64BIT.
88142
88143 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * lib/strftime.c (my_strftime): Prepend space to format so that we can
88146         reliably distinguish strftime failure from empty output on POSIX
88147         hosts.
88148
88149 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
88152         (iconv_string): Don't guess a size-zero buffer, as that might cause
88153         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
88154         result would be 'too large', where 'too large' is (heuristically)
88155         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
88156         overflow concerns.  This will prevent some unwanted malloc failures
88157         when the inputs are very large.
88158
88159 2005-03-15  Karl Berry  <karl@gnu.org>
88160
88161         * config/srclist.txt (config.rpath): from gettext.
88162         * config/config.rpath: update.
88163
88164 2005-03-15  Bruno Haible  <bruno@clisp.org>
88165
88166         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
88167         to 'negate'.
88168
88169         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
88170         variable.
88171
88172         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
88173         results.
88174
88175 2005-03-14  Simon Josefsson  <jas@extundo.com>
88176
88177         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
88178         <fx@gnu.org>.
88179
88180 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
88181
88182         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
88183         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
88184         intprops.h.
88185         * lib/strtol.c: Likewise.
88186
88187 2005-03-14  Jim Meyering  <jim@meyering.net>
88188
88189         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
88190         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
88191         to be nonzero so that we (and caller) can detect the difference
88192         between a valid zero-length expansion and an error return, even
88193         when the underlying strftime fails before writing anything into
88194         that location.
88195
88196 2005-03-14  Bruno Haible  <bruno@clisp.org>
88197
88198         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
88199         Update from GNU gettext 0.14.3.
88200
88201 2005-03-10  Jim Meyering  <jim@meyering.net>
88202
88203         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
88204
88205 2005-03-10  Jim Meyering  <jim@meyering.net>
88206
88207         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
88208         so that this module works on systems without fchdir.
88209
88210 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
88211
88212         Factor int-properties macros into a single file, except for
88213         glibc-related files.
88214         * lib/intprops.h: New file.
88215         * lib/getloadavg.c: Include it instead of limits.h.
88216         (INT_STRLEN_BOUND): Remove.
88217         * lib/human.c: Include intprops.h.
88218         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
88219         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
88220         302/1000.
88221         * lib/inttostr.h: Include intprops.h instead of limits.h.
88222         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
88223         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
88224         for consistency with intprops.h.
88225         (time_t_is_integer, twos_complement_arithmetic): Use them.
88226         * lib/sig2str.h: Include <signal.h>, intprops.h.
88227         (INT_STRLEN_BOUND): Remove.
88228         * lib/strftime.c (TYPE_SIGNED): Remove.
88229         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
88230         * lib/strtol.c: Adjust comments to match intprops.h.
88231         * lib/userspec.c: Include intprops.h.
88232         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
88233         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
88234         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
88235         instead of rolling our own expressions.
88236         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
88237
88238         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
88239         instead of int.
88240         (my_strftime): Do not mishandle years close to INT_MAX, by doing
88241         the right thing even if adding 1900 would overflow.  Similarly
88242         for tm_mon + 1 and tm_yday + 1.
88243         Make %Y always equivalent to %C%y, and similarly for %G and %g.
88244         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
88245         (DO_SIGNED_NUMBER): New macro.
88246         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
88247
88248 2005-03-07  Bruno Haible  <bruno@clisp.org>
88249
88250         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
88251
88252 2005-03-07  Bruno Haible  <bruno@clisp.org>
88253
88254         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
88255
88256 2005-03-04  Derek R. Price  <derek@ximbiot.com>
88257
88258         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
88259         (func_import): Only replace files via --import when they have actually
88260         changed.
88261
88262 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88263
88264         * m4/mmap-anon.m4: New file.
88265         * m4/pagealign_alloc.m4: New file.
88266
88267 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88268             Bruno Haible  <bruno@clisp.org>
88269
88270         * modules/pagealign_alloc: New file.
88271         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
88272
88273 2005-03-03  Derek R. Price  <derek@ximbiot.com>
88274             Bruno Haible  <bruno@clisp.org>
88275
88276         * lib/pagealign_alloc.h: New file.
88277         * lib/pagealign_alloc.c: New file.
88278
88279 2005-03-03  Bruno Haible  <bruno@clisp.org>
88280
88281         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
88282         Use an all-permissive copyright notice, recommended by RMS.
88283
88284 2005-03-02  Bruno Haible  <bruno@clisp.org>
88285
88286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
88287         of AIX, the replacement has to be done only after <string.h> is
88288         included, therefore not in config.h. stpncpy.h does the replacement,
88289         and stpncpy.c uses it.
88290
88291 2005-03-02  Bruno Haible  <bruno@clisp.org>
88292
88293         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
88294         stpncpy.c uses it.
88295
88296 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88297
88298         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
88299         The workaround isn't strictly needed for POSIX conformance, and
88300         it's too much of a pain to configure and maintain.  We'll ask
88301         people to fix their kernels instead.
88302         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
88303         (NANOSLEEP_BUG_WORKAROUND): Remove.
88304         (xnanosleep): Remove the workaround.
88305
88306 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88307
88308         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
88309         Reported by Derek Price.
88310         (Include): Add "timespec.h".
88311
88312         * modules/xnanosleep (Depends-on): Remove gethrxtime.
88313
88314 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
88315
88316         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
88317         to detect nanosleep bug.
88318
88319 2005-03-01  Bruno Haible  <bruno@clisp.org>
88320
88321         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
88322
88323 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
88324
88325         * modules/gethrxtime: New file.
88326         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
88327         (Depends-on): Add gethrxtime.
88328         (configure.ac): Add gl_XNANOSLEEP.
88329         (Makefile.am): Remove lib_SOURCES line.
88330
88331 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88332
88333         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
88334         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
88335
88336 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
88337
88338         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
88339         * lib/timespec.h (gettime): Return void, since it always
88340         succeeds now.  All uses changed.
88341         * lib/gettime.c (gettime): Likewise.
88342         [HAVE_NANOTIME]: Prefer nanotime.
88343         Assume gettimeofday succeeds, as POSIX requires.
88344         Assime time () succeeds, since other code already does.
88345         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
88346         (timespec_subtract): Remove.
88347         (NANOSLEEP_BUG_WORKAROUND): New constant.
88348         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
88349         things considerably.  Use it only on GNU/Linux hosts, since the
88350         workaround shouldn't be needed elsewhere.
88351
88352 2005-02-24  Bruno Haible  <bruno@clisp.org>
88353
88354         * modules/gettext (Files): Add m4/glibc2.m4.
88355
88356 2005-02-24  Bruno Haible  <bruno@clisp.org>
88357
88358         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
88359         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
88360         * m4/progtest.m4:
88361         Update from GNU gettext 0.14.2.
88362         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
88363
88364 2005-02-24  Bruno Haible  <bruno@clisp.org>
88365
88366         * lib/localcharset.c: Update from GNU gettext 0.14.2.
88367         * lib/config.charset: Update from GNU gettext 0.14.2.
88368
88369 2005-02-24  Bruno Haible  <bruno@clisp.org>
88370
88371         * lib/gettext.h: Update from GNU gettext 0.14.2.
88372
88373 2005-02-23  Simon Josefsson  <jas@extundo.com>
88374
88375         * m4/iconvme.m4: New file.
88376
88377 2005-02-23  Jim Meyering  <jim@meyering.net>
88378
88379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
88380         change.
88381         Thanks to Bruno Haible for catching it.
88382
88383 2005-02-22  Simon Josefsson  <jas@extundo.com>
88384
88385         * modules/iconvme: New file.
88386
88387         * MODULES.html.sh: Add iconvme.
88388
88389 2005-02-22  Simon Josefsson  <jas@extundo.com>
88390
88391         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
88392
88393 2005-02-22  Simon Josefsson  <jas@extundo.com>
88394
88395         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
88396
88397 2005-02-22  Jim Meyering  <jim@meyering.net>
88398
88399         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
88400         s/ifndef/ifdef/.
88401
88402 2005-02-20  Neil Conway  <neilc@samurai.com>
88403
88404         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
88405         returned by OSX/Darwin if the specified buffer is not large
88406         enough for the hostname.
88407
88408 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88409
88410         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
88411         pass it to _help, otherwise the latter coredumps trying to
88412         dereference state.root_argp.
88413
88414 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88415
88416         * modules/chdir-long (Depends-on): Add memrchr.
88417         * modules/memrchr (Files): Add lib/memrchr.h.
88418         (Include): "memrchr.h".
88419
88420 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88421
88422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
88423
88424 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
88425
88426         * lib/memrchr.h: New file.
88427         * lib/chdir-long.c: Include it.
88428         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
88429         Don't bother including stddef.h.
88430
88431 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
88434         inclusion.
88435         Include <sys/types.h>, for dev_t.
88436         (ME_DUMMY, ME_REMOTE): Move from here....
88437         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
88438         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
88439         Dmitry V. Levin.
88440         Include mountlist.h first, to test the interface.
88441
88442 2005-01-29  Bruno Haible  <bruno@clisp.org>
88443
88444         * lib/progname.c (program_name): Initialize.
88445         Needed when linking statically on MacOS X.
88446
88447 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88448
88449         Sync from coreutils.
88450         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
88451         (Depends-on): Add c-strtod.
88452         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
88453
88454 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88455
88456         Sync from coreutils.
88457         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
88458
88459         Remove files that are specific to coreutils.
88460         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
88461
88462 2005-01-28  Bruno Haible  <bruno@clisp.org>
88463
88464         * modules/javacomp: New file.
88465         * MODULES.html.sh (Java): Add javacomp.
88466
88467 2005-01-28  Bruno Haible  <bruno@clisp.org>
88468
88469         * m4/javacomp.m4: New file, from GNU gettext.
88470
88471 2005-01-28  Bruno Haible  <bruno@clisp.org>
88472
88473         * lib/javacomp.sh.in: New file, from GNU gettext.
88474         * lib/javacomp.h: New file, from GNU gettext.
88475         * lib/javacomp.c: New file, from GNU gettext.
88476
88477 2005-01-26  Simon Josefsson  <jas@extundo.com>
88478
88479         * lib/gai_strerror.c: Use GPL in header.
88480
88481 2005-01-26  Bruno Haible  <bruno@clisp.org>
88482
88483         * modules/javaexec: New file.
88484         * MODULES.html.sh (Java): Add javaexec.
88485
88486 2005-01-26  Bruno Haible  <bruno@clisp.org>
88487
88488         * m4/javaexec.m4: New file, from GNU gettext.
88489
88490 2005-01-26  Bruno Haible  <bruno@clisp.org>
88491
88492         * lib/javaexec.sh.in: New file, from GNU gettext.
88493         * lib/javaexec.h: New file, from GNU gettext.
88494         * lib/javaexec.c: New file, from GNU gettext.
88495
88496 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88497
88498         * modules/lchown (Depends-on): Remove lchown.h
88499
88500 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88501
88502         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
88503         must be defined if the header file was not found, in order
88504         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
88505
88506 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88507
88508         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
88509         initializers for struct pentry_state.
88510         (__argp_error): Check return value of __asprintf
88511         (__argp_failure): Translate error message
88512
88513         * lib/argp-parse.c: Removed braces around the expansion of N_()
88514
88515 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88516
88517         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
88518         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
88519         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
88520         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
88521         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
88522         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
88523         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
88524         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
88525         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
88526         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
88527         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
88528         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
88529         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
88530         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
88531         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
88532         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
88533         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
88534         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
88535         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
88536         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
88537         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
88538         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
88539         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
88540         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
88541         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
88542         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
88543         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
88544         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
88545         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
88546         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
88547         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
88548         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
88549         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
88550         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
88551         xstrtol.m4, xstrtoumax.m4, yesno.m4:
88552         Use an all-permissive copyright notice, recommended by RMS.
88553
88554 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
88555
88556         * modules/chdir-long (Depends-on): Remove mempcpy.
88557
88558 2005-01-21  Jim Meyering  <jim@meyering.net>
88559
88560         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
88561         same value as for Solaris 9.
88562
88563         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
88564         component length.  This included changing the parameter to be
88565         of type `char *' rather than `char const *'.
88566         * lib/chdir-long.h (chdir_long): Update prototype.
88567
88568         * lib/openat.c (fdopendir, fstatat): New functions.
88569         * lib/openat.h: Include headers required for use of DIR and struct
88570         stat.
88571         [AT_SYMLINK_NOFOLLOW]: Define.
88572         (fdopendir, fstatat): Add prototypes.
88573
88574 2005-01-21  Bruno Haible  <bruno@clisp.org>
88575
88576         * modules/classpath: New file.
88577         * MODULES.html.sh (Java): Add classpath.
88578
88579 2005-01-21  Bruno Haible  <bruno@clisp.org>
88580
88581         * lib/classpath.h: New file, from GNU gettext.
88582         * lib/classpath.c: New file, from GNU gettext.
88583
88584 2005-01-20  Simon Josefsson  <jas@extundo.com>
88585
88586         * modules/version-etc-fsf: New file.
88587
88588 2005-01-20  Simon Josefsson  <jas@extundo.com>
88589
88590         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
88591         * lib/version-etc.c: Remove version_etc_copyright.
88592         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
88593         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
88594
88595 2005-01-20  Simon Josefsson  <jas@extundo.com>
88596
88597         * lib/base64.h (isbase64): Add.
88598
88599         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
88600         using a unsigned prototype, don't inline.
88601         (base64_decode): Use it.
88602
88603 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88604
88605         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
88606         it.
88607
88608 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88609
88610         * lib/save-cwd.c (save_cwd): Remove code to support the case
88611         where fchdir is missing or flaky.
88612
88613 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
88614
88615         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
88616
88617 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88618
88619         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
88620         AC_LIBSOURCES now does this.
88621         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
88622         with new ullong_max module.
88623
88624 2005-01-19  Bruno Haible  <bruno@clisp.org>
88625
88626         * modules/sh-quote: New file.
88627         * MODULES.html.sh (Executing programs): Add sh-quote.
88628
88629 2005-01-19  Bruno Haible  <bruno@clisp.org>
88630
88631         * lib/sh-quote.h: New file, from GNU gettext.
88632         * lib/sh-quote.c: New file, from GNU gettext.
88633
88634 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88635
88636         Merge from coreutils.
88637         * m4/ullong_max.m4: New file.
88638         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
88639         (gl_MACROS): Assume localeconv exists.
88640
88641 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88642
88643         Merge changes from coreutils, as described below in several
88644         changelogs dated today.
88645
88646         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
88647         (O_DIRECTORY): Remove; not needed here, since "." must be
88648         a directory.  All uses removed.
88649         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
88650         universal on Suns, and we also need to test for IRIX.
88651         Revamp code to use 'if' rather than '#if'.
88652         Avoid unnecessary comparison of cwd->desc to 0.
88653
88654         * lib/utimens.c (futimens): Robustify the previous patch, by checking
88655         for known valid error numbers rather than observed invalid ones.
88656
88657 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
88658
88659         * modules/ullong_max: New file.
88660
88661         * modules/chdir-long, modules/openat: New files.
88662         * modules/save-cwd (Depends-on): Depend on chdir-long.
88663         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
88664
88665 2005-01-18  Jim Meyering  <jim@meyering.net>
88666
88667         Merge from coreutils.
88668         * m4/chdir-long.m4, m4/openat.m4: New files.
88669         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
88670         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
88671         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
88672         is sane and DOES follow symlinks.  Besides, testing 20 different
88673         systems found no broken chown implementations.
88674         Prompted by a change in rsync's copy of this macro.
88675         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
88676
88677         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
88678
88679         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
88680         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
88681         NULL-means-set-to-current-time semantics.
88682         Remove temporary file immediately, rather than waiting
88683         for configure's at-exit trap code to do it.
88684
88685 2005-01-18  Jim Meyering  <jim@meyering.net>
88686
88687         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88688
88689         * lib/utimens.c (futimens): Account for the fact that futimes
88690         can also fail with errno == ENOSYS or errno == ENOENT.
88691         Patch from Dmitry V. Levin.
88692
88693         Change the name of the robust chdir function from chdir to chdir_long.
88694         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
88695         (restore_cwd): Use chdir_long, not chdir.
88696         * lib/chdir-long.c: Renamed from chdir.c.
88697         * lib/chdir-long.h: Renamed from chdir.h.
88698         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
88699         Hurd.
88700
88701 2005-01-18  Bruno Haible  <bruno@clisp.org>
88702
88703         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
88704         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
88705         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
88706         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
88707         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
88708         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
88709         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
88710         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
88711         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
88712         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
88713         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
88714         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
88715         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
88716         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
88717         Use an all-permissive copyright notice, recommended by RMS.
88718
88719 2005-01-18  Bob Proulx  <bob@proulx.com>
88720
88721         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
88722         simplify offsetof() macro construct to avoid compile failure with
88723         native HP-UX 11.0 ANSI C compiler.
88724
88725 2005-01-17  Bruno Haible  <bruno@clisp.org>
88726
88727         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
88728         redundant because stpncpy.m4 takes care of it.
88729
88730 2005-01-17  Bruno Haible  <bruno@clisp.org>
88731
88732         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
88733
88734 2005-01-17  Bruno Haible  <bruno@clisp.org>
88735
88736         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
88737         used.
88738
88739 2005-01-17  Bruno Haible  <bruno@clisp.org>
88740
88741         * lib/fwriteerror.h (fwriteerror): Change specification to include
88742         fclose.
88743         * lib/fwriteerror.c: Include <stdbool.h>.
88744         (fwriteerror): At the end, close the file stream. Record whether
88745         stdout was already closed.
88746
88747 2005-01-17  Bruno Haible  <bruno@clisp.org>
88748
88749         * lib/execute.c (environ): Declare if needed.
88750         * lib/pipe.c (environ): Likewise.
88751         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
88752
88753 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88754
88755         * modules/argp: Depend on vsnprintf
88756
88757 2005-01-10  Jim Meyering  <jim@meyering.net>
88758
88759         * modules/closeout (Depends-on): Add atexit.
88760
88761 2005-01-06  Bruno Haible  <bruno@clisp.org>
88762
88763         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
88764
88765 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
88766
88767         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
88768         definitions to be after all include files, to avoid collisions.
88769         Problem reported by Bob Proulx.
88770
88771 2005-01-04  Jim Meyering  <jim@meyering.net>
88772
88773         Changes imported from coreutils.
88774         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
88775         as the mkstemp template, use a temporary directory and an
88776         8.3-friendly template to avoid trouble on systems like DJGPP.
88777         Reported by Juan M. Guerrero via Stepan Kasal.
88778         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
88779         close. Remove the temporary directory right away, rather than waiting
88780         for configure's at-exit trap code to do it.
88781         Suggestion from Stepan Kasal.
88782
88783 2005-01-01  Simon Josefsson  <jas@extundo.com>
88784
88785         * gnulib-tool: Print #include directives when --import'ing.
88786
88787 2004-12-28  Simon Josefsson  <jas@extundo.com>
88788
88789         * tests/test-base64.c: Include required header files.  Remove
88790         unused variables.
88791
88792 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88793
88794         * modules/error (Depends-on): Remove gettext.
88795
88796 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
88799         not needed.  This removes a dependency on the gettext module.
88800         [defined _LIBC]: Do not include <libintl.h>; not needed.
88801
88802 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88803
88804         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
88805         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
88806
88807 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
88808
88809         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
88810         HAVE_DECL_STRTOLD.
88811
88812 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88813
88814         * modules/getdate (Depends-on): Remove alloca-opt.
88815
88816 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88817
88818         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
88819
88820 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
88821
88822         * lib/argp-parse.c: Include <stddef.h>.
88823         (alignof, alignto): New macros.
88824         (parser_init): Don't assume that void * is aligned sufficiently
88825         for struct option.
88826
88827         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
88828         need to extend the stack.
88829         (YYINITDEPTH): New macro, so that the initial stack isn't overly
88830         large.
88831
88832 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88833
88834         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88835
88836 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88837
88838         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88839         (2004-10-24) change.  Apparently this was a false alarm.
88840
88841         * modules/getdate: Depend on alloca-opt, not alloca.
88842
88843 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88844
88845         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88846         Remove now-obsolete comment about AIX.
88847         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88848         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88849         (YYMAXDEPTH): New macro.
88850
88851 2004-12-18  Simon Josefsson  <jas@extundo.com>
88852
88853         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88854
88855 2004-12-18  Bruno Haible  <bruno@clisp.org>
88856
88857         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88858
88859 2004-12-18  Bruno Haible  <bruno@clisp.org>
88860
88861         * lib/fatal-signal.c (fatal_signals): Make non-const.
88862         (init_fatal_signals): New function.
88863         (uninstall_handlers, install_handlers): Ignore signals that were set to
88864         SIG_IGN.
88865         (at_fatal_signal): Call init_fatal_signals.
88866         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88867         SIG_IGN.
88868         Reported by Paul Eggert.
88869
88870 2004-12-18  Bruno Haible  <bruno@clisp.org>
88871
88872         * doc/alloca.texi: New file.
88873         * doc/alloca-opt.texi: New file.
88874
88875 2004-12-17  Jim Meyering  <jim@meyering.net>
88876
88877         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88878         Otherwise, install-sh could exit with improper exit status when
88879         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88880
88881 2004-12-16  Simon Josefsson  <jas@extundo.com>
88882
88883         * tests/test-base64.c: Add license.
88884
88885 2004-12-15  Stepan Kasal  <address@hidden>
88886
88887         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88888
88889 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88890
88891         * modules/getcwd (Files): Add m4/d-ino.m4.
88892         Suggested by Mark D. Baushke.
88893
88894 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88895
88896         * lib/getdate.y (textint): New member "negative".
88897         (time_zone_hhmm): New function.
88898         Expect 14 shift-reduce conflicts, not 13.
88899         (o_colon_minutes): New rule.
88900         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88901         (yylex): Set the "negative" member of signed numbers.
88902
88903 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88904
88905         * doc/getdate.texi (Time of day items, Time zone items):
88906         Describe new formats +00:00, UTC+00:00.
88907
88908 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88909
88910         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88911         spurious "-l"s.  Problem reported by Stepan Kasal.
88912
88913 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88914
88915         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88916         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88917
88918 2004-12-04  Simon Josefsson  <jas@extundo.com>
88919
88920         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88921         Vandoorselaere <yoann@prelude-ids.org>.
88922
88923 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88924
88925         Changes imported from coreutils.
88926         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88927         exist.
88928         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88929
88930 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88931
88932         Changes imported from coreutils.
88933         * lib/hard-locale.c: Assume <locale.h> exists.
88934         Include "strdup.h".
88935         (GLIBC_VERSION): New macro.
88936         (hard_locale): Assume setlocale exists.
88937         Rewrite to avoid #ifdef.
88938         Use strdup rather than malloc + strcpy.
88939         * lib/human.c: Assume <locale.h> exists.
88940         (human_readable): Assume localeconv exists.
88941
88942 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88943
88944         * modules/hard-locale (Depends-on): Add strdup.
88945
88946 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88947
88948         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88949         convert T2, not T.  (Imported from libc.)
88950
88951 2004-11-30  Simon Josefsson  <jas@extundo.com>
88952
88953         * modules/restrict (License): Change to LGPL.
88954
88955 2004-11-30  Simon Josefsson  <jas@extundo.com>
88956
88957         * m4/restrict.m4: Add copyright and copying conditions.
88958
88959 2004-11-30  Simon Josefsson  <jas@extundo.com>
88960
88961         * m4/base64.m4: New file.
88962
88963 2004-11-30  Simon Josefsson  <jas@extundo.com>
88964
88965         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88966         base64.
88967
88968         * tests/test-base64.c: New file.
88969
88970         * modules/base64: New file.
88971
88972 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88973
88974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88975         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88976
88977         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88978
88979 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88980
88981         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88982         (__getcwd.c): Don't restore errno; glibc doesn't.
88983         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88984         first, falling back to our code only if its results look suspicious.
88985         Ensure that the resulting buffer is only as large as necessary.
88986
88987         * lib/readutmp.c: Include readutmp.h first.
88988         Include <errno.h>, since readutmp.h no longer does that.
88989         * lib/readutmp.h: Don't include <errno.h>,
88990         <sys/param.h>, <time.h>; not needed to establish interface.
88991         (errno): Remove decl.
88992         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88993         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88994         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88995
88996 2004-11-28  Simon Josefsson  <jas@extundo.com>
88997
88998         * lib/base64.h, base64.c: New file.
88999
89000 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89001
89002         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89003
89004 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89005
89006         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89007         (Depends-on): Remove pathmax, same.  Add mempcpy.
89008         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89009         (Makefile.am): Append getcwd.h to lib_SOURCES.
89010         (Include): Add getcwd.h.
89011         (Maintainer): Change from Jim Meyering to "all, glibc",
89012         since getdate now uses intended-for-glibc code.
89013         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89014         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89015
89016 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89017
89018         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89019         HP's ANSI C compiler.
89020         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89021         Declaring int functions causes warnings on some modern systems and
89022         shouldn't be needed to compile on ancient ones.
89023         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89024         defined.
89025
89026         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89027         with the following changes.
89028         (__set_errno): Parenthesize properly.
89029         Include <stdbool.h>.
89030         (MIN, MAX, MATCHING_INO): New macros.
89031         (__getcwd): Define with prototype, not K&R form.
89032         Use heuristics to allocate default buffer on stack if possible.
89033         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89034         behavior, and to avoid the PATH_MAX limit when computing
89035         ../../../../...
89036         Use MATCHING_INO to compare inode number to file.
89037         Check for arithmetic overflow in size calculations.
89038         Fix bug in reallocation of dot array that caused getcwd to fail
89039         on directories nested deeper than 75.
89040         Be more careful about saving errno on error.
89041         Do not use realloc; use only free+malloc, as this is a bit
89042         more flexible and avoids a needless copy operation.
89043         Do not inspect st_dev and st_ino for symbolic links; POSIX
89044         doesn't specify the latter.
89045         Check for closedir errors.
89046         Avoid needless casts.
89047         Use "#ifdef weak_alias" around weak_alias, to be like other
89048         glibc code.
89049         The following changes to getcwd.c have effect only when used in
89050         gnulib; they have no effect inside glibc proper.
89051         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89052         as alloca isn't used.
89053         (alloca, __alloca): Likewise.
89054         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89055         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89056         unconditionally, as gnulib assumes C89 or better.
89057         Do not include <sys/param.h>.
89058         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89059         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89060         better.
89061         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89062         Include <dirent.h> in a way that is compatible with modern Autoconf.
89063         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
89064         New macros, if not already defined.
89065         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
89066         Use "_LIBC", not "defined _LIBC", for consistency.
89067         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
89068         a mempcpy module.
89069         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
89070         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
89071         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
89072         credit only to Jim Meyering and adjust the copyright dates.
89073         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
89074         <stdlib.h>, <unistd.h>, "pathmax.h".
89075         Instead, include "xgetcwd.h" (first) and "getcwd.h".
89076         (INITIAL_BUFFER_SIZE): Remove.
89077         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
89078
89079 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89080
89081         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
89082         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
89083         Use the _ONCE methods, for efficiency.
89084         Check for fcntl.h.  In test program, include <errno.h>
89085         and <fcntl.h> if available.  Remove old K&R cruft from
89086         test program.  Check for common errors in GNU/Linux,
89087         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
89088         don't do AC_LIBOBJ, as that's getcwd.m4's job.
89089         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
89090         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
89091         name accordingly.
89092         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
89093         accommodate new getcwd.c.
89094         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
89095         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
89096         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
89097         that's all we need now.
89098
89099 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89100
89101         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
89102         argp-parse.c depends on getopt internals, that means we should
89103         always use our getopt, to be on the safe side.
89104         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
89105         order not to spoil the result of an eventual previous invocation
89106         of gl_GETOPT_SUBSTITUTE.
89107
89108 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89109
89110         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
89111         redefinition warnings. To avoid them, include the defines
89112         in `#if !defined __need_getopt ... #endif'. The only place
89113         where __getopt_argv_const is used is in definitions
89114         of getopt_long and getopt_long_only below, which are as well
89115         protected by `#ifndef __need_getopt'.
89116         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
89117         __need_getopt after including <stdio.h> and <unistd.h> These
89118         headers might have defined it.
89119
89120 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89121
89122         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
89123
89124 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
89125
89126         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
89127         (futimens): New function, which uses futimes if available.
89128         (futimens, utimens): Support timespec==NULL, with same semantics
89129         as utime and utimens.
89130         * lib/utimens.h (futimens): New decl.
89131
89132 2004-11-23  Jim Meyering  <jim@meyering.net>
89133
89134         * lib/getopt_.h: Remove trailing blanks.
89135
89136 2004-11-23  Jim Meyering  <jim@meyering.net>
89137
89138         * lib/__fpending.c: Add comment.
89139
89140 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
89141
89142         * modules/canonicalize (Depends-on): Add xreadlink.
89143         Problem reported by James Youngman.
89144
89145 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
89148         New macros.
89149         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
89150         optopt): Use them instead of invoking ## directly; otherwise, the
89151         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
89152
89153 2004-11-19  Bruno Haible  <bruno@clisp.org>
89154
89155         * lib/strtok_r.c: Move comments from here...
89156         * lib/strtok_r.h: ... to here.
89157
89158 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89159
89160         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
89161         implementations that mishandle size_t overflow.
89162
89163 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
89164
89165         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
89166         might fail.  Problem reported by Yoann Vandoorselaere.
89167         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
89168         implementations that mishandle size_t overflow.
89169
89170 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89171
89172         * modules/canon-host (Depends-on): Add strdup.
89173
89174 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89175
89176         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
89177
89178 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89179
89180         * lib/canon-host.c: Include "strdup.h".
89181         (canon_host): Use getaddrinfo if available, so that IPv6 works.
89182         Use strdup instead of malloc/strcpy to duplicate strings.
89183
89184         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
89185         (human_space_before_unit): New constant.
89186         * lib/human.c (human_readable): Support it.
89187
89188         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
89189         (xgetcwd): Set errno correctly when failing.
89190         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
89191         the failure is actually due to a PATH_MAX problem.
89192
89193         Further getopt changes to make it more likely that glibc will
89194         buy the changes back.
89195         * lib/getopt.c (POSIXLY_CORRECT): New constant.
89196         (getopt): Use it, so to preserve glibc semantic
89197         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
89198         when compiling for libc.
89199         * lib/getopt_.h (__getopt_argv_const): Bring it back.
89200         (getopt_long, getopt_long_only): Use it.
89201
89202         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89203         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
89204         (getopt): Argv is now char * const *, as per standard.
89205         (_getopt_internal_r, _getopt_internal): Argv is now char **,
89206         not char *__getopt_argv_const *.
89207         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89208         _getopt_long_only_r): Likewise.
89209         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
89210         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89211         _getopt_long_r, _getopt_long_only_r): Likewise.
89212         * lib/getopt_.h (__getopt_argv_const): Remove.
89213         (getopt): Argv is now char * const *, as per standard.
89214
89215         * lib/getdate.y (tORDINAL): New token.
89216         (day, relunit): Allow it for relative times.
89217         (relative_time_table): Use tORDINAL for ordinals.
89218
89219 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
89220
89221         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
89222         Document that "second" isn't allowed as an ordinal number.
89223
89224 2004-11-16  Jim Meyering  <jim@meyering.net>
89225
89226         * modules/closeout (Depends-on): Add fpending.
89227
89228 2004-11-15  Jim Meyering  <jim@meyering.net>
89229
89230         * lib/closeout.c: Include "__fpending.h" once again.
89231         Include <stdbool.h>.
89232         (close_stdout): Don't fail just because stdout was closed initially,
89233         since some programs don't write to stdout in the normal course of
89234         operation (other than --version and --help), and we don't want this
89235         function to make e.g. `touch file >&-' fail.
89236         But do fail if it was closed and someone has tried to write to it.
89237         E.g., `printf foo >&-' must fail.
89238
89239 2004-11-13  Jim Meyering  <jim@meyering.net>
89240
89241         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
89242
89243 2004-11-12  Simon Josefsson  <jas@extundo.com>
89244
89245         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
89246         small doc fix is still pending.
89247
89248 2004-11-11  Simon Josefsson  <jas@extundo.com>
89249
89250         * modules/strtok_r: New file.
89251
89252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89253         strtok_r.
89254
89255 2004-11-11  Simon Josefsson  <jas@extundo.com>
89256
89257         * m4/strtok_r.m4: New file.
89258
89259         * m4/getopt.m4: Replace opterr.
89260
89261 2004-11-11  Simon Josefsson  <jas@extundo.com>
89262
89263         * lib/strtok_r.h, strtok_r.c: New file.
89264
89265 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89266
89267         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
89268         of replacing opterr, getopt, etc.  This should handle the
89269         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
89270
89271 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
89272
89273         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
89274         we can stop lying to compilers about the constness of argv when we
89275         are compiled outside glibc.
89276         (getopt, getopt_long, getopt_long_only): Use it.
89277         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
89278         _getopt_internal, getopt): Likewise.
89279         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
89280         _getopt_long_only_r): Likewise.
89281         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
89282         _getopt_long_r, _getopt_long_only_r): Likewise.
89283
89284         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
89285         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
89286         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
89287         the other external symbols.
89288         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
89289         declaration, since the above renaming now works around collisions.
89290
89291 2004-11-11  Jim Meyering  <jim@meyering.net>
89292
89293         * lib/linebreak.c: Remove trailing blanks.
89294         * lib/alloca_.h: Likewise.
89295         * lib/acosl.c: Likewise.
89296         * lib/euidaccess.c: Likewise.
89297         * lib/allocsa.h: Likewise.
89298
89299 2004-11-10  Simon Josefsson  <jas@extundo.com>
89300
89301         * m4/getaddrinfo.m4: New file.
89302
89303 2004-11-10  Simon Josefsson  <jas@extundo.com>
89304
89305         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
89306
89307 2004-11-10  Simon Josefsson  <jas@extundo.com>
89308
89309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89310         getaddrinfo.
89311
89312         * modules/getaddrinfo: New file.
89313
89314 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89315
89316         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
89317
89318 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
89319
89320         * lib/mktime.c (SHR): New macro, which is a portable
89321         substitute for >> that should work even on Crays.
89322         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
89323         Problem reported by Mark D. Baushke in
89324         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
89325         * lib/getdate.y (SHR): Likewise.
89326         (tm_diff): Use it.
89327         * lib/strftime.c (SHR): Likewise.
89328         (tm_diff): Use it.
89329         * lib/quotearg.c (struct quoting_options): Use unsigned int for
89330         quote_these_too, so that right shifts are well defined.  All uses
89331         changed.
89332
89333 2004-11-10  Jim Meyering  <jim@meyering.net>
89334
89335         Ensure that no close failure goes unreported.
89336         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
89337         return early when it seems there's nothing to flush.
89338         Don't include __fpending.h.
89339
89340 2004-11-10  Jim Meyering  <jim@meyering.net>
89341
89342         * modules/closeout (Depends-on): Remove fpending.
89343
89344 2004-11-10  Jim Meyering  <jim@meyering.net>
89345
89346         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
89347
89348 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89349
89350         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
89351         gl_FUNC_STRFTIME.
89352         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
89353         and AC_REQUIRE when possible, to avoid duplicate checks.
89354         Check for <wchar.h>.
89355
89356 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
89357
89358         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
89359
89360 2004-11-09  Bruno Haible  <bruno@clisp.org>
89361
89362         * m4/sockpfaf.m4: New file.
89363
89364 2004-11-05  Bruno Haible  <bruno@clisp.org>
89365
89366         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
89367         Reported by Mark D. Baushke <mdb@cvshome.org>.
89368
89369 2004-11-04  Bruno Haible  <bruno@clisp.org>
89370
89371         2004-09-11  Bruno Haible  <bruno@clisp.org>
89372                 * allocsa.valgrind: New file.
89373         2004-02-06  Bruno Haible  <bruno@clisp.org>
89374                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
89375                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
89376                 Reported by Christopher Seip <chris.seip@hp.com>.
89377
89378 2004-11-04  Bruno Haible  <bruno@clisp.org>
89379
89380         * modules/allocsa (Files): Add lib/allocsa.valgrind.
89381         (Makefile.am): Distribute it.
89382
89383 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
89384
89385         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
89386         with errno == ERANGE if the buffer is too small.
89387         Problem reported by Mark D. Baushke.
89388
89389 2004-11-03  Albert Chin  <china@thewrittenword.com>
89390             Paul Eggert  <eggert@cs.ucla.edu>
89391
89392         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
89393         equivalent, substitute $ac_type for equivalent type rather than
89394         blindly using uint32_t *always* which won't work if uint32_t is not
89395         available.  Define _UINT32_T to work around typedef of uint32_t if
89396         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
89397         2.5.1.
89398
89399 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89400
89401         * m4/jm-macros.m4: Sync from coreutils.
89402         (gl_MACROS): Check for mbrlen, for pathchk.
89403         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
89404
89405 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89406
89407         * lib/xreadlink.c (MAXSIZE): New macro.
89408         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
89409         size does not exceed MAXSIZE.  Avoid cast.
89410         As suggested by Mark D. Baushke in
89411         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
89412         if readlink fails with buffer size just under MAXSIZE, try again
89413         with MAXSIZE.
89414
89415 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
89416
89417         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
89418
89419 2004-11-02  Derek R. Price  <derek@ximbiot.com>
89420         and  Paul Eggert  <eggert@cs.ucla.edu>
89421
89422         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
89423         (get_date): Overparenthesize to avoid GCC warning.
89424
89425 2004-11-02  Bruno Haible  <bruno@clisp.org>
89426
89427         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
89428         returns void.
89429
89430 2004-11-02  Bruno Haible  <bruno@clisp.org>
89431
89432         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
89433         function returns void.
89434
89435 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89436
89437         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
89438         fflush_unlocked, flockfile, funlockfile, funlockfile,
89439         fputs_unlocked, putc_unlocked.
89440
89441 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89442
89443         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89444         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
89445         already declared.
89446
89447 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89448
89449         * modules/getdate (Files): Add doc/getdate.texi.
89450         (Depends-on): Add setenv, xalloc.
89451
89452 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89453
89454         * lib/getdate.y: Add support for TZ="foo" within a date string.
89455         Fix some bugs near time_t boundaries.  Reject dates with
89456         out-of-range components, e.g., "Sept 31".
89457         Include <stdlib.h>, "setenv.h", "xalloc.h".
89458         (ISDIGIT_LOCALE): Remove; unused.
89459         Note that the TZ and time functions used here are not reentrant.
89460         (mktime_ok, get_tz): New functions.
89461         (TZBUFSIZE): New constant.
89462         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
89463         This requires that we sometimes generate our own TZ="XXX..." setting.
89464
89465 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
89466
89467         * doc/getdate.texi: New file, from coreutils with modifications for
89468         the new TZ parsing.
89469
89470 2004-10-27  Derek R. Price  <derek@ximbiot.com>
89471
89472         * lib/mktime.c (not_equal_tm): Remove redundant check.
89473
89474 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89475
89476         * modules/regex (lib_SOURCES): Add regex.c.
89477         Reported by James Youngman in
89478         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
89479
89480 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89481
89482         * lib/getdate.y: Use Bison 1.875 features, and some minor
89483         code cleanups.  This change does not affect semantics.
89484         Don't include <stdlib.h>; no longer needed.
89485         Don't include unlocked-io.h; only the "#if TEST" code uses
89486         stdio, and performance isn't crucial there.
89487         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
89488         Bison 1.875 features as described below.
89489         All uses of "PC." replaced by "pc->".
89490         (YYSTYPE): Add a forward declaration.
89491         (yylex, yyerror): Use full prototypes in forward decls.
89492         Use "%pure-parser" rather than obsolescent "%pure_parser".
89493         Use %parse-param and %lex-param instead of obsolescent
89494         YYPARSE_PARAM and YYLEX_PARAM.
89495         (meridian_table, month_and_day_table, time_units_table,
89496         relative_time_table, time_zone_table, military_table,
89497         lookup_zone, lookup_word, get_date):
89498         Use NULL instead of 0 where appropriate.
89499         (to_hour): Avoid abort (), to avoid a dependency on
89500         stdlib.h.
89501         (yyerror, yylex): Now accepts parser_control * arg.
89502         (main) [TEST]: Use '\0' rather than 0 for char.
89503
89504 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89505
89506         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
89507
89508 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89509
89510         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
89511         It's now the caller's responsibility to handle the case where
89512         !HAVE_GETPAGESIZE && !defined getpagesize.
89513
89514         * lib/mktime.c (leapyear): Arg is long int, not int.
89515
89516 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
89517
89518         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
89519
89520 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
89521
89522         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
89523         missing.  Problem reported by James Youngman.
89524
89525 2004-10-16  Simon Josefsson  <jas@extundo.com>
89526
89527         * gnulib-tool: Fix comments.  Fix parse problem.
89528         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
89529
89530 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
89531
89532         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
89533         implementation of getopt_long.  Problem reported by Alexander Taler in:
89534         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
89535
89536 2004-10-15  Bruno Haible  <bruno@clisp.org>
89537
89538         * gnulib-tool: Untabify. Initialize supplied_libname.
89539         (func_usage): More homogenous output.
89540         (func_modules_transitive_closure, func_modules_to_filelist,
89541         func_emit_lib_Makefile_am): New functions.
89542         (func_import): New function, extracted from big case statement. Use
89543         func_get_license, func_modules_transitive_closure,
89544         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
89545         opt_lgpl. Don't use test -a, as it's not portable.
89546         (func_create_testdir): Use func_modules_transitive_closure,
89547         func_modules_to_filelist, func_emit_lib_Makefile_am.
89548
89549 2004-10-15  Bruno Haible  <bruno@clisp.org>
89550
89551         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
89552
89553 2004-10-15  Bruno Haible  <bruno@clisp.org>
89554
89555         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
89556         the portions belonging to each module.
89557         Suggested by Derek Robert Price <derek@ximbiot.com>.
89558
89559 2004-10-12  Simon Josefsson  <jas@extundo.com>
89560
89561         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
89562         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
89563         to real functions.
89564
89565 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89566
89567         * modules/vsnprintf: New file.
89568
89569 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89570
89571         * m4/vsnprintf.m4: New file.
89572
89573 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89574
89575         * lib/vsnprintf.h: New file.
89576         * lib/vsnprintf.c: New file.
89577
89578 2004-10-11  Bruno Haible  <bruno@clisp.org>
89579
89580         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
89581         vsnprintf.
89582
89583 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
89584
89585         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
89586
89587 2004-10-07  Bruno Haible  <bruno@clisp.org>
89588
89589         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
89590         fits into the provided buffer.
89591
89592 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
89593
89594         * lib/diacrit.c, diacrit.h: Add GPL notice.
89595
89596         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
89597         notice.
89598         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
89599         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
89600         This avoids a potential constant-folding bug.
89601
89602 2004-10-05  Bruno Haible  <bruno@clisp.org>
89603
89604         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
89605         for the declaration of strsep.
89606
89607 2004-10-05  Bruno Haible  <bruno@clisp.org>
89608
89609         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
89610
89611 2004-10-04  Simon Josefsson  <jas@extundo.com>
89612
89613         * modules/memmem: New file.
89614         * tests/test-memmem.c: New file.
89615         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
89616
89617 2004-10-04  Simon Josefsson  <jas@extundo.com>
89618
89619         * m4/memmem.m4: New file.
89620
89621 2004-10-04  Simon Josefsson  <jas@extundo.com>
89622
89623         * lib/memmem.h: New file.
89624         * lib/memmem.c: New file, taken from glibc.
89625
89626 2004-10-04  Simon Josefsson  <jas@extundo.com>
89627
89628         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
89629         '#ifdef USE_UNLOCKED_IO'.
89630
89631 2004-10-04  Simon Josefsson  <jas@extundo.com>
89632
89633         * config/srclist.txt: Add memmem from glibc.
89634
89635 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89636
89637         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
89638
89639         * modules/argmatch, modules/argp, modules/closeout, modules/error,
89640         modules/exclude, modules/getdate, modules/getline,
89641         modules/getndelim2, modules/getpass, modules/getpass-gnu,
89642         modules/getusershell, modules/linebuffer, modules/md5,
89643         modules/mountlist, modules/posixtm, modules/readtokens,
89644         modules/readutmp, modules/regex, modules/sha1,
89645         modules/version-etc, modules/yesno:
89646         Remove dependency on unlocked-io.
89647
89648 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89649
89650         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
89651
89652         * m4/unlocked-io.m4: Add copyright notice.
89653         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
89654
89655 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89656
89657         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
89658         * lib/xmalloc.c (xmemdup): Likewise.
89659         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
89660         XFREE): Remove these long-obsolescent macros.
89661         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
89662         * lib/xstrdup.c: Remove.
89663
89664         * lib/regex.c (re_comp): Cast gettext return value to char *,
89665         Problem reported by Martin Neitzel via Mark D. Baushke.
89666
89667 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
89668
89669         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
89670         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
89671         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
89672         regex.c, sha1.c, version-etc.c, yesno.c:
89673         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
89674         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
89675         the includer's responsibility.
89676
89677         Sync from coreutils.
89678
89679         * lib/modechange.c (mode_compile): Don't decrement a pointer that
89680         points to the start of a string, as the C Standard says the
89681         resulting behavior is undefined.
89682
89683         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
89684         simple -> simple_backups, numbered_existing ->
89685         numbered_existing_backups, numbered -> numbered_backups
89686         to avoid shadowing problems.  All uses changed.
89687         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
89688         * lib/backupfile.c (check_extension, numbered_backup):
89689         Rename locals to avoid shadowing 'basename'.
89690         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
89691         once.
89692
89693         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
89694         * lib/.cvsignore: Add getopt.h.
89695
89696 2004-10-04  Bruno Haible  <bruno@clisp.org>
89697
89698         * modules/README: New file.
89699         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
89700         not a module.
89701
89702 2004-10-02  Jim Meyering  <jim@meyering.net>
89703
89704         * lib/dirfd.h, getpagesize.h: Add copyright notice.
89705
89706 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89707
89708         * modules/strsep: New file.
89709
89710 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89711
89712         * m4/strsep.m4: New file.
89713
89714 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89715
89716         * lib/strsep.h: New file.
89717         * lib/strsep.c: New file.
89718
89719 2004-10-01  Simon Josefsson  <jas@extundo.com>
89720
89721         * lib/snprintf.c (snprintf): Handle size==0.
89722
89723 2004-10-01  Simon Josefsson  <jas@extundo.com>
89724             Bruno Haible  <bruno@clisp.org>
89725
89726         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
89727         (snprintf): Declare 'args'.
89728
89729 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * lib/snprintf.c: Remove comments as to why each header is needed.
89732
89733 2004-10-01  Bruno Haible  <bruno@clisp.org>
89734
89735         * MODULES.html.sh: Add strsep.
89736
89737 2004-09-30  Simon Josefsson  <jas@extundo.com>
89738
89739         * modules/snprintf: New file.
89740
89741 2004-09-30  Simon Josefsson  <jas@extundo.com>
89742
89743         * m4/snprintf.m4: New file.
89744
89745 2004-09-30  Simon Josefsson  <jas@extundo.com>
89746
89747         * lib/snprintf.h, lib/snprintf.c: New files.
89748
89749 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89750
89751         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
89752         (hol_entry_help): Never translate an empty string.
89753         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
89754         * lib/argp.h (OPTION_NO_TRANS): New option.
89755
89756 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89757
89758         * modules/argp (Maintainer): Replace Simon Josefsson
89759         by Sergey Poznyakoff.
89760
89761 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89762
89763         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
89764         changes merged back into glibc.
89765
89766 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
89767
89768         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
89769
89770 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
89771
89772         * lib/xvasprintf.c: Include xalloc.h.
89773         (xvasprintf): Use xalloc_die, not xmalloc_die.
89774
89775 2004-09-29  Bruno Haible  <bruno@clisp.org>
89776
89777         * modules/alloca-opt: New file, derived from modules/alloca.
89778         * modules/allocsa: Depend on alloca-opt instead of alloca.
89779         * modules/setenv: Likewise.
89780         * modules/vasnprintf: Likewise.
89781         * MODULES.html.sh: Add alloca-opt.
89782
89783 2004-09-28  Simon Josefsson  <jas@extundo.com>
89784
89785         * gnulib-tool: New parameter --lgpl, to asseert that modules are
89786         LGPL, and to replace license template from GPL to LGPL.
89787
89788 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89789
89790         * modules/dummy: Change license to LGPL.
89791
89792 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
89793
89794         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
89795
89796 2004-09-24  Simon Josefsson  <jas@extundo.com>
89797
89798         * modules/minmax (License): Change from GPL to LGPL.
89799
89800 2004-09-23  Simon Josefsson  <jas@extundo.com>
89801
89802         * gnulib-tool (--import): Typo.
89803
89804 2004-09-23  Simon Josefsson  <jas@extundo.com>
89805
89806         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
89807
89808 2004-09-22  Bruno Haible  <bruno@clisp.org>
89809
89810         * modules/*: Add 'License' field.
89811         * gnulib-tool: Accept --extract-license option.
89812         (func_get_license): New function.
89813
89814 2004-09-21  Bruno Haible  <bruno@clisp.org>
89815
89816         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
89817         Reported by Simon Josefsson.
89818
89819 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89820
89821         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
89822         gl_AC_TYPE_LONG_LONG.
89823
89824 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
89825
89826         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
89827
89828 2004-09-18  Simon Josefsson  <jas@extundo.com>
89829         and  Paul Eggert  <eggert@cs.ucla.edu>
89830
89831         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89832         calls with autoreconf.  Define GL_LIB.
89833
89834 2004-09-14  Karl Berry  <karl@gnu.org>
89835
89836         * config/srclist.txt: unsync setenv.c, sigh.
89837
89838 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89839
89840         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89841         Problem reported by Bruno Haible in:
89842         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89843
89844 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89845
89846         * config/srclist.txt: Comment out argp-pvh.c.
89847
89848 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89849
89850         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89851         in case some system header has #define'd it.  Problem reported by
89852         Soeren D. Schulze in
89853         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89854
89855 2004-09-09  Karl Berry  <karl@gnu.org>
89856
89857         * regex.[ch]: delete from the root.  These were supposed to be
89858                 synced with emacs cvs, but this has not happened for about
89859                 a year, and anyway nothing else uses emacs regex.[ch].
89860                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89861                 lib/regex[.ch] is untouched.
89862
89863 2004-09-09  Bruno Haible  <bruno@clisp.org>
89864
89865         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89866
89867 2004-09-09  Bruno Haible  <bruno@clisp.org>
89868
89869         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89870         modifications.
89871         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89872
89873 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89874
89875         * modules/xvasprintf: New file.
89876         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89877
89878 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89879
89880         * lib/xvasprintf.h: New file.
89881         * lib/xvasprintf.c: New file.
89882         * lib/xasprintf.c: New file.
89883
89884 2004-09-08  Bruno Haible  <bruno@clisp.org>
89885
89886         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89887
89888 2004-09-08  Bruno Haible  <bruno@clisp.org>
89889
89890         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89891         length is > INT_MAX.
89892         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89893         more.
89894
89895 2004-09-08  Bruno Haible  <bruno@clisp.org>
89896
89897         * lib/stdint_.h: New file, taken from GNU clisp.
89898
89899 2004-09-08  Bruno Haible  <bruno@clisp.org>
89900             Oskar Liljeblad  <oskar@osk.mine.nu>
89901
89902         * modules/stdint: New file.
89903         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89904
89905 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89906
89907         Import from coreutils.
89908         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89909         strings on unbounded length.  alloca's performance benefits aren't
89910         that important here.
89911         (V_STRDUP): Remove.
89912         (parse_with_separator): New function, with most of the internals
89913         of the old parse_user_spec.  Allow user to omit both user and group,
89914         for compatibility with FreeBSD.
89915         Clone only the user name, not the entire spec.
89916         Do not set *uid, *gid unless entirely successful.
89917         Avoid memory leak in some failing cases.
89918         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89919         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89920         (parse_user_spec): Rewrite to use parse_with_separator.
89921
89922 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89923
89924         * modules/userspec: Don't depend on alloca.
89925
89926 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89927
89928         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89929
89930 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89931
89932         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89933         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89934         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89935
89936 2004-08-16  Simon Josefsson  <jas@extundo.com>
89937
89938         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89939         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89940         Add --dry-run for --import.
89941         Let user provided command line parameters override configure.ac
89942         settings.
89943
89944 2004-08-12  Simon Josefsson  <jas@extundo.com>
89945
89946         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89947         as discussed with Paul Eggert in threads rooted at
89948         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89949         and
89950         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89951         Before, the test was empty, and relied on ELIDE_CODE in source
89952         code.)
89953         (gl_PREREQ_GETOPT): New macro.
89954         (gl_GETOPT): Use them.
89955
89956 2004-08-12  Simon Josefsson  <jas@extundo.com>
89957
89958         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89959         * lib/getopt_.h: Renamed from getopt.h.
89960
89961 2004-08-12  Simon Josefsson  <jas@extundo.com>
89962
89963         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89964         Change default library name from libfoo to libgnu.
89965         Now, if you have a configure.ac that says:
89966                 gl_SOURCE_BASE(gl)
89967                 gl_M4_BASE(gl/m4)
89968                 gl_MODULES(error getopt etcetera)
89969                 gl_INIT
89970         you can import all you need by running:
89971                 ../gnulib/gnulib-tool --import
89972
89973         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89974         (Makefile.am): Rewrite, use logic from argz.
89975         (Include): Use <getopt.h> instead of "getopt.h".
89976
89977 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89978
89979         * modules/argp (Files): Add m4/unlocked-io.m4.
89980         (Depends-on): Add extensions.
89981
89982 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89983
89984         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89985         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89986         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89987         Check for program_invocation_name, program_invocation_short_name,
89988         flockfile, funlockfile, features.h, _getopt_long_only_r.
89989
89990 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89991
89992         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89993         its complicated substitute.
89994         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89995         and program_invocation_name.
89996         (__argp_basename) [!_LIBC]: Remove; the only use was
89997         replaced by its body.
89998         (__argp_short_program_name): Change condition from
89999         !defined __argp_short_program_name to
90000         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90001         to match argp-namefrob.h.
90002         (__argp_failure): Don't assume strerror_r returns char *.
90003         * lib/argp-parse.c (N_): Define unconditionally.
90004         (argp_default_options): Fill out initializers with 0 to avoid
90005         gcc warnings.
90006
90007 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90008
90009         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90010         getopt1.c.
90011
90012 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90013
90014         Merge from coreutils.
90015
90016         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90017
90018         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90019         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90020
90021 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90022
90023         Merge from coreutils.
90024
90025         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90026         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90027         for Reliant Unix 5.43.
90028
90029         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90030         (union fooround): Use uintmax_t, not long int.
90031         The rest is a merge from libc:
90032         [defined _LIBC]: Include <shlib-compat.h>.
90033         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90034
90035         * lib/settime.c (settime): Recode to avoid warning with
90036         Sun Forte C 6U2.
90037
90038         * lib/strverscmp.c: Convert to UTF-8.
90039
90040 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90041
90042         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90043         m4/uintmax_t.m4.
90044
90045 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90046
90047         * modules/xalloc-die: New file.
90048         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90049
90050         * modules/md5 (Files): Add m4/uint32_t.m4.
90051         * modules/sha1: Renamed from modules/sha.
90052         (Files):
90053         Rename lib/sha.h to lib/sha1.h.
90054         Rename lib/sha.c to lib/sha1.c.
90055         Rename m4/sha.m4 to m4/sha1.m4.
90056         (lib_SOURCES): Likewise.
90057         (configure.ac): Rename gl_SHA to gl_SHA1.
90058         (Include): sha.h -> sha1.h.
90059
90060 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90061
90062         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
90063         * m4/sha1.m4: Renamed from sha.m4.
90064         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
90065
90066 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90067
90068         * lib/obstack.h (obstack_empty_p):
90069         Don't assume that chunk->contents is suitably aligned.
90070         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
90071         Likewise. Problem reported by Benno in
90072         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
90073
90074         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
90075         readable.  This could be improved further but it'd take some work.
90076
90077 2004-08-08  Simon Josefsson  <jas@extundo.com>
90078
90079         * modules/xgethostname (Depends-on): Remove exit and error (not
90080         used).
90081
90082         * modules/getpass-gnu: Add getpass.h.
90083         (Depends-on): Add stdbool.
90084         * modules/getpass: Add getpass.h.
90085
90086 2004-08-08  Simon Josefsson  <jas@extundo.com>
90087
90088         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
90089         Check getpass declaration.
90090
90091 2004-08-08  Simon Josefsson  <jas@extundo.com>
90092
90093         * lib/xgethostname.c: Don't include error.h (not used).
90094
90095         * lib/getpass.h: Add.
90096         * lib/getpass.c: Include getpass.h first.
90097
90098 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
90099
90100         * lib/xalloc-die.c: New file.
90101         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
90102         All uses removed.
90103         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
90104         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
90105         xalloc-die.c.
90106         (_, N_, xalloc_die): Move to xalloc-die.c.
90107         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
90108         so that we needn't mess with xalloc_msg_memory_exhausted.
90109
90110         * lib/sha1.h: Renamed from sha.h.
90111         (SHA1_H): Renamed from _SHA_H.
90112         (sha1_ctx): Renamed from sha_ctx.
90113         (sha1_init_ctx): Renamed from sha_init_ctx.
90114         (sha1_process_block): Renamed from sha_process_block.
90115         (sha1_process_bytes): Renamed from sha_process_bytes.
90116         (sha1_finish_ctx): Renamed from sha_finish_ctx.
90117         (sha1_read_ctx): Renamed from sha_read_ctx.
90118         (sha1_stream): Renamed from sha_stream.
90119         (sha1_buffer): Renamed from sha_buffer.
90120         * lib/sha1.c: Likewise; renamed from sha.c.
90121         Do not include <sys/types.h>.
90122         Include <stddef.h> rather than <stdlib.h>.
90123
90124 2004-08-08  Bruno Haible  <bruno@clisp.org>
90125
90126         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
90127         FILESYSTEM_PREFIX_LEN.
90128         * lib/progreloc.c: Likewise.
90129         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
90130
90131 2004-08-06  Simon Josefsson  <jas@extundo.com>
90132
90133         * modules/progname (Depends-on): Don't depend on stdbool.
90134
90135 2004-08-06  Simon Josefsson  <jas@extundo.com>
90136
90137         * modules/getsubopt: New file.
90138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90139         getsubopt.
90140
90141 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90142
90143         More merge from coreutils.
90144
90145         * m4/utimens.m4, m4/utimecmp.m4: New files.
90146         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
90147         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
90148         prereq.m4, sha.m4: Import changes from coreutils.
90149
90150 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90151
90152         More merge from coreutils.
90153         * modules/raise, modules/readtokens0, modules/utimens:
90154         * modules/utimecmp, module/xnanosleep: New files.
90155         * modules/strftime: Add lib/strftime.h.
90156         Change include from <time.h> to "strftime.h".
90157         * modules/yesno: Add lib/yesno.h.
90158         * modules/backupfile: Remove lib/addext.c.
90159         * modules/euidaccess: Add stat-macros.h.
90160         * modules/canonicalize, modules/euidaccess,
90161         modules/filemode, modules/lchown, modules/makepath,
90162         modules/rmdir, modules/stat: Likewise.
90163
90164 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
90165
90166         Merge from tar.
90167         * lib/argp-help.c (make_hol, hol_append): Don't assume that
90168         SIZE_MAX is a valid preprocessor constant.
90169         (__argp_basename): Change from "#ifndef _LIBC"
90170         to "#ifndef __argp_short_program_name", so that
90171         we don't compile these functions for tar.
90172
90173         More merges from coreutils.
90174         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
90175         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
90176         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
90177         * lib/addext.c: Remove; no longer needed.
90178         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
90179         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
90180         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
90181         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
90182         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
90183         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
90184         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
90185         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
90186         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
90187         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
90188         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
90189         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
90190         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
90191         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
90192         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
90193         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
90194         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
90195         Import changes from coreutils.
90196
90197 2004-08-05  Simon Josefsson  <jas@extundo.com>
90198
90199         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
90200
90201 2004-08-05  Simon Josefsson  <jas@extundo.com>
90202
90203         * m4/getsubopt.m4: New file.
90204
90205 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90206
90207         Merge from coreutils.
90208
90209         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
90210         * m4/getcwd-path-max.m4: New files.
90211
90212         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
90213         FILESYSTEM_PREFIX_LEN ->
90214         FILE_SYSTEM_PREFIX_LEN.
90215         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
90216         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
90217         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
90218         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
90219
90220         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
90221         prerequisite modules now handle the DOS stuff.
90222         Don't check for unistd.h.
90223
90224 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90225
90226         Merge from coreutils.
90227
90228         * lib/.gdb-history: Remove; this doesn't belong here.
90229
90230         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
90231         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
90232         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
90233         * lib/getcwd.c: New files.
90234
90235         * lib/dirname.h: Include <stdbool.h>.
90236         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
90237         for consistency with POSIX terminology.  All uses changed.
90238         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
90239         (strip_trailing_slashes): Use bool for booleans.
90240         * lib/stripslash.c (strip_trailing_slashes): Likewise.
90241
90242         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
90243         sometimes returns a positive errno value even when it succeeds.
90244         (print_errno_message) [!LIBC]: Fall back on strerror if
90245         __strerror_r fails.
90246
90247         * lib/path-concat.c (mempcpy): Don't define if a system header defines
90248         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
90249         (longest_relative_suffix): New function.
90250         (path_concat): Use it.  Assume first argument is not NULL.
90251         Port to DOS.  Omit redundant separators.
90252         Report an error instead of returning NULL.
90253         Use mempcpy instead of memcpy.
90254         (xpath_concat): Remove: not declared or used.
90255
90256         * lib/same.h: Include <stdbool.h>
90257         (same_name): Return bool, not int.
90258         * lib/same.c (same_name): Likewise.
90259         (errno): Don't declare; we assume C89 or better now.
90260
90261         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
90262         if not already defined.
90263
90264         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
90265         * lib/dup-safer.c (errno): Likewise.
90266
90267 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
90268
90269         Merge from coreutils.
90270         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
90271         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
90272         * modules/path-concat: Don't depend on strdup.
90273
90274 2004-08-03  Simon Josefsson  <jas@extundo.com>
90275
90276         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
90277         * lib/progname.h: Don't include stdbool.h.
90278
90279 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90280
90281         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
90282         * MODULES.html.sh (func_all_modules): Remove fatal.
90283
90284 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90285
90286         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
90287
90288 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
90289
90290         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
90291         working.
90292
90293 2004-08-02  Simon Josefsson  <jas@extundo.com>
90294
90295         * lib/getsubopt.h: New file, with comments from Bruno Haible.
90296         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
90297         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
90298
90299 2004-08-01  Simon Josefsson  <jas@extundo.com>
90300
90301         * lib/xgetdomainname.c: Include stdlib.h, for free().
90302
90303 2004-07-19  Bruno Haible  <bruno@clisp.org>
90304
90305         * MODULES.html.sh (func_all_modules): Add dummy.
90306
90307 2004-07-16  Simon Josefsson  <jas@extundo.com>
90308
90309         * modules/dummy: New file.
90310
90311 2004-07-16  Simon Josefsson  <jas@extundo.com>
90312
90313         * lib/dummy.c: New file.
90314
90315 2004-07-16  Bruno Haible  <bruno@clisp.org>
90316
90317         * lib/backupfile.h: Add extern "C" for C++.
90318         * lib/closeout.h: Likewise.
90319         * lib/copy-file.h: Likewise.
90320         * lib/findprog.h: Likewise.
90321         * lib/full-write.h: Likewise.
90322         * lib/pathname.h: Likewise.
90323         * lib/progname.h: Likewise.
90324         * lib/stpcpy.h: Likewise.
90325         * lib/stpncpy.h: Likewise.
90326         * lib/strcase.h: Likewise.
90327         * lib/strstr.h: Likewise.
90328         * lib/xalloc.h: Likewise.
90329
90330         * lib/mbswidth.h: Add extern "C" for C++.
90331         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
90332
90333 2004-07-13  Robert Millan  <robertmh@gnu.org>
90334
90335         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
90336
90337 2004-07-09  Simon Josefsson  <jas@extundo.com>
90338
90339         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
90340         failed without this.)
90341
90342 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90343
90344         * modules/chown (Files): Add lib/fchown-stub.c, since
90345         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
90346
90347 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
90348
90349         * lib/fchown-stub.c: New file.
90350
90351 2004-06-24  Jim Meyering  <jim@meyering.net>
90352
90353         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
90354
90355 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90356
90357         * modules/argz: Omit "#include".
90358
90359         * MODULES.html.sh (func_all_modules): Add calloc, to match
90360         2004-06-01 addition of calloc module.
90361
90362 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90363
90364         * m4/argz.m4: New file, which is autoupdated from libtool.
90365
90366 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90367
90368         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
90369         libtool.
90370
90371 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
90372
90373         * config/srclist-update: Don't insist on "USA." before the
90374         close-comment, as libtool omits the period and puts the */ on a
90375         separate line.
90376         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
90377         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
90378
90379 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
90380
90381         * modules/argz: New file.
90382         * MODULES.html.sh (func_all_modules): Add argz.
90383
90384 2004-06-12  Jim Meyering  <jim@meyering.net>
90385         and  Paul Eggert  <eggert@cs.ucla.edu>
90386
90387         * modules/hash (Files): Add lib/xalloc.h.
90388         * modules/pipe (Depends-on): Add wait-process.
90389         * modules/stat (Depends-on): Add xalloc.
90390         * modules/userspec (Files): Add lib/userspec.h.
90391         * modules/xstrto
90392
90393         Upgrade from gettext-0.13.
90394         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
90395         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
90396         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
90397
90398 2004-06-10  Jim Meyering  <jim@meyering.net>
90399
90400         * lib/calloc.c: New file.
90401
90402 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
90403
90404         * lib/getdate.y (yylex): Allow space between sign and number.
90405         Problem reported by Dan Jacobson.
90406
90407 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90408
90409         Merge from coreutils CVS.
90410
90411         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
90412         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
90413         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
90414         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
90415         xstrtol.m4: Fix copyright date and/or serial number.
90416
90417         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
90418         See if we need an fchown replacement.
90419         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
90420         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
90421         and use the replacement function if we detect either defect.
90422
90423         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
90424         gl_UTIMECMP.
90425
90426 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
90427         and  Jim Meyering  <jim@meyering.net>
90428
90429         Merge from coreutils CVS.
90430
90431         * lib/stat-macros.h: New file, with contents from file-type.h
90432         and coreutils' system.h.
90433         * lib/file-type.c: Include "stat-macros.h".
90434         * lib/file-type.h (file_type): Move all macro definitions to new file,
90435         stat-macros.h.
90436
90437         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
90438         Wrap old code with this conditional.
90439         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
90440         function that does not dereference symlinks.
90441         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
90442
90443         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
90444         dependency problems.
90445         (xreadlink): Accept new arg SIZE, for efficiency.
90446         All decls and uses changed.
90447         * lib/xreadlink.h: Include <stddef.h>, for size_t.
90448
90449         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
90450         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
90451
90452         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
90453         sysexits.h.
90454
90455 2004-06-01  Jim Meyering  <jim@meyering.net>
90456
90457         * m4/calloc.m4: New file.
90458
90459 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
90460
90461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
90462         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
90463         Also, fix a typo in a diagnostic.
90464
90465 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90466
90467         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
90468         or AC_FUNC_REALLOC.
90469
90470 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
90471
90472         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
90473         macros to be defined.
90474         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
90475         the allocator returns NULL because the requested size is zero.
90476
90477 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
90478
90479         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
90480         var.  Add comment explaining why libc still defines it.  This
90481         merges the following patch from glibc:
90482         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
90483
90484 2004-05-20  Andreas Schwab  <schwab@suse.de>
90485
90486         * m4/free.m4: Replace free if it not known to work, not the other
90487         way round.
90488
90489 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
90490
90491         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
90492         present in glibc since revision 1.1 of this file.
90493         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
90494         obstack_alignment_mask, obstack_alloc, obstack_base,
90495         obstack_blank, obstack_blank_fast, obstack_chunk_size,
90496         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
90497         obstack_grow0, obstack_init, obstack_int_grow,
90498         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
90499         obstack_next_free, obstack_object_size, obstack_ptr_grow,
90500         obstack_ptr_grow_fast, obstack_room): Remove declarations of
90501         nonexistent functions.
90502
90503 2004-05-18  Karl Berry  <karl@gnu.org>
90504
90505         * config/srclist.txt: break link for vasnprintf.c.
90506
90507 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90508
90509         Port obstack to the AS/400, where pointers are 16 bytes wide and
90510         you cannot cast an integer to a valid pointer.  This patch is
90511         currently waiting to be integrated into glibc; see
90512         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
90513
90514         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
90515         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
90516         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
90517         (struct obstack): temp member is now a union of a pointer and
90518         an integer, instead of an integer.  All integer uses changed.
90519         This does not affect the physical layout of struct obstack,
90520         except on hosts (like the AS/400) where the size or alignment of
90521         void * is greater than that of ptrdiff_t.
90522         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
90523         __STDC__)]: Store temporary in pointer member of union, not
90524         integer member.
90525         * lib/obstack.c: Include <stddef.h>, for offsetof.
90526         (struct fooalign): Remove; it doesn't need a name.
90527         (union fooround): Change double to long double, and add void *.
90528         (DEFAULT_ALIGNMENT): Use offsetof to compute.
90529         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
90530         not a macro.  Hence the values are always int; so remove all
90531         casts-to-int in uses.
90532
90533 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
90534
90535         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
90536         we can get this patch merged into glibc.
90537
90538 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90539             Paul Eggert  <eggert@cs.ucla.edu>
90540
90541         * m4/argp: Depend on alloca.
90542
90543 2004-05-17  Derek R. Price  <derek@ximbiot.com>
90544             Paul Eggert  <eggert@cs.ucla.edu>
90545
90546         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
90547         freecoding.
90548
90549 2004-05-17  Bruno Haible  <bruno@clisp.org>
90550
90551         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
90552         precision that consists of a '.' followed by an empty digit string.
90553         Patch by Tor Lillqvist <tml@iki.fi>.
90554
90555 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90556
90557         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
90558         for backward compatibility with older code.  We need our own
90559         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
90560         it under some other name, and our alloca.h will define it.
90561
90562 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
90563             Derek Price  <derek@ximbiot.com>
90564
90565         * lib/alloca.c: Include <alloca.h>, to get our interface.
90566         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
90567         include <alloca.h> first.  Use C89 prototype for alloca; this
90568         requires including <stddef.h> for size_t.  Use extern "C" if C++.
90569         Use #elif for simplicity, since we can assume C89 now.
90570         Don't try to source the system alloca.h since it will not be found
90571         and to prevent recursively including its replacement.
90572         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
90573         * lib/regex.c: Likewise.
90574
90575 2004-05-16  Derek Price  <derek@ximbiot.com>
90576             Paul Eggert  <eggert@cs.ucla.edu>
90577
90578         getline cleanup.  This changes the getndelim2 API: both order of
90579         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
90580         no delimiter).
90581
90582         * lib/getline.c: Don't include stddef.h or stdio.h, since our
90583         interface does that.
90584         (getline): Always use getdelim, so that we don't have two
90585         copies of this code.
90586         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
90587         if available.
90588         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
90589         (GETNDELIM2_MAXIMUM): New macro.
90590         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
90591         instead of the old practice of delim2==0.  All callers changed.
90592         Return -1 on overflow, instead of returning junk.
90593         Do not set *linesize unless allocation succeeds.
90594         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
90595         that we include sys/types.h.
90596         * lib/getnline.h: Likewise.
90597         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
90598         (getndelim2): Reorder arguments.
90599         * lib/getnline.c (getnline, getndelim):
90600         Don't discard the NMAX argument.
90601         (getnline): Invoke getndelim, to avoid code duplication.
90602         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
90603         of (size_t) -1 by callers of the getnline family.
90604
90605 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90606
90607         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
90608         Check for gettimeofday.
90609         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
90610         Check for settimeofday, stime.
90611
90612 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
90613
90614         * lib/nanosleep.c (suspended): Change its type from int to
90615         sig_atomic_t volatile.
90616         (first_call): Make it private to rpl_nanosleep, and have it
90617         be zero initially as that's a bit faster.
90618         (my_usleep): Round up fractional times instead of truncating them,
90619         as this is the usual meaning for 'sleep'.
90620
90621         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
90622         doesn't work.
90623         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
90624         (ENOSYS): Define if not defined.
90625         (settime): Fall back on stime if it exists and settimeofday fails.
90626         But don't bother with fallbacks if a method fails with errno == EPERM.
90627
90628 2004-05-11  Jim Meyering  <jim@meyering.net>
90629
90630         Prior to this change, the save_cwd caller required read access to the
90631         current directory on most systems (ones with the fchdir function).
90632
90633         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
90634         fails, try write-only, and finally, resort to using xgetcwd.
90635
90636 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90637
90638         * lib/obstack.c, obstack.h: Import changes from libc.
90639
90640 2004-04-28  Bruno Haible  <bruno@clisp.org>
90641
90642         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
90643         also implicitly appends .exe to executables.
90644         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
90645         accepts Windows pathnames.
90646         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90647         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90648         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
90649         Treat Cygwin like Windows, since it now accepts Windows pathnames.
90650         Reported by Derek Robert Price <derek@ximbiot.com>.
90651
90652 2004-04-21  Karl Berry  <karl@gnu.org>
90653
90654         * config/srclist.txt (localcharset.c): break sync.
90655
90656 2004-04-20  Paul Eggert  <eggert@twinsun.com>
90657
90658         * m4/host-os.m4: Add a copyright notice.
90659
90660 2004-04-20  Jim Meyering  <jim@meyering.net>
90661
90662         Change UTILS_ to gl_ in AC_DEFINE'd names.
90663         Change utils_- and jm_-prefixed variables, too.
90664         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
90665         UTILS_FUNC_MKDIR_TRAILING_SLASH.
90666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
90667
90668         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
90669         Don't emit trailing blanks.
90670         Also rename jm_-prefixed variables to have gl_ prefix.
90671
90672         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
90673         Also rename jm_-prefixed variables to have gl_ prefix.
90674
90675         * m4/jm-macros.m4: Reflect the renamings.
90676         * m4/prereq.m4: Likewise.
90677
90678 2004-04-20  Jim Meyering  <jim@meyering.net>
90679
90680         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
90681         memory.
90682
90683 2004-04-20  Jim Meyering  <jim@meyering.net>
90684             Bruno Haible  <bruno@clisp.org>
90685
90686         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
90687         memory when realloc fails.
90688
90689 2004-04-19  Jim Meyering  <jim@meyering.net>
90690
90691         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
90692         now that readutmp.c may call `free (0)'.
90693
90694 2004-04-19  Bruno Haible  <bruno@clisp.org>
90695
90696         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
90697         * m4/inttypes_h.m4: Likewise.
90698         * m4/stdint_h.m4: Likewise.
90699         * m4/intmax_t.m4: Likewise.
90700         * m4/uintmax_t.m4: Likewise.
90701
90702 2004-04-18  Jim Meyering  <jim@meyering.net>
90703
90704         * m4/prereq.m4: Don't forbid jm_ prefix.
90705
90706         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
90707         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
90708         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
90709         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
90710         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
90711         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
90712         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
90713         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
90714         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
90715         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
90716         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
90717         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
90718         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
90719         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
90720         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
90721         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
90722         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
90723         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
90724         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
90725
90726 2004-04-18  Jim Meyering  <jim@meyering.net>
90727
90728         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
90729         failure, don't leak memory and do call END_UTMP_ENT.
90730
90731 2004-04-16  Jim Meyering  <jim@meyering.net>
90732
90733         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
90734         coreutils' stat program.
90735         (gl_PREREQ): Don't require jm_PREREQ_STAT.
90736
90737 2004-04-11  Paul Eggert  <eggert@twinsun.com>
90738
90739         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
90740         C89.
90741         (CHAR_BIT): Remove, since we assume C89.
90742         Include <stdint.h> if available, as per current Autoconf CVS advice.
90743
90744 2004-03-31  Jim Meyering  <jim@meyering.net>
90745
90746         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
90747         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
90748         * m4/xalloc.m4: Likewise.
90749
90750 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90751
90752         Merge from coreutils.
90753
90754         * m4/inttostr.m4: New file.
90755         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
90756         Require AM_STDBOOL_H and gl_TIMESPEC instead.
90757         Require gl_CLOCK_TIME.
90758         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
90759
90760 2004-03-30  Paul Eggert  <eggert@twinsun.com>
90761
90762         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
90763         not bool, to be more consistent with Unix conventions.
90764         Suggested by Bruno Haible.
90765
90766         Merge from coreutils.
90767
90768         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
90769         * lib/umaxtostr.c: New files.
90770
90771         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
90772         the usual <time.h> dance.
90773         (get_date): Change signature to support fractional time stamps.
90774         All callers changed.
90775         * lib/getdate.y: Include "getdate.h" first, as we can now
90776         assume C89 and don't need to worry about 'const'.
90777         Similarly, include "unlocked-io.h" near start, not in middle.
90778         Include <limits.h>.
90779         (textint.value): Use long int rather than int.
90780         (textint.digits): Use size_t rather than int.
90781         (BILLION, LOG10_BILLION): New constants.
90782         (parser_control): New member rel_ns.  Members day_ordinal,
90783         time_zone, month, day, hour, minutes, rel_year, rel_month,
90784         rel_day, rel_hour, rel_minutes, rel_seconds
90785         are now long int, not int.  Member seconds is now struct timespec,
90786         not int.  New member timespec_seen.  Members dates_seen, days_seen,
90787         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
90788         not int.
90789         (%union.intval): Now long int, not int.
90790         New member timespec.
90791         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
90792         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
90793         (spec): Now is a timespec or an item list.
90794         (timespec, items): New nonterminals.
90795         (time, rel, relunit, number, get_date):
90796         Add support for fractional seconds.
90797         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
90798         (gmtime, localtime, mktime): Remove decls; not needed with C89.
90799         (to_hour): First arg is now long int, not int.
90800         (to_year): Returns long int, not int.
90801         Don't treat year -70 like 70.
90802         (tm_diff): Returns long int, not int.
90803         (lookup_word): Use bool instead of int when appropriate.
90804         (yylex): Use size_t for count, not int.
90805         Detect overflow when parsing large integer constants.
90806         Add support for fractions.
90807         (get_date): Make pointers 'const' if possible.
90808         Use more-portable code to detect integer overflow.
90809         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
90810         Don't use ctime; it's not reliable if the year has >4 digits.
90811
90812         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
90813         This is for compatibility with BSD.
90814
90815         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
90816         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
90817         From coreutils' system.h.
90818
90819         * lib/userspec.c: Don't include "posixver.h".
90820         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
90821         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
90822         compatible extension.  Simplify code by removing a boolean int
90823         that was always nonzero if a string was nonnull.
90824
90825 2004-03-30  Jim Meyering  <jim@meyering.net>
90826
90827         Merge from coreutils.
90828
90829         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
90830         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
90831         on some systems one must include <grp.h> before it.
90832         Reported by Christian Krackowizer.
90833
90834 2004-03-30  Jim Meyering  <jim@meyering.net>
90835
90836         Merge from coreutils.
90837
90838         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90839
90840         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90841         an empty input stream.
90842
90843         * lib/readtokens.c: Include <stdbool.h>.
90844         (readtoken): Use `size_t' rather than int/long.
90845         All callers adjusted.
90846         Use `bool' rather than `int' where appropriate.
90847         Use memset rather than an explicit loop.
90848         Use x2nrealloc rather than xrealloc.
90849         Allow the use of `\0' as a delimiter.
90850         (readtokens): Likewise.
90851         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90852
90853 2004-03-30  Jim Meyering  <jim@meyering.net>
90854
90855         * m4/realloc.m4: Remove file, since now it does no more than
90856         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90857         the `configure.ac' section of module/realloc.
90858         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90859
90860 2004-03-30  Bruno Haible  <bruno@clisp.org>
90861
90862         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90863         nonnull.
90864
90865 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90866
90867         Merge changes to getloadavg.c from coreutils and Emacs.
90868
90869         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90870         Define to an expression, not to the empty string.
90871         Include cloexec.h and xalloc.h.
90872         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90873         Use set_cloexec_flag rather than rolling our own.
90874         * lib/cloexec.c, lib/cloexec.h: New files.
90875
90876 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90877
90878         * m4/cloexec.m4: New file.
90879
90880 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90881
90882         * lib/getopt.h: Sync with libc CVS.
90883
90884 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90885             Bruno Haible  <bruno@clisp.org>
90886
90887         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90888         mbswidth.
90889
90890 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90891             Bruno Haible  <bruno@clisp.org>
90892
90893         * lib/mbswidth.h: Include <wchar.h> only if
90894         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90895         <wchar.h>.
90896         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90897
90898 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90899
90900         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90901         Sync with libc CVS.
90902         * lib/getopt_int.h: New file, also synced from libc.
90903
90904 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90905
90906         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90907         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90908         Bring back getopt.c, getopt.h, getopt1.c.
90909
90910 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90911
90912         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90913         All uses changed.  Check for sa_sigaction member; this fixes
90914         a bug first reported by Jason Andrade in
90915         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90916
90917 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90918
90919         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90920         '#if' expressions.  Unlike the code it replaces, it does not
90921         depend on (defined _SC_PAGESIZE).  However, it does depend on
90922         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90923         first reported by Jason Andrade in
90924         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90925
90926 2004-02-25  Simon Josefsson  <jas@extundo.com>
90927
90928         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90929
90930 2004-02-25  Simon Josefsson  <jas@extundo.com>
90931
90932         * lib/strdup.h: New file.
90933         * lib/strdup.c: Include it.
90934         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90935         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90936
90937 2004-02-23  Karl Berry  <karl@gnu.org>
90938
90939         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90940         (from fencepost.gnu.org:/gd/gnuorg).
90941
90942 2004-02-23  Karl Berry  <karl@gnu.org>
90943
90944         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90945         * config/srclist.txt: add maintain/standards documents.
90946
90947 2004-02-18  Bruno Haible  <bruno@clisp.org>
90948
90949         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90950         Reported by Derek Robert Price <derek@ximbiot.com>.
90951
90952 2004-02-16  Karl Berry  <karl@gnu.org>
90953
90954         * config/mkinstalldirs, install-sh: update from automake.
90955
90956 2004-02-06  Karl Berry  <karl@gnu.org>
90957
90958         * m4/po.m4: update from gettext 0.14.1.
90959
90960 2004-02-06  Karl Berry  <karl@gnu.org>
90961
90962         * lib/config.charset: update from gettext 0.14.1.
90963
90964 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90965
90966         Add comments and code, prompted by suggestions from Bruno Haible
90967         for sh-quote.
90968         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90969         describing the enum quoting_style values.
90970         * lib/quotearg.c (quotearg_alloc): New function.
90971         (quotearg_buffer_restyled): Treat lone { and } as special.
90972         Treat = as special.  Work around bug with older shells
90973         that "see" a '\' that is really the 2nd byte of a multibyte char.
90974         Quote empty string with shell_quoting_style.
90975
90976 2004-02-03  Bruno Haible  <bruno@clisp.org>
90977
90978         * m4/pipe.m4: New file, from GNU gettext.
90979
90980 2004-02-03  Bruno Haible  <bruno@clisp.org>
90981
90982         * lib/pipe.h: New file, from GNU gettext.
90983         * lib/pipe.c: New file, from GNU gettext.
90984
90985 2004-01-27  Bruno Haible  <bruno@clisp.org>
90986
90987         * m4/execute.m4: New file, from GNU gettext.
90988
90989 2004-01-27  Bruno Haible  <bruno@clisp.org>
90990
90991         * lib/execute.h: New file, from GNU gettext.
90992         * lib/execute.c: New file, from GNU gettext.
90993         * lib/w32spawn.h: New file, from GNU gettext.
90994
90995 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90996
90997         Merge from diffutils.
90998
90999         * lib/file-type.c (file_type): Add typed memory objects.
91000         * lib/file-type.h (S_TYPEISTMO): New macro.
91001
91002         * lib/c-stack.h (c_stack_action): Remove argv argument.
91003         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91004         (die): Don't calculate message unless segv_action returns.
91005         (get_stack_location, min_address_from_argv, max_address_from_argv,
91006         volatile stack_base, volatile_stack_size): Remove.
91007         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91008         that every segmentation violation is a stack overflow.  (Ouch!)
91009         See Debian bug 136249 (still outstanding) for more info about why
91010         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91011
91012 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91013
91014         Exit-status fix from coreutils.
91015
91016         Use exit_failure consistently in place of EXIT_FAILURE,
91017         so that program exit statuses are consistent on failure.
91018
91019         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91020         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91021         * lib/argmatch.h: Comment fix to match the above.
91022         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91023         Now a macro referring to exit_failure, instead of a separate
91024         variable.  Include "exitfail.h" to get it.
91025         * lib/xstrtol.h: Include "exitfail.h".
91026         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91027
91028         * lib/long-options.c (parse_long_options): Use prototype
91029         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91030         for clarity.
91031
91032 2004-01-21  Jim Meyering  <jim@meyering.net>
91033
91034         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91035         so as not to conflict with a different-sized __mktime_internal
91036         function in GNU libc.
91037         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91038         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91039
91040 2004-01-20  Karl Berry  <karl@gnu.org>
91041
91042         * config/config.guess: update from config.
91043
91044         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91045
91046 2004-01-20  Bruno Haible  <bruno@clisp.org>
91047
91048         Safer stack allocation.
91049         * lib/setenv.c: Include allocsa.h.
91050         (alloca): Remove fallback definition.
91051         (freea): Remove macro.
91052         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91053         instead of freea.
91054
91055 2004-01-20  Bruno Haible  <bruno@clisp.org>
91056
91057         * m4/eealloc.m4: New file, from GNU gettext.
91058
91059 2004-01-20  Bruno Haible  <bruno@clisp.org>
91060
91061         * m4/allocsa.m4: New file, from GNU gettext.
91062
91063 2004-01-20  Bruno Haible  <bruno@clisp.org>
91064
91065         * lib/xallocsa.h: New file, from GNU gettext.
91066         * lib/xallocsa.c: New file, from GNU gettext.
91067
91068 2004-01-20  Bruno Haible  <bruno@clisp.org>
91069
91070         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
91071
91072 2004-01-20  Bruno Haible  <bruno@clisp.org>
91073
91074         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
91075         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
91076         specially.
91077
91078 2004-01-20  Bruno Haible  <bruno@clisp.org>
91079
91080         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
91081         patch.
91082
91083 2004-01-20  Bruno Haible  <bruno@clisp.org>
91084
91085         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
91086
91087 2004-01-20  Bruno Haible  <bruno@clisp.org>
91088
91089         * lib/eealloc.h: New file.
91090
91091 2004-01-20  Bruno Haible  <bruno@clisp.org>
91092
91093         * lib/binary-io.h: Avoid warnings on Cygwin.
91094
91095 2004-01-20  Bruno Haible  <bruno@clisp.org>
91096
91097         * lib/allocsa.h: New file, from GNU gettext.
91098         * lib/allocsa.c: New file, from GNU gettext.
91099
91100 2004-01-18  Karl Berry  <karl@gnu.org>
91101
91102         * doc/gpl.texi, doc/lgpl.texi: new files.
91103
91104 2004-01-18  Karl Berry  <karl@gnu.org>
91105
91106         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
91107         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
91108
91109 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91110
91111         Merge from coreutils.
91112
91113         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
91114         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
91115         (gl_DEFAULT_POSIX2_VERSION): Move
91116         the documentation from 'configure' into 'config.hin',
91117         so that 'configure --help' isn't burdened by it and
91118         we don't have to worry about its formatting there.
91119         Reword the documentation so that it's more succinct
91120         and can be run together into a single paragraph.
91121         * m4/same.m4 (gl_SAME): Check for pathconf.
91122
91123 2004-01-15  Paul Eggert  <eggert@twinsun.com>
91124
91125         Merge from coreutils.
91126
91127         * lib/posixver.c: Include posixver.h.
91128
91129         * lib/same.c: Include <stdbool.h>, <limits.h>.
91130         (_POSIX_NAME_MAX): Define if not defined.
91131         (MIN): New macro.
91132         (same_name): If file names are silently truncated, report
91133         that the file names are the same if they are the same after
91134         the silent truncation.
91135
91136         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
91137         conversion function.
91138         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
91139         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
91140         longer needed.
91141
91142 2004-01-15  Jim Meyering  <jim@meyering.net>
91143
91144         Merge from coreutils.
91145
91146         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
91147         if no library is required.
91148         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
91149         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
91150         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
91151         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
91152         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
91153         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
91154         value, $ac_cv_search_crypt, if it's "none required".
91155         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
91156         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
91157         not gl_FUNC_GETLOADAVG.
91158         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
91159         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
91160
91161 2004-01-15  Jim Meyering  <jim@meyering.net>
91162
91163         Merge from coreutils.
91164
91165         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
91166         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
91167         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
91168
91169         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
91170         optional configure-time default.
91171
91172         * lib/version-etc.c (version_etc_copyright): Update copyright date.
91173
91174         * lib/xreadlink.c (xreadlink): Correct outdated comment.
91175
91176 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
91177
91178         Merge from coreutils.
91179
91180         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
91181         value, $ac_cv_search_nanosleep, if it's "none required".
91182
91183 2004-01-14  Paul Eggert  <eggert@twinsun.com>
91184
91185         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
91186         with like-named macro in fnmatch.c.
91187         (EXT): Use an internal constant instead.
91188
91189         Merge fnmatch patches from glibc.
91190         * lib/fnmatch.c (mbsinit): Remove define.
91191         Add libc_hidden_ver (__fnmatch, fnmatch).
91192         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
91193         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
91194
91195 2004-01-14  Karl Berry  <karl@gnu.org>
91196
91197         * config/install-sh: update from automake.
91198
91199 2004-01-13  Karl Berry  <karl@gnu.org>
91200
91201         * config/install-sh: update from automake.
91202
91203 2004-01-09  Karl Berry  <karl@gnu.org>
91204
91205         * config/install-sh: update from automake.
91206
91207 2004-01-05  Karl Berry  <karl@gnu.org>
91208
91209         * config/config.{sub,guess}: update from config.
91210
91211 2003-12-31  Karl Berry  <karl@gnu.org>
91212
91213         * config/depcomp: update from automake.
91214
91215 2003-12-14  Karl Berry  <karl@gnu.org>
91216
91217         * lib/config.charset: update from gettext-runtime.
91218
91219 2003-12-03  Paul Eggert  <eggert@twinsun.com>
91220
91221         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
91222         Bug reported by Alfred M. Szmidt.
91223
91224 2003-12-03  Bruno Haible  <bruno@clisp.org>
91225
91226         * m4/gettext.m4: Upgrade from gettext-0.13.
91227         * m4/po.m4: Upgrade from gettext-0.13.
91228         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
91229         * m4/intmax.m4: New file, from gettext-0.13.
91230         * m4/printf-posix.m4: New file, from gettext-0.13.
91231
91232 2003-11-29  Karl Berry  <karl@gnu.org>
91233
91234         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
91235
91236 2003-11-25  Paul Eggert  <eggert@twinsun.com>
91237             Bruno Haible  <bruno@clisp.org>
91238
91239         * lib/printf-parse.h: Don't include sys/types.h.
91240         (ARG_NONE): New macro.
91241         (char_directive): Change type of *arg_index fields to size_t.
91242         * lib/printf-parse.c: Don't include sys/types.h.
91243         (SSIZE_MAX): Remove macro.
91244         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
91245         Remove unnecessary overflow check.
91246         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
91247         fields.
91248
91249 2003-11-25  Bruno Haible  <bruno@clisp.org>
91250
91251         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
91252
91253 2003-11-25  Bruno Haible  <bruno@clisp.org>
91254
91255         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
91256         gt_TYPE_SSIZE_T.
91257
91258 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91259
91260         * modules/alloca: Remove dependency on xalloc.
91261
91262 2003-11-24  Paul Eggert  <eggert@twinsun.com>
91263
91264         * lib/alloca.c: Remove dependency on xalloc module.
91265         (xalloc_die): Remove.
91266         (memory_full) [!defined emacs]: New macro.
91267         [!defined emacs]: Don't include xalloc.h.
91268         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
91269         address arithmetic overflows.  Change datatypes a bit to avoid
91270         unnecessary casts.
91271
91272 2003-11-22  Jim Meyering  <jim@meyering.net>
91273
91274         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
91275         s/size/size_t/.
91276
91277 2003-11-21  Karl Berry  <karl@gnu.org>
91278
91279         * config/config.{sub,guess}: update from config.
91280
91281 2003-11-18  Karl Berry  <karl@gnu.org>
91282
91283         * config/config.{sub,guess}: update from config.
91284
91285         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
91286
91287 2003-11-17  Paul Eggert  <eggert@twinsun.com>
91288
91289         * README: Mention that S+T cannot overflow if S is the size of
91290         an existing object and T is sufficiently small.
91291
91292 2003-11-17  Jim Meyering  <jim@meyering.net>
91293
91294         On systems without utime and without a utimes function capable of
91295         dealing with a NULL struct utimbuf* argument, this utime replacement
91296         could -- in unusual circumstances -- leak a file descriptor.
91297         * lib/utime.c: Include <unistd.h> and <errno.h>.
91298         (utime_null): Be sure to close `fd' and to preserve errno.
91299         Reported by Geoff Collyer via Arnold Robbins.
91300
91301 2003-11-17  Bruno Haible  <bruno@clisp.org>
91302
91303         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
91304         (Depends-on): Add xsize.
91305
91306 2003-11-17  Bruno Haible  <bruno@clisp.org>
91307
91308         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
91309
91310 2003-11-17  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/vasnprintf.c (alloca): Remove fallback definition.
91313         (freea): Remove definition.
91314         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
91315         Reported by Paul Eggert.
91316
91317 2003-11-16  Paul Eggert  <eggert@twinsun.com>
91318             Bruno Haible  <bruno@clisp.org>
91319
91320         Protect against address arithmetic overflow.
91321         * lib/printf-args.h: Include stddef.h.
91322         (arguments): Change type of field 'count' to size_t.
91323         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
91324         'unsigned int' where appropriate.
91325         * lib/printf-parse.h: Include sys/types.h.
91326         (char_directive): Change type of *arg_index fields to ssize_t.
91327         (char_directives): Change type of fields 'count', max_*_length to
91328         size_t.
91329         * lib/printf-parse.c: Include sys/types.h and xsize.h.
91330         (SSIZE_MAX): Define fallback value.
91331         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
91332         instead of 'int' where appropriate. Check a_allocated, d_allocated
91333         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
91334         * lib/vasnprintf.c: Include xsize.h.
91335         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
91336         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
91337         overflow. Avoid wraparound when converting a width or precision from
91338         decimal to binary.
91339
91340 2003-11-16  Bruno Haible  <bruno@clisp.org>
91341
91342         Update from GNU gettext.
91343         * lib/printf-parse.c: Generalize to it can be compiled for wide
91344         strings.
91345         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
91346         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
91347         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
91348         SNPRINTF): New macros.
91349         Don't include <alloca.h> if the file is used inside libintl.
91350         (local_wcslen): New function, for Solaris 2.5.1.
91351         (VASNPRINTF): Use it instead of wcslen.
91352
91353 2003-11-16  Bruno Haible  <bruno@clisp.org>
91354
91355         * lib/xsize.h (xmax): New function.
91356         (xsum, xsum3, xsum4): Declare as "pure" functions.
91357
91358 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91359
91360         * modules/xalloc (Files): Undo latest change, since xalloc.h
91361         no longer needs SIZE_MAX or PTRDIFF_MAX.
91362
91363 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91364
91365         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
91366         gl_PTRDIFF_MAX.
91367
91368 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91369
91370         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
91371         "return", to pacify some unknown compiler.  Problem reported
91372         by Joerg Schilling.
91373
91374 2003-11-12  Paul Eggert  <eggert@twinsun.com>
91375
91376         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
91377         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
91378         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
91379         heuristic is just as accurate as far as we know, and it removes a
91380         dependency on size_max.m4 and ptrdiff_max.m4.
91381
91382 2003-11-11  Bruno Haible  <bruno@clisp.org>
91383
91384         * modules/xsize (Files): Add m4/size_max.m4.
91385         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
91386
91387 2003-11-11  Bruno Haible  <bruno@clisp.org>
91388
91389         * m4/size_max.m4: New file.
91390         * m4/ptrdiff_max.m4: New file.
91391         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
91392         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
91393         (gl_XALLOC): Invoke it.
91394
91395 2003-11-11  Bruno Haible  <bruno@clisp.org>
91396
91397         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
91398         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
91399         defined.
91400
91401 2003-11-10  Paul Eggert  <eggert@twinsun.com>
91402
91403         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
91404         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
91405         rejected some allocations of exactly SIZE_MAX - 2 bytes.
91406         From Bruno Haible.
91407         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
91408         not (size_t) -1, since it's defined here.
91409
91410 2003-11-09  Karl Berry  <karl@gnu.org>
91411
91412         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
91413
91414 2003-11-06  Paul Eggert  <eggert@twinsun.com>
91415
91416         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
91417         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
91418         Reject sizes of exactly SIZE_MAX bytes.
91419         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
91420         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
91421
91422 2003-11-05  Bruno Haible  <bruno@clisp.org>
91423
91424         * lib/xsize.h: Include limits.h, to avoid a possible collision with
91425         SIZE_MAX defined in <limits.h> on Solaris.
91426
91427 2003-11-04  Jim Meyering  <jim@meyering.net>
91428
91429         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
91430         variable names, rather than @VAR@.
91431         * modules/poll: Likewise.
91432
91433 2003-11-04  Bruno Haible  <bruno@clisp.org>
91434
91435         * modules/xsize: New file.
91436         * modules/linebreak: Depend on xsize.
91437         * MODULES.html.sh (func_all_modules): Add xsize.
91438
91439 2003-11-04  Bruno Haible  <bruno@clisp.org>
91440
91441         * m4/xsize.m4: New file.
91442
91443 2003-11-04  Bruno Haible  <bruno@clisp.org>
91444
91445         * lib/xsize.h: New file.
91446         * lib/linebreak.c: Include xsize.h.
91447         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
91448         argument for overflow.
91449         Suggested by Paul Eggert.
91450
91451 2003-11-03  Karl Berry  <karl@gnu.org>
91452
91453         * config/config.{guess,sub}: update from config.
91454
91455 2003-11-03  Jim Meyering  <jim@meyering.net>
91456
91457         * modules/userspec (lib_SOURCES): Add userspec.h.
91458         (Include): Add "userspec.h".
91459         Improve description.
91460
91461 2003-11-03  Jim Meyering  <jim@meyering.net>
91462
91463         * lib/userspec.c: Include "userspec.h".
91464         * lib/userspec.h: New file.
91465
91466 2003-11-03  Bruno Haible  <bruno@clisp.org>
91467
91468         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
91469
91470 2003-11-03  Bruno Haible  <bruno@clisp.org>
91471
91472         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
91473         available, to avoid (extremely rare) race condition.
91474         Suggested by Paul Eggert.
91475
91476 2003-11-02  Karl Berry  <karl@gnu.org>
91477
91478         * config/srclist.txt (vasprintf.c): sync broken, sigh.
91479
91480 2003-10-31  Paul Eggert  <eggert@twinsun.com>
91481
91482         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
91483         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
91484         (read_filesystem_list): Set and use me_type_malloced.
91485         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
91486         whatever the type happens to be), for brevity and consistency.
91487         Check for size calculation overflow on Alphas running OSF/1.
91488
91489 2003-10-31  Jim Meyering  <jim@meyering.net>
91490
91491         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
91492
91493         * lib/linebuffer.c: Include <string.h> for declaration of memset.
91494
91495 2003-10-30  Paul Eggert  <eggert@twinsun.com>
91496             Bruno Haible  <bruno@clisp.org>
91497
91498         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
91499         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
91500
91501 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
91502
91503         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
91504         netbsd*-gnu*.  Suggested by Robert Millan.
91505
91506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91507
91508         * modules/group-member: Depend on stdbool.
91509
91510 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91511
91512         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
91513
91514 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91515
91516         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
91517         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
91518         after the 'gnu' in these cases.  This fixes some bugs in the
91519         previous change, and is based on suggestions by Robert Millan.
91520
91521 2003-10-29  Paul Eggert  <eggert@twinsun.com>
91522
91523         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
91524         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
91525         no longer needed.
91526         * lib/quotearg.c (quotearg_n_options): Use it.
91527         * lib/group-member.c: Include <stdbool.h>.
91528         (free_group_info): Arg is now const *; don't free arg.
91529         (get_group_info): Now returns bool and accepts struct group_info *,
91530         rather than returning a malloc'ed struct group_info *.
91531         All uses changed.  Check for overflow in internal size calculation.
91532
91533         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
91534         rather than xmalloc/xrealloc.
91535         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
91536         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
91537         conformance bug: the old code used a pointer after freeing the
91538         storage that it addressed.
91539         * lib/hash.c (hash_initialize): Simplify the code by using
91540         xalloc_oversized rather than doing it by hand.
91541         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
91542         the buffer preserved.  Use free and xmalloc instead.
91543         * lib/quotearg.c (quotearg_n_options): Likewise.
91544         Use a simpler test for size overflow.  Don't use xalloc_oversized
91545         because unsigned int might be wider than size_t (!); this suggests
91546         that we should switch from unsigned int to size_t for slot numbers.
91547
91548 2003-10-28  Paul Eggert  <eggert@twinsun.com>
91549
91550         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
91551         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
91552         NetBSD kernels.  Requested by Richard Stallman.
91553
91554 2003-10-27  Paul Eggert  <eggert@twinsun.com>
91555
91556         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
91557         to allocate the returned structure.  Do not allocate a subarray,
91558         as x2nrealloc will do that.
91559         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
91560         instead of xnrealloc.
91561         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
91562
91563 2003-10-27  Bruno Haible  <bruno@clisp.org>
91564
91565         * lib/stdbool_.h: Better support for BeOS.
91566
91567 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91568
91569         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
91570         now uses inline.
91571
91572 2003-10-26  Paul Eggert  <eggert@twinsun.com>
91573
91574         * lib/xalloc.h (xalloc_oversized): New static inline function, for
91575         callers that want to do their own size-overflow checking.  Include
91576         <stdbool.h>, since xalloc_oversized returns bool.
91577         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
91578         to use xalloc_oversized.
91579
91580         Add two functions x2realloc, x2nrealloc, for programs that grow
91581         arrays dynamically by doubling their sizes.
91582         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
91583         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
91584         New functions.
91585
91586         Port to C99 semantics for 'inline' of external functions.
91587         Bug reported by Bruno Haible.
91588         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
91589         with the old contents of xnmalloc.
91590         (xnmalloc, xmalloc): Use it.
91591         (xnrealloc_inline): New static inline function,
91592         with the old contents of xnrealloc.
91593         (xnrealloc, xrealloc): Use it.
91594
91595         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
91596         that.
91597
91598 2003-10-26  Karl Berry  <karl@gnu.org>
91599
91600         * config/srclist.txt (COPYING.DOC): no longer available from
91601         /gd/gnuorg; don't know where the ultimate source is.
91602
91603 2003-10-25  Paul Eggert  <eggert@twinsun.com>
91604
91605         Fix several address-calculation bugs in the hash modules,
91606         plus some minor code cleanup.
91607
91608         * lib/hash.h: Include <stdbool.h>, for bool.
91609         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
91610         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
91611         hash_get_n_entries, hash_get_max_bucket_length,
91612         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
91613         hash_rehash): Use size_t rather than unsigned.
91614         * lib/hash.c (struct hash_table, hash_get_n_buckets,
91615         hash_get_n_buckets_used, hash_get_n_entries,
91616         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
91617         hash_get_entries, hash_do_for_each, hash_string, is_prime,
91618         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
91619         Likewise.
91620         (SIZE_MAX): Define if not defined.
91621         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
91622         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
91623         hash_print):
91624         Use const * when possible.
91625         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
91626         (check_tuning): Fix bug: if tuning parameters were very close to
91627         0 or 1, rounding errors could have caused subscript violations.
91628         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
91629         (hash_initialize): Add 'fail:' label
91630         to free table and return NULL, and use it to simplify code.
91631         Use calloc rather than clearing the storage ourself.
91632         (hash_initialize, hash_rehash): Check for arithmetic overflow in
91633         buffer size calculations.
91634         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
91635         Include <stddef.h>, for size_t.
91636         * lib/hash-pjw.c (hash_pjw): Likewise.
91637         Switch to method described by Bruno Haible.
91638         Include <limits.h>, for CHAR_BIT.
91639         (SIZE_BITS): New macro.
91640
91641 2003-10-23  Paul Eggert  <eggert@twinsun.com>
91642
91643         * m4/getline.m4 (AM_FUNC_GETLINE):
91644         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
91645         hosts.  Problem reported by Derek Robert Price in
91646         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
91647         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
91648         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
91649
91650 2003-10-21  Paul Eggert  <eggert@twinsun.com>
91651
91652         * lib/getndelim2.c (getndelim2): When size calculation overflows,
91653         ceiling the allocation at NMAX bytes rather than silently
91654         discarding input bytes before NMAX is reached.  This makes
91655         a difference only if NMAX exceeds SIZE_MAX / 2.
91656
91657         * lib/obstack.c: Merge from glibc.
91658         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
91659         Add libc_hidden_def (_obstack_newchunk).
91660         (_obstack_free) [! defined _LIBC]: Remove.
91661         [defined _LIBC]: Make a strong alias from obstack_free, rather than
91662         a clone of the function body.
91663         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
91664         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
91665
91666         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
91667         glibc.
91668         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
91669         arg to memcpy.
91670
91671         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
91672         (obstack_ptr_grow_fast, obstack_int_grow_fast):
91673         Don't use lvalue casts, as GCC plans to remove support for them
91674         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
91675         was also present in the non-GCC version, indicating that this
91676         code had always been buggy and had never been widely used.
91677         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
91678         Use the fast variant of each macro, rather than copying the
91679         definiens of the fast variant; that way, we'll be more likely to
91680         catch future bugs in the fast variants.
91681
91682 2003-10-20  Bruno Haible  <bruno@clisp.org>
91683
91684         * modules/wait-process: New file.
91685         * MODULES.html.sh (func_all_modules): Add wait-process.
91686
91687 2003-10-20  Bruno Haible  <bruno@clisp.org>
91688
91689         * m4/wait-process.m4: New file.
91690
91691 2003-10-20  Bruno Haible  <bruno@clisp.org>
91692
91693         * lib/wait-process.h: New file, from GNU gettext.
91694         * lib/wait-process.c: New file, from GNU gettext.
91695
91696 2003-10-19  Jim Meyering  <jim@meyering.net>
91697
91698         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
91699         HPUX 10.20.
91700
91701 2003-10-18  Karl Berry  <karl@gnu.org>
91702
91703         * config/config.guess: update from config.
91704
91705 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91706
91707         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
91708         (getgroups): First arg is int, not size_t.
91709         Don't let 'free' mangle errno.
91710
91711 2003-10-16  Paul Eggert  <eggert@twinsun.com>
91712
91713         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
91714
91715 2003-10-16  Karl Berry  <karl@gnu.org>
91716
91717         * config/config.{guess,sub}: update from config.
91718
91719 2003-10-16  Jim Meyering  <jim@meyering.net>
91720
91721         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
91722         memcpy.
91723
91724 2003-10-15  Paul Eggert  <eggert@twinsun.com>
91725
91726         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
91727         (SIZE_MAX): Remove.
91728         (new_exclude, add_exclude_file): Initial size no longer needs to
91729         be a power of 2.
91730         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
91731         our own address arithmetic overflow checking.
91732
91733         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
91734         (fnmatch): Do not alloca more than 2000 wide characters;
91735         instead, use malloc for large buffers.
91736         Check for address arithmetic overflow, and return -1
91737         with errno set to ENOMEM in that case.
91738         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
91739         (NEW_PATTERN): Do not alloca more than 8000 bytes;
91740         instead, return -1.  Check for address arithmetic overflow.
91741
91742 2003-10-14  Paul Eggert  <eggert@twinsun.com>
91743
91744         Handle invalid suffixes and overflow independently, so that
91745         callers can treat them independently as needed.  Fix some bugs in
91746         suffix handling, e.g., "100k@" was not diagnosed as an invalid
91747         suffix for a human-readable blocksize.  The major caller-visible
91748         change is the addition of a new
91749         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
91750         that both overflow and suffix chars were found.
91751
91752         * lib/human.c (humblock): Don't check separately for invalid suffix
91753         char; that is xstrtoumax's job (now that its bug is fixed).
91754         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
91755         INTMAX_MAX]: New macros.
91756         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
91757         TYPE_MAXIMUM): New macros.
91758         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
91759         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
91760         if overflow occurs, as it's what __strtol does and it's more useful
91761         in practice.
91762         (__xstrtol): If __strtol reports some error other than ERANGE,
91763         reflect it to the caller as LONGINT_INVALID.  If it reports
91764         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
91765         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
91766         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
91767         value.
91768         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
91769         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
91770         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
91771         [defined UINTMAX_MAX]: New macros.
91772
91773 2003-10-14  Bruno Haible  <bruno@clisp.org>
91774
91775         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
91776
91777 2003-10-14  Bruno Haible  <bruno@clisp.org>
91778
91779         * m4/sig_atomic_t: New file, from GNU gettext.
91780         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
91781
91782 2003-10-14  Bruno Haible  <bruno@clisp.org>
91783
91784         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
91785         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
91786         Also use volatile where needed.
91787
91788 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91789
91790         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
91791         Change maintainer from Bruno Haible to 'all'.
91792
91793 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91794
91795         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
91796
91797 2003-10-12  Paul Eggert  <eggert@twinsun.com>
91798
91799         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
91800         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
91801         and define in terms of the other primitives.
91802         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
91803         (SIZE_MAX): Define if not already defined.
91804         (array_size_overflow): New function.
91805         (xalloc_die): Abort instead of exiting if 'error' returns.
91806         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
91807         (xmalloc, xrealloc): Use them.
91808         (xcalloc): Check for address arithmetic overflow.
91809         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
91810         a bit faster than strcpy.
91811
91812 2003-10-10  Simon Josefsson  <jas@extundo.com>
91813
91814         * modules/argp (Depends-on): Add restrict and strcase.
91815
91816 2003-10-10  Simon Josefsson  <jas@extundo.com>
91817
91818         * m4/argp.m4: Add AC_C_INLINE.
91819
91820 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91821
91822         Merge getpass from libc, plus a few fixes.
91823
91824         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
91825         Include <stdbool.h>.
91826         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
91827         __fsetlocking to empty.
91828         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
91829         do include <bits/libc-lock.h>.
91830         Do not include <fcntl.h>; not needed.
91831         [_LIBC]: Include <wchar.h>.
91832         (NOTCANCEL_MODE): New macro.
91833         (flockfile, funlockfile) [_LIBC]: New macros.
91834         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91835         [!_LIBC]: New macros.
91836         (call_fclose): New function.
91837         (getpass): Use it.  Save tty stream separately; this simplifies the
91838         code and makes it more reliable if stdin happens to equal stdout.
91839         Invoke __fsetlocking on tty.
91840         Handle thread cancellation if needed.
91841         Namespace cleanup (use __tcgetattr, __getline).
91842         Use bool for Booleans.
91843         [USE_IN_LIBIO]: Handle wide streams.
91844         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91845         stream might go where.
91846
91847         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91848         doesn't have to include <stdio.h> before us.
91849         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91850         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91851         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91852         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91853         if not declared, so that we can use getpass.c code from libc without
91854         rewriting it.
91855         (flockfile, ftrylockfile, funlockfile): New macros.
91856
91857 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91858
91859         * modules/getpass: Depend on stdbool.
91860
91861 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91862
91863         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91864
91865 2003-10-07  Karl Berry  <karl@gnu.org>
91866
91867         * config/config.{guess,sub}: update from config.
91868
91869 2003-10-06  Jim Meyering  <jim@meyering.net>
91870             Bruno Haible  <bruno@clisp.org>
91871
91872         This lets translators provide better translations for the
91873         "Written by ..." part of --version output.
91874         * lib/version-etc.h: Include stdarg.h.
91875         (version_etc_copyright): Declare as readonly.
91876         (version_etc): Make this function variadic with a NULL-terminated list
91877         of author name strings.
91878         (version_etc_va): New declaration.
91879         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91880         (version_etc_copyright): Declare as readonly.
91881         (version_etc_va): New function. Provide a different translatable string
91882         for each possible number of authors < 10. Abbreviate when there are 10
91883         authors or more.
91884         (version_etc): Make this function variadic. Call version_etc_va.
91885         Suggestion from Gary V. Vaughan.
91886
91887         * lib/long-options.h (parse_long_options): Change prototype: the
91888         authors string is moved to the end and becomes variadic.
91889         * lib/long-options.c: Include stdarg.h.
91890         (parse_long_options): Make this function variadic, too.
91891         Call version_etc_va, not version_etc.
91892
91893 2003-10-06  Bruno Haible  <bruno@clisp.org>
91894
91895         * modules/version-etc-2: Remove file.
91896         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91897
91898 2003-10-06  Bruno Haible  <bruno@clisp.org>
91899
91900         * modules/fatal-signal: New file.
91901         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91902
91903 2003-10-06  Bruno Haible  <bruno@clisp.org>
91904
91905         * m4/fatal-signal.m4: New file.
91906         * m4/signalblocking.m4: New file, from GNU gettext.
91907
91908 2003-10-06  Bruno Haible  <bruno@clisp.org>
91909
91910         * lib/version-etc-2.h: Remove file.
91911         * lib/version-etc-2.c: Remove file.
91912
91913 2003-10-06  Bruno Haible  <bruno@clisp.org>
91914
91915         * lib/fatal-signal.h: New file, from GNU gettext.
91916         * lib/fatal-signal.c: New file, from GNU gettext.
91917
91918 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91919
91920         * README: Rework advice for preventing empty .o files.
91921         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91922         not <sys/types.h>.
91923
91924 2003-10-04  Karl Berry  <karl@gnu.org>
91925
91926         * lib/argp*: update from libc.
91927
91928 2003-10-04  Karl Berry  <karl@gnu.org>
91929
91930         * config/config.{guess,sub}: update from config.
91931
91932 2003-10-02  Bruno Haible  <bruno@clisp.org>
91933
91934         * modules/lchown (Include): Add lchown.h.
91935         * modules/time_r (Include): Use "..." syntax.
91936         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91937
91938 2003-10-01  Simon Josefsson  <jas@extundo.com>
91939
91940         * MODULES.html.sh (func_all_modules): Move gethostname from section
91941         'based on' to section 'lacking' POSIX:2001.
91942
91943 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91944
91945         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91946         to output mode on the same stream.
91947
91948 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91949
91950         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91951         Fix arg typo in previous patch.
91952
91953 2003-09-28  Jim Meyering  <jim@meyering.net>
91954
91955         * lib/error.c: Correct cpp indentation.
91956
91957 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91958
91959         * modules/free: New file.
91960
91961 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91962
91963         * m4/free.m4: New file.
91964
91965 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91966
91967         * lib/minmax.h (MIN, MAX)
91968         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91969         Omit the special code that used __typeof__, since we worry that
91970         it could be more trouble than it's worth.  See:
91971         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91972         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91973
91974         * lib/free.c: New file.
91975
91976 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91977
91978         Trivial fixes to Makefile.am parts of module listings.
91979         * modules/strstr: Append strstr.h to lib_SOURCES.
91980         * modules/strcase: Likewise, for strcase.h.
91981
91982 2003-09-27  Karl Berry  <karl@gnu.org>
91983
91984         * config/mkinstalldirs: update from automake.
91985
91986 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91987
91988         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91989         (error_tail): Do not loop, reallocating temporary buffer, since
91990         the output cannot contain more wide characters than the input
91991         contains bytes, the size must be big enough already.  This avoids
91992         one potential size overflow calculation.  Check for size overflow
91993         when calculating temporary buffer size.  Free temporary buffer
91994         when done, if it was allocated with malloc; this plugs a memory
91995         leak.  Remove casts from void * to pointers, that are no longer
91996         needed now that we're assuming C89 or better.
91997
91998         Merge error changes from glibc.
91999
92000         * lib/error.c, error.h: Update copyright notice header to match glibc.
92001         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92002         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92003         Disable cancellation while printing error.
92004         * lib/error.h: Prepend __ to parameter names.
92005
92006 2003-09-26  Jim Meyering  <jim@meyering.net>
92007
92008         * lib/error.c (error_tail): Move some declarations
92009         into inner scope where the local variables are used.
92010
92011 2003-09-26  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92014         stpncpy().
92015         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92016
92017 2003-09-26  Bruno Haible  <bruno@clisp.org>
92018
92019         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92020         (stpncpy): Define as alias for gnu_stpncpy.
92021         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92022
92023 2003-09-25  Simon Josefsson  <jas@extundo.com>
92024
92025         * lib/xgetdomainname.h: New file.
92026         * lib/xgetdomainname.c: New file.
92027
92028 2003-09-25  Simon Josefsson  <jas@extundo.com>
92029             Bruno Haible  <bruno@clisp.org>
92030
92031         * modules/getdomainname: New file.
92032         * modules/xgetdomainname: New file.
92033         * MODULES.html.sh (func_all_modules): Add getdomainname,
92034         xgetdomainname.
92035
92036 2003-09-25  Simon Josefsson  <jas@extundo.com>
92037             Bruno Haible  <bruno@clisp.org>
92038
92039         * m4/getdomainname.m4: New file.
92040
92041 2003-09-25  Simon Josefsson  <jas@extundo.com>
92042             Bruno Haible  <bruno@clisp.org>
92043
92044         * lib/getdomainname.h: New file.
92045         * lib/getdomainname.c: New file.
92046
92047 2003-09-25  Karl Berry  <karl@gnu.org>
92048
92049         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92050
92051 2003-09-25  Karl Berry  <karl@gnu.org>
92052
92053         * config/install-sh: update from automake.
92054
92055 2003-09-25  Bruno Haible  <bruno@clisp.org>
92056
92057         * modules/version-etc-2: New file, from modules/version-etc with
92058         modifications.
92059         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92060
92061 2003-09-25  Bruno Haible  <bruno@clisp.org>
92062
92063         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
92064         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
92065
92066 2003-09-24  Simon Josefsson  <jas@extundo.com>
92067
92068         * modules/xgethostname: Add xgethostname.h.
92069
92070 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92071
92072         * lib/linebuffer.c (freebuffer): Don't free the argument, just
92073         the buffer associated with the argument.  Bug reported by
92074         Simon Josefsson.
92075
92076 2003-09-24  Paul Eggert  <eggert@twinsun.com>
92077
92078         * README: Document assumptions that 'int' is at least 32 bits
92079         wide, that integer arithmetic is 2's complement without overflow,
92080         that there are no holes in integer values, that adding sizes of
92081         two nonoverlapping objects can't overflow, and that all-bits-zero
92082         yields scalar zero.  Fix spelling and capitalization typos.
92083
92084 2003-09-19  Karl Berry  <karl@gnu.org>
92085
92086         * lib/argp.h: update from libc.
92087
92088 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92089
92090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
92091         to avoid spurious warnings like "AC_RUN_IFELSE was called before
92092         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
92093
92094 2003-09-17  Paul Eggert  <eggert@twinsun.com>
92095
92096         * gnulib-tool: Use "test -h", not "test -L", for portability
92097         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
92098         (tags_regexp): Remove, since \| doesn't conform to POSIX.
92099         (sed_extract_prog): Issue s commands one-by-one, rather than
92100         using \| in one s command.
92101
92102 2003-09-16  Paul Eggert  <eggert@twinsun.com>
92103
92104         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
92105         input error, instead of returning NULL the next time we are called
92106         (and therefore losing track of errno).
92107
92108 2003-09-16  Bruno Haible  <bruno@clisp.org>
92109
92110         * gnulib-tool (func_create_testdir): Warn about duplicated
92111         dependencies.
92112
92113 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92114
92115         * modules/argmatch, modules/fatal, modules/obstack,
92116         modules/xalloc, modules/xgethostname: Sort dependencies by
92117         importance, not alphabetically.
92118
92119 2003-09-15  Paul Eggert  <eggert@twinsun.com>
92120
92121         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
92122         fails, so that the caller gets the proper errno.
92123
92124         * lib/readutmp.c (read_utmp): Likewise.
92125         Check for fstat error.  Close stream and free storage
92126         when failing.
92127
92128 2003-09-14  Karl Berry  <karl@gnu.org>
92129
92130         * config/srclist.txt (strdup.c): disable for c89 changes.
92131
92132 2003-09-14  Jim Meyering  <jim@meyering.net>
92133
92134         * lib/getloadavg.c: Correct cpp indentation.
92135         * lib/strdup.c: Likewise.
92136         * lib/vasnprintf.c: Likewise.
92137
92138 2003-09-14  Bruno Haible  <bruno@clisp.org>
92139
92140         * modules/fwriteerror: New file.
92141         * MODULES.html.sh (func_all_modules): Add fwriteerror.
92142
92143 2003-09-14  Bruno Haible  <bruno@clisp.org>
92144
92145         * lib/fwriteerror.h: New file.
92146         * lib/fwriteerror.c: New file.
92147
92148 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92149
92150         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
92151         modules/xgethostname, modules/xalloc: Depend on exit.
92152
92153 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92154
92155         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
92156
92157         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
92158         and AC_MINIX, too, so that their extensions are available.
92159
92160         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
92161         This macro has been superseded by gl_BACKUPFILE.
92162
92163         More patches to assume C89 or better.
92164
92165         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
92166
92167         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
92168         unconditionally.
92169         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
92170         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
92171         Include <string.h>, <stdlib.h> unconditionally.
92172         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
92173         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
92174         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
92175         headers or for string.h.
92176         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
92177         or strtoul.
92178
92179         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
92180         headers.
92181         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
92182         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92183         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
92184         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
92185         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92186         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
92187         memcpy, memset.
92188         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
92189         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
92190         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
92191         strtol.
92192         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
92193         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
92194         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
92195         strtoul.
92196
92197 2003-09-12  Paul Eggert  <eggert@twinsun.com>
92198
92199         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
92200         * lib/obstack.c [!defined _LIBC]: Likewise.
92201         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
92202         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
92203         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
92204
92205         More changes to assume C89 or better.
92206
92207         * lib/error.c (error_tail): Assume vprintf.
92208
92209         * lib/argmatch.c (getenv): Remove decl.
92210         * lib/progreloc.c (get_full_program_name): Define via prototype.
92211         * lib/setenv.c (clearenv): Likewise.
92212         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
92213         needed.
92214         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
92215         (malloc, memcpy): Remove decls.
92216         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
92217         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
92218         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92219         (memcpy): Remove macro.
92220         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
92221         (__P): Remove.  All uses removed.
92222         (PTR): Remove.  All uses changed to void *.
92223         (CHAR_BIT, NULL): Remove.
92224         (spaces, zeros, memset_space, memset_zero)
92225         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
92226         Remove.
92227         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
92228         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
92229         Define with prototype.
92230         Remove now-unnecessary prototype decl.
92231         (extra_args_spec): Assume ANSI C.  All uses changed.
92232         (extra_args_spec_iso): Remove.
92233         (my_strftime, emacs_strftimeu): Define via prototype.
92234         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
92235         unconditionally.
92236         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
92237         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
92238         (strtoul, strtol): Remove decls.
92239         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
92240         LONG_MAX): Remove.
92241         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
92242         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
92243         (LOCALE_PARAM_PROTO): New macro.
92244         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
92245         (INTERNAL (strtol), strtol): Define with a prototype.
92246         (PARAMS): Remove.  All uses removed.
92247         * lib/tempname.c: Include <string.h> unconditionally.
92248         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
92249         * lib/xgethostname.c (main): Define with a prototype.
92250         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
92251         Include <stdlib.h> unconditionally.
92252         (calloc, malloc, realloc, free): Remove decls.
92253         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
92254         Include <stdlib.h> unconditionally.  Sort include file names.
92255         (strtod): Remove.
92256         (xstrtod): Define with a prototype.
92257         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
92258         (strtol, strtoul): Remove decls.
92259
92260 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92261
92262         More patches to assume C89 or better.
92263         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
92264         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
92265         string.h, memchr, STDC_HEADERS.
92266
92267 2003-09-11  Paul Eggert  <eggert@twinsun.com>
92268
92269         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
92270         Include <stdlib.h>, <string.h> unconditionally.
92271         Remove now-unnecessary cast to char *.
92272         * lib/strnlen.c: Include <string.h> unconditionally.
92273         * lib/yesno.c (yesno): Define with a prototype.
92274
92275 2003-09-11  Bruno Haible  <bruno@clisp.org>
92276
92277         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
92278
92279 2003-09-10  Jim Meyering  <jim@meyering.net>
92280
92281         * lib/error.c: Correct indentation of cpp directives.
92282
92283 2003-09-10  Bruno Haible  <bruno@clisp.org>
92284
92285         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
92286         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
92287         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
92288         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
92289         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
92290         <stdlib.h> and <string.h> checks.
92291         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
92292         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
92293
92294 2003-09-10  Bruno Haible  <bruno@clisp.org>
92295
92296         * lib/strcspn.c: Include <string.h> unconditionally.
92297         * lib/strpbrk.c: Include <string.h> unconditionally.
92298         * lib/strstr.c: Include <string.h> unconditionally.
92299         * lib/unicodeio.c: Include <string.h> unconditionally.
92300         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
92301         * lib/unsetenv.c: Likewise.
92302         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
92303         * lib/yesno.c: Include <stdlib.h> unconditionally.
92304         (rpmatch): Add prototype.
92305
92306 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92307
92308         More patches to assume C89 or better.
92309         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
92310         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
92311         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
92312         or for string.h.
92313         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
92314         stdlib.h.
92315         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
92316         C headers.
92317         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
92318         string.h.
92319         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
92320         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
92321         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
92322         or for string.h.
92323         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
92324         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
92325         C headers.
92326         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
92327         memcpy.
92328         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
92329         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
92330         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
92331         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
92332         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
92333         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
92334         string.h, free.
92335         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
92336         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
92337         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
92338         C headers, or for string.h.
92339         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
92340         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
92341         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
92342         headers, memory.h, stdlib.h, string.h, strings.h.
92343         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
92344         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
92345         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
92346         strchr.
92347         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
92348         headers, memory.h, string.h.
92349         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
92350         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
92351         free.
92352         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
92353         headers.
92354         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
92355         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
92356         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
92357         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
92358         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
92359
92360 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92361
92362         More K&R removal.
92363
92364         * lib/acosl.c (main): Use a prototype.
92365         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
92366         tanl.c: Likewise.
92367
92368         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
92369
92370         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
92371         (getopt, etopt_long, getopt_long_only, _getopt_internal)
92372         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
92373         with a prototype.
92374         * lib/getopt.c (const): Remove macro.
92375         Include <string.h> unconditionally.
92376         (my_index): Remove; all uses changed to strchr.
92377         (strlen): Remove decl.
92378         (exchange): Remove forward decl; no longer needed.
92379         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
92380         Define with prototype.
92381         * lib/getopt1.c (const): Remove macro.
92382         (getopt_long, getopt_long_only, main): Define with prototype.
92383
92384         * lib/getugroups.c: Include <string.h> unconditionally.
92385
92386         * lib/getusershell.c: Include <stdlib.h> unconditionally.
92387         (getusershell, setusershell, endusershell, readname, main):
92388         Define with prototypes.
92389
92390         * lib/group-member.c: Include group-member.h first.
92391         Include <stdlib.h> unconditionally.
92392
92393         * lib/hard-locale.c: Include hard-locale.h first.
92394         Include <stdlib.h>, <string.h> unconditionally.
92395
92396         * lib/hash.c (free, malloc): Remove decls.
92397         Include <stdlib.h> unconditionally.
92398
92399         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
92400         (getenv): Do not declare.
92401
92402         * lib/idcache.c: Include <string.h> unconditionally.
92403
92404         * lib/long-options.c: Include long-options.h first, to test interface.
92405         Include <stdlib.h> unconditionally.
92406
92407         * lib/makepath.c: Include makepath.h first, to test interface.
92408         Include <stdlib.h> and <string.h> unconditionally.
92409
92410         * lib/linebuffer.c: Include <stdlib.h>.
92411         (free): Remove decl.
92412
92413         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
92414         stddef.h. rpl_malloc returns void *, not char *.
92415         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
92416         prototype.
92417
92418         * lib/md5.h: Include <limits.h> unconditionally.
92419         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
92420         (__P): Remove; all uses removed.
92421         * lib/md5.c: Include "md5.h" first.
92422         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
92423         md5_buffer, md5_process_bytes, md5_process_block):
92424         Define with prototypes.
92425         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
92426         * lib/sha.c: Include "sha.h" first.
92427         Include <stdlib.h>, <string.h> unconditionally.
92428
92429         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
92430         * lib/memcmp.c (__ptr_t): Likewise.
92431         * lib/memrchr.c (__ptr_t): Likewise.
92432         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
92433         Include <string.h> unconditionally.
92434         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
92435         * lib/memchr.c: Include <stdlib.h> unconditionally.
92436         * lib/memchr.c (LONG_MAX): Remove.
92437         * lib/memrchr.c (LONG_MAX): Likewise.
92438         * lib/memchr.c (__memchr): Define via a prototype.
92439         * lib/memrchr.c (__memrchr): Likewise.
92440         * lib/memcmp.c (__P): Remove, and remove all uses.
92441         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
92442         Remove forward decls; no longer needed.
92443         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
92444         Use types required by C89 in prototype.
92445
92446         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
92447         * lib/savedir.c: Likewise.
92448         * lib/mkdir.c (free): Remove decl.
92449         * lib/rmdir.c (rmdir): Define with a prototype.
92450         * lib/savedir.c: Include savedir.h first, to test interface.
92451
92452         * lib/mktime.c (STDC_HEADERS): Remove.
92453         Include <stdlib.h>, <string.h> unconditionally.
92454
92455         * lib/modechange.c: Include <stdlib.h> unconditionally.
92456         (malloc): Remove decl.
92457
92458         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
92459         (free): Remove decl.
92460
92461         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
92462         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
92463         (This type really should be intptr_t, but that's a C99ism.)
92464         (_obstack_memcpy): Remove: all uses changed to memcpy.
92465         Include <string.h> unconditionally.
92466         (struct obstack): Assume __STDC__ for types of members
92467         chunkfun, freefun, extra_arg.
92468         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
92469         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
92470         obstack_begin, obstack_specify_allocation,
92471         obstack_specify_allocation_with_arg, obstack_chunkfun,
92472         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
92473         Remove unprototyped decls and the macros that use them.
92474         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
92475         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
92476         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
92477         (defined __STDC__ && __STDC__)]:
92478         Remove nonprototyped code.
92479         Include <stdlib.h> unconditionally.
92480         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
92481         _obstack_allocated_p, _obstack_free, obstack_free,
92482         _obstack_memory_used, print_and_abort):
92483         Define using prototypes.
92484         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
92485         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
92486         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
92487         obstack_next_free, obstack_object_size, obstack_room) [0]:
92488         Remove unused, unprototyped code.
92489
92490         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
92491
92492         * lib/physmem.c (physmem_total, physmem_available, main): Define
92493         with prototypes.
92494
92495         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
92496         (main): Define with a prototype.
92497
92498         * lib/posixver.c (getenv): Remove decl.
92499
92500         * lib/putenv.c (malloc): Returns void *, not char *.
92501         Include <string.h> unconditionally.
92502         (strchr, memcpy, NULL): Do not define.
92503
92504         * lib/readtokens.c: Include readtokens.h first, to test interface.
92505         Include <stdlib.h>, <string.h> unconditionally.
92506         (init_tokenbuffer): Define with a prototype.
92507
92508         * lib/regex.c (PARAMS): Remove.  All uses removed.
92509         All uses of _RE_ARGS removed, too.
92510         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
92511         unconditionally.
92512         (bzero): Assume memset exists.
92513         (memcmp, memcpy, NULL): Remove.
92514         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
92515         char, or assignments to local vars of type signed char.
92516         (init_syntax_once, PREFIX(extract_number_and_incr),
92517         PREFIX(print_partial_compiled_pattern),
92518         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
92519         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
92520         PREFIX(regex_grow_registers), PREFIX(regex_compile),
92521         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
92522         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
92523         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
92524         wcs_compile_range, byte_compile_range, truncate_wchar,
92525         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
92526         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
92527         count_mbs_length, wcs_re_match_2_internal,
92528         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
92529         PREFIX(alt_match_null_string_p),
92530         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
92531         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
92532         regfree, PREFIX(extract_number)): Define with prototype.  Remove
92533         now-unnecessary declaration, if any.
92534         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
92535         regcomp, regexec):
92536         Remove now-unnecessary casts among pointer types.
92537         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
92538
92539         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
92540         (free): Remove decl.
92541
92542         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
92543
92544         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
92545         (free): Remove decl.
92546
92547         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
92548         * lib/xgetcwd.c: Likewise.
92549
92550         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
92551         (free): Remove decl.
92552
92553         * lib/strchrnul.c (strchrnul): Define with a prototype.
92554         Fix bug: c_in was not converted to char before searching.
92555
92556         The following changes are not K&R related:
92557
92558         * lib/group-member.h: Include <sys/types.h>, so that this file is
92559         self-contained.
92560         * lib/makepath.h: Likewise.
92561
92562         * lib/getusershell.c (readname, default_index, line_size, readname):
92563         Use size_t, not int, for sizes.
92564         (readname): If the size overflows, report an error instead of
92565         looping forever.
92566
92567 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92568
92569         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
92570         libc.
92571
92572 2003-09-09  Paul Eggert  <eggert@twinsun.com>
92573
92574         * README: New section: portability guidelines.
92575
92576 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92577
92578         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
92579         C89 spec.
92580
92581 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
92582
92583         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
92584
92585 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92586
92587         Assume C89 or better; remove K&R cruft.
92588         A few of these changes were first proposed by Derek Robert Price
92589         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
92590
92591         * lib/addext.c: Include <string.h> unconditionally.
92592         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
92593         Don't declare getenv or malloc.
92594
92595         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
92596         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
92597         (NULL): Remove.
92598         (find_stack_direction, alloca): Use prototypes.
92599
92600         * lib/atexit.c (atexit): Define using a prototype.
92601
92602         * lib/basename.c, dirname.c, stripslash.c:
92603         Include <string.h> unconditionally.
92604
92605         * lib/bcopy.c: Include <stddef.h>.
92606         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
92607
92608         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
92609
92610         * lib/error.h (error, error_at_line, error_print_progname)
92611         [! (defined (__STDC__) && __STDC__)]: Remove decls.
92612         * lib/error.c: Include error.h first, to check interface.
92613         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92614         (VA_START): Remove; all uses changeed to va_start.
92615         (exit, strerror): Remove decls.
92616         (error_print_progname): Prototype uncondionally.
92617         Don't include <errno.h>; no longer needed.
92618         (private_strerror): Remove.
92619         (error_tail): Always define.
92620         (error, error_at_line): Assume C89 or better; always use prototypes.
92621         * lib/fatal.c: Include "fatal.h" first, to test interface.
92622         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
92623         (VA_START): Remove; all uses changed to va_start.
92624         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
92625         this case.
92626         (exit): Remove decl.
92627         (fatal): Prototype unconditionally.  Assume va_start works.
92628         Abort at end, to pacify gcc.
92629
92630         * lib/euidaccess.c (main): Define with a prototype.
92631
92632         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
92633
92634         * lib/exitfail.c: Include <stdlib.h> unconditionally.
92635
92636         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
92637         prototypes.
92638         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
92639         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
92640         (getenv): Remove decl.
92641         (fnmatch): Define using a prototype.
92642         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
92643         (FCT): Define using a prototype.
92644
92645         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
92646
92647         * lib/gethostname.c: Include <stddef.h>.
92648         (gethostname): Define with prototype.  Length is size_t, not int.
92649
92650 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92651
92652         Assume C89 or better; remove K&R cruft.
92653         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
92654         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
92655         string.h, getenv, malloc.
92656         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
92657         headers.
92658         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
92659         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
92660         do not check for strerror.
92661         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
92662         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
92663         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
92664         do not check for doprnt or vprintf.
92665         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
92666         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
92667
92668 2003-09-08  Paul Eggert  <eggert@twinsun.com>
92669
92670         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
92671         getversion.c should have been removed then, but was accidentally
92672         preserved.
92673
92674         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
92675         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
92676
92677 2003-09-08  Karl Berry  <karl@gnu.org>
92678
92679         * config/config.sub, config.guess, srclistvars.sh: update from savannah
92680                 config, forget about prep.
92681
92682         * config/depcomp, missing: update from automake.
92683
92684 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92685
92686         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
92687         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92688
92689 2003-09-07  Paul Eggert  <eggert@twinsun.com>
92690
92691         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
92692         copy_tm_result.  Bug reported by Simon Josefsson in
92693         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
92694
92695 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92696
92697         * m4/time_r.m4: New file.
92698         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
92699         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
92700         is. Check for timegm declaration.
92701         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
92702         Do not check for gmtime_r.
92703         Replace mktime if __mktime_internal does not exist and if mktime
92704         hasn't been replaced already.
92705
92706 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92707
92708         * lib/time_r.c, lib/time_r.h: New files.
92709
92710         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
92711         __localtime_r.
92712         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
92713         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
92714
92715         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
92716         __gmtime_r.
92717         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
92718         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
92719         Include <time_r.h>.
92720
92721         * lib/timegm.c: Switch to glibc implementation, with the following
92722         changes:
92723         [defined HAVE_CONFIG_H]: Include <config.h>.
92724         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
92725         (__mktime_internal) [!defined _LIBC]: New decl.
92726         (__gmtime_r) [!defined _LIBC]: New macro and function.
92727         (timegm): Use a prototype, since gnulib assumes C89.
92728         Do not bother declaring tmp to be const, as it's not really usefu.
92729         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
92730         (timegm): Declare only if HAVE_DECL_TIMEGM.
92731
92732 2003-09-06  Paul Eggert  <eggert@twinsun.com>
92733
92734         * MODULES.html.sh (func_all_modules): Add time_r.
92735         * modules/time_r: New file.
92736         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
92737         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
92738
92739 2003-09-03  Paul Eggert  <eggert@twinsun.com>
92740
92741         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
92742         Bug reported by Lute Kamstra in
92743         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
92744
92745         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
92746         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
92747         course with correspondingly smaller numbers for tomorrow and
92748         yesterday.  From Tadayoshi Funaba.  Originally installed into
92749         sh-utils on 1999-08-07, but the patch got lost (I guess during the
92750         coreutils merge?).
92751
92752 2003-08-31  Simon Josefsson  <jas@extundo.com>
92753
92754         * modules/timegm: New file.
92755         * MODULES.html.sh (func_all_modules): Add timegm.
92756
92757 2003-08-31  Simon Josefsson  <jas@extundo.com>
92758
92759         * m4/timegm.m4: New file.
92760
92761 2003-08-31  Simon Josefsson  <jas@extundo.com>
92762
92763         * lib/timegm.h: New file.
92764         * lib/timegm.c: New file.  Based on
92765         wget-1.8.2/src/http.c:mktime_from_utc.
92766
92767 2003-08-31  Karl Berry  <karl@gnu.org>
92768
92769         * lib/argp.h: update from libc.
92770
92771 2003-08-28  Bruno Haible  <bruno@clisp.org>
92772
92773         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
92774         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
92775         followed by '#define fnmatch fnmatch_posix' gives an error.
92776
92777 2003-08-28  Bruno Haible  <bruno@clisp.org>
92778
92779         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
92780         warning on QNX, which defines O_BINARY to 000000.
92781
92782 2003-08-27  Jim Meyering  <jim@meyering.net>
92783
92784         * m4/mkstemp.m4: Require that the system mkstemp be able to create
92785         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
92786         would fail after 32.  Reported by Danny Levinson.  Details here:
92787         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
92788
92789 2003-08-24  Bruno Haible  <bruno@clisp.org>
92790
92791         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
92792         MSVC7 <stdio.h> is included later.
92793
92794 2003-08-22  Simon Josefsson  <jas@extundo.com>
92795
92796         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
92797
92798 2003-08-20  Karl Berry  <karl@gnu.org>
92799
92800         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
92801
92802 2003-08-20  Bruno Haible  <bruno@clisp.org>
92803
92804         * modules/progname: New file.
92805         * MODULES.html.sh (func_all_modules): Add progname.
92806
92807 2003-08-20  Bruno Haible  <bruno@clisp.org>
92808
92809         * lib/progname.h: New file, from GNU gettext.
92810         * lib/progname.c: New file, from GNU gettext.
92811         * lib/progreloc.c: New file, from GNU gettext.
92812
92813 2003-08-19  Jim Meyering  <jim@meyering.net>
92814
92815         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
92816         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
92817
92818 2003-08-19  Bruno Haible  <bruno@clisp.org>
92819
92820         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
92821         more.
92822
92823 2003-08-19  Bruno Haible  <bruno@clisp.org>
92824
92825         * lib/xstrdup.c: Assume <string.h> exists.
92826
92827 2003-08-18  Paul Eggert  <eggert@twinsun.com>
92828
92829         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
92830         in makefile rules.
92831
92832 2003-08-18  Jim Meyering  <jim@meyering.net>
92833
92834         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92835         * m4/lib-ld.m4: Likewise.
92836
92837 2003-08-18  Jim Meyering  <jim@meyering.net>
92838
92839         * lib/setenv.h: Indent nested cpp directive.
92840         * lib/vasnprintf.c: Remove trailing blanks.
92841
92842 2003-08-17  Simon Josefsson  <jas@extundo.com>
92843
92844         * modules/xstrndup: New file.
92845         * MODULES.html.sh (func_all_modules): Add xstrndup.
92846
92847 2003-08-17  Simon Josefsson  <jas@extundo.com>
92848
92849         * modules/argp: Fix autoconf macro name. Add more dependencies.
92850
92851 2003-08-17  Simon Josefsson  <jas@extundo.com>
92852
92853         * m4/xstrndup.m4: New file.
92854
92855 2003-08-17  Simon Josefsson  <jas@extundo.com>
92856
92857         * m4/argp.m4: New file.
92858
92859 2003-08-17  Simon Josefsson  <jas@extundo.com>
92860             Bruno Haible  <bruno@clisp.org>
92861
92862         * lib/xstrndup.h: New file.
92863         * lib/xstrndup.c: New file.
92864
92865 2003-08-17  Bruno Haible  <bruno@clisp.org>
92866
92867         * modules/strndup (Files, Include): Add lib/strndup.h.
92868
92869 2003-08-17  Bruno Haible  <bruno@clisp.org>
92870
92871         * modules/euidaccess (Files): Add lib/euidaccess.h.
92872
92873 2003-08-17  Bruno Haible  <bruno@clisp.org>
92874
92875         * lib/strndup.h: New file.
92876
92877 2003-08-17  Bruno Haible  <bruno@clisp.org>
92878
92879         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92880         like AC_GNU_SOURCE.
92881         * modules/extensions (configure.ac): Comment out the invocation of
92882         gl_USE_SYSTEM_EXTENSIONS.
92883
92884 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92885
92886         Merges from coreutils, etc.
92887         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92888         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92889         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92890         fixing a typo.
92891         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92892         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92893
92894 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92895
92896         Document merge from coreutils.
92897         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92898         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92899         * modules/utime: Add m4/utimes-null.m4.
92900
92901 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92902
92903         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92904         space, undoing this 2003-08-12 change:
92905         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92906
92907 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92908
92909         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92910         strtoul.c from libc, undoing this 2003-08-12 change:
92911         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92912
92913 2003-08-16  Jim Meyering  <jim@meyering.net>
92914
92915         Merges from coreutils.
92916         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92917         prefix.  Adjust cache variables similarly.  Create 500 rather than
92918         just 300 files, to exercise bug on Darwin6.5, too.
92919         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92920         $missing_dir.
92921         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92922         AM_SYS_POSIX_TERMIOS.
92923         Reported by mkc@mathdogs.com.
92924         Also change use of $am_cv_sys_posix_termios
92925         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92926         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92927         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92928         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92929         in /proc/mounts until it finds one with matching device number.  This
92930         is unnecessary when the FILE argument *is* a mount point.  No stat call
92931         is necessary in that case.  So, disable the statvfs-testing code on
92932         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92933         as RedHat bug# 84846.
92934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92935         to 1MB, so as not to render systems with no stack size limit (e.g.,
92936         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92937         Include <unistd.h>.  On some systems,
92938         it is required for the definition of _SC_PAGESIZE.
92939
92940 2003-08-16  Jim Meyering  <jim@meyering.net>
92941
92942         Merge from coreutils.
92943         * lib/xstrtoimax.c: #else #if -> #elif.
92944         * lib/xstrtoumax.c: Likewise.
92945
92946 2003-08-16  Jim Meyering  <jim@meyering.net>
92947
92948         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92949         * m4/utimes.m4: Removed.
92950         * m4/utimes-null.m4: Renamed from utimes.m4.
92951
92952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92953         to 1MB, so as not to render systems with no stack size limit (e.g.,
92954         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92955         Include <unistd.h>.  On some systems,
92956         it is required for the definition of _SC_PAGESIZE.
92957
92958 2003-08-16  Jim Meyering  <jim@meyering.net>
92959         and Paul Eggert  <eggert@cs.ucla.edu>
92960
92961         Merges from coreutils, etc.
92962
92963         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92964         using the latest version from cvs.  This avoids problems with #line
92965         directives using a vendor (Sun) compiler.
92966         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92967         Don't set GETGROUPS_LIB here; now it's
92968         done via getgroups.m4's wrapper function.
92969         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92970         rather than just in sh-util/configure.in, so that the
92971         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92972         same.
92973         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92974         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92975         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92976         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92977         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92978         Remove code that is now done by the newly-required macros.
92979         Append $(EXEEXT) to DF_PROG.
92980         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92981         Do not invoke or require the following here,
92982         since prereq.m4 or some gnulib .m4 now does this for us:
92983         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92984         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92985         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92986         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92987         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92988         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92989         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92990         AC_FUNC_OBSTACK.
92991         Do not replace the following functions, as this is now the job
92992         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92993         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92994         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92995         atexit getpass, strdup, getpagesize.
92996         Replace 'raise'.
92997         Do not check for the following functions, as this is now the job
92998         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92999         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93000         setregid.
93001         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93002         Check for sys/sysctl.h.
93003         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93004         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93005         of checking for ssize_t ourselves.
93006
93007         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93008         Require every macro that gnulib/modules/* suggests for us.
93009         (jm_PREREQ_ADDEXT): New macro.
93010         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93011         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93012
93013         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93014         (gl_PHYSMEM): Use it.
93015         Also check for `table' function.
93016         Check for new headers and functions.
93017         Add check for sys/sysmp.h.
93018         With suggestions from Kaveh Ghazi.
93019         Ignore headers that are present but cannot be compiled.  This
93020         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93021         C 5.4.
93022
93023 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93024
93025         Document merge from coreutils.
93026         * modules/userspec: Depend on posixver.
93027         * modules/strftime: Depend on tzset.
93028
93029 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93030
93031         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93032         rather than tab, after '#' in shell-script copyright notices.
93033         Suggested by Bruno Haible.
93034
93035 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93036
93037         * config/srclist-update: Use three spaces, rather than tab, after '#'
93038         in shell-script copyright notices.  Suggested by Bruno Haible.
93039         Remove unnecessary parenthesization in regular expression.
93040
93041 2003-08-15  Jim Meyering  <jim@meyering.net>
93042
93043         Merge from coreutils.
93044         * lib/xgethostname.c: Include <stdlib.h>.
93045         (xghostname): Don't exit for anything other than memory-related
93046         failure; just return NULL.
93047         * lib/userspec.c: Include "posixver.h".
93048         (parse_user_spec): Accept `.' as a separator only
93049         in pre-POSIX-200112 mode.
93050         * lib/strtoimax.c: Use #elif rather than #else #if.
93051         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93052         Remove function, now that we can rely on a working tzset function.
93053         [!_LIBC]: Ensure that the required autoconf test has been run.
93054         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93055         Use underlying_strftime for %r.
93056         * lib/sha.c: Merge in some clean-up and optimization changes from
93057         glibc.
93058         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93059         Ensure that it is a multiple of 64.
93060         Rearrange loop exit tests so as to avoid performing an
93061         additional fread after encountering an error or EOF.
93062         * lib/realloc.c: Update copyright date.
93063
93064 2003-08-15  Jim Meyering  <jim@meyering.net>
93065         and Paul Eggert  <eggert@twinsun.com>
93066
93067         Merge from coreutils.
93068         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
93069         member but strut utmpx does not.  Needed for AIX 4.3.3.
93070         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
93071
93072 2003-08-15  Jim Meyering  <jim@meyering.net>
93073         and Paul Eggert  <eggert@cs.ucla.edu>
93074
93075         Merges from coreutils, etc.
93076         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
93077         Require gl_FUNC_TZSET_CLOBBER.
93078         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
93079         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
93080         members.
93081
93082 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93083
93084         Help the merge from coreutils.
93085         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
93086         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
93087         * m4/tzset.m4: Use it too.
93088
93089 2003-08-14  Paul Eggert  <eggert@twinsun.com>
93090
93091         * modules/tzset: New file.
93092
93093 2003-08-14  Jim Meyering  <jim@meyering.net>
93094
93095         Merges from coreutils.
93096         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
93097         variable names, rather than @FNMATCH_H@.
93098         * modules/alloca: Likewise for $(ALLOCA_H).
93099
93100         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
93101         the three copies of the literal target, `fnmatch.h'.
93102         * modules/alloca (alloca.h): Likewise.
93103
93104 2003-08-14  Jim Meyering  <jim@meyering.net>
93105
93106         Merge from coreutils.
93107         * m4/tzset.m4: New file.
93108         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
93109         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
93110         otherwise, AIX 5.1 systems would end up using the latter.
93111         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
93112         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
93113         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
93114         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
93115
93116 2003-08-14  Jim Meyering  <jim@meyering.net>
93117
93118         Merge from coreutils.
93119         * lib/obstack.h: Whitespace changes.
93120         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
93121         and xcalloc return values.
93122         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
93123         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
93124         hang on OSF/1 5.1 for DIR on both local and remote file systems.
93125         Reported by (and fix confirmed by) Nelson H. F. Beebe.
93126         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93127         error from mntctl.
93128         Use mntctl's return value to drive the entry-processing loop, since
93129         we can't rely on the value of the vmt_length member in the last
93130         entry.  On some systems doing so could result in exhausting
93131         virtual memory.  Based in part on a patch from Mike Jetzer.
93132
93133 2003-08-14  Jim Meyering  <jim@meyering.net>
93134         and Paul Eggert  <eggert@twinsun.com>
93135
93136         Merges from coreutils, plus other fixes.
93137         * lib/physmem.c: Merge in portability changes from gcc/libiberty
93138         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
93139         for credits and details.  Thanks to Kaveh Ghazi for helping
93140         to keep these files in sync.
93141         (ARRAY_SIZE): Define it.
93142         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
93143         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
93144         (memcasecmp): Don't assume size_t fits in unsigned int.
93145         Remove casts and duplicate code.
93146         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
93147         (memcpy): Remove definition.
93148         Merge in some clean-up and optimization changes from glibc.
93149         [BLOCKSIZE]: Move definition to top of file.
93150         Ensure that it is a multiple of 64.
93151         Rearrange loop exit tests so as to avoid performing an
93152         additional fread after encountering an error or EOF.
93153         * lib/md5.h (md5_uintptr): Define.
93154         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
93155         return to the initial working directory.  Preserve errno
93156         for caller.
93157         * lib/idcache.c: Include "xalloc.h".
93158         (xmalloc, xrealloc): Remove decls.
93159         (getuser): Remove casts no longer required in C89.
93160         * lib/human.c: Include stdio.h, for sprintf.
93161         * lib/group-member.c: Include "xalloc.h".
93162         (xmalloc, xrealloc): Remove decls.
93163         (get_group_info): Remove casts no longer required in C89.
93164         * lib/getusershell.c (readname): Remove casts no longer required in
93165         C89.
93166         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
93167         * lib/getline.c: Whitespace fix, from coreutils.
93168
93169 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93170
93171         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
93172         Check for isascii.
93173
93174         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93175         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93176         Undo previous (whitespace-only) change.
93177
93178 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93179
93180         * lib/exclude.c: Include <ctype.h>
93181         (IN_CTYPE_DOMAIN): New macro.
93182         (is_space): New fn.
93183         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
93184         and empty lines.
93185
93186         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93187         Undo previous (whitespace-only) change.
93188
93189 2003-08-13  Paul Eggert  <eggert@twinsun.com>
93190
93191         * config/srclist-update: Change update back to the old behavior,
93192         leaving whitespace alone.  Use one 'sed' command rather than a
93193         pipeline.
93194         (fixlicense): Now a variable, not a function.
93195         (remove_trailing_blanks): Remove.
93196         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
93197         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93198         Undo previous (whitespace-only) change.
93199
93200 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93201
93202         Merge from coreutils.
93203         * modules/euidaccess: Add lib_SOURCES, include for new
93204         file euidaccess.h
93205
93206 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93207
93208         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
93209         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
93210         Normalize leading white space and remove trailing white space.
93211
93212         Merge from coreutils
93213         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
93214
93215         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
93216         0.12.1.  These files are now being upgraded automatically by
93217         ../config/srclist-update.
93218
93219 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93220
93221         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
93222         Normalize leading white space and remove trailing white space.
93223         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
93224         notice, as per ../config/srclist-update.
93225
93226         Merge from coreutils.
93227         * lib/euidaccess.h: New file.
93228         * lib/euidaccess.c: Include it.
93229         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
93230         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
93231         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
93232
93233 2003-08-12  Paul Eggert  <eggert@twinsun.com>
93234
93235         * config/srclist-update: Add copyright notice.
93236         (remove_id_lines, remove_trailing_blanks): New constants.
93237         (fixfile): Use them to normalize spacing a bit in copied files.
93238         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
93239         Normalize leading white space and remove trailing white space.
93240
93241         * config/texinfo.tex: Sync with texinfo.
93242
93243         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
93244         strtoul.c from libc, to merge coreutils whitespace changes.
93245
93246         * config/srclist.txt: Get the following m4 files from gettext:
93247         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
93248         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
93249         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
93250         wint_t.m4.
93251
93252 2003-08-12  Karl Berry  <karl@gnu.org>
93253
93254         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
93255         been made.
93256
93257 2003-08-11  Paul Eggert  <eggert@twinsun.com>
93258
93259         * modules/gnu-source, m4/gnu-source.m4:
93260         Remove; we're assuming Autoconf 2.54 or later now.
93261         Suggested by Bruno Haible.
93262         * MODULES.html.sh (func_all_modules): Remove gnu-source.
93263
93264 2003-08-11  Bruno Haible  <bruno@clisp.org>
93265
93266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
93267
93268 2003-08-11  Bruno Haible  <bruno@clisp.org>
93269
93270         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
93271         (vasnprintf): Use it instead of wcslen.
93272
93273 2003-08-11  Bruno Haible  <bruno@clisp.org>
93274
93275         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
93276         value to ensure that _Bool promotes to int. Use #define for _Bool when
93277         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
93278
93279 2003-08-10  Karl Berry  <karl@gnu.org>
93280
93281         * lib/regex.h: update from libc (whitespace fix).
93282
93283 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93284
93285         Merge some files from coreutils.  These changes were
93286         originally made by Jim Meyering.
93287         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
93288         many older Unixes require this.
93289         * lib/alloca.c (alloca): Remove cast to argument of free;
93290         no longer needed in C89.
93291         * lib/alloca_.h, regex.h: Fix white space to match
93292         what GNU indent does.
93293
93294 2003-08-09  Paul Eggert  <eggert@twinsun.com>
93295
93296         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
93297         apparently Emacs's Unicode mode got confused before my 2003-08-05
93298         checkin.
93299
93300 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93301
93302         * m4/extensions.m4: New file.
93303         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
93304         Require gl_USE_SYSTEM_EXTENSIONS.
93305         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
93306         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
93307
93308 2003-08-08  Paul Eggert  <eggert@twinsun.com>
93309
93310         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
93311         * modules/extensions, modules/gnu-source: New files.
93312         * modules/timespec, modules/unlocked-io: Depend on extensions.
93313
93314 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93315
93316         * modules/restrict: New file.
93317         * MODULES.html.sh (func_all_modules): Add restrict.
93318         * modules/regex: Depend on restrict.
93319
93320 2003-08-07  Paul Eggert  <eggert@twinsun.com>
93321
93322         * m4/restrict.m4: New file.
93323         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
93324
93325 2003-08-07  Bruno Haible  <bruno@clisp.org>
93326
93327         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
93328         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
93329
93330 2003-08-07  Bruno Haible  <bruno@clisp.org>
93331
93332         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
93333         makes the module 'getndelim2' compatible with the module 'getline'.
93334
93335 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93336
93337         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
93338         byte with "\201" to avoid glitches when editing that source file
93339         with multi-gnome-terminal.
93340
93341 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93342
93343         * lib/bumpalloc.h: Remove.
93344
93345 2003-08-05  Paul Eggert  <eggert@twinsun.com>
93346
93347         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
93348         * modules/bumpalloc: Remove.
93349
93350 2003-08-04  Paul Eggert  <eggert@twinsun.com>
93351
93352         * lib/getloadavg.c: Change copyright notice and spacing to conform to
93353         GNU coding style.
93354
93355         Merge from coreutils.
93356         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
93357         1. From glibc.
93358         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
93359         from Karl Berry, implemented by Jim Meyering.
93360         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
93361         from Dmitry V. Levin.
93362         Remove anachronistic cast of xrealloc.
93363         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
93364         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
93365         type. Otherwise, it wouldn't compile with at least /bin/cc on
93366         ymp-cray-unicos9.0.2.X.
93367         Combine two mostly-identical uses of alloca into one.
93368         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
93369
93370 2003-08-04  Dave Love  <d.love@dl.ac.uk>
93371
93372         [From Emacs.]
93373
93374         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
93375         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
93376         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
93377         obsolete NLIST_NAME_UNION.
93378         [__GNU__]: Undef BSD and FSCALE.
93379         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
93380
93381 2003-08-03  Paul Eggert  <eggert@twinsun.com>
93382
93383         * lib/stdbool_.h (_Bool): Make it signed char, instead of
93384         an enum type, so that it's guaranteed to promote to int.  See:
93385         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
93386
93387 2003-08-03  Karl Berry  <karl@gnu.org>
93388
93389         * config/depcomp: update from automake.
93390
93391 2003-07-31  Paul Eggert  <eggert@twinsun.com>
93392
93393         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
93394         (strerror): Don't assume that a printable int fits in 14 bytes.
93395
93396 2003-07-31  Bruno Haible  <bruno@clisp.org>
93397
93398         * modules/getpass-gnu: New file.
93399         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
93400
93401 2003-07-31  Bruno Haible  <bruno@clisp.org>
93402
93403         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
93404
93405 2003-07-24  Karl Berry  <karl@gnu.org>
93406
93407         * config/missing: update from automake.
93408
93409 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
93410             Bruno Haible  <bruno@clisp.org>
93411
93412         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
93413         * lib/getline.c (getline, getdelim): Likewise.
93414         Remove _GNU_SOURCE define; now it's defined in config.h through
93415         m4/getline.m4.
93416
93417 2003-07-23  Karl Berry  <karl@gnu.org>
93418
93419         * config/config.sub: update from prep.
93420
93421 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93422
93423         * modules/xalloc (Depends-on): Add exitfail.
93424         * modules/xmemcoll: Likewise.
93425
93426 2003-07-22  Paul Eggert  <eggert@twinsun.com>
93427
93428         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
93429         over-parenthesization in macros.
93430
93431         Sync with coreutils.
93432
93433         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
93434         required by C99.
93435
93436         Use `exit_failure' for xalloc and xmemcoll instead of their own
93437         private exit-failure variables.
93438         * lib/xalloc.h (xalloc_exit_failure): Remove.
93439         * lib/xmalloc.c: Likewise.  Include exitfail.h.
93440         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
93441         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
93442         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
93443         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
93444
93445 2003-07-20  Jim Meyering  <jim@meyering.net>
93446
93447         * modules/closeout (Depends-on): Add exitfail.
93448         Suggestion from Bruno Haible.
93449
93450 2003-07-19  Karl Berry  <karl@gnu.org>
93451
93452         * config/config.sub: update from prep.
93453
93454 2003-07-18  Paul Eggert  <eggert@twinsun.com>
93455
93456         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
93457         Remove.
93458         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
93459         to test that it can stand by itself.  Include "exitfail.h".
93460         Clients should set exit_failure instead.
93461         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
93462
93463 2003-07-18  Bruno Haible  <bruno@clisp.org>
93464
93465         * modules/getndelim2: New file.
93466         * modules/getline: Share files with module getndelim2.
93467         * modules/getnline: Depend on getndelim2 instead of sharing files with
93468         it. Add getnline.c to lib_SOURCES.
93469         * MODULES.html.sh (func_all_modules): Add getndelim2.
93470
93471 2003-07-18  Bruno Haible  <bruno@clisp.org>
93472
93473         * m4/getndelim2.m4: New file.
93474         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
93475         invoke gl_PREREQ_GETNDELIM2.
93476         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
93477         gl_PREREQ_GETNDELIM2.
93478         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
93479         gl_GETNDELIM2.
93480
93481 2003-07-18  Bruno Haible  <bruno@clisp.org>
93482
93483         * lib/getndelim2.h: New file.
93484         * lib/getndelim2.c: Make into a module of its own. Include config.h,
93485         getndelim2.h.
93486         (getndelim2): Make non-static. Change return type to ssize_t.
93487         * lib/getline.h: Change argument names.
93488         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
93489         * lib/getnline.c: Include getndelim2.h.
93490
93491 2003-07-18  Andreas Schwab  <schwab@suse.de>
93492
93493         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
93494
93495 2003-07-17  Karl Berry  <karl@gnu.org>
93496
93497         * config/config.sub: update from prep.
93498
93499 2003-07-17  Bruno Haible  <bruno@clisp.org>
93500
93501         * modules/getnline: New file.
93502         * modules/getline: Add lib/getndelim2.c to source file list.
93503         * MODULES.html.sh (func_all_modules): Add getnline.
93504
93505 2003-07-17  Bruno Haible  <bruno@clisp.org>
93506
93507         * m4/getnline.m4: New file.
93508
93509 2003-07-17  Bruno Haible  <bruno@clisp.org>
93510
93511         * m4/Makefile.am.in: Remove file.
93512         * m4/Makefile.am: Remove file.
93513         * m4/Makefile.in: Remove file.
93514
93515 2003-07-17  Bruno Haible  <bruno@clisp.org>
93516
93517         * lib/getnline.h: New file.
93518         * lib/getnline.c: New file.
93519         * lib/getndelim2.c: New file, extracted from getline.c.
93520         (getndelim2): Renamed from getdelim2, with added nmax argument.
93521         * lib/getline.c: Include getndelim2.c.
93522         (getdelim2): Moved out to getndelim2.c.
93523         (getline, getdelim): Update.
93524
93525 2003-07-17  Bruno Haible  <bruno@clisp.org>
93526
93527         * lib/Makefile.am: Remove file.
93528         * lib/Makefile.in: Remove file.
93529
93530 2003-07-17  Bruno Haible  <bruno@clisp.org>
93531
93532         * configure.in: Remove file.
93533         * Makefile.in: Remove file.
93534
93535 2003-07-17  Bruno Haible  <bruno@clisp.org>
93536
93537         * MODULES.html.sh: Put the </BODY> right before </HTML>.
93538
93539 2003-07-16  Karl Berry  <karl@gnu.org>
93540
93541         * config/srclist-update: was running fixlicense twice, which caused
93542                 texinfo.tex to be nullified for some reason.  Simplify,
93543                 $gplsrc is no longer needed as far as I can see?
93544
93545 2003-07-16  Jim Meyering  <jim@meyering.net>
93546
93547         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
93548
93549 2003-07-15  Paul Eggert  <eggert@twinsun.com>
93550
93551         * config/srclist.txt: Get the following files from gettext-runtime/intl
93552         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
93553         ref-del.sin.  From Bruno Haible.
93554         * config/srclist-update (fixfile): Change grep pattern again, since the
93555         previous fix didn't work (there was another trailing $).  Use
93556         '[$]' to escape the $s.
93557
93558 2003-07-15  Karl Berry  <karl@gnu.org>
93559
93560         * lib/vasnprintf.c: update from gettext.
93561
93562 2003-07-15  Karl Berry  <karl@gnu.org>
93563
93564         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
93565         gets expanded when surrounded by '$'.
93566
93567 2003-07-15  Jim Meyering  <jim@meyering.net>
93568
93569         * modules/save-cwd: Don't depend on error.  From Derek Price.
93570
93571 2003-07-15  Jim Meyering  <jim@meyering.net>
93572
93573         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
93574
93575 2003-07-14  Simon Josefsson  <jas@extundo.com>
93576
93577         * modules/mempcpy: New file.
93578         * MODULES.html.sh (func_all_modules): Add mempcpy.
93579
93580 2003-07-14  Simon Josefsson  <jas@extundo.com>
93581
93582         * m4/mempcpy.m4: New file.
93583
93584 2003-07-14  Simon Josefsson  <jas@extundo.com>
93585
93586         * lib/mempcpy.h: New file.
93587         * lib/mempcpy.c: New file.
93588
93589 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93590
93591         * modules/getdate, modules/posixtm: Depend on mktime.
93592
93593 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93594
93595         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
93596         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
93597         unicodeio.c, unicodeio.h, unlocked-io.h:
93598         Switch from LGPL to GPL.
93599
93600 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93601
93602         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
93603         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
93604         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
93605         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
93606         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
93607         updated automatically by ../config/srclist-update.  This changes
93608         their license from LPGL to GPL.
93609
93610 2003-07-14  Paul Eggert  <eggert@twinsun.com>
93611
93612         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
93613         assumed to refer to the root of the most recent stable gettext version.
93614         * config/srclistvars.sh: Add defaults for eggert.
93615         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
93616         Match "This program" as well as "The program".  This is needed
93617         for gettext.
93618
93619 2003-07-14  Jim Meyering  <jim@meyering.net>
93620
93621         Don't emit diagnostics.  Let callers do that.
93622         * lib/save-cwd.c: Don't include "error.h".
93623         (save_cwd): Don't call error.  Ensure that errno is valid
93624         when returning nonzero.
93625
93626         * lib/save-cwd.h (restore_cwd): Update prototype.
93627         * lib/save-cwd.c (restore_cwd): Remove two parameters.
93628         Simplify.  Don't call error upon failure.  Let callers do that.
93629         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
93630         when auditing is enabled.  But don't bother updating the #if.
93631
93632 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
93633
93634         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
93635         it breaks C++ compilation.
93636         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
93637
93638 2003-07-10  Simon Josefsson  <jas@extundo.com>
93639
93640         * modules/strchrnul (Makefile.am): Add strchrnul.h.
93641
93642 2003-07-10  Jim Meyering  <jim@meyering.net>
93643
93644         * m4/clock_time.m4: Remove trailing blank.
93645         * m4/intmax_t.m4: Likewise.
93646
93647 2003-07-10  Jim Meyering  <jim@meyering.net>
93648
93649         * lib/vasnprintf.c: Remove trailing blanks.
93650         Make cpp indentation consistent.
93651
93652 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93653
93654         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
93655         posixver.c, strftime.c, strnlen.c, strverscmp.c:
93656         Switch from LGPL to GPL.
93657
93658 2003-07-09  Paul Eggert  <eggert@twinsun.com>
93659
93660         * config/srclist.txt: Sort sublists.  Add
93661         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
93662         that differ from gnulib for one reason or another; we'd like this list
93663         to be smaller but for now let's document what we have.
93664
93665 2003-07-08  Paul Eggert  <eggert@twinsun.com>
93666
93667         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
93668         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
93669         and sweeter "eval x=$x".
93670         * config/srclist.txt: Get lib/argp* from glibc.
93671
93672 2003-07-07  Paul Eggert  <eggert@twinsun.com>
93673
93674         * lib/mktime.c: Fix some boundary cases and remove need for floating
93675         point.
93676
93677         Issue a compile-time diagnostic if time_t is floating point, or if
93678         two's complement arithmetic is not in effect, or if arithmetic
93679         right shift does not propagate the sign.  These assumptions were
93680         all in the original code but they weren't checked.
93681
93682         (TIME_T_MIDPOINT, verify): New macros.
93683         (__isleap): Remove; it has integer overflow problems.
93684         (leapyear): New function, without those problems.
93685         (ydhms_tm_diff): Remove; splitting into two parts.
93686         (ydhms_diff): New function, containing the arithmetic part of
93687         the old ydhms_tm_diff function.  Issue a compile-time
93688         diagnostic if we are not using C99 integer division.
93689         Avoid casts when possible.
93690         (guess_time_tm): New function, containing the checking part of
93691         the old ydhms_tm_diff function.  Return the new value, rather than
93692         the difference between it and the old.  Accept a new argument T
93693         so that *T specifies the old value.  Check for overflow in the result.
93694
93695         (__mktime_internal): Use a time_t offset, not a long int offset.
93696         This undoes the 2003-06-04 change, which is no longer needed now
93697         that we have better overflow checking.
93698         (localtime_offset): Likewise.
93699
93700         (__mktime_internal): Avoid harmful overflow on hosts where time_t
93701         and long are 64-bit but int is only 32-bit.
93702         (ydhms_diff): Use long int to store year1 and yday1.
93703         Issue a compile-time diagnostic if long int is not wide enough.
93704
93705         (__mktime_internal): Use long int to store adjusted year and yday.
93706         Use plain C rather than preprocessor commands, if that doesn't
93707         affect efficiency.
93708         Check for overflow (and try to repair) after each probe
93709         rather than checking only at the very end.  This avoids some bugs
93710         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
93711         does not equal GMT offset at maximum time).
93712         Use integer to check for overflow rather than floating point; this
93713         is more portable to non-IEEE hosts, and is a tad faster.
93714         When we detect that we are oscillating between two values,
93715         don't check whether tm_isdst has the requested value, since
93716         we already know the answer.  When tm_isdst has the wrong value,
93717         use a different heuristic to find the right one, based on the
93718         extreme values actually observed in practice in tz2003a,
93719         rather than the (overly optimistic) "previous 3 calendar quarters".
93720
93721         (not_equal_tm, print_tm, check_result): Use "const T" rather than
93722         "T const" to accommodate glibc style.
93723         (check_result): Use less-confusing report format.  "long" -> "long int.
93724         (main): Likewise.
93725         Don't loop if the iteration overflows time_t.
93726         Allow a negative step in the iteration.
93727
93728 2003-07-06  Karl Berry  <karl@gnu.org>
93729
93730         * config/depcomp: update from automake.
93731         * config/config.sub: update from prep.
93732
93733 2003-07-03  Karl Berry  <karl@gnu.org>
93734
93735         * config/config.guess: update from prep.
93736
93737 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93738
93739         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
93740         xreadlink.c now includes it unconditionally.
93741
93742 2003-07-01  Paul Eggert  <eggert@twinsun.com>
93743
93744         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
93745         having it depend on HAVE_SYS_TYPES_H.
93746
93747 2003-07-01  Bruno Haible  <bruno@clisp.org>
93748
93749         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
93750         <sys/types.h> should be sufficient.
93751         Reported by Paul Eggert.
93752
93753 2003-06-26  Karl Berry  <karl@gnu.org>
93754
93755         * config/depcomp: update from automake.
93756
93757 2003-06-26  Bruno Haible  <bruno@clisp.org>
93758
93759         * modules/human: Depend on module stdbool.
93760
93761 2003-06-25  Bruno Haible  <bruno@clisp.org>
93762
93763         * modules/readlink: New file.
93764         * modules/xreadlink: Depend on it.
93765         * MODULES.html.sh (func_all_modules): Add readlink.
93766
93767 2003-06-25  Bruno Haible  <bruno@clisp.org>
93768
93769         * m4/readlink.m4: New file.
93770
93771 2003-06-25  Bruno Haible  <bruno@clisp.org>
93772
93773         * lib/readlink.c: New file.
93774
93775 2003-06-22  Karl Berry  <karl@gnu.org>
93776
93777         * config/srclist.txt: update mkinstalldirs from automake.
93778         * config/mkinstalldirs: update.
93779
93780 2003-06-22  Bruno Haible  <bruno@clisp.org>
93781
93782         Portability to mingw32.
93783         * m4/ssize_t.m4: New file, from GNU gettext.
93784         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
93785         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
93786
93787 2003-06-22  Bruno Haible  <bruno@clisp.org>
93788
93789         * modules/safe-read: Add m4/ssize_t.m4.
93790         * modules/xreadlink: Add m4/ssize_t.m4.
93791
93792 2003-06-20  Bruno Haible  <bruno@clisp.org>
93793
93794         Assume C89, so PARAMS isn't needed.
93795         * lib/unicodeio.h (PARAMS): Remove.
93796         * lib/unicodeio.c: Don't use PARAMS.
93797
93798 2003-06-18  Karl Berry  <karl@gnu.org>
93799
93800         * config/config.{guess,sub}: update from prep.
93801
93802 2003-06-18  Jim Meyering  <jim@meyering.net>
93803
93804         Merge changes from coreutils.
93805         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
93806         Remove explicit declarations of xmalloc and realloc.
93807         Include xalloc.h.
93808         (read_utmp): Remove anachronistic cast of xmalloc.
93809
93810 2003-06-17  Paul Eggert  <eggert@twinsun.com>
93811
93812         Assume C89, so PARAMS isn't needed.
93813         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
93814         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
93815         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
93816         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
93817         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
93818         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
93819         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
93820         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
93821         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
93822         lib/xstrtod.h, lib/xstrtol.h: Likewise.
93823         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
93824         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
93825         no longer needed. Anyway, config.h should always be included before any
93826         other file.
93827
93828 2003-06-11  Simon Josefsson  <jas@extundo.com>
93829
93830         * modules/sysexits: New file.
93831         * MODULES.html.sh (func_all_modules): Add sysexits.
93832
93833 2003-06-11  Simon Josefsson  <jas@extundo.com>
93834
93835         * lib/sysexit_.h: New file.
93836
93837 2003-06-11  Derek Price  <derek@ximbiot.com>
93838
93839         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93840         necessary.
93841
93842 2003-06-11  Bruno Haible  <bruno@clisp.org>
93843
93844         * m4/sysexits.m4: New file.
93845
93846 2003-06-10  Simon Josefsson  <jas@extundo.com>
93847
93848         * lib/argp.h: New file, from glibc.
93849         * lib/argp-ba.c: New file, from glibc.
93850         * lib/argp-eexst.c: New file, from glibc.
93851         * lib/argp-fmtstream.c: New file, from glibc.
93852         * lib/argp-fmtstream.h: New file, from glibc.
93853         * lib/argp-fs-xinl.c: New file, from glibc.
93854         * lib/argp-help.c: New file, from glibc.
93855         * lib/argp-namefrob.h: New file, from glibc.
93856         * lib/argp-parse.c: New file, from glibc.
93857         * lib/argp-pv.c: New file, from glibc.
93858         * lib/argp-pvh.c: New file, from glibc.
93859         * lib/argp-xinl.c: New file, from glibc.
93860
93861 2003-06-10  Simon Josefsson  <jas@extundo.com>
93862
93863         * modules/strchrnul: New file.
93864
93865 2003-06-10  Simon Josefsson  <jas@extundo.com>
93866
93867         * modules/argp: New file.
93868
93869 2003-06-10  Simon Josefsson  <jas@extundo.com>
93870
93871         * m4/strchrnul.m4: New file.
93872
93873 2003-06-10  Simon Josefsson  <jas@extundo.com>
93874
93875         * lib/strchrnul.h: New file.
93876         * lib/strchrnul.c: New file.
93877
93878 2003-06-10  Bruno Haible  <bruno@clisp.org>
93879
93880         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93881
93882 2003-06-07  Karl Berry  <karl@gnu.org>
93883
93884         * config/config.{guess,sub}: update from prep.
93885
93886 2003-06-07  Jim Meyering  <jim@meyering.net>
93887
93888         * modules/strtod: Use $(...) notation, not @...@ for
93889         AC_REPLACE'd variables.
93890         * modules/localcharset: Likewise.
93891
93892 2003-06-07  Jim Meyering  <jim@meyering.net>
93893
93894         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93895         in place of my name in the copyright comment.
93896         Remove definition and uses of __P.
93897
93898         From coreutils.
93899         * lib/stat.c: Don't declare xmalloc explicitly.
93900         Instead, include "xalloc.h".
93901         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93902         xrealloc, and xcalloc return values.
93903         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93904         Improve comment.
93905         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93906
93907 2003-06-07  Bruno Haible  <bruno@clisp.org>
93908
93909         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93910         avoid AC_CONFIG_LINKS.
93911         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93912         fnmatch.h, to avoid AC_CONFIG_LINKS.
93913         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93914
93915 2003-06-07  Bruno Haible  <bruno@clisp.org>
93916
93917         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93918         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93919         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93920         directory.
93921         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93922         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93923         directory.
93924
93925 2003-06-06  Jim Meyering  <jim@meyering.net>
93926
93927         Merge from coreutils.
93928         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93929         Consolidate declarations and initializations of *_base* locals.
93930
93931         Merge from coreutils.
93932         This avoids a core dump on systems without GNU putenv,
93933         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93934         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93935         (unsetenv): New static function, from GNU libc.
93936         (rpl_putenv): Use it.
93937
93938         * lib/modechange.c: Remove trailing blanks.
93939
93940         Merge from coreutils.
93941         * lib/fsusage.c: Remove declaration of statfs.
93942         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93943
93944         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93945
93946 2003-06-06  Jim Meyering  <jim@meyering.net>
93947
93948         * lib/stdbool_.h: Renamed from stdbool.h.in.
93949
93950 2003-06-06  Jim Meyering  <jim@meyering.net>
93951             Bruno Haible  <bruno@clisp.org>
93952
93953         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93954         Adjust Makefile.am snippet not to redirect directly to target.
93955         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93956
93957 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93958
93959         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93960         mismatch, look in future quarters as well as past.  This fixes a
93961         bug when processing fall-backwards gaps immediately after a long
93962         period of daylight-saving time.
93963
93964         * lib/mktime.c: Assume freestanding C89 or better.
93965         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93966         (__P): Remove; not used.
93967         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93968         (mktime, not_equal_tm, print_tm, check_result,
93969         main): Use prototypes.  Use const * where appropriate.
93970         (main): Fix typo in testing code that uncovered by above changes.
93971         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93972
93973 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93974
93975         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93976         locale.h, localeconv.  This merges changes from coreutils.
93977
93978         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93979         It can be removed after the next Autoconf is released.
93980         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93981         needed.
93982
93983 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93984
93985         * lib/mktime.c: Fix Debian bug 177940
93986         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93987         (localtime_offset): Now long int, not time_t, because we want it
93988         to be guaranteed to be signed.  All uses changed.
93989         (__mktime_internal): If overflow would occur when adding offset,
93990         don't add it.
93991
93992         Merge 'human' changes from coreutils.  Rewrite to support
93993         locale-specific notations like thousands separators.
93994         * lib/human.c: Simplify authorship notice.
93995         Include human.h immediately after config.h.
93996         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93997         <limits.h>: Do not include, since human.h does.
93998         (SIZE_MAX, UINTMAX_MAX): New macros.
93999         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94000         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94001         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94002         (power_letter): Renamed from suffixes.
94003         (generate_suffix_backwards): Remove.
94004         (adjust_value): Now takes int style (because of human.h changes)
94005         and long double value (for greater precision on some platforms).
94006         (group_number): New function.
94007         (human_readable): Use it.  Use integer options, not enum.
94008         Put the options before the sizes in the arg list.
94009         Support all the new options.
94010         The old human_readable function has been removed;
94011         use inttostr.h instead.
94012         (human_readable, default_block_size, humblock):
94013         Use uintmax_t, not int, for block sizes.
94014         (human_readable_inexact, block_size_types): Remove.
94015         (block_size_opts): New constant.
94016         (human_options): Renamed from human_block_size, with new signature
94017         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94018         * lib/human.h: Add copyright and authorship notice.
94019         Include <limits.h> and <stdbool.h> unconditionally.
94020         (PARAMS): Remove.  All uses removed.
94021         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94022         (enum human_inexact_style): Remove tag; now a nameless enum.
94023         (human_floor, human_ceiling, human_round_to_even): Now have
94024         values 2, 0, 1 rather than -1, 1, 0.
94025         (human_group_digits, human_suppress_point_zero, human_autoscale,
94026         human_base_1024, human_SI, human_B): New constants.
94027         (human_readable_inexact, human_block_size): Remove.
94028         (human_readable): Size args are now uintmax_t, not int.
94029         (human_options): New decl.
94030
94031         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94032         unnecessary now that we assume C89 or better.  This change
94033         imported from coreutils.
94034
94035         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94036         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94037         in the 2003-05-30 sync from glibc.
94038
94039         .h files should stand alone, but we shouldn't include <sys/types.h>
94040         if we can get away with just <stddef.h>.
94041
94042         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94043         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94044         rather than <sys/types.h>, as we merely need size_t.
94045         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94046         to get size_t.
94047         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94048         Include <stdio.h>, to get FILE.
94049         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94050         memcasecmp.h has included <stddef.h> and all we need is size_t.
94051         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94052         our interface, instead of including <sys/types.h>
94053
94054 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94055
94056         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94057         now, as glibc mktime is buggy on non-glibc systems.
94058
94059 2003-06-03  Karl Berry  <karl@gnu.org>
94060
94061         * config/config.sub: update from prep.
94062
94063 2003-06-02  Paul Eggert  <eggert@twinsun.com>
94064
94065         [from coreutils]
94066         Fix some minor time-related bugs with POSIX time arguments.
94067         Some valid time stamps were being rejected (notably -1, and
94068         time stamps before 1900 on 64-bit hosts).  And some invalid
94069         time stamps were being accepted, e.g. September 31.
94070
94071         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
94072         that we can return (time_t) -1 successfully.
94073         * lib/posixtm.c: Likewise.
94074         [HAVE_STDBOOL_H]: Include <stdbool.h>.
94075         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
94076         (t): Remove static var.
94077         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
94078         of static var.  All uses changed.
94079         (year): Do not reject years before 1900; they can occur with
94080         64-bit time_t.
94081         (posix_time_parse): Do not check for out-of-range components;
94082         that is now the caller's responsibility, since our checks were
94083         only approximations.
94084         (posixtime): Use mktime to check for out-of-range components,
94085         since it knows them exactly.
94086         If mktime returns (time_t) -1, check whether an error actually occurred
94087         by invoking localtime on -1.
94088         (main) [TEST_POSIXTIME]: Check for input data errors, and report
94089         posixtime failures better.
94090         Improve the test data (in comments only).
94091
94092 2003-06-02  Karl Berry  <karl@gnu.org>
94093
94094         * config/mkinstalldirs (version): new variable.
94095         (--version): new option.
94096         (usage): improve message.
94097
94098 2003-05-30  Karl Berry  <karl@gnu.org>
94099
94100         * lib/mktime.c: update from libc.
94101
94102 2003-05-30  Bruno Haible  <bruno@clisp.org>
94103
94104         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
94105         * config/config.rpath: Upgrade to gettext-0.12.1.
94106
94107 2003-05-30  Bruno Haible  <bruno@clisp.org>
94108
94109         * m4/gettext.m4: Upgrade to gettext-0.12.1.
94110         * m4/nls.m4: New file, from gettext-0.12.1.
94111         * m4/po.m4: New file, from gettext-0.12.1.
94112         * m4/progtest.m4: Upgrade to gettext-0.12.1.
94113
94114 2003-05-30  Bruno Haible  <bruno@clisp.org>
94115
94116         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
94117         * lib/localcharset.h: Likewise.
94118         * lib/localcharset.c: Likewise.
94119
94120 2003-05-29  Karl Berry  <karl@gnu.org>
94121
94122         * config/config.rpath: update from gettext.
94123
94124 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94125
94126         Assume the headers required for C89 freestanding compilers.
94127         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
94128         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
94129         * m4/human.m4 (gl_HUMAN): Likewise.
94130         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
94131         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
94132         * m4/userspec.m4 (gl_USERSPEC): Likewise.
94133         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
94134         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
94135         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
94136
94137 2003-05-28  Paul Eggert  <eggert@twinsun.com>
94138
94139         Assume the headers required for C89 freestanding compilers.
94140         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
94141         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
94142         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
94143         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
94144         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
94145         define, since <limits.h> is guaranteed to do that.
94146         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
94147         * lib/exclude.c: Include <stdbool.h> unconditionally.
94148         * lib/tempname.c: Include <stddef.h> unconditionally.
94149         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
94150         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
94151         <stddef.h> does that.
94152         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
94153         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
94154         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
94155         needed.
94156         * lib/xstrtol.c: Likewise.
94157         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
94158         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
94159
94160         * lib/addext.c (addext): Use assignment rather than cast, to avoid
94161         warnings on some platforms.
94162
94163         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94164         arbitrarily.
94165
94166 2003-05-26  Jim Meyering  <jim@meyering.net>
94167
94168         Merge in a change from coreutils:
94169         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
94170         that is guaranteed to be `no'.  Use `no_such_member' to indicate
94171         that condition, rather than `-1' which is slightly misleading.
94172         Change the name of the cache variable to have the gl_ prefix.
94173         Prompted by a patch from Richard Dawe for DJGPP.
94174
94175 2003-05-24  Karl Berry  <karl@gnu.org>
94176
94177         * config/config.guess: update from prep.
94178
94179 2003-05-22  Karl Berry  <karl@gnu.org>
94180
94181         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
94182
94183 2003-05-20  Karl Berry  <karl@gnu.org>
94184
94185         * config/config.guess: update from prep.
94186
94187 2003-05-18  Karl Berry  <karl@gnu.org>
94188
94189         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
94190         might actually be set by the user.
94191
94192         * config/depcomp, install-sh, mdate-sh: update from automake.
94193
94194 2003-05-17  Bruno Haible  <bruno@clisp.org>
94195
94196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
94197         invalid expansion for AC_EGREP_CPP.
94198         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
94199         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
94200         Suggested by Akim Demaille <akim@epita.fr> in
94201         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
94202
94203 2003-05-12  Jim Meyering  <jim@meyering.net>
94204
94205         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
94206         the space-padded-by-default conversion specifiers, %e, %k, %l.
94207
94208 2003-05-12  Bruno Haible  <bruno@clisp.org>
94209
94210         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
94211         the string is longer than 4 KB.
94212
94213 2003-05-11  Karl Berry  <karl@gnu.org>
94214
94215         * config/config.{guess,sub}: update from prep.
94216
94217 2003-05-09  Bruno Haible  <bruno@clisp.org>
94218
94219         * modules/error: Add m4/strerror_r.m4 to file list.
94220
94221 2003-05-03  Bruno Haible  <bruno@clisp.org>
94222
94223         Upgrade to Unicode-4.0.
94224         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
94225         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
94226         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
94227         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
94228         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
94229         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
94230         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
94231         Change width of U+E0100..U+E01EF from 1 to 0.
94232
94233 2003-04-25  Jim Meyering  <jim@meyering.net>
94234
94235         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
94236         of type size_t, not int.
94237
94238 2003-04-25  Bruno Haible  <bruno@clisp.org>
94239
94240         * lib/copy-file.c: Include <stddef.h>, for size_t.
94241
94242 2003-04-21  Paul Eggert  <eggert@twinsun.com>
94243
94244         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
94245         code which expansion is under static control.  Patch imported from
94246         Akim Demaille's patch to Bison; see
94247         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
94248
94249 2003-04-14  Bruno Haible  <bruno@clisp.org>
94250
94251         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
94252
94253 2003-04-11  Jim Meyering  <jim@meyering.net>
94254
94255         Merge changes from Coreutils.
94256
94257         2003-03-22  Jim Meyering  <jim@meyering.net>
94258
94259         * lib/strftime.c (widen): Cast alloca return value to proper type.
94260
94261         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
94262
94263         From GNU libc.
94264         * lib/strftime.c (my_strftime): Handle very large width
94265         specifications for numeric values correctly.  Improve checks for
94266         overflow.
94267
94268         2003-01-19  Jim Meyering  <jim@meyering.net>
94269
94270         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
94271         definitions.
94272         (nl_get_alt_digit) [! defined my_strftime]: Define.
94273         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
94274         _nl_get_alt_digit and _nl_get_walt_digit.
94275
94276         * lib/strftime.c (my_strftime): Merge in locale-related changes from
94277         libc. These changes have no effect outside of _LIBC.
94278
94279 2003-04-10  Bruno Haible  <bruno@clisp.org>
94280
94281         * modules/findprog: New file.
94282         * MODULES.html.sh (func_all_modules): Add it.
94283
94284 2003-04-10  Bruno Haible  <bruno@clisp.org>
94285
94286         * m4/findprog.m4: New file.
94287         * m4/eaccess.m4: New file.
94288
94289 2003-04-10  Bruno Haible  <bruno@clisp.org>
94290
94291         * lib/findprog.h: New file, from GNU gettext.
94292         * lib/findprog.c: New file, from GNU gettext.
94293
94294 2003-04-05  Jim Meyering  <jim@meyering.net>
94295
94296         Merge changes from Coreutils.
94297
94298         * lib/exclude.h (PARAMS): Remove definition and uses.
94299         * lib/exclude.c: Remove uses of `PARAMS'.
94300
94301         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
94302         Add test-cases for DOS filenames. Declare program_name.
94303         (main): Set up program_name.  Patch by Rich Dawe.
94304
94305         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94306         error from mntctl.
94307         Use mntctl's return value to drive the entry-processing loop, since
94308         we can't rely on the value of the vmt_length member in the last
94309         entry.  On some systems doing so could result in exhausting
94310         virtual memory.  Based in part on a patch from Mike Jetzer.
94311
94312 2003-04-04  Bruno Haible  <bruno@clisp.org>
94313
94314         * modules/linebreak: New file.
94315         * MODULES.html.sh (func_all_modules): Add it.
94316
94317 2003-04-04  Bruno Haible  <bruno@clisp.org>
94318
94319         * m4/linebreak.m4: New file.
94320
94321 2003-04-04  Bruno Haible  <bruno@clisp.org>
94322
94323         * lib/linebreak.h: New file, from GNU gettext.
94324         * lib/linebreak.c: New file, from GNU gettext with slight
94325         modifications.
94326         * lib/lbrkprop.h: New file, from GNU gettext.
94327
94328 2003-04-03  Bruno Haible  <bruno@clisp.org>
94329
94330         * modules/utf8-ucs4: New file.
94331         * modules/utf16-ucs4: New file.
94332         * modules/ucs4-utf8: New file.
94333         * modules/ucs4-utf16: New file.
94334         * MODULES.html.sh (func_all_modules): Add them.
94335
94336 2003-04-03  Bruno Haible  <bruno@clisp.org>
94337
94338         * m4/utf-ucs4.m4: New file.
94339         * m4/ucs4-utf.m4: New file.
94340
94341 2003-04-03  Bruno Haible  <bruno@clisp.org>
94342
94343         * lib/utf8-ucs4.h: New file, from GNU gettext.
94344         * lib/utf16-ucs4.h: New file, from GNU gettext.
94345         * lib/ucs4-utf8.h: New file, from GNU gettext.
94346         * lib/ucs4-utf16.h: New file, from GNU gettext.
94347
94348 2003-04-02  Bruno Haible  <bruno@clisp.org>
94349
94350         * modules/binary-io: New file.
94351         * MODULES.html.sh (func_all_modules): Add it.
94352
94353 2003-04-02  Bruno Haible  <bruno@clisp.org>
94354
94355         * lib/binary-io.h: New file, from GNU gettext.
94356
94357 2003-04-01  Bruno Haible  <bruno@clisp.org>
94358
94359         * modules/pathname: New file.
94360         * MODULES.html.sh (func_all_modules): Add it.
94361
94362 2003-04-01  Bruno Haible  <bruno@clisp.org>
94363
94364         * lib/pathname.h: New file, from GNU gettext.
94365         * lib/concatpath.c: New file, from GNU gettext.
94366
94367 2003-03-30  Bruno Haible  <bruno@clisp.org>
94368
94369         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
94370
94371 2003-03-30  Bruno Haible  <bruno@clisp.org>
94372
94373         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
94374         function chown() doesn't exist.
94375
94376 2003-03-28  Bruno Haible  <bruno@clisp.org>
94377
94378         * modules/copy-file: New file.
94379         * MODULES.html.sh (func_all_modules): Add it.
94380
94381 2003-03-28  Bruno Haible  <bruno@clisp.org>
94382
94383         * m4/copy-file.m4: New file.
94384
94385 2003-03-28  Bruno Haible  <bruno@clisp.org>
94386
94387         * lib/copy-file.h: New file, from GNU gettext.
94388         * lib/copy-file.c: New file, from GNU gettext.
94389
94390 2003-03-18  Jim Meyering  <jim@meyering.net>
94391
94392         * lib/quote.c (quote_n): Fix typo in comment.
94393
94394 2003-03-18  Bruno Haible  <bruno@clisp.org>
94395
94396         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
94397         checking.
94398         * m4/onceonly_2_57.m4: Likewise.
94399
94400 2003-03-17  Bruno Haible  <bruno@clisp.org>
94401
94402         * m4/onceonly.m4: Require autoconf 2.54 or newer.
94403         (m4_quote): Remove macro.
94404         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
94405
94406 2003-03-14  Jim Meyering  <jim@meyering.net>
94407
94408         Merge changes from Coreutils.
94409         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
94410         to be const, in order to avoid warnings.
94411         (obstack_room): Likewise.
94412         (obstack_empty_p): Likewise.
94413
94414 2003-03-14  Bruno Haible  <bruno@clisp.org>
94415
94416         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
94417         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
94418
94419 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94420
94421         Merge changes from Bison.
94422         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
94423         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
94424         when compiling Bison 1.875's `bitset bset = obstack_alloc
94425         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
94426         * lib/hash.c: Include <stdbool.h> unconditionally.
94427
94428 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94429
94430         * m4/onceonly.m4 (m4_quote): New macro.
94431         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
94432         Quote AC_FOREACH variable-expansions properly.
94433
94434 2003-03-13  Paul Eggert  <eggert@twinsun.com>
94435
94436         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
94437
94438 2003-03-09  Paul Eggert  <eggert@twinsun.com>
94439
94440         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
94441         Reported by Bruce Becker; see:
94442         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
94443
94444 2003-03-03  Paul Eggert  <eggert@twinsun.com>
94445             Bruno Haible  <bruno@clisp.org>
94446
94447         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
94448         Reported by John Hughes, see
94449         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
94450
94451 2003-02-20  Bruno Haible  <bruno@clisp.org>
94452
94453         * MODULES.html.sh (func_all_modules): Add poll.
94454
94455 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94456
94457         * modules/poll: New file.
94458
94459 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94460
94461         * lib/poll_.h: New file.
94462         * lib/poll.c: New file.
94463
94464 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
94465
94466         * m4/poll.m4: New file.
94467
94468 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94469
94470         * modules/mathl: New file.
94471
94472 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94473
94474         * lib/mathl.h: New file.
94475         * lib/acosl.c: New file.
94476         * lib/asinl.c: New file.
94477         * lib/atanl.c: New file.
94478         * lib/ceill.c: New file.
94479         * lib/cosl.c: New file.
94480         * lib/expl.c: New file.
94481         * lib/floorl.c: New file.
94482         * lib/frexpl.c: New file.
94483         * lib/ldexpl.c: New file.
94484         * lib/logl.c: New file.
94485         * lib/sincosl.c: New file.
94486         * lib/sinl.c: New file.
94487         * lib/sqrtl.c: New file.
94488         * lib/tanl.c: New file.
94489         * lib/trigl.c: New file.
94490         * lib/trigl.h: New file.
94491
94492 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
94493
94494         * m4/mathl.m4: New file.
94495
94496 2003-02-18  Bruno Haible  <bruno@clisp.org>
94497
94498         * MODULES.html.sh (func_all_modules): Add mathl.
94499
94500 2003-02-17  Bruno Haible  <bruno@clisp.org>
94501
94502         * modules/mkdtemp: New module.
94503         * MODULES.html.sh (func_all_modules): Add it.
94504
94505 2003-02-17  Bruno Haible  <bruno@clisp.org>
94506
94507         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
94508
94509 2003-02-17  Bruno Haible  <bruno@clisp.org>
94510
94511         * lib/mkdtemp.h: New file, from GNU gettext.
94512         * lib/mkdtemp.c: New file, from GNU gettext.
94513
94514 2003-02-02  Jim Meyering  <jim@meyering.net>
94515
94516         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
94517         e.g. glibc-2.2.93.
94518
94519 2003-01-31  Bruno Haible  <bruno@clisp.org>
94520
94521         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
94522         'rpl_rename'.
94523         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
94524         'rpl_strnlen'.
94525         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
94526         'rpl_strtod'.
94527         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
94528         'rpl_utime'.
94529
94530 2003-01-31  Bruno Haible  <bruno@clisp.org>
94531
94532         * lib/rename.c: #undef rename before defining rpl_rename.
94533         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
94534
94535 2003-01-30  Bruno Haible  <bruno@clisp.org>
94536
94537         * modules/vasnprintf, modules/vasprintf: New modules.
94538         * MODULES.html.sh (func_all_modules): Add them.
94539
94540 2003-01-30  Bruno Haible  <bruno@clisp.org>
94541
94542         * m4/signed.m4: New file, from GNU gettext.
94543         * m4/longdouble.m4: New file, from GNU gettext.
94544         * m4/wchar_t.m4: New file, from GNU gettext.
94545         * m4/wint_t.m4: New file, from GNU gettext.
94546         * m4/vasnprintf.m4: New file.
94547         * m4/vasprintf.m4: New file.
94548
94549 2003-01-30  Bruno Haible  <bruno@clisp.org>
94550
94551         * lib/printf-args.h: New file, from GNU gettext.
94552         * lib/printf-args.c: New file, from GNU gettext.
94553         * lib/printf-parse.h: New file, from GNU gettext.
94554         * lib/printf-parse.c: New file, from GNU gettext.
94555         * lib/vasnprintf.h: New file, from GNU gettext.
94556         * lib/vasnprintf.c: New file, from GNU gettext.
94557         * lib/asnprintf.c: New file, from GNU gettext.
94558         * lib/vasprintf.h: New file, from GNU gettext with modifications.
94559         * lib/vasprintf.c: New file, from GNU gettext.
94560         * lib/asprintf.c: New file, from GNU gettext.
94561
94562 2003-01-29  Bruno Haible  <bruno@clisp.org>
94563
94564         * modules/stpncpy: New module.
94565         * MODULES.html.sh (func_all_modules): Add it.
94566
94567 2003-01-29  Bruno Haible  <bruno@clisp.org>
94568
94569         * m4/stpncpy.m4: New file.
94570
94571 2003-01-29  Bruno Haible  <bruno@clisp.org>
94572
94573         * lib/stpncpy.h: New file, from GNU gettext with modifications.
94574         * lib/stpncpy.c: New file, from GNU gettext with modifications.
94575
94576 2003-01-28  Bruno Haible  <bruno@clisp.org>
94577
94578         * modules/c-ctype: New module.
94579         * MODULES.html.sh (func_all_modules): Add it.
94580
94581 2003-01-28  Bruno Haible  <bruno@clisp.org>
94582
94583         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
94584         Paul Eggert.
94585         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
94586         Paul Eggert.
94587
94588 2003-01-27  Bruno Haible  <bruno@clisp.org>
94589
94590         * modules/xsetenv: New module.
94591         * MODULES.html.sh (func_all_modules): Add it.
94592
94593 2003-01-27  Bruno Haible  <bruno@clisp.org>
94594
94595         * lib/xsetenv.h: New file, from GNU gettext.
94596         * lib/xsetenv.c: New file, from GNU gettext.
94597
94598 2003-01-23  Jim Meyering  <jim@meyering.net>
94599
94600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
94601         from working on systems without dirfd (at least Irix and OSF1/Tru64).
94602
94603 2003-01-23  Bruno Haible  <bruno@clisp.org>
94604
94605         * modules/minmax: New module.
94606         * MODULES.html.sh (func_all_modules): Add it.
94607
94608 2003-01-23  Bruno Haible  <bruno@clisp.org>
94609
94610         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
94611         Eggert.
94612
94613 2003-01-22  Bruno Haible  <bruno@clisp.org>
94614
94615         * modules/exit: New module.
94616         * MODULES.html.sh (func_all_modules): Add it.
94617
94618 2003-01-22  Bruno Haible  <bruno@clisp.org>
94619
94620         * lib/exit.h: New file, from GNU gettext.
94621
94622 2003-01-19  Bruno Haible  <bruno@clisp.org>
94623
94624         * gnulib-tool: Recognize option --extract-maintainer.
94625         (func_get_maintainer): New function.
94626         * modules/*: Add Maintainer entry.
94627
94628 2003-01-16  Jim Meyering  <jim@meyering.net>
94629
94630         * m4/regex.m4: The `regex' struct is both input and output.
94631         Initialize it before each use.  Patch by Tim Waugh.
94632
94633 2003-01-16  Bruno Haible  <bruno@clisp.org>
94634
94635         * MODULES.html.sh: Add a table of contents. Add the module name as
94636         leftmost column. Add hyperlinks.
94637
94638 2003-01-15  Bruno Haible  <bruno@clisp.org>
94639
94640         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
94641
94642 2003-01-15  Bruno Haible  <bruno@clisp.org>
94643
94644         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
94645         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
94646         suffix.
94647
94648 2003-01-15  Bruno Haible  <bruno@clisp.org>
94649
94650         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
94651
94652 2003-01-15  Bruno Haible  <bruno@clisp.org>
94653
94654         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
94655         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
94656
94657 2003-01-14  Jim Meyering  <jim@meyering.net>
94658
94659         * lib/same.c (same_name): Tweak a comment.
94660
94661 2003-01-14  Bruno Haible  <bruno@clisp.org>
94662
94663         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
94664         when a string comparison is sufficient.
94665
94666 2003-01-14  Bruno Haible  <bruno@clisp.org>
94667
94668         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
94669         'unsigned int'.
94670
94671 2003-01-14  Bruno Haible  <bruno@clisp.org>
94672
94673         * lib/hash-pjw.c: Add comment about low quality of this function.
94674
94675 2003-01-13  Bruno Haible  <bruno@clisp.org>
94676
94677         * modules/stpcpy: Distribute lib/stpcpy.h.
94678         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
94679
94680 2003-01-13  Bruno Haible  <bruno@clisp.org>
94681
94682         * modules/*: Add a description.
94683         * modules/strpbrk: Fix Makefile.am snippet.
94684         * modules/strtoimax: Fix dependencies.
94685         * modules/strtoumax: Likewise.
94686
94687 2003-01-13  Bruno Haible  <bruno@clisp.org>
94688
94689         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
94690         * modules/alloca (Makefile.am): All object files depend on alloca.h.
94691         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
94692
94693 2003-01-13  Bruno Haible  <bruno@clisp.org>
94694
94695         * gnulib-tool (func_create_testdir): Store config/* files in the main
94696         directory.
94697         * config.rpath: Move to ...
94698         * config/config.rpath: ... here.
94699         * modules/gettext: Contains config/config.rpath, not config.rpath.
94700         * modules/iconv: Likewise.
94701
94702 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94703
94704         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94705         to avoid collisions with libcurses and libreadline.
94706
94707         * m4/getstr.m4: Remove.
94708         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
94709
94710 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94711
94712         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94713         to avoid collisions with libcurses and libreadline.
94714
94715         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
94716         * lib/getstr.h, getstr.c: Remove.
94717         * lib/getline.c: Include "getline.h", to check interface.
94718         Move body of old getstr.c here: this defines MIN_CHUNK and
94719         declares getdelim2, which is renamed from getstr.
94720         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
94721
94722         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
94723         All uses changed.
94724         * lib/linebuffer.h: Likewise.
94725         (readline): Remove backward-compatibility macro.
94726
94727 2003-01-12  Paul Eggert  <eggert@twinsun.com>
94728
94729         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
94730         to avoid collisions with libcurses and libreadline.
94731         * getstr: Remove.
94732         * MODULES.html.sh: Remove getstr.
94733         * modules/getline: Depend on unlocked-io, not getstr.
94734
94735 2003-01-12  Jim Meyering  <jim@meyering.net>
94736
94737         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
94738
94739 2003-01-10  Bruno Haible  <bruno@clisp.org>
94740
94741         * modules/alloca: Change Makefile.am requirements. Simplify Include
94742         requirements. Add lib/alloca_.h to file list.
94743
94744 2003-01-10  Bruno Haible  <bruno@clisp.org>
94745
94746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
94747
94748 2003-01-10  Bruno Haible  <bruno@clisp.org>
94749
94750         * lib/alloca_.h: New file.
94751         * lib/getdate.y: Unconditionally include alloca.h.
94752         * lib/makepath.c: Likewise.
94753         * lib/setenv.c: Likewise.
94754         * lib/userspec.c: Likewise.
94755
94756 2003-01-09  Karl Berry  <karl@gnu.org>
94757
94758         * MODULES.html.sh: include `dirname $0` in PATH, to find
94759         gnulib-tool.
94760
94761 2003-01-09  Bruno Haible  <bruno@clisp.org>
94762
94763         * modules/stdbool: Change configure.ac, Makefile.am requirements.
94764         Simplify Include requirements. Add lib/stdbool.h.in to file list.
94765
94766 2003-01-09  Bruno Haible  <bruno@clisp.org>
94767
94768         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
94769
94770 2003-01-09  Bruno Haible  <bruno@clisp.org>
94771
94772         * lib/stdbool.h.in: New file.
94773
94774 2003-01-09  Bruno Haible  <bruno@clisp.org>
94775
94776         * gnulib-tool (func_all_modules): Ignore files ending in ~.
94777         * MODULES.html.sh: Likewise.
94778
94779 2003-01-08  Jim Meyering  <jim@meyering.net>
94780
94781         * lib/full-write.c: Undefine and define-away `const' after inclusion
94782         of errno.h, not before.  Suggestion from Bruno Haible.
94783
94784 2003-01-08  Bruno Haible  <bruno@clisp.org>
94785
94786         * modules/full-read: Depend on full-write.
94787
94788 2003-01-08  Bruno Haible  <bruno@clisp.org>
94789
94790         * lib/safe-read.c: Include specification header first, to ensure its
94791         selfcontainedness.
94792         * lib/full-write.c: Likewise.
94793
94794 2003-01-07  Jim Meyering  <jim@meyering.net>
94795
94796         * lib/full-write.c: Rework so that it may serve to define full_read,
94797         too.
94798         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
94799
94800 2003-01-07  Bruno Haible  <bruno@clisp.org>
94801
94802         * lib/strtoimax.c: Include <stdint.h> as an alternative to
94803         <inttypes.h>.
94804         * lib/xstrtol.h: Likewise.
94805         * lib/xstrtoimax.c: Likewise.
94806         * lib/xstrtoumax.c: Likewise.
94807         * lib/human.h: Likewise.
94808
94809         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
94810         on systems that have <inttypes.h> but not <stdint.h>.
94811
94812 2003-01-07  Bruno Haible  <bruno@clisp.org>
94813
94814         * MODULES.html.sh: Add copyright notice.
94815         (missed_files): Omit CVS directory entries.
94816         (func_module): Make it work with sed-3.02.
94817         * MODULES.txt: Remove file.
94818
94819 2003-01-06  Jim Meyering  <jim@meyering.net>
94820
94821         * lib/version-etc.c: Update year in translatable copyright string.
94822
94823 2003-01-03  Karl Berry  <karl@gnu.org>
94824
94825         * config/config.{guess,sub}: update from prep.
94826
94827 2003-01-02  Karl Berry  <karl@gnu.org>
94828
94829         * doc/COPYING.DOC: belatedly updated to 1.2.
94830
94831 2003-01-01  Karl Berry  <karl@gnu.org>
94832
94833         * gnulib-tool (func_verify_module): report module name $module in
94834         error message, not $1.
94835         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94836         be created, only if it doesn't exist.
94837         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94838
94839 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94840
94841         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94842
94843 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94844
94845         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94846         memcmp if strcoll doesn't work.
94847
94848 2002-12-31  Bruno Haible  <bruno@clisp.org>
94849
94850         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94851         nonempty.
94852
94853 2002-12-31  Bruno Haible  <bruno@clisp.org>
94854
94855         * lib/memcoll.c (STRCOLL): New macro.
94856         (memcoll): Use it.
94857
94858 2002-12-31  Bruno Haible  <bruno@clisp.org>
94859
94860         * lib/localcharset.h: New file.
94861         * lib/localcharset.c: Include it.
94862         * lib/unicodeio.c: Likewise.
94863
94864 2002-12-31  Bruno Haible  <bruno@clisp.org>
94865
94866         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94867         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94868
94869 2002-12-31  Bruno Haible  <bruno@clisp.org>
94870
94871         * lib/getline.h: Include <stddef.h>, for size_t.
94872
94873         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94874         * lib/unicodeio.c: Don't include <stddef.h>.
94875
94876 2002-12-31  Bruno Haible  <bruno@clisp.org>
94877
94878         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94879         HAVE_TM_ZONE.
94880
94881 2002-12-24  Karl Berry  <karl@gnu.org>
94882
94883         * config/config.guess: update from prep.
94884
94885 2002-12-24  Bruno Haible  <bruno@clisp.org>
94886
94887         General infrasructure.
94888         * m4/README: Rewritten.
94889         * m4/onceonly.m4: New file.
94890         * m4/onceonly_2_57.m4: New file.
94891
94892         Module atexit.
94893         * m4/atexit.m4: New file.
94894
94895         Module strtod.
94896         * m4/strtod.m4: New file.
94897
94898         Module strtol.
94899         * m4/strtol.m4: New file.
94900
94901         Module strtoul.
94902         * m4/strtoul.m4: New file.
94903
94904         Module memchr.
94905         * m4/memchr.m4: New file.
94906
94907         Module memcmp.
94908         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94909         (jm_FUNC_MEMCMP): Invoke it.
94910
94911         Module memcpy.
94912         * m4/memcpy.m4: New file.
94913
94914         Module memmove.
94915         * m4/memmove.m4: New file.
94916
94917         Module memset.
94918         * m4/memset.m4: New file.
94919
94920         Module strcspn.
94921         * m4/strcspn.m4: New file.
94922
94923         Module strpbrk.
94924         * m4/strpbrk.m4: New file.
94925
94926         Module strstr.
94927         * m4/strstr.m4: New file.
94928
94929         Module strerror.
94930         * m4/strerror.m4: New file.
94931
94932         Module mktime.
94933         * m4/mktime.m4: Renamed from jm-mktime.m4.
94934         (gl_PREREQ_MKTIME): New macro.
94935         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94936
94937         Module malloc.
94938         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94939         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94940         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94941
94942         Module realloc.
94943         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94944         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94945         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94946
94947         Module strftime.
94948         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94949         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94950         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94951         gl_TM_GMTOFF.
94952         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94953
94954         Module xalloc.
94955         * m4/xalloc.m4: New file.
94956
94957         Module alloca.
94958         * m4/alloca.m4: New file.
94959
94960         Module putenv.
94961         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94962         (jm_FUNC_PUTENV): Invoke it.
94963
94964         Module setenv.
94965         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94966         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94967         when invoked twice.
94968         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94969         gt_FUNC_SETENV.
94970
94971         Module memrchr.
94972         * m4/memrchr.m4: New file.
94973
94974         Module stpcpy.
94975         * m4/stpcpy.m4: New file.
94976
94977         Module strcase.
94978         * m4/strcase.m4: New file.
94979
94980         Module strdup.
94981         * m4/strdup.m4: New file.
94982
94983         Module strnlen.
94984         * m4/strnlen.m4: New file.
94985
94986         Module strndup.
94987         * m4/strndup.m4: New file.
94988
94989         Module xstrtod.
94990         * m4/xstrtod.m4: New file.
94991
94992         Module xstrtol.
94993         * m4/xstrtol.m4: New file.
94994
94995         Module getdate.
94996         * m4/getdate.m4: New file.
94997
94998         Module unlocked-io.
94999         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95000         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95001         * m4/jm-glibc-io.m4n: Remove file.
95002
95003         Module long-options.
95004         * m4/long-options.m4: New file.
95005
95006         Module md5.
95007         * m4/md5.m4: New file.
95008
95009         Module sha.
95010         * m4/sha.m4: New file.
95011
95012         Module getstr.
95013         * m4/getstr.m4: New file.
95014
95015         Module getline.
95016         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95017         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95018         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95019         simply getline. Infoke gl_PREREQ_GETLINE.
95020
95021         Module obstack.
95022         * m4/obstack.m4: New file.
95023
95024         Module hash.
95025         * m4/hash.m4: New file.
95026
95027         Module readtokens.
95028         * m4/readtokens.m4: New file.
95029
95030         Module strverscmp.
95031         * m4/strverscmp.m4: New file.
95032
95033         Module stdbool.
95034         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95035         OSF/1.
95036
95037         Module strtoll.
95038         * m4/strtoll.m4: New file.
95039
95040         Module strtoull.
95041         * m4/strtoull.m4: New file.
95042
95043         Module strtoimax.
95044         * m4/strtoimax.m4: New file.
95045
95046         Module strtoumax.
95047         * m4/strtoumax.m4: New file.
95048
95049         Module xstrtoimax.
95050         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95051         jm_AC_PREREQ_XSTRTOIMAX.
95052         Moved the strtol prerequisites to strtol.m4.
95053         Moved the strtoll prerequisites to strtoll.m4.
95054         Moved the strtoimax prerequisites to strtoimax.m4.
95055
95056         Module xstrtoumax.
95057         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95058         jm_AC_PREREQ_XSTRTOUMAX.
95059         Moved the strtoul prerequisites to strtoul.m4.
95060         Moved the strtoull prerequisites to strtoull.m4.
95061         Moved the strtoumax prerequisites to strtoumax.m4.
95062
95063         Module chown.
95064         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
95065         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
95066
95067         Module dup2.
95068         * m4/dup2.m4: New file.
95069
95070         Module ftruncate.
95071         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
95072         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
95073
95074         Module getgroups.
95075         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
95076         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
95077
95078         Module gettimeofday.
95079         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
95080         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
95081         gl_PREREQ_GETTIMEOFDAY.
95082
95083         Module mkdir.
95084         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
95085         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
95086
95087         Module mkstemp.
95088         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
95089         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
95090         jm_AC_TYPE_UINTMAX_T.
95091         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
95092
95093         Module stat.
95094         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
95095         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
95096
95097         Module lstat.
95098         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
95099         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
95100
95101         Module timespec.
95102         * m4/timespec.m4 (gl_TIMESPEC): New macro.
95103         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
95104         * m4/st_mtim.m4: Indentation.
95105
95106         Module nanosleep.
95107         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
95108         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
95109         gl_PREREQ_NANOSLEEP.
95110
95111         Module regex.
95112         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
95113         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
95114         (gl_REGEX): New macro.
95115
95116         Module rename.
95117         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
95118         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
95119
95120         Module rmdir.
95121         * m4/rmdir.m4: New file.
95122
95123         Module utime.
95124         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
95125         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
95126         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
95127
95128         Module dirname.
95129         * m4/dirname.m4: New file.
95130
95131         Module getopt.
95132         * m4/getopt.m4: New file.
95133
95134         Module unistd-safer.
95135         * m4/unistd-safer.m4: New file.
95136
95137         Module fnmatch.
95138         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
95139         declaration.
95140         (gl_PREREQ_FNMATCH_EXTRA): New macro.
95141         (gl_FUNC_FNMATCH_POSIX): New macro.
95142         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
95143         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
95144         simply fnmatch.
95145
95146         Module exclude.
95147         * m4/exclude.m4: New file.
95148
95149         Module human.
95150         * m4/human.m4: New file.
95151
95152         Module acl.
95153         * m4/acl.m4: Nop.
95154
95155         Module backupfile.
95156         * m4/backupfile.m4: New file.
95157         * m4/d-ino.m4: Indentation.
95158
95159         Module fsusage.
95160         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
95161         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
95162         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
95163
95164         Module dirfd.
95165         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
95166         requirements.
95167
95168         Module euidaccess.
95169         * m4/euidaccess.m4: New file.
95170
95171         Module file-type.
95172         * m4/file-type.m4: New file.
95173
95174         Module fileblocks.
95175         * m4/fileblocks.m4: New file.
95176
95177         Module filemode.
95178         * m4/filemode.m4: New file.
95179
95180         Module isdir.
95181         * m4/isdir.m4: New file.
95182
95183         Module lchown.
95184         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
95185         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
95186
95187         Module makepath.
95188         * m4/makepath.m4: New file.
95189
95190         Module modechange.
95191         * m4/modechange.m4: New file.
95192
95193         Module mountlist.
95194         * m4/mountlist.m4: New file.
95195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
95196         Indentation.
95197
95198         Module path-concat.
95199         * m4/path-concat.m4: New file.
95200
95201         Module pathmax.
95202         * m4/pathmax.m4: New file.
95203
95204         Module same.
95205         * m4/same.m4: New file.
95206
95207         Module save-cwd.
95208         * m4/save-cwd.m4: New file.
95209
95210         Module savedir.
95211         * m4/savedir.m4: New file.
95212
95213         Module xgetcwd.
95214         * m4/xgetcwd.m4: New file.
95215         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
95216
95217         Module xreadlink.
95218         * m4/xreadlink.m4: New file.
95219
95220         Module safe-read.
95221         * m4/safe-read.m4: New file.
95222
95223         Module safe-write.
95224         * m4/safe-write.m4: New file.
95225
95226         Module closeout.
95227         * m4/closeout.m4: New file.
95228
95229         Module stdio-safer.
95230         * m4/stdio-safer.m4: New file.
95231
95232         Module getpass.
95233         * m4/getpass.m4: New file.
95234
95235         Module getugroups.
95236         * m4/getugroups.m4: New file.
95237
95238         Module group-member.
95239         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
95240         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
95241
95242         Module idcache.
95243         * m4/idcache.m4: New file.
95244
95245         Module userspec.
95246         * m4/userspec.m4: New file.
95247
95248         Module gettime.
95249         * m4/clock_time.m4: New file.
95250         * m4/gettime.m4: New file.
95251
95252         Module settime.
95253         * m4/settime.m4: New file.
95254
95255         Module posixtm.
95256         * m4/posixtm.m4: New file.
95257
95258         Module gethostname.
95259         * m4/gethostname.m4: New file.
95260
95261         Module canon-host.
95262         * m4/canon-host.m4: New file.
95263
95264         Module gettext.
95265         * m4/codeset.m4: New file, from gettext-0.11.5.
95266         * m4/gettext.m4: New file, from gettext-0.11.5.
95267         * m4/glibc21.m4: New file, from gettext-0.11.5.
95268         * m4/iconv.m4: New file, from gettext-0.11.5.
95269         * m4/intdiv0.m4: New file, from gettext-0.11.5.
95270         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
95271         * m4/inttypes.m4: New file, from gettext-0.11.5.
95272         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
95273         * m4/isc-posix.m4: New file, from gettext-0.11.5.
95274         * m4/lcmessage.m4: New file, from gettext-0.11.5.
95275         * m4/lib-ld.m4: New file, from gettext-0.11.5.
95276         * m4/lib-link.m4: New file, from gettext-0.11.5.
95277         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
95278         * m4/progtest.m4: New file, from gettext-0.11.5.
95279         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
95280         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
95281         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
95282
95283         Module localcharset.
95284         * m4/localcharset.m4: New file.
95285
95286         Module hard-locale.
95287         * m4/hard-locale.m4: New file.
95288
95289         Module mbswidth.
95290         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
95291         onceonly macros.
95292         * m4/mbrtowc.m4: Add comment.
95293
95294         Module memcasecmp.
95295         * m4/memcasecmp.m4: New file.
95296
95297         Module memcoll.
95298         * m4/memcoll.m4: New file.
95299
95300         Module unicodeio.
95301         * m4/unicodeio.m4: New file.
95302
95303         Module rpmatch.
95304         * m4/rpmatch.m4: New file.
95305
95306         Module yesno.
95307         * m4/yesno.m4: New file.
95308
95309         Module exitfail.
95310         * m4/exitfail.m4: New file.
95311
95312         Module c-stack.
95313         * m4/c-stack.m4 (gl_C_STACK): New macro.
95314         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
95315
95316         Module error.
95317         * m4/error.m4 (gl_ERROR): New macro.
95318         (jm_PREREQ_ERROR): Use onceonly macros.
95319
95320         Module fatal.
95321         * m4/fatal.m4: New file.
95322
95323         Module getloadavg.
95324         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
95325         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
95326
95327         Module getpagesize.
95328         * m4/getpagesize.m4: New file.
95329
95330         Module getusershell.
95331         * m4/getusershell.m4: New file.
95332
95333         Module physmem.
95334         * m4/physmem.m4: New file.
95335
95336         Module posixver.
95337         * m4/posixver.m4: New file.
95338
95339         Module quotearg.
95340         * m4/quotearg.m4: New file.
95341
95342         Module quote.
95343         * m4/quote.m4: New file.
95344
95345         Module readutmp.
95346         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
95347
95348         Module sig2str.
95349         * m4/sig2str.m4: New file.
95350
95351         Other.
95352         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
95353         ulonglong.m4.
95354         * m4/intmax_t.m4: New file.
95355         * m4/d-type.m4: Indentation.
95356         * m4/jm-macros.m4: Update.
95357         * m4/prereq.m4 (jm_PREREQ): Update.
95358         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
95359         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
95360         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
95361         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
95362         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
95363         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
95364         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
95365         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
95366         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
95367         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
95368         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
95369         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
95370         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
95371         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
95372         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
95373         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
95374         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
95375         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
95376         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
95377
95378 2002-12-24  Bruno Haible  <bruno@clisp.org>
95379
95380         * MODULES.txt: Update according to m4/ changes.
95381
95382         Module gettext.
95383         * config.rpath: New file, from gettext-0.11.5.
95384
95385         * modules/*: New module descriptions.
95386         * gnulib-tool: New file.
95387         * MODULES.html.sh: New file.
95388
95389 2002-12-21  Karl Berry  <karl@gnu.org>
95390
95391         * doc/fdl.texi: update to version 1.2.
95392
95393 2002-12-19  Karl Berry  <karl@gnu.org>
95394
95395         * config/config.guess: update from prep.
95396
95397 2002-12-18  Bruno Haible  <bruno@clisp.org>
95398
95399         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
95400         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
95401
95402 2002-12-17  Bruno Haible  <bruno@clisp.org>
95403
95404         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
95405         stdlib.h, string.h.
95406
95407 2002-12-17  Bruno Haible  <bruno@clisp.org>
95408
95409         * lib/canon-host.c (strdup): Remove unused declaration.
95410
95411         * lib/fsusage.c: Include full_read.h.
95412         (get_fs_usage): Use full_read instead of safe_read.
95413
95414         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
95415
95416 2002-12-12  Karl Berry  <karl@gnu.org>
95417
95418         * config/config.guess: update from prep.
95419
95420 2002-12-11  Bruno Haible  <bruno@clisp.org>
95421
95422         * m4/setenv.m4: New file, from gettext-0.11.5.
95423
95424 2002-12-11  Bruno Haible  <bruno@clisp.org>
95425
95426         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
95427         not unsetenv().
95428         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
95429         modifications:
95430
95431         2002-12-11  Bruno Haible  <bruno@clisp.org>
95432
95433                 * setenv.c (alloca): Fall back to malloc.
95434                 (freea): New macro.
95435                 (setenv): Use freea() to free memory allocated with alloca().
95436
95437         2002-11-13  Bruno Haible  <bruno@clisp.org>
95438
95439                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
95440                 function declarations.
95441                 * unsetenv.c (unsetenv): Likewise.
95442
95443         2002-03-04  Bruno Haible  <bruno@clisp.org>
95444
95445                 Portability to AIX 4.3.3.
95446                 * unsetenv.c: New file, extracted from setenv.c.
95447                 * setenv.c: Move the unsetenv() function to unsetenv.c.
95448
95449         2001-12-20  Bruno Haible  <bruno@clisp.org>
95450
95451                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
95452                 use malloc instead. For SunOS 4.
95453
95454         2001-12-11  Bruno Haible  <bruno@clisp.org>
95455
95456                 * setenv.c: Declare alloca.
95457                 (compar_fn_t): New typedef.
95458                 (KNOWN_VALUE, STORE_VALUE): Use it.
95459
95460         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
95461         setenv.h.
95462
95463 2002-12-10  Paul Eggert  <eggert@twinsun.com>
95464
95465         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
95466         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
95467         Choose values that are less likely to collide with system fnmatch
95468         options.
95469         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
95470         defined (e.g., a pure POSIX system).
95471         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
95472         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
95473
95474 2002-12-06  Paul Eggert  <eggert@twinsun.com>
95475
95476         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
95477         a pain in practice to deal with generated m4 files.  This change
95478         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
95479
95480         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
95481         and jm-glibc-io.m4, as they are no longer a special case.
95482         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
95483         kludge and the auto-generation stuff.  Check only whether the
95484         functions are declared, not whether they exist, since older hosts
95485         that don't declare the functions can't use the optimization anyway.
95486
95487 2002-12-06  Jim Meyering  <jim@meyering.net>
95488
95489         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
95490
95491         Merge in changes from libc's misc/error.c, in preparation
95492         for the merge of gnulib's changes back into libc.
95493
95494         * lib/error.c (_): Define only if not already defined.
95495         Move definition to follow all #include directives.
95496         Include unlocked-io.h only if !_LIBC.
95497         [_LIBC]: Include <libio/libioP.h>.
95498         [USE_IN_LIBIO]: Include <libio/iolibio.h>
95499         (fflush): Tweak definition to use INTUSE.
95500         (putc): Define.
95501
95502 2002-12-05  Paul Eggert  <eggert@twinsun.com>
95503
95504         * lib/alloca.c [defined emacs]: Include "lisp.h".
95505         (xalloc_die) [defined emacs]: New macro.
95506         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
95507         [! defined emacs]: Include <xalloc.h>.
95508         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
95509         (pointer): Typedef to POINTER_TYPE *.
95510         (malloc): Remove decl; we now always use xmalloc.
95511         (alloca): Use old-style definition, since Emacs needs this.
95512         Check for arithmetic overflow when computing combined size.
95513
95514 2002-12-04  Paul Eggert  <eggert@twinsun.com>
95515
95516         Do not generate unlocked-io.h automatically, since it's easier to
95517         maintain it by hand.
95518
95519         * lib/unlocked-io.h: New file, from GNU diffutils,
95520         but with proper copyright notice and attribution.
95521         * lib/gen-uio: Remove.
95522         * lib/Makefile.am: Add copyright notice.
95523         (libfetish_a_SOURCES): Add unlocked-io.h.
95524         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
95525         (DISTCLEANFILES, io_functions): Remove macros.
95526         (EXTRA_DIST): Remove gen_uio.
95527         (unlocked-io.h): Remove rule.
95528
95529 2002-12-04  Jim Meyering  <jim@meyering.net>
95530
95531         Reflect the fact that stat.c and lstat.c are no longer generated.
95532         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
95533         (DISTCLEANFILES): Likewise.
95534         (EXTRA_DIST): Likewise.
95535         (all_local): Don't depend on stat.c or lstat.c.
95536         (stat.c, lstat.c): Remove rules.
95537         (EXTRA_DIST): Remove xstat.in.
95538
95539         * lib/xstat.in: Remove file.  Contents moved into stat.c.
95540         * lib/stat.c: New file.  Contents mostly from xstat.in.
95541         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
95542         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
95543
95544         * lib/safe-read.c: Rework so that it may serve to define safe_write,
95545         too.
95546         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
95547
95548 2002-12-03  Jim Meyering  <jim@meyering.net>
95549
95550         * lib/safe-read.c, safe-write.c: Change variable names and comments,
95551         but not semantics, to minimize the differences between these two files.
95552         (safe_read): Change comment to mention SAFE_READ_ERROR.
95553
95554         * lib/safe-read.c (IS_EINTR): Define.
95555         (safe_read): Use IS_EINTR in place of in-function cpp directives.
95556
95557 2002-12-02  Jim Meyering  <jim@meyering.net>
95558
95559         * lib/safe-read.c (EINTR): Define.
95560         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95561         (INT_MAX): Provide fallback.
95562         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
95563
95564         * lib/safe-read.h (SAFE_READ_ERROR): Define.
95565
95566 2002-12-02  Bruno Haible  <bruno@clisp.org>
95567
95568         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
95569         Define, taken from safe-read.c.
95570         (INT_MAX): Provide fallback.
95571         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
95572         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
95573
95574         * lib/safe-read.c (EINTR): Remove definition.
95575         (safe_read): Don't use EINTR if it is absent.
95576
95577 2002-12-01  Jim Meyering  <jim@meyering.net>
95578
95579         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
95580         zero.
95581         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
95582
95583 2002-11-27  Paul Eggert  <eggert@twinsun.com>
95584
95585         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
95586         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
95587         with `if (! (value < limit)) abort ();', for readability.
95588
95589 2002-11-26  Karl Berry  <karl@gnu.org>
95590
95591         * lib/strdup.c: copy from libc again, with jim's ok.
95592         * lib/.cppi-disable: re-add strdup.c
95593
95594 2002-11-25  Karl Berry  <karl@gnu.org>
95595
95596         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
95597         instead of "strtol.c".
95598
95599 2002-11-25  Karl Berry  <karl@gnu.org>
95600
95601         * config/install-sh: update from automake for variable quoting, $0 in
95602         error msgs, etc.
95603
95604         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
95605         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
95606         entry.
95607
95608 2002-11-25  Jim Meyering  <jim@meyering.net>
95609
95610         * lib/mktime.c: Sync from libc, now that it has the latest fix.
95611
95612 2002-11-24  Karl Berry  <karl@gnu.org>
95613
95614         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
95615         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
95616
95617 2002-11-24  Jim Meyering  <jim@meyering.net>
95618
95619         Update from coreutils:
95620
95621         * lib/mktime.c: Merge in changes from libc.
95622
95623         Avoid a link-time failure on some Linux systems.
95624         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
95625         (otherwise).
95626         (__mon_yday): Declare with the STATIC attribute.
95627         (__mktime_internal): Likewise.
95628         Based on a report from Greg Schafer.
95629
95630 2002-11-23  Jim Meyering  <jim@meyering.net>
95631
95632         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
95633         Use `unsigned', not `int', as type of index.
95634
95635         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
95636
95637         * lib/fsusage.c: Remove unneeded parentheses around operands of
95638         `defined'.
95639
95640 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95641
95642         * lib/quotearg.h: Allow multiple inclusion by surrounding with
95643         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
95644         so that we can be included first.
95645         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
95646         * lib/quotearg.c: Include quotearg.h immediately after config.h.
95647         No need to include stddef.h or sys/types.h any more.
95648         Surround local include files with "", not "<>".
95649         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
95650         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
95651         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
95652         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
95653         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
95654         (ISPRINT): Remove; no longer needed now that we assume C89.
95655
95656         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
95657         Preserve errno.
95658
95659         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
95660         quotearg_char): Use SIZE_MAX rather than
95661         (size_t) -1 when we are talking about "infinity".
95662
95663         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
95664
95665 2002-11-22  Paul Eggert  <eggert@twinsun.com>
95666
95667         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
95668         hint that one should use `if (! x) abort ();' rather than `assert
95669         (x);', and anyway it's one less thing to worry about configuring.
95670         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
95671         hash_rehash, hash_insert): Use abort rather than assert.
95672
95673 2002-11-22  Bruno Haible  <bruno@clisp.org>
95674
95675         * lib/safe-read.h: Assume C89. Add comments.
95676         (safe_read): Change return type to size_t.
95677         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
95678         byte counts > SSIZE_MAX correctly.
95679         * lib/safe-write.h: New file.
95680         * lib/safe-write.c: New file.
95681         * lib/full-read.h: New file.
95682         * lib/full-read.c: New file.
95683         * lib/full-write.h: Assume C89. Add comments.
95684         * lib/full-write.c: Include safe-write.h.
95685         (full_write): Rewritten to use safe_write.
95686         Suggested by Jim Meyering and Paul Eggert.
95687
95688 2002-11-21  Jim Meyering  <jim@meyering.net>
95689
95690         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
95691
95692         Merge in changes from the coreutils.
95693
95694         2002-09-25  Paul Eggert  <eggert@twinsun.com>
95695         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
95696         <stdint.h>.
95697         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
95698         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
95699         int.  Work more efficiently if X is the same width as uintmax_t.
95700         Do not compare X to -1, to avoid bogus compiler warning.
95701         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
95702         Don't assume that f_frsize and f_bsize are the same type.
95703
95704         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
95705         warning on FreeBSD.
95706
95707         * lib/makepath.c (make_path): Restore umask *before* creating the final
95708         component.
95709         (make_path): Minor reformatting.
95710
95711         * lib/xmalloc.c: Adjust to work with new autoconf macros,
95712         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
95713         HAVE_MALLOC/HAVE_REALLOC.
95714
95715         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
95716         dummy ones.  At least on GNU/Linux systems, `auto' means something
95717         else.
95718         From Michael Stone.
95719
95720 2002-11-21  Bruno Haible  <bruno@clisp.org>
95721
95722         Remove case insensitive option matching.
95723         * lib/argmatch.h (argcasematch): Remove declaration.
95724         (ARGCASEMATCH): Remove macro.
95725         (__xargmatch_internal): Remove case_sensitive argument.
95726         (XARGMATCH): Update.
95727         (XARGCASEMATCH): Remove macro.
95728         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
95729         case_sensitive argument.
95730         (argcasematch): Remove function.
95731         (__xargmatch_internal): Remove case_sensitive argument.
95732         (main): Use XARGMATCH instead of XARGCASEMATCH.
95733
95734         * lib/xmalloc.c: Change compile-time error message. Add comment about
95735         required autoconf version.
95736
95737 2002-11-20  Paul Eggert  <eggert@twinsun.com>
95738
95739         Merge argmatch cleanups from Bison.  Assume C89.
95740
95741         * lib/argmatch.c: Include config.h here, not in argmatch.h.
95742         Include stdlib.h, for EXIT_FAILURE.
95743         Always include <string.h>, since we assume C89.
95744         (EXIT_FAILURE): Remove pre-C89 bug workaround.
95745         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
95746         Include <stddef.h> instead, since it's all we need for size_t.
95747         (PARAMS): Remove.  All uses removed.
95748         (ARRAY_CARDINALITY): Do not bother to #undef.
95749         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
95750         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95751         Remove unnecessary parentheses.
95752         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
95753         Insert necessary parentheses.
95754         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
95755         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
95756
95757 2002-11-19  Bruno Haible  <bruno@clisp.org>
95758
95759         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
95760         * lib/mbswidth.h: Include <stddef.h>, for size_t.
95761
95762         * lib/mbswidth.h (PARAMS): Remove macro.
95763         (mbswidth, mbsnwidth): Use ANSI C function declarations.
95764         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
95765
95766         * lib/gcd.h (PARAMS): Remove macro.
95767         (gcd): Use ANSI C function declarations.
95768         * lib/gcd.c (gcd): Likewise.
95769
95770 2002-11-15  Bruno Haible  <bruno@clisp.org>
95771
95772         * lib/strcspn.c: Include <stddef.h>.
95773         (strcspn): Use ANSI C function declaration. Change return type to
95774         size_t. Use NULL.
95775         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
95776         (strpbrk): Use NULL.
95777         * lib/strpbrk.h (PARAMS): Remove macro.
95778         (strpbrk): Use ANSI C function declaration.
95779         * lib/strstr.c: Don't include <sys/types.h>.
95780         * lib/strstr.h (PARAMS): Remove macro.
95781         (strstr): Use ANSI C function declarations.
95782
95783 2002-11-14  Karl Berry  <karl@gnu.org>
95784
95785         * config/mkinstalldirs: `do' on separate line, instead of
95786         `for var; do'.
95787
95788 2002-11-06  Bruno Haible  <bruno@clisp.org>
95789
95790         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
95791         * lib/gcd.c (gcd): Likewise.
95792
95793 2002-11-05  Bruno Haible  <bruno@clisp.org>
95794
95795         * lib/gcd.h: New file, from gettext-0.11.5.
95796         * lib/gcd.c: New file, from gettext-0.11.5.
95797
95798 2002-11-05  Bruno Haible  <bruno@clisp.org>
95799
95800         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95801         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95802         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95803         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
95804
95805         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
95806         <libintl.h>.
95807         * lib/makepath.c: Include gettext.h instead of <locale.h> and
95808         <libintl.h>.
95809
95810         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
95811         * lib/human.c: Include gettext.h instead of <libintl.h>.
95812         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
95813         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
95814         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
95815         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
95816         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
95817         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
95818         (textdomain): Remove definition.
95819         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
95820
95821         * lib/long-options.c: Remove include of <libintl.h> and definition of
95822         _.
95823         * lib/same.c: Remove include of <libintl.h> and definition of _.
95824
95825 2002-11-04  Owen Taylor  <otaylor@redhat.com>
95826
95827         * lib/config.charset: A few additions for Solaris.
95828
95829 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95830
95831         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95832         * lib/localcharset.c (locale_charset): Declare as extern "C".
95833
95834 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95835
95836         * lib/config.charset: msdos in uk_UA uses CP1125.
95837
95838 2002-11-04  Bruno Haible  <bruno@clisp.org>
95839
95840         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95841         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95842         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95843         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95844         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95845
95846 2002-11-04  Bruno Haible  <bruno@clisp.org>
95847
95848         * lib/localcharset.c (locale_charset): Don't return an empty string.
95849
95850 2002-11-04  Bruno Haible  <bruno@clisp.org>
95851
95852         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95853         aliases.
95854
95855 2002-11-04  Bruno Haible  <bruno@clisp.org>
95856
95857         * lib/config.charset: Update for newest glibc. Add canonical names
95858         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95859
95860 2002-11-04  Bruno Haible  <bruno@clisp.org>
95861
95862         * lib/config.charset: Add support for NetBSD.
95863
95864 2002-11-04  Bruno Haible  <bruno@clisp.org>
95865
95866         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95867
95868 2002-11-01  Bruno Haible  <bruno@clisp.org>
95869
95870         * configure.in: Add AC_CONFIG_AUX_DIR call.
95871         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95872         test/Makefile.
95873         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95874
95875 2002-09-28  Karl Berry  <karl@gnu.org>
95876
95877         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95878         installed automake until the next release, since changes have been
95879         made.
95880
95881 2002-09-25  Karl Berry  <karl@gnu.org>
95882
95883         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95884         * lib/getopt*: copy from libc/posix.
95885         * lib/gettext.h: copy from gettext.
95886         * lib/.cppi-disable: add strdup.c, gettext.h.
95887
95888 2002-09-25  Karl Berry  <karl@gnu.org>
95889
95890         * config/srclist.txt: enable gettext.h check.
95891         * config/config.{guess,sub}: update from prep.
95892         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95893                 from automake 1.6.3.
95894         See srclist*.
95895
95896 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95897
95898         * regex.c (PATFETCH): Remove the translating fetch.
95899         (PATFETCH_RAW): Rename to PATFETCH.
95900         (set_image_of_range): New fun.
95901         (SET_RANGE_TABLE_WORK_AREA): Use it.
95902         (regex_compile): Don't translate the pattern chars so eagerly.
95903         Only do it when inserting an `exactn' bytecode or when handling
95904         a char-range.
95905         (mutually_exclusive_p): Avoid empty statement.
95906
95907 2002-07-06  Jim Meyering  <meyering@lucent.com>
95908
95909         * m4/README: Don't mention Makefile.am.in.
95910         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95911
95912 2002-07-01  Jim Meyering  <meyering@lucent.com>
95913
95914         * lib/c-stack.c: Include sys/time.h.
95915         From Volker Borchert.
95916
95917 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95918
95919         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95920
95921 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95922
95923         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95924         New macro.  Use it uniformly instead of
95925         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95926         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95927         reported by Vin Shelton.
95928
95929 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95930
95931         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95932         Do not assume SA_SIGINFO behavior.
95933         Bug reported by Jim Meyering on NetBSD 1.5.2.
95934
95935 2002-06-22  Jim Meyering  <meyering@lucent.com>
95936
95937         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95938         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95939
95940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95941         now that configure.ac uses AC_GNU_SOURCE.
95942         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95943         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95944
95945         Update to latest tools.  Suggestions from Paul Eggert.
95946         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95947         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95948         * m4/fnmatch.m4: Likewise.
95949         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95950         to AC_HEADER_STDBOOL
95951
95952 2002-06-22  Jim Meyering  <meyering@lucent.com>
95953
95954         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95955         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95956
95957 2002-06-22  Jim Meyering  <meyering@lucent.com>
95958
95959         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95960
95961         * lib/exitfail.c, exitfail.h: Likewise.
95962         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95963
95964         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95965         of fnmatch.h.
95966         (EXTRA_DIST): Add fnmatch_loop.c.
95967         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95968
95969         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95970         * lib/fnmatch.c: Update from diffutils-2.8.2.
95971         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95972         * lib/fnmatch.h: Remove file.
95973
95974 2002-06-21  Jim Meyering  <meyering@lucent.com>
95975
95976         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95977         * m4/mbrtowc.m4: Likewise.
95978
95979         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95980         * m4/mbswidth.m4: Reflect name change:
95981         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95982         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95983
95984         * m4/lib-link.m4: Update from gettext-0.11.2.
95985         * m4/gettext.m4: Likewise.
95986
95987         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95988         From Alfred M. Szmidt.
95989
95990 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95991
95992         * lib/file-type.h: Report an error if neither S_ISREG nor
95993         S_IFREG is defined, instead of using a test specific to glibc
95994         2.2.  This should be safe, since POSIX requires S_ISREG and
95995         Unix Version 7 had S_IFREG.  We don't need to check for
95996         <sys/types.h> since we don't use any symbols that it defines.
95997
95998 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95999
96000         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96001         $@-t, so that each temporary file name is unique and valid in the first
96002         8 characters, for operation under DOS.
96003
96004 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96005
96006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96007
96008 2002-06-15  Jim Meyering  <meyering@lucent.com>
96009
96010         Work even with DJGPP 2.03, which lacks support for symlinks.
96011         From Richard Dawe.
96012         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96013         is defined.
96014         * lib/lchown.c (S_ISLNK): Likewise.
96015
96016 2002-06-15  Jim Meyering  <meyering@lucent.com>
96017
96018         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96019         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96020         have been included before this file.
96021
96022 2002-06-14  Jim Meyering  <meyering@lucent.com>
96023
96024         * lib/file-type.h: Use the version from diffutils-2.8.2.
96025         * lib/file-type.c: Likewise.
96026
96027 2002-06-07  Jim Meyering  <meyering@lucent.com>
96028
96029         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96030         They're needed at least for NetBSD 1.5.2.
96031         ($statxfs_includes): Include those same headers.
96032         ($statxfs_includes): Include sys/vfs.h if available.
96033         ($statxfs_includes): Likewise for sys/statvfs.h.
96034         Check for the following members in both structs statfs and statvfs:
96035         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96036
96037 2002-06-01  Jim Meyering  <meyering@lucent.com>
96038
96039         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96040         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96041
96042 2002-05-28  Jim Meyering  <meyering@lucent.com>
96043
96044         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96045         Reported by Volker Borchert.
96046
96047 2002-05-27  Jim Meyering  <meyering@lucent.com>
96048
96049         Fix a problem seen only on nonconforming systems whereby ls.c's
96050         use of localtime, and then of gettimeofday would cause trouble:
96051         the localtime call used to initialize rpl_gettimeofday's save
96052         mechanism would clobber ls's current local time information so
96053         that in any long listing the first file would always be listed
96054         with date 1970-01-01.  Analysis by Volker Borchert.
96055
96056         * lib/gettimeofday.c (localtime): Undefine.
96057         (rpl_localtime): New function.
96058
96059 2002-05-27  Jim Meyering  <meyering@lucent.com>
96060
96061         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96062         localtime.
96063
96064         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
96065         use the replacement function; it wouldn't resolve at link time.
96066         Reported by Volker Borchert.
96067
96068 2002-05-22  Jim Meyering  <meyering@lucent.com>
96069
96070         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
96071         file-type.h.
96072         * lib/file-type.h: New file.
96073         * lib/file-type.c (file_type): New file/function.  Extracted from
96074         diffutils.
96075
96076 2002-04-30  Jim Meyering  <meyering@lucent.com>
96077
96078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
96079
96080 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96081
96082         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
96083
96084 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96085
96086         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
96087         Do not check for alloca.h (no longer used) or stdbool.h (was never
96088         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
96089
96090 2002-04-29  Paul Eggert  <eggert@twinsun.com>
96091
96092         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
96093
96094 2002-04-29  Jim Meyering  <meyering@lucent.com>
96095
96096         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
96097         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
96098         Use AC_FUNC_STRNLEN here instead.
96099
96100         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
96101         With autoconf-2.53a, it's part of AC_PROG_CC.
96102
96103 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96104
96105         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
96106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
96107
96108 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96109
96110         * lib/sig2str.h, lib/sig2str.c: New files.
96111         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
96112
96113 2002-04-28  Paul Eggert  <eggert@twinsun.com>
96114
96115         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
96116         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
96117         of 127, since 64 is the largest conceivable number for ancient
96118         nonstandard hosts.
96119         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
96120
96121 2002-04-28  Jim Meyering  <meyering@lucent.com>
96122
96123         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
96124
96125 2002-04-24  Jim Meyering  <meyering@lucent.com>
96126
96127         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
96128         (jm_PREREQ): Use it.
96129
96130         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
96131         mach/mach.h fcntl.h.
96132         Check for this function: setlocale.
96133
96134 2002-04-24  Jim Meyering  <meyering@lucent.com>
96135
96136         * lib/gettext.h: New file, from Gettext.
96137         * lib/Makefile.am (INCLUDES): Remove -I../intl.
96138         (libfetish_a_SOURCES): Add gettext.h.
96139
96140 2002-04-16  Jim Meyering  <meyering@lucent.com>
96141
96142         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
96143         ut_pid, ut_id, ut_exit.
96144
96145 2002-04-16  Jim Meyering  <meyering@lucent.com>
96146
96147         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
96148         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
96149         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
96150
96151 2002-04-12  Jim Meyering  <meyering@lucent.com>
96152
96153         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
96154         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
96155         existence of the getmntinfo function.  Needed for Darwin 5.3.
96156
96157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
96158         This is necessary at least on Darwin 5.3.
96159
96160         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
96161         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
96162         strnlen.o in the library, and that makes some versions of ranlib
96163         object.
96164
96165 2002-04-12  Jim Meyering  <meyering@lucent.com>
96166
96167         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
96168
96169 2002-04-09  Jim Meyering  <meyering@lucent.com>
96170
96171         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
96172         to be more precise.  Rather than saying we're checking whether the
96173         function `works', say what we're testing.
96174         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
96175         Reported by Bruno Haible.
96176
96177 2002-03-10  Jim Meyering  <meyering@lucent.com>
96178
96179         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
96180         Suggestion from Santiago Vila.
96181
96182 2002-03-08  Jim Meyering  <meyering@lucent.com>
96183
96184         * lib/rename.c: Mention that this wrapper is needed also on
96185         mips-dec-ultrix4.4 systems.
96186
96187 2002-03-02  Jim Meyering  <meyering@lucent.com>
96188
96189         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
96190         not HAVE_CLOCK_SETTIME.
96191
96192 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96193
96194         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
96195         Check for clock_settime.
96196
96197 2002-02-27  Paul Eggert  <eggert@twinsun.com>
96198
96199         * lib/nanosleep.h: Rename to....
96200         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
96201
96202         * lib/gettime.c: New file.
96203         * lib/settime.c: New file.
96204         * lib/stime.c: Remove.
96205
96206         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
96207         timespec.h.  Remove nanosleep.h.
96208
96209 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96210
96211         * m4/acl.m4: New file.
96212         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
96213         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
96214
96215 2002-02-25  Paul Eggert  <eggert@twinsun.com>
96216
96217         * lib/acl.c, lib/acl.h: New files.
96218         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
96219
96220 2002-02-24  Jim Meyering  <meyering@lucent.com>
96221
96222         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
96223         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
96224         cause trouble.  Reported by Nelson Beebe.
96225
96226 2002-02-23  Paul Eggert  <eggert@twinsun.com>
96227
96228         * lib/path-concat.c (xpath_concat): Reorder code to pacify
96229         compilers that don't know that xalloc_die never returns.
96230
96231 2002-02-20  Jim Meyering  <meyering@lucent.com>
96232
96233         * lib/getdate.c: Regenerate using bison-1.33.
96234
96235 2002-02-17  Jim Meyering  <meyering@lucent.com>
96236
96237         * config/config.guess (main): Don't use `head -1'; it's no longer
96238         portable. Use `sed 1q' instead.
96239
96240 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
96241
96242         * m4/codeset.m4: Upgrade to gettext-0.11.
96243         * m4/gettext.m4: Upgrade to gettext-0.11.
96244         * m4/glibc21.m4: Upgrade to gettext-0.11.
96245         * m4/iconv.m4: Upgrade to gettext-0.11.
96246         * m4/isc-posix.m4: Upgrade to gettext-0.11.
96247         * m4/lcmessage.m4: Upgrade to gettext-0.11.
96248         * m4/lib-ld.m4: New file, from gettext-0.11.
96249         * m4/lib-link.m4: New file, from gettext-0.11.
96250         * m4/lib-prefix.m4: New file, from gettext-0.11.
96251         * m4/progtest.m4: Upgrade to gettext-0.11.
96252
96253 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96254
96255         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
96256         (jm_PREREQ): Use it.
96257
96258 2002-02-15  Paul Eggert  <eggert@twinsun.com>
96259
96260         * lib/posixver.c, lib/posixver.h: New files.
96261         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96262
96263 2002-02-02  Paul Eggert  <eggert@twinsun.com>
96264             Bruno Haible  <bruno@clisp.org>
96265
96266         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
96267         (fwrite_success_callback): New declaration.
96268         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
96269         print_unicode_char. Call failure callback instead of error.
96270         (fwrite_success_callback): New function.
96271         (exit_failure_callback): New function.
96272         (fallback_failure_callback): New function.
96273         (print_unicode_char): Call unicode_to_mb.
96274
96275 2002-01-26  Jim Meyering  <meyering@lucent.com>
96276
96277         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
96278         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
96279
96280 2002-01-26  Jim Meyering  <meyering@lucent.com>
96281
96282         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
96283
96284 2002-01-22  Paul Eggert  <eggert@twinsun.com>
96285
96286         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
96287
96288 2002-01-22  Jim Meyering  <meyering@lucent.com>
96289
96290         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
96291         Otherwise, some versions of automake would omit the rule that makes
96292         Makefile from Makefile.in.
96293
96294 2002-01-21  Paul Eggert  <eggert@twinsun.com>
96295
96296         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
96297         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
96298         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
96299         (memcoll): Set errno to zero if there is no error.
96300
96301         * lib/quotearg.c (quotearg_buffer_restyled):
96302         Fix bug with quoting buffers containing NUL when backslashing escapes.
96303         This bug was exposed by the other changes in this patch.
96304         (quotearg_n_options): New arg ARGSIZE.
96305         All callers changed.
96306         (quoting_options_from_style): New function.
96307         (quotearg_n_style): Use it.
96308         (quotearg_n_style_mem): New function.
96309
96310         * lib/quotearg.h (quotearg_n_style_mem): New function.
96311
96312 2002-01-19  Jim Meyering  <meyering@lucent.com>
96313
96314         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
96315         Remove useless quotes: DF_PROG="df".
96316         * m4/strnlen.m4: New file.
96317
96318 2002-01-16  Paul Eggert  <eggert@twinsun.com>
96319
96320         * lib/backupfile.c (ISDIGIT): Comment fix.
96321         * lib/getdate.y (ISDIGIT): Likewise.
96322         * lib/posixtm.c (ISDIGIT, year): Likewise.
96323         * lib/strverscmp.c (ISDIGIT): Likewise.
96324         * lib/userspec.c (ISDIGIT): Likewise.
96325
96326 2002-01-16  Jim Meyering  <meyering@lucent.com>
96327
96328         * lib/getdate.y: Add three semicolons, each just before a closing
96329         brace. Bison (as of version 1.31) no longer papers over that mistake.
96330
96331 2002-01-05  Jim Meyering  <meyering@lucent.com>
96332
96333         * lib/version-etc.c (version_etc_copyright): Update copyright year.
96334
96335 2001-12-19  Paul Eggert  <eggert@twinsun.com>
96336
96337         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
96338         not silently exit merely because the output buffer happens to
96339         have nothing pending.
96340
96341 2001-12-18  Paul Eggert  <eggert@twinsun.com>
96342
96343         See the big note in ../ChangeLog.
96344         * lib/human.c (suffixes): Prefer K to k for 1024.
96345         (generate_suffix_backwards): New function.
96346         (human_readable_inexact): Use it.
96347         * lib/xstrtol.c (__xstrtol): If there is no number but there
96348         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
96349         Accept 'K' as well as 'k'.
96350
96351 2001-12-15  Jim Meyering  <meyering@lucent.com>
96352
96353         * lib/regex.h (__restrict_arr): Update from libc.
96354
96355         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
96356         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
96357         (STREQ): Define.
96358
96359 2001-12-14  Jim Meyering  <meyering@lucent.com>
96360
96361         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
96362         Suggestion from Bruno Haible.
96363
96364 2001-12-10  Jim Meyering  <meyering@lucent.com>
96365
96366         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
96367         xrealloc, Instead, include "xalloc.h".
96368         (initbuffer): Don't cast xmalloc return value to char*.
96369         (readline): Reword comment.
96370         Don't cast xrealloc return value to char*
96371         Return NULL, not 0.
96372
96373 2001-12-09  Jim Meyering  <meyering@lucent.com>
96374
96375         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
96376         about `signed and unsigned type in conditional expression'.
96377         * lib/posixtm.c (posix_time_parse): Likewise.
96378
96379         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
96380
96381         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
96382         to avoid a pedantic warning.
96383
96384         * lib/getstr.c: Don't include assert.h.
96385         (getstr): Remove warning-evoking assertions.
96386         Return -1 if offset parameter is out of bounds.
96387         Change the type of a local from int to size_t.
96388
96389         * lib/strftime.c (my_strftime_localtime_r): Include this function
96390         definition in the `#if ! HAVE_TM_GMTOFF' block.
96391
96392         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
96393         Include xalloc.h instead.
96394
96395 2001-12-02  Jim Meyering  <meyering@lucent.com>
96396
96397         * lib/tempname.c: Don't declare getenv, thus reverting the change of
96398         2001-11-18.  It's no longer necessary, now that stdlib.h is always
96399         included.
96400
96401         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
96402         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
96403
96404 2001-11-30  Akim Demaille  <akim@epita.fr>
96405
96406         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
96407         before being defined.
96408
96409 2001-11-27  Paul Eggert  <eggert@twinsun.com>
96410
96411         * lib/quotearg.h (quotearg_n, quotearg_n_style):
96412         First arg is int, not unsigned.
96413         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
96414         (SIZE_MAX, UINT_MAX): New macros.
96415         (quotearg_n_options): Abort if N is negative.
96416         Avoid overflow check on hosts where size_t is 64 bits and int
96417         is 32 bits, as overflow is impossible there.
96418         Fix off-by-one typo that caused unnecessary reallocation.
96419
96420 2001-11-27  Jim Meyering  <meyering@lucent.com>
96421
96422         * lib/tempname.c: Merge with version from libc.
96423         * lib/regex.c: Likewise.
96424
96425         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
96426         systems for which STDC_HEADERS is 0, it was not included, resulting in
96427         a warning about an integer-to-pointer conversion problem with getenv.
96428         Reported by Volker Borchert.
96429
96430 2001-11-26  Jim Meyering  <meyering@lucent.com>
96431
96432         * lib/gtod.h: Remove file.
96433         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
96434         * lib/gettimeofday.c: Don't include gtod.h.
96435         (GTOD_init): Remove function.
96436         (rpl_gettimeofday): Do its job here instead, rather than aborting.
96437         Suggestion from Volker Borchert.
96438
96439 2001-11-23  Jim Meyering  <meyering@lucent.com>
96440
96441         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
96442         it.
96443         * lib/hash.c (struct hash_table): Define it here instead.
96444
96445 2001-11-22  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
96448
96449 2001-11-20  Jim Meyering  <meyering@lucent.com>
96450
96451         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
96452         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
96453
96454 2001-11-19  Jim Meyering  <meyering@lucent.com>
96455
96456         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
96457         directory.  Use "conftestXXXXXX" as the template.
96458         Suggestion from Paul Eggert.
96459
96460         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
96461         immediately, so the test doesn't mistakenly hit the max-open-files
96462         limit.
96463
96464 2001-11-18  Paul Eggert  <eggert@twinsun.com>
96465
96466         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
96467         (TEMPORARIES): New macro.
96468         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
96469         removes an artificial limitation (e.g. HP-UX 10.20, where
96470         TMP_MAX is 17576).
96471
96472 2001-11-18  Jim Meyering  <meyering@lucent.com>
96473
96474         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
96475
96476 2001-11-18  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
96479         on SunOS 4.
96480
96481         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
96482         files will be created before anything else.
96483
96484 2001-11-17  Paul Eggert  <eggert@twinsun.com>
96485
96486         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
96487         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
96488
96489 2001-11-17  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
96492         Prompted by a report from Bob Proulx.
96493
96494         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
96495         Instead, require UTILS_FUNC_MKSTEMP.
96496
96497 2001-11-17  Jim Meyering  <meyering@lucent.com>
96498
96499         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
96500         Now, that's done as part of AC_FUNC_STRTOD.
96501
96502 2001-11-17  Jim Meyering  <meyering@lucent.com>
96503
96504         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
96505         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
96506         rather than group writable.  Patch by Juan F. Codagnone.
96507
96508         * lib/readtokens.c: Remove explicit declarations of xmalloc and
96509         xrealloc, Instead, include "xalloc.h".
96510
96511         * lib/mountlist.c: Include unlocked-io.h after all system headers.
96512         Remove explicit declarations of xmalloc, xrealloc,
96513         and xstrdup.  Instead, include "xalloc.h".
96514
96515         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
96516         unlocked-io.h.
96517         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
96518         Likewise.
96519         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
96520
96521         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
96522         Reported by Padraig Brady.
96523
96524         * lib/mkstemp.c: #undef mkstemp.
96525         Include config.h.
96526         (rpl_mkstemp): Rename from mkstemp.
96527         Protoize.
96528
96529 2001-11-16  Jim Meyering  <meyering@lucent.com>
96530
96531         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
96532         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
96533         determine the amount of total physical memory, use pstat_getstatic.
96534         HPUX-11 doesn't define _SC_PHYS_PAGES.
96535         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
96536         If sysconf couldn't be used to determine the amount of available
96537         physical memory, use both pstat_getstatic and pstat_getdynamic.
96538         Based on a patch from Bob Proulx.
96539
96540 2001-11-10  Jim Meyering  <meyering@lucent.com>
96541
96542         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
96543         (jm_PREREQ): Use it.
96544
96545 2001-11-09  Jim Meyering  <meyering@lucent.com>
96546
96547         * m4/jm-macros.m4: Require autoconf-2.52f.
96548         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
96549         Use these AC_-prefixed names, not the AM_-prefixed ones.
96550
96551         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
96552
96553 2001-11-05  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
96556
96557 2001-11-04  Jim Meyering  <meyering@lucent.com>
96558
96559         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
96560         $DEFS.
96561
96562 2001-11-03  Jim Meyering  <meyering@lucent.com>
96563
96564         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
96565         of AC_DEFUN.
96566
96567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
96568         know the name of the variable in the macro definition.
96569
96570 2001-11-03  Jim Meyering  <meyering@lucent.com>
96571
96572         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
96573         in argmatch_to_argument call.
96574
96575         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
96576         argument.
96577
96578         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
96579         e.g., a fault due to an attempt to free a NULL pointer.
96580
96581 2001-11-01  Jim Meyering  <meyering@lucent.com>
96582
96583         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
96584         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
96585
96586 2001-11-01  Jim Meyering  <meyering@lucent.com>
96587
96588         * lib/dirfd.c, lib/dirfd.h: New files.
96589         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
96590
96591         * lib/hash.c (hash_print) [TESTING]: Clean up.
96592
96593 2001-10-22  Paul Eggert  <eggert@twinsun.com>
96594
96595         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
96596         to avoid a warning if -Wall.
96597
96598 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
96599
96600         * README: New file
96601         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
96602         (per RMS's instructions, this is now the canonical source)
96603         * lgpl/, gpl/: New directories.
96604
96605 2001-10-21  Paul Eggert  <eggert@twinsun.com>
96606
96607         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
96608
96609 2001-10-21  Jim Meyering  <meyering@lucent.com>
96610
96611         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
96612         this code would end up calling gettext even in packages built
96613         with --disable-nls.
96614         * lib/getopt.c (_): Likewise.
96615         * lib/regex.c (_): Likewise.
96616
96617 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96618
96619         * m4/error.m4 (jm_PREREQ_ERROR):
96620         Do not invoke AC_CHECK_FUNCS with strerror_r, as
96621         AC_FUNC_STRERROR_R does that.
96622         Check for strerror declaration.
96623
96624         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
96625         are supposed to have them these days.
96626         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
96627         Merge changes from latest Autoconf CVS.
96628         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
96629         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
96630         POSIX decided to standardize on the int flavor of strerror_r.
96631
96632 2001-10-20  Paul Eggert  <eggert@twinsun.com>
96633
96634         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
96635         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
96636         Use strerror_r that is only a macro, even if it is not a function.
96637         (strerror): Check for HAVE_DECL_STRERROR before declaring.
96638         (private_strerror): Use prototypes, not old-style function definition.
96639         (print_errno_message): New function.
96640         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
96641         char*-flavored one.
96642         (error_tail, error, error_at_line): Use it.
96643
96644 2001-10-11  Jim Meyering  <meyering@lucent.com>
96645
96646         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
96647         and quote_n (1, ... to avoid clobbering a buffer.
96648
96649 2001-10-05  Jim Meyering  <meyering@lucent.com>
96650
96651         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
96652         hash-pjw.h.
96653         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
96654         * lib/hash-pjw.h: New file.
96655
96656 2001-09-30  Jim Meyering  <meyering@lucent.com>
96657
96658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
96659         `struct fsstat' has the `f_fstypename' member.
96660         Use that to define FS_TYPE, which is now used to make
96661         the getfsstat link test tighter.
96662
96663 2001-09-30  Jim Meyering  <meyering@lucent.com>
96664
96665         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
96666         Include <sys/ucred.h>, for Apple Darwin.
96667         Include sys/mount.h and sys/fs_types.h only if available.
96668         (FS_TYPE): Define.
96669         (read_filesystem_list): Use FS_TYPE.
96670
96671 2001-09-29  Paul Eggert  <eggert@twinsun.com>
96672
96673         * lib/exclude.c (excluded_filename): 0 -> false, since it's
96674         a boolean context.
96675
96676 2001-09-29  Jim Meyering  <meyering@lucent.com>
96677
96678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96679         [one-argument getmntent function]): Include stdio.h before mntent.h.
96680         SunOS 4.1.x needs it for the declaration of `FILE'.
96681         Patch by Volker Borchert.
96682
96683         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
96684         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
96685         sys/fs_types.h, and make the link-test for getfsstat guard #include
96686         directives with appropriate #if HAVE_*_H tests so that we can
96687         detect getfsstat on Apple Darwin1.3.7 systems.
96688         Reported by Nelson Beebe.
96689         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
96690
96691 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96692
96693         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96694         #defines strtoimax.  Also treat the other strto* functions
96695         like strtoimax.
96696
96697         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96698         Check for strtoul and strtoumax,
96699         as those declarations are made even in the signed case.
96700         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
96701         Likewise, for strtol and strtoimax.
96702
96703 2001-09-28  Paul Eggert  <eggert@twinsun.com>
96704
96705         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
96706         #defines strtoimax.  Also treat the other strto* functions
96707         like strtoimax.
96708
96709         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
96710         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
96711         (strtoimax, strtoumax): Do not declare if already defined as a macro.
96712
96713 2001-09-26  Jim Meyering  <meyering@lucent.com>
96714
96715         Most macros in unlocked-io.h had the wrong number of arguments.
96716         * lib/gen-uio: New script.
96717         (USE_UNLOCKED_IO): Define to 1 if not already defined.
96718         * lib/unlocked-io.hin: Remove file.
96719         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
96720         rather than trying to embed it here.
96721         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
96722         Reported by Padraig Brady.
96723
96724 2001-09-25  Volker Borchert  <bt@teknon.de>
96725
96726         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
96727         `result'.
96728
96729 2001-09-24  Jim Meyering  <meyering@lucent.com>
96730
96731         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
96732
96733 2001-09-23  Jim Meyering  <meyering@lucent.com>
96734
96735         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
96736         instead of the mere test for existence of mntent.h.  The latter
96737         would get a false-positive on AIX 3.4 systems.
96738         In the outer getmntent if-block, don't die if neither of the getmntent
96739         tests succeeds.  Instead, just fall through and continue with the
96740         remaining tests.
96741
96742 2001-09-23  Jim Meyering  <meyering@lucent.com>
96743
96744         * lib/mountlist.c: Remove useless parentheses in #if directives.
96745         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
96746         the deprecated MOUNTED symbol is no longer defined in mntent.h.
96747
96748 2001-09-22  Jim Meyering  <meyering@lucent.com>
96749
96750         * m4/gettext.m4: New file.  From gettext.
96751         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
96752         * m4/progtest.m4: Likewise
96753         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
96754         * m4/glibc21.m4: Likewise.
96755
96756         * m4/libintl.m4: Remove.  No longer used.
96757
96758 2001-09-22  Jim Meyering  <meyering@lucent.com>
96759
96760         * lib/localcharset.c: Update from latest gettext.
96761         * lib/config.charset: Likewise.
96762
96763 2001-09-20  Jim Meyering  <meyering@lucent.com>
96764
96765         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
96766         strtoimax.
96767         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
96768         strtoumax.
96769
96770 2001-09-20  Jim Meyering  <meyering@lucent.com>
96771
96772         * lib/xstrtol.c (strtoimax): Guard declaration with
96773         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
96774         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
96775         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
96776         (strtoumax): Likewise, for completeness (it wasn't necessary).
96777
96778 2001-09-17  Paul Eggert  <eggert@twinsun.com>
96779
96780         * lib/strtoimax.c (HAVE_LONG_LONG):
96781         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
96782         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
96783         to work around bug in IBM C compiler.
96784
96785 2001-09-17  Jim Meyering  <meyering@lucent.com>
96786
96787         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
96788         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
96789         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
96790         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
96791         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
96792         whenever the right hand side need not be expanded by the shell.
96793
96794 2001-09-16  Paul Eggert  <eggert@twinsun.com>
96795
96796         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
96797         library.  It's not correct, as some older glibcs are buggy.
96798         fnmatch wasn't fixed until glibc 2.2.
96799
96800         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
96801         special shell magic here.
96802
96803 2001-09-16  Jim Meyering  <meyering@lucent.com>
96804
96805         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
96806         * m4/jm-macros.m4: Require it.
96807
96808 2001-09-16  Jim Meyering  <meyering@lucent.com>
96809
96810         * lib/mkdir.c: New file.
96811
96812 2001-09-15  Jim Meyering  <meyering@lucent.com>
96813
96814         * m4/jm-macros.m4: Check for help2man.
96815
96816 2001-09-11  Jim Meyering  <meyering@lucent.com>
96817
96818         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
96819         The body, by Paul Eggert, was moved here from configure.in.
96820         * m4/jm-macros.m4: Require UTILS_HOST_OS.
96821
96822 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96823
96824         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
96825         (jm_PREREQ): Use it.
96826
96827 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96828
96829         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
96830         Use ssize_t, not int, to store result of readlink.
96831         Check for ssize_t overflow as well as size_t overflow,
96832         as POSIX says the result of readlink is implementation-defined
96833         when ssize_t overflows.
96834         Remove unnecessary cast to char*.
96835         Use free+malloc instead of realloc, as the storage doesn't need
96836         to be preserved and it's clearer and can be more efficient that way.
96837         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96838         * lib/xreadlink.h (xreadlink): Update prototype.
96839
96840 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96841
96842         * lib/xgetcwd.c: Revert some of the previous change; intead,
96843         fix the HAVE_GETCWD_NULL code to behave more like the
96844         !HAVE_GETCWD_NULL code used to.
96845
96846         Include "xalloc.h".
96847         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96848         invoke xalloc_die.
96849
96850 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96851
96852         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96853         sys/param.h, as pathmax.h includes them.
96854
96855 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96856
96857         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96858         (jm_PREREQ_XGETCWD): New macro.
96859
96860         * m4/getcwd.m4: New file.
96861
96862 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96863
96864         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96865         like the HAVE_GETCWD_NULL code.
96866         Include pathmax.h if not HAVE_GETCWD.
96867         Do not include xalloc.h.
96868         (INITIAL_BUFFER_SIZE): New symbol.
96869         Do not use xmalloc / xrealloc, since the caller is responsible for
96870         handling errors.  Preserve errno around `free' during failure.
96871         Do not overrun buffer when using getwd.
96872
96873 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96874
96875         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96876         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96877         getcwd (NULL, 0).
96878
96879 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96880
96881         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96882         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96883         spotted by Jim Meyering.
96884
96885 2001-09-03  Jim Meyering  <meyering@lucent.com>
96886
96887         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96888         failure.
96889
96890 2001-09-02  Jim Meyering  <meyering@lucent.com>
96891
96892         * lib/error.c: Update from GNU libc.
96893
96894 2001-09-01  Jim Meyering  <meyering@lucent.com>
96895
96896         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96897         Used by df.
96898
96899 2001-09-01  Jim Meyering  <meyering@lucent.com>
96900
96901         * lib/xreadlink.c: New file.
96902         * lib/xreadlink.h: New file.
96903         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96904         xreadlink.h.
96905
96906         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96907         doesn't conflict with sparc Solaris 7's definition in
96908         /usr/include/sys/int_types.h.
96909
96910         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96911         files.
96912         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96913         and strncasecmp as r-values.  Unixware didn't have declarations.
96914
96915 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96916
96917         * lib/xstrtol.h: Add copyright notice.
96918         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96919         LONGINT_INVALID_SUFFIX_CHAR.
96920
96921 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96922
96923         * lib/xstrtol.c (strtoimax): New decl.
96924
96925 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96926
96927         * lib/xgetcwd.c: Don't include pathmax.h.
96928         Include stdlib.h and unistd.h if available.
96929         Include xalloc.h.
96930         (xmalloc, xstrdup, free): Remove decls.
96931         (xgetcwd): Don't assume sizes fit in unsigned.
96932         Check for overflow when computing sizes.
96933         Simplify reallocation code.
96934
96935 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96936
96937         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96938         a directory's st_size can have an arbitrary value, so the old
96939         usage could waste an arbitrary amount of memory.  All uses
96940         changed.
96941         * lib/savedir.h: Update prototype.
96942
96943 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96944
96945         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96946
96947         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96948         old strtoimax.c.
96949
96950         Also, make the following further changes to make this file's
96951         configuration more similar to that of strtol.c:
96952         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96953         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96954         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96955         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96956         changed to signed values.
96957
96958         And make the following changes as well:
96959         Fix copyright notice, as 1999 was missing.
96960         (verify): New macro.
96961         (strtoimax): Check sizes at compile-time, not run-time.
96962         Prefer strtol to strtoll if both work.
96963         (main): Remove; it was not that useful and was a pain to maintain.
96964
96965         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96966
96967 2001-08-31  Jim Meyering  <meyering@lucent.com>
96968
96969         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96970         Use an initial, malloc'd, buffer of length 128 rather than
96971         a statically allocated one of length 1024.
96972
96973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96974
96975         Simplify code, partly by assuming autoconf 2.52 semantics.
96976
96977         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96978
96979         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96980         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96981         All uses removed.
96982         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96983         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96984         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96985         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96986         jm_AC_HEADER_INTTYPES_H.
96987         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96988
96989         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96990
96991         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96992         Quote first arg of AC_DEFUN.
96993         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96994         since they are needed to parse the include file even if we need
96995         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96996         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96997         but with opposite signedness.
96998
96999 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97000
97001         Merge 'exclude' changes from tar 1.13.22.
97002         This fixes one or two unlikely storage allocation overflow bugs,
97003         but doesn't change user-visible behavior otherwise.
97004
97005 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97006
97007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97008         (jm_PREREQ_EXCLUDE): New macro.
97009
97010 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97011
97012         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97013         tm to be declared.
97014
97015 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97016
97017         * lib/hash.c: Remove '2001' from copyright notice.
97018
97019 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97020
97021         * lib/full-write.h: New file.
97022         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97023         * lib/full-write.c: Correct credits, as cccp.c no longer
97024         exists and anyway it was so heavily changed from the old cccp
97025         code as to be unrecognizable.  Include full-write.h.
97026         (full_write): Return size_t, with short writes meaning failure.
97027         All callers changed.  This fixes a bug with large buffers
97028         on 64-bit hosts.
97029         * lib/utime.c: Include full-write.h.
97030
97031 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97032
97033         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97034         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97035         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97036         Include if available.
97037         (<xalloc.h>): Include
97038         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97039         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97040         collide with FNM macros.
97041         (struct patopts): New struct.
97042         (struct exclude): Use it, as exclude patterns now come with options.
97043         (new_exclude): Support above changes.
97044         (new_exclude, add_exclude_file):
97045         Initial size must now be a power of two to simplify overflow checking.
97046         (free_exclude, fnmatch_no_wildcards): New function.
97047         (excluded_filename): No longer requires options arg, as the options
97048         are determined by add_exclude.  Now returns bool, not int.
97049         (excluded_filename, add_exclude):
97050         Add support for the fancy new exclusion options.
97051         (add_exclude, add_exclude_file): Now takes int options arg.
97052         Check for arithmetic overflow when computing sizes.
97053         (add_exclude_file): xrealloc might modify errno, so don't
97054         realloc until after errno might be used.
97055
97056         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97057         New macros.
97058         (free_exclude): New decl.
97059         (add_exclude, add_exclude_file): Now takes int options arg.
97060         (excluded_filename): No longer requires options arg, as the options
97061         are determined by add_exclude.  Now returns bool, not int.
97062
97063 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97064
97065         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
97066
97067 2001-08-27  Jim Meyering  <meyering@lucent.com>
97068
97069         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
97070
97071         * lib/version-etc.c (N_): Remove definition.
97072         Revert most of last change.
97073         Instead, simply don't mark the `Copyright...' string for translation.
97074         Based on advice from Paul Eggert.
97075
97076         * lib/strtoxmax.c: Tweak comment.
97077
97078 2001-08-26  Jim Meyering  <meyering@lucent.com>
97079
97080         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
97081
97082         * m4/xstrtoimax.m4: New file.
97083         * m4/xstrtoumax.m4: Add comments explaining why we
97084         AC_REPLACE_FUNCS(strtol).
97085
97086 2001-08-26  Jim Meyering  <meyering@lucent.com>
97087
97088         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
97089         of copyright with `%s' so translators don't get an untranslated
97090         message in 2002.
97091         (COPYRIGHT_YEAR): Define.
97092         (version_etc): Use fprintf rather than fputs.
97093         Suggestion from Ulrich Drepper.
97094
97095         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
97096
97097         * lib/strtoll.c: New file, from GNU libc.
97098         * lib/xstrtoimax.c: New file.
97099
97100         * lib/xstrtol.h: Add xstrtoimax.
97101         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
97102         * lib/strtoimax.c: New file.  Likewise, but first define
97103         STRTOUXMAX_SIGNED.
97104
97105         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
97106         ...
97107         * lib/strtoxmax.c: ... then renamed to this.
97108
97109 2001-08-18  Paul Eggert  <eggert@twinsun.com>
97110
97111         * m4/inttypes.m4: Add AC_PREREQ(2.13).
97112         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
97113         (jm_AC_TYPE_INTMAX_T): New macro.
97114         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
97115
97116         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
97117
97118         * m4/longlong.m4: Renamed from ulonglong.m4.
97119         * m4/inttypes.m4: Renamed from inttypes_h.m4.
97120         * m4/uintmax_t.m4: Removed.
97121
97122 2001-08-13  Paul Eggert  <eggert@twinsun.com>
97123
97124         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
97125         Port to Solaris 8, where 'sed' requires a space after the 'r'
97126         command, and where sh dislikes "$/".  Clean up the spacing a bit.
97127         Redirect output to $tmp just once.
97128
97129 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
97130
97131         * lib/addext.c (<errno.h>): Include.
97132         (errno): Declare if not defined.
97133         (addext): Work correctly when pathconf returns -1 and leaves
97134         errno alone because there is no limit.  Also, work even if
97135         pathconf returns a value greater than SIZE_MAX.
97136
97137 2001-08-12  Jim Meyering  <meyering@lucent.com>
97138
97139         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
97140         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
97141         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
97142         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
97143         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
97144         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
97145         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
97146         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
97147         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
97148         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
97149         utime.m4, utimes.m4, xstrtoumax.m4:
97150         Quote the first argument in each use of AC_DEFUN.
97151
97152 2001-08-12  Jim Meyering  <meyering@lucent.com>
97153
97154         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
97155         Simply `return getcwd (NULL, 0);'.
97156         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
97157         Use 1300 as initial value for length, not PATH_MAX.
97158
97159         * lib/pathmax.h: Clean up cpp syntax.
97160
97161 2001-08-12  Jim Meyering  <meyering@lucent.com>
97162
97163         * lib/gettimeofday.c: New file.
97164         * lib/gtod.h: New file.
97165         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
97166
97167 2001-08-05  Jim Meyering  <meyering@lucent.com>
97168
97169         * m4/jm-macros.m4: Require autoconf-2.52.
97170
97171 2001-08-04  Jim Meyering  <meyering@lucent.com>
97172
97173         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
97174         stmt, to get in sync with glibc.
97175
97176 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97177
97178         The following changes are from gettext 0.10.39 as maintained by
97179         Bruno Haible.
97180
97181         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
97182         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
97183         with inverted sense.  All uses changed.
97184
97185         * lib/mbswidth.c: Don't include <limits.h>.
97186         Include <stdlib.h> and <string.h> unconditionally.
97187         (iswcntrl, mbsinit, ISCNTRL): New macros.
97188         (mbsnwidth): Use K&R style function declarations.
97189         Don't bother checking for MB_LEN_MAX == 1, since the compiler
97190         can optimize it when MB_CUR_MAX == 1.
97191         The width of control characters is zero, not 1.
97192
97193 2001-08-03  Paul Eggert  <eggert@twinsun.com>
97194
97195         The following changes are from gettext 0.10.39 as maintained by
97196         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
97197
97198         * m4/codeset.m4: Upgrade to serial AM1.
97199         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
97200         all uses changed.  Quote first arg of AC_DEFUN.
97201         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
97202
97203         * m4/iconv.m4: Upgrade to serial AM2.
97204         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
97205         Add --with-libconv-prefix.
97206         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
97207         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
97208         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
97209         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
97210         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
97211
97212         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
97213         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
97214         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
97215         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
97216         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
97217         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
97218         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
97219         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
97220         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
97221
97222         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
97223         string.h any more.
97224
97225         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
97226         not the default value.
97227
97228         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
97229         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
97230         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
97231         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
97232         Also check for iswcntrl, used for wcwidth fallback.
97233         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
97234         to Autoconf 2.13.
97235
97236 2001-08-03  Jim Meyering  <meyering@lucent.com>
97237
97238         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
97239         as it was in the original.  Reported by Paul Eggert.
97240
97241 2001-07-16  Jim Meyering  <meyering@lucent.com>
97242
97243         * m4/gettimeofday.m4: New file.
97244         Prompted by a report from Bernhard Baehr.
97245
97246 2001-07-15  Jim Meyering  <meyering@lucent.com>
97247
97248         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
97249         stuff. Now it's in ../Makefile.cfg.
97250
97251 2001-07-15  Jim Meyering  <meyering@lucent.com>
97252
97253         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
97254         (BUILT_SOURCES): Add unlocked-io.h.
97255         (io_functions): Define.
97256         (unlocked-io.h): New rule.
97257         (DISTCLEANFILES): Add unlocked-io.h.
97258         (all-local): Depend on unlocked-io.h, to ensure it is created.
97259
97260         * lib/unlocked-io.hin: New file
97261
97262         * lib/regex.c: Update from glibc.
97263
97264 2001-07-05  Jim Meyering  <meyering@lucent.com>
97265
97266         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
97267         recommendation.
97268         (libfetish_a_SOURCES): Put all .h files here instead.
97269         Remove a thus-exposed (better checks in automake) duplicate and
97270         two unnecessary .h files.
97271
97272 2001-07-04  Jim Meyering  <meyering@lucent.com>
97273
97274         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
97275         that generates jm-glibc-io.m4 so that it doesn't trigger any make
97276         distcheck failure.
97277
97278 2001-07-02  Jim Meyering  <meyering@lucent.com>
97279
97280         The following changes were prompted by suggestions from Bruno Haible.
97281
97282         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
97283         is now generated.
97284         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
97285         definition of EXTRA_DIST.
97286         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
97287         ensure that the generated file is created/updated whenever the list
97288         of $(unlocked_functions) is changed.
97289         (jm-glibc-io.m4): New rule.
97290         (unlocked-io.h): New rule -- currently unused.
97291
97292 2001-06-24  Jim Meyering  <meyering@lucent.com>
97293
97294         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
97295         unmatched right bracket, rather than kludging it with an extra,
97296         falsely-matching quote in a comment.  Patch by Akim Demaille.
97297
97298 2001-06-11  Jim Meyering  <meyering@lucent.com>
97299
97300         * lib/regex.c: Update from GNU libc.
97301
97302 2001-05-27  Jim Meyering  <meyering@lucent.com>
97303
97304         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
97305         Check for ut_type in struct utmp.
97306
97307 2001-05-27  Jim Meyering  <meyering@lucent.com>
97308
97309         * lib/readutmp.h (UT_TYPE): Define.
97310
97311 2001-05-24  Jim Meyering  <meyering@lucent.com>
97312
97313         * lib/argmatch.c: Include "quote.h".
97314         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
97315         quote function.  Reported by Göran Uddeborg.
97316
97317 2001-05-22  Jim Meyering  <meyering@lucent.com>
97318
97319         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
97320         now that we use the package-supplied version unconditionally.
97321         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
97322
97323 2001-05-21  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/regex.m4: Change a couple backticks to single quotes to avoid
97326         shell syntax errors.
97327
97328 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97329
97330         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
97331
97332 2001-05-20  Paul Eggert  <eggert@twinsun.com>
97333
97334         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
97335         Don't bother to check library strftime, since
97336         we'll be using our own my_strftime function anyway.
97337         Define my_strftime instead of strftime.
97338
97339 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
97340
97341         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
97342         which is not yet declared.
97343
97344 2001-05-15  Jim Meyering  <meyering@lucent.com>
97345
97346         * m4/regex.m4: Use proper quoting so brackets appear in the test
97347         program.
97348         Reported by, and with help from, Bruno Haible.
97349
97350 2001-05-13  Jim Meyering  <meyering@lucent.com>
97351
97352         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
97353         undefined.
97354
97355 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97356
97357         dirname code cleanup.  base_name now behaves more compatibly
97358         with POSIX basename when given file names that have trailing
97359         slashes, and similarly for dir_name.  Add new primitives
97360         base_len and dir_len.  Put the directory-name-related decls
97361         into dirname.h.
97362
97363         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
97364         * lib/backupfile.c (base_name): Likewise.
97365         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
97366         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
97367         * lib/makepath.c (strip_trailing_slashes): Likewise.
97368         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
97369         ISSLASH): Likewise.
97370         * lib/rename.c (strip_trailing_slashes): Likewise.
97371         * lib/same.c (base_name): Likewise.
97372         * lib/stripslash.c (ISSLASH): Likewise.
97373
97374         * lib/addext.c: Include <dirname.h> after size_t is defined.
97375         * lib/backupfile.c: Likewise.
97376
97377         * lib/addext.c (addext): Use base_len to trim redundant
97378         trailing slashes instead of doing it ourselves.
97379         But do not trim the last slash if it is not redundant.
97380
97381         * lib/backupfile.c (find_backup_file_name,
97382         max_backup_version): Use base_len instead of rolling it ourselves.
97383         Handle the case of "" and (on DOS) "C:" correctly.
97384
97385         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
97386         needed. Include <string.h>, <dirname.h>.
97387         (base_name): Allow file names ending in slashes, other than names
97388         that are all slashes.  In this case, return the basename followed
97389         by the slashes.  This is more general, and can be used in places
97390         where the original base_name purposely had an assertion failure.
97391         (base_len): New function.
97392
97393         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
97394         Do not include <assert.h>; no longer needed.
97395         Include xalloc.h.
97396         (memrchr): Remove decl.
97397         (dir_name_r): Remove.
97398         (dir_len): Renamed from dirlen.  All callers changed.
97399         Rewrite in terms of base_name, for simplicity and consistency.
97400         (dir_name): Never return NULL.  All callers changed.
97401         Do not include <stdlib.h> in test program; no longer needed.
97402         return 0; is fine for test program.
97403
97404         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
97405         New macros.
97406         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
97407
97408         * lib/path-concat.c (path_concat): Use base_len to compute
97409         base length, not strlen; this means we cannot rely on memcpy
97410         to null-terminate.
97411
97412         * lib/same.c (STREQ): Remove.
97413         (same_name): Handle the case where the basename ends in trailing '/'.
97414
97415         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
97416         a slash was stripped.  Do not strip the last slash after a
97417         file system prefix.
97418
97419 2001-05-11  Paul Eggert  <eggert@twinsun.com>
97420
97421         * lib/Makefile.am (libfetish_a_SOURCES):
97422         Add strftime.c, since we now compile it on all hosts.
97423
97424         * lib/strftime.c (my_strftime):
97425         Define to nstrftime if emacs, but only if my_strftime is not defined.
97426         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
97427         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
97428         Add one more extra argument: a nanoseconds value.
97429         All uses changed.
97430         (ns): New macro.
97431         (my_strftime function): Add %N format.
97432         (emacs_strftimeu): Renamed from emacs_strftime,
97433         with extra ut argument.
97434
97435 2001-05-09  Paul Eggert  <eggert@twinsun.com>
97436
97437         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
97438
97439 2001-04-21  Jim Meyering  <meyering@lucent.com>
97440
97441         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
97442         doesn't interfere.
97443
97444 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
97445
97446         * m4/ftruncate.m4: Check for chsize.
97447         Link with ftruncate.o unconditionally if ftruncate is missing.
97448         This was required when cross-compiling to i586-mingw32msvc.
97449
97450 2001-04-08  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
97453         recomputed; that's necessary when the offset spans a DST transition.
97454         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
97455
97456 2001-04-02  Jim Meyering  <meyering@lucent.com>
97457
97458         * lib/regex.h, regex.c: Update from GNU libc.
97459
97460 2001-03-24  Jim Meyering  <meyering@lucent.com>
97461
97462         * m4/jm-macros.m4: Require autoconf-2.49d.
97463
97464 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
97465
97466         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
97467
97468 2001-03-19  Paul Eggert  <eggert@twinsun.com>
97469
97470         * lib/version-etc.c (version_etc_copyright): Update to 2001.
97471
97472 2001-03-17  Jim Meyering  <meyering@lucent.com>
97473
97474         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
97475         now that the version in autoconf is equivalent.
97476         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
97477
97478         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
97479         Suggestion from Akim Demaille.
97480
97481         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
97482         (jm_PREREQ_TEMPNAME): New function.
97483
97484 2001-03-16  Paul Eggert  <eggert@twinsun.com>
97485
97486         * lib/tempname.c (uint64_t): Define to uintmax_t if
97487         not defined, and if UINT64_MAX is not defined.
97488         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
97489         Reported by John David Anglin.
97490
97491 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
97492
97493         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
97494         resolve alias if codeset is empty.
97495         * lib/config.charset (BeOS): Use wildcard syntax.
97496
97497 2001-03-13  Jim Meyering  <meyering@lucent.com>
97498
97499         * lib/path-concat.c (path_concat)
97500         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
97501         concatenating e.g., `C:' and `foo'.
97502         From Bruno Haible.
97503
97504 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97505
97506         * lib/localcharset.c (locale_charset): Don't use
97507         setlocale(LC_CTYPE,NULL). Don't return NULL.
97508         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
97509
97510 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
97511
97512         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
97513         support for DOS/DJGPP.
97514
97515 2001-03-01  Paul Eggert  <eggert@twinsun.com>
97516
97517         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
97518         lacks mkstemp.  Compile our own tempname.c if we compile our own
97519         mkstemp.c, as mkstemp relies on tempname.
97520
97521 2001-03-01  Jim Meyering  <meyering@lucent.com>
97522
97523         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
97524         AH_VERBATIM really does output its argument verbatim.
97525
97526 2001-02-28  Paul Eggert  <eggert@twinsun.com>
97527
97528         * lib/Makefile.am (libfetish_a_SOURCES):
97529         Add dup-safer.c, fopen-safer.c.
97530         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
97531
97532         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
97533         * lib/unistd-safer.h: New files.
97534
97535 2001-02-25  Paul Eggert  <eggert@twinsun.com>
97536
97537         The mkstemp replacement is taken from glibc 2.2.2, with some
97538         portability fixes for use outside glibc, as follows:
97539
97540         * lib/tempname.c (struct_stat64): New macro.
97541         (direxists, __gen_tempname): Use it.
97542         This avoids a portability problem with Solaris 8.
97543
97544         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
97545         (<stddef.h>, <stdint.h>, <string.h>):
97546         Include only if STDC_HEADERS || _LIBC.
97547         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
97548         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
97549         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
97550         (__set_errno): Define this macro if <errno.h> doesn't.
97551         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
97552         Define these macros if <stdio.h> doesn't.
97553         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
97554         Define these macros if <sys/stat.h>
97555         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
97556         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
97557         __xstat64): Define if not _LIBC.
97558         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
97559         (__gen_tempname): Invoke gettimeofday only if
97560         HAVE_GETTIMEOFDAY || _LIBC;
97561         otherwise, fall back on plain "time".
97562         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
97563
97564         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
97565
97566         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
97567
97568 2001-02-18  Paul Eggert  <eggert@twinsun.com>
97569
97570         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
97571
97572 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97573
97574         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
97575         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
97576         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
97577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
97578
97579 2001-02-17  Paul Eggert  <eggert@twinsun.com>
97580
97581         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
97582         Remove workaround macros for hosts that have mbrtowc but not
97583         mbstate_t, as we now insist on proper declarations for both
97584         before using mbrtowc.
97585
97586 2001-02-17  Jim Meyering  <meyering@lucent.com>
97587
97588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
97589         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
97590         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
97591         UnixWare 7.1.1.
97592
97593         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
97594         rather than AC_CACHE_VAL.
97595
97596 2001-02-17  Jim Meyering  <meyering@lucent.com>
97597
97598         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
97599         around included file name.
97600
97601         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
97602
97603         * lib/strftime.c: Update from GNU libc (the only changes were to
97604         comments).
97605
97606 2001-02-17  Jim Meyering  <meyering@lucent.com>
97607
97608         * lib/regex.c: Update from libc.
97609
97610 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
97611
97612         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
97613         clash.
97614
97615 2001-02-16  Paul Eggert  <eggert@twinsun.com>
97616
97617         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
97618         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
97619         Reported by Mark Hounschell via Paul Eggert.
97620
97621 2001-02-07  Jim Meyering  <meyering@lucent.com>
97622
97623         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
97624
97625 2001-02-05  Jim Meyering  <meyering@lucent.com>
97626
97627         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
97628         it includes the patch required for `large file' support with at least
97629         HP-UX's 10.20 /bin/cc.
97630
97631 2001-02-03  Jim Meyering  <meyering@lucent.com>
97632
97633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
97634         AS_IF, now that it works once again (mysteriously).
97635         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97636
97637 2001-01-30  Jim Meyering  <meyering@lucent.com>
97638
97639         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
97640         * m4/chown.m4: Rename conftestchown to conftest.chown.
97641         * m4/rename.m4: s/conftestdir/conftest.d1/ and
97642         s/conftestdir2/conftest.d2/.
97643         * m4/utimes.m4: s/conftestdata/conftest.data/
97644         Inspired by Pavel Roskin's change in autoconf.
97645
97646 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
97647
97648         * lib/config.charset: Update for FreeBSD 4.2.
97649
97650 2001-01-27  Jim Meyering  <meyering@lucent.com>
97651
97652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
97653         a use of AS_IF.
97654         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
97655
97656 2001-01-26  Jim Meyering  <meyering@lucent.com>
97657
97658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
97659         quotearg.c includes it.
97660
97661 2001-01-26  Jim Meyering  <meyering@lucent.com>
97662
97663         * lib/quotearg.c: Include stddef.h.
97664         * lib/quote.c: Include stddef.h.
97665         Reported by Axel Kittenberger.
97666
97667         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
97668         line in double quotes so that it evokes a better diagnostic.
97669         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
97670         Reported by Axel Kittenberger.
97671
97672 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
97673
97674         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
97675         as if it was a `charset'.
97676
97677 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97678
97679         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
97680         has const.
97681
97682 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
97683
97684         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
97685         to avoid a warning.  Add back 'const' to inptr.
97686
97687 2001-01-20  Jim Meyering  <meyering@lucent.com>
97688
97689         Be sure that headers are checked before used in code compiled
97690         for the type checks.
97691         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
97692         In place of that, invoke jm_CHECK_ALL_TYPES.
97693         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
97694         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
97695         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
97696         The check for ssize_t was mistakenly run before the test for unistd.h.
97697
97698         The configure-time check for stdbool.h was missing.
97699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
97700         (jm_PREREQ_HASH): New function.
97701
97702 2001-01-17  Jim Meyering  <meyering@lucent.com>
97703
97704         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
97705         for autoconf-2.49c.
97706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
97707
97708 2001-01-16  Jim Meyering  <meyering@lucent.com>
97709
97710         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
97711         From Bruno Haible.
97712
97713 2001-01-14  Jim Meyering  <meyering@lucent.com>
97714
97715         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
97716         foo and bar.  Create conftestdir/ in the script, not in the C code.
97717         Remove directories in the script, not in the C code.
97718         Remove conftestdir{,2} before trying to create the directory.
97719         Make the entire configure script fail if the mkdir fails.
97720
97721 2001-01-14  Jim Meyering  <meyering@lucent.com>
97722
97723         * lib/rename.c: New file.  From Volker Borchert.
97724         Include stdlib.h, string.h or strings.h, and xalloc.h.
97725         Use strip_trailing_slashes rather than open-coding it.
97726
97727 2001-01-03  Paul Eggert  <eggert@twinsun.com>
97728
97729         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
97730
97731 2001-01-03  Jim Meyering  <meyering@lucent.com>
97732
97733         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
97734         of local `inptr' to avoid warning with some system declarations of
97735         iconv.
97736
97737 2001-01-02  Volker Borchert  <bt@teknon.de>
97738
97739         * m4/rename.m4: New file.
97740         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
97741
97742 2001-01-01  Jim Meyering  <meyering@lucent.com>
97743
97744         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
97745         even on systems with utmpx.h.  It's necessary for the declaration of
97746         utmp's ut_user member.  Reported by Andreas Jaeger.
97747
97748         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
97749         available. They are required for the declarations of getgrgid and
97750         getpwuid resp.
97751         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
97752         Reported by Andreas Jaeger.
97753
97754 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
97755
97756         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
97757         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
97758         so `make install' also works in VPATH builds.
97759
97760 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
97761
97762         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
97763         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
97764         can be used in subdirectories.
97765
97766 2000-12-29  Paul Eggert  <eggert@twinsun.com>
97767
97768         * lib/modechange.c: Do not assume that mode_t uses the
97769         traditional octal encoding.  E.g. "chmod 1 FOO" should set
97770         the other-execute bit of FOO even if S_IXOTH != 1.
97771
97772         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
97773         WOTH, XOTH, ALLM): New macros.
97774         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
97775          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
97776         Use them.
97777         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
97778         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
97779         (mode_compile):
97780         No need to use uintmax_t; unsigned long is long enough.
97781         Don't bother to get suffix since we don't use it.
97782
97783 2000-12-26  Jim Meyering  <meyering@lucent.com>
97784
97785         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
97786         better with autoheader.
97787
97788 2000-12-24  Jim Meyering  <meyering@lucent.com>
97789
97790         * lib/hash.c (is_prime): Return explicit boolean values.
97791         (hash_get_first): Return NULL to appease Irix5.6's 89.
97792         Reported by Nelson Beebe.
97793
97794 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
97795
97796         * lib/localcharset.c (locale_charset): Add support for Win32.
97797
97798 2000-12-18  Paul Eggert  <eggert@twinsun.com>
97799
97800         * lib/physmem.h, lib/physmem.c: New files.
97801
97802         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
97803         (noinst_HEADERS): Add physmem.h.
97804
97805         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
97806         't' for compatibility with Solaris 8 sort.
97807
97808 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
97809
97810         * lib/config.charset: Add support for BeOS.
97811
97812 2000-12-17  Jim Meyering  <meyering@lucent.com>
97813
97814         * m4/dos.m4 (jm_AC_DOS): New file and macro.
97815         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
97816
97817 2000-12-16  Jim Meyering  <meyering@lucent.com>
97818
97819         This bug had a serious impact on chown: `chown N:M FILE' (for integer
97820         N and M) would have treated it like `chown N:N FILE'.
97821
97822         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
97823
97824 2000-12-16  Jim Meyering  <meyering@lucent.com>
97825
97826         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
97827         SHELLS_FILE to a file name that's useful on djgpp systems.
97828         Include stdlib.h.
97829         (ADDITIONAL_DEFAULT_SHELLS): Define.
97830         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
97831         Based mostly on a patch from Prashant TR.
97832
97833 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97834
97835         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97836         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97837         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97838
97839 2000-12-08  Andreas Schwab  <schwab@suse.de>
97840
97841         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97842         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97843
97844 2000-12-07  Jim Meyering  <meyering@lucent.com>
97845
97846         * lib/stripslash.c (ISSLASH): Define.
97847         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97848         `/'.
97849         From Prashant TR.
97850
97851         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97852         (dir_name_r): Declare this function as static.
97853         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97854         manifest itself on a name containing a mix of slashes and
97855         backslashes.
97856         Make this function work with names starting with a DOS-style
97857         drive letter and colon prefix.
97858         (dir_name): Append `.' if necessary.
97859         Based mostly on patches from Prashant TR and Eli Zaretskii.
97860
97861         * lib/dirname.h (dir_name_r): Remove prototype.
97862
97863 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97864
97865         * m4/off_t-format.m4: Remove this file.
97866         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97867
97868 2000-12-06  Jim Meyering  <meyering@lucent.com>
97869
97870         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97871         replacement strtoull, we may well need the replacement strtoul, too.
97872         Check for declarations of strtoul and strtoull.
97873         Check for strtol.  Mainly as a cue to cause automake to include
97874         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97875         Check for limits.h -- strtol.c needs it.
97876
97877 2000-12-05  Jim Meyering  <meyering@lucent.com>
97878
97879         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97880
97881 2000-12-04  Jim Meyering  <meyering@lucent.com>
97882
97883         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97884         Also include memory.h, stdlib.h, unistd.h if appropriate.
97885         Reported by Andreas Jaeger (conflicting declaration of malloc).
97886
97887 2000-12-02  Jim Meyering  <meyering@lucent.com>
97888
97889         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97890         * m4/jm-macros.m4 (jm_MACROS): require it.
97891
97892 2000-12-02  Jim Meyering  <meyering@lucent.com>
97893
97894         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97895
97896 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97897
97898         * lib/memrchr.c: Include <config.h> before any system include file.
97899
97900 2000-11-30  Jim Meyering  <meyering@lucent.com>
97901
97902         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97903
97904 2000-11-30  Jim Meyering  <meyering@lucent.com>
97905
97906         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97907
97908 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97909
97910         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97911
97912 2000-11-26  Jim Meyering  <meyering@lucent.com>
97913
97914         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97915
97916 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97917
97918         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97919         size of (size_t) -1; it's not portable.
97920
97921 2000-11-17  Jim Meyering  <meyering@lucent.com>
97922
97923         * lib/strstr.c: Update from GNU libc.
97924
97925 2000-11-17  Akim Demaille  <akim@epita.fr>
97926
97927         * lib/obstack.h: Formatting changes.
97928         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97929         prevent type checking.
97930         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97931         cast the value to (void *): assigning a `foo *' to a `void *'
97932         variable is valid.
97933         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97934
97935 2000-11-16  Jim Meyering  <meyering@lucent.com>
97936
97937         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97938
97939 2000-11-11  Jim Meyering  <meyering@lucent.com>
97940
97941         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97942
97943 2000-11-10  Jim Meyering  <meyering@lucent.com>
97944
97945         * lib/obstack.h: Update from GNU libc.
97946         * lib/obstack.c: Likewise.
97947
97948 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97949
97950         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97951
97952 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97953
97954         * lib/getusershell.c (setusershell): Use rewind rather than
97955         fseek/fseeko, to avoid configuration hassles with fseeko.
97956         Don't bother opening SHELLS_FILE if shellstream is NULL;
97957         it's not necessary.
97958
97959 2000-11-05  Jim Meyering  <meyering@lucent.com>
97960
97961         * lib/makepath.h (make_dir): Declare.
97962         * lib/makepath.c (make_dir): Remove `static' attribute.
97963         Tweak a comment.
97964
97965 2000-11-04  Jim Meyering  <meyering@lucent.com>
97966
97967         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97968
97969 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97970
97971         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97972         last one in a bucket, advance to the next bucket.
97973
97974 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97975
97976         * lib/fnmatch.c: Do not comment out all the code if we are using
97977         the GNU C library, because in some cases we are replacing buggy
97978         code in the GNU C library itself.
97979
97980 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97981
97982         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97983         (regex_compile): Catch bogus \(\1\).
97984
97985 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97986
97987         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97988         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97989         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97990
97991 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97992
97993         * lib/error.h, getline.h, modechange.h:
97994         Remove "2000" from Copyright line, as the file hasn't been
97995         changed this year other than in the copyright notice.
97996
97997         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97998         was changed this year.
97999
98000 2000-10-29  Jim Meyering  <meyering@lucent.com>
98001
98002         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98003         renaming.
98004         * m4/ls-mntd-fs.m4: Likewise
98005
98006 2000-10-29  Jim Meyering  <meyering@lucent.com>
98007
98008         * lib/xstat.in: Fix grammar in comment.
98009
98010 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98011
98012         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98013         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98014         doesn't define __restrict_arr.
98015
98016 2000-10-28  Jim Meyering  <meyering@lucent.com>
98017
98018         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98019         (jm_PREREQ_MEMCHR): New function.
98020
98021 2000-10-28  Jim Meyering  <meyering@lucent.com>
98022
98023         * lib/memchr.c: Update from libc.
98024         Adjust for portability:
98025         [HAVE_STDLIB_H]: Include stdlib.h.
98026         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98027         Undef __memchr, too.
98028         [!weak_alias]: Define __memchr to memchr.
98029
98030         * lib/regex.c: Update from libc.
98031         * lib/regex.h: Likewise.
98032         * lib/getopt1.c: Likewise.
98033         * lib/memcmp.c: Likewise.
98034
98035         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98036         Avoid using fseek, when possible -- it's broken by design.
98037         Patch by Ulrich Drepper.
98038
98039 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98040
98041         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98042         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98043         Giving in to popular pressure to shut up the compiler with casts.
98044
98045 2000-10-26  Jim Meyering  <meyering@lucent.com>
98046
98047         * lib/strftime.c: Update from libc.
98048
98049 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98050
98051         * regex.c: More `unsigned char' -> `re_char' changes.
98052         Also change several `int' into `re_wchar_t'.
98053         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98054         (PUSH_FAILURE_POINTER): Don't cast any more.
98055         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98056         We want GCC to complain, since this piece of code makes
98057         re_match non-reentrant, which *should* be fixed.
98058         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98059         (EXTEND_BUFFER): Use RETALLOC.
98060         (SET_LIST_BIT): Don't cast.
98061         (re_wchar_t): New type.
98062         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
98063         that those two functions will always properly return.
98064         (IMMEDIATE_QUIT_CHECK): Cast to void.
98065         (analyse_first): Use recursion rather than an explicit stack.
98066         (re_compile_fastmap): Can't fail anymore.
98067         (re_search_2): Don't check re_compile_fastmap for failure.
98068         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
98069         Now also sets the new value (passed in a new argument).
98070         (re_match_2_internal): Use it.
98071         Also, use a new var `reg' of type size_t when looping through regs
98072         rather than reuse the inappropriate `mcnt'.
98073
98074 2000-10-25  Jim Meyering  <meyering@lucent.com>
98075
98076         * lib/obstack.c: Update from libc.
98077
98078 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
98079
98080         * regex.c (regex_compile): Change the way of handling a range from
98081         a char less than 256 to a char not less than 256.
98082
98083 2000-10-24  Andrew Innes  <andrewi@gnu.org>
98084
98085         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
98086         NT-Emacs only.
98087         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
98088         so that re_search functions only quit when callers expect them to.
98089
98090 2000-10-23  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
98093         wrong.  That set_locale call must not have any side effects.
98094         From Paul Eggert.
98095
98096 2000-10-22  Jim Meyering  <meyering@lucent.com>
98097
98098         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
98099         [CYCLIC]: Remove now-unused definition.
98100
98101         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
98102         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
98103         Suggestion from Ulrich Drepper.
98104
98105 2000-10-21  Jim Meyering  <meyering@lucent.com>
98106
98107         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
98108         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
98109         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
98110
98111 2000-10-21  Jim Meyering  <meyering@lucent.com>
98112
98113         * lib/dirname.c (memrchr): Declare if necessary.
98114         (dir_name): Remove the restriction that there be no
98115         trailing slashes.  Now, this code skips past them, effectively
98116         ignoring them.
98117         [TEST_DIRNAME] (main): New unit tests.
98118
98119         * lib/memrchr.c: New file from GNU libc.
98120         Undef __memrchr, too.
98121         [!weak_alias]: Define __memrchr to memrchr.
98122         Guard weak_alias use with `#ifdef weak_alias'.
98123
98124 2000-10-21  Jim Meyering  <meyering@lucent.com>
98125
98126         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
98127         (dir_name): Use dir_name_r.
98128         * lib/dirname.h (dir_name_r): Declare it.
98129
98130 2000-10-17  Jim Meyering  <meyering@lucent.com>
98131
98132         * lib/quote.h (PARAMS): Define and use.
98133         Reported by Akim Demaille.
98134
98135         * lib/getopt.c: Update from libc.
98136
98137 2000-10-16  Jim Meyering  <meyering@lucent.com>
98138
98139         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
98140         setlocale.
98141         From Jan Fedak.
98142
98143 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
98144
98145         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
98146
98147 2000-09-25  Jim Meyering  <meyering@lucent.com>
98148
98149         * lib/md5.h (rol): Define (from GnuPG).
98150
98151         * lib/sha.c: Give credit (GnuPG) where due.
98152         (M): Use rol rather than open-coding it.
98153         Add a FIXME comment.
98154
98155 2000-09-21  Jim Meyering  <meyering@lucent.com>
98156
98157         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
98158         Reported by Michael Stone.
98159
98160 2000-09-20  Jim Meyering  <meyering@lucent.com>
98161
98162         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
98163         (noinst_HEADERS): Add sha.h.
98164         Based on code from Scott G. Miller and from GnuPG.
98165
98166 2000-09-18  Jim Meyering  <meyering@lucent.com>
98167
98168         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
98169         LIBS. Otherwise, everyone ends up linking with -lelf for some
98170         configurations.
98171         Reported by Mike Stone.
98172
98173 2000-09-15  Jim Meyering  <meyering@lucent.com>
98174
98175         * lib/regex.c: Update from libc.
98176
98177 2000-09-10  Jim Meyering  <meyering@lucent.com>
98178
98179         * lib/getopt.c (_getopt_internal): Update from glibc.
98180
98181 2000-09-09  Jim Meyering  <meyering@lucent.com>
98182
98183         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
98184         think it should be used as a general replacement for isascii.
98185         * lib/fnmatch.c: Likewise.
98186         * lib/mbswidth.c: Likewise
98187         * lib/regex.c: Likewise.
98188
98189         Don't use atoi.
98190         * lib/userspec.c: Include sys/param.h and limits.h.
98191         Include xstrtol.h.
98192         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
98193         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
98194         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
98195         UID, GID.  Check range.
98196
98197 2000-09-06  Jim Meyering  <meyering@lucent.com>
98198
98199         * lib/getopt.c (_getopt_internal): Update from glibc.
98200
98201 2000-08-30  Jim Meyering  <meyering@lucent.com>
98202
98203         * lib/strftime.c: Merge in changes from GNU libc.
98204
98205 2000-08-26  Jim Meyering  <meyering@lucent.com>
98206
98207         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
98208         * m4/fpending.m4: New file.
98209
98210 2000-08-26  Jim Meyering  <meyering@lucent.com>
98211
98212         * lib/closeout.c: Include "__fpending.h".
98213         (close_stdout_status): Return right away if there's nothing to flush.
98214
98215         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
98216         * lib/__fpending.c: New file.
98217         * lib/__fpending.h: New file.
98218
98219 2000-08-20  Jim Meyering  <meyering@lucent.com>
98220
98221         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
98222         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
98223         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
98224
98225 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
98226
98227         Improve fileutils installation on systems where running
98228         programs (like install) can't be unlinked.
98229         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
98230         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
98231
98232 2000-08-07  Paul Eggert  <eggert@twinsun.com>
98233
98234         Standardize on "memory exhausted" instead of "Memory exhausted"
98235         or "virtual memory exhausted".
98236         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
98237         "virtual memory exhausted".
98238         * lib/same.c (same_name): Invoke xalloc_die instead of printing
98239         our own message.
98240         * lib/userspec.c (parse_user_spec): Likewise.
98241         * lib/bumpalloc.h: comment fix
98242         * lib/same.c, userspec.c: Include xalloc.h.
98243
98244         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
98245         not char *const and pointing to a constant array.
98246         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
98247         (xrealloc): Comment fix.
98248
98249         * lib/userspec.c (parse_user_spec):
98250         Don't translate a message until just before returning,
98251         to avoid unnecessary translation.
98252
98253 2000-08-07  Jim Meyering  <meyering@lucent.com>
98254
98255         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
98256         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
98257         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
98258         getgroups.c, gethostname.c, getopt.h, group-member.c,
98259         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
98260         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
98261         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
98262         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
98263         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
98264         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
98265         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
98266         yesno.c: Back out Copyright date changes for each file with no change
98267         this year.  This eases coordination with other programs using the same
98268         source code modules.  From Paul Eggert.
98269
98270 2000-08-06  Paul Eggert  <eggert@twinsun.com>
98271
98272         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
98273         not char, for compatibility with glibc 2.1.3 strftime.c.
98274
98275 2000-08-03  Greg McGary  <greg@mcgary.org>
98276
98277         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
98278         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
98279         (EXTEND_BUFFER): Use them.
98280
98281 2000-08-01  Jim Meyering  <meyering@lucent.com>
98282
98283         * lib/dirname.c (ISSLASH): Define.
98284         (BACKSLASH_IS_PATH_SEPARATOR): Define.
98285         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
98286         both `\' and `/' may be use as path separators.
98287         Based on a patch from Prashant TR.
98288
98289 2000-07-31  Paul Eggert  <eggert@twinsun.com>
98290
98291         * lib/quotearg.c (quotearg_n_options): Don't make the initial
98292         slot vector a constant, since it might get modified.
98293
98294 2000-07-31  Jim Meyering  <meyering@lucent.com>
98295
98296         * lib/xmalloc.c: Use `virtual memory exhausted', not
98297         `Memory exhausted'.
98298         * lib/obstack.c (print_and_abort): Likewise.
98299
98300 2000-07-30  Paul Eggert  <eggert@twinsun.com>
98301
98302         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
98303         buffer, so that the caller can always quote one small
98304         component of a "memory exhausted" message in slot 0.
98305         From a suggestion by Jim Meyering.
98306
98307 2000-07-30  Jim Meyering  <meyering@lucent.com>
98308
98309         * lib/makepath.c (make_path): Quote the other instance, too.
98310
98311         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
98312         (STATIC_BUF_SIZE): Define.
98313         (quotearg_n_options): Use only statically allocated storage when
98314         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
98315         than STATIC_BUF_SIZE.
98316
98317 2000-07-29  Jim Meyering  <meyering@lucent.com>
98318
98319         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
98320         * lib/dirname.c (dir_name): Likewise.
98321
98322         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
98323         `/'.
98324
98325         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
98326         (dir_name): Assert that there are no trailing slashes.
98327
98328 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
98329
98330         * lib/mbswidth.h (mbswidth): Add a flags argument.
98331         (mbswidth): New declaration.
98332         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
98333         * lib/mbswidth.c (mbswidth): Add a flags argument.
98334         (mbsnwidth): New function.
98335
98336 2000-07-24  Jim Meyering  <meyering@lucent.com>
98337
98338         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
98339
98340 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98341
98342         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
98343
98344 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98345
98346         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
98347         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
98348         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
98349         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
98350         invoke multibyte primitives.
98351
98352 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98353
98354         * lib/quotearg.c:
98355         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
98356         so that mbstate_t is always defined.
98357
98358         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
98359         be 1 in at least one GCC installation, and this configuration
98360         error is likely to be common.  Ignoring MB_LEN_MAX hurts
98361         performance on hosts that have mbrtowc but have only unibyte
98362         locales, but I assume these hosts are rare.
98363
98364 2000-07-23  Paul Eggert  <eggert@twinsun.com>
98365
98366         * lib/mbswidth.c (_XOPEN_SOURCE):
98367         Don't define; this causes problems on Solaris 7.
98368         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
98369
98370 2000-07-23  Jim Meyering  <meyering@lucent.com>
98371
98372         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
98373         too: getgrgid, getpwuid, getuid.
98374
98375 2000-07-23  Jim Meyering  <meyering@lucent.com>
98376
98377         * lib/basename.c (base_name): Add an assertion.
98378
98379 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
98380
98381         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
98382         shadow its mbsinit function.
98383
98384 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98385
98386         * lib/mbswidth.h: New file.
98387         * lib/mbswidth.c: New file.
98388         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
98389         (noinst_HEADERS): Add mbswidth.h.
98390
98391 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
98392
98393         * lib/config.charset: Add support for FreeBSD. Improve support for
98394         HP-UX and IRIX 6.
98395
98396 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
98397
98398         * m4/mbswidth.m4: New file.
98399         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
98400
98401 2000-07-15  Jim Meyering  <meyering@lucent.com>
98402
98403         * lib/makepath.c: Include quote.h.
98404         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
98405         corresponding argument in a `quote (...)' call.
98406         Give better diagnostics.
98407
98408         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
98409         (noinst_HEADERS): Add quote.h.
98410
98411         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
98412         from tar's src/misc.c.
98413         * lib/quote.h: New file.  Prototypes for same.
98414
98415 2000-07-14  Paul Eggert  <eggert@twinsun.com>
98416
98417         From a suggestion by Bruno Haible.
98418         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
98419         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
98420         to decide whether to define the BeOS workaround macro;
98421         this adjusts to the change to AC_MBSTATE_T.
98422
98423 2000-07-14  Jim Meyering  <meyering@lucent.com>
98424
98425         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
98426         jm_AC_TYPE_UINTMAX_T.
98427
98428 2000-07-13  Paul Eggert  <eggert@twinsun.com>
98429
98430         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
98431
98432         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
98433         quotearg_buffer_restyled): Add support for
98434         clocale_quoting_style.  Undo previous change to
98435         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
98436         and "{RIGHT QUOTATION MARK}" msgids.
98437
98438 2000-07-10  Paul Eggert  <eggert@twinsun.com>
98439
98440         From a suggestion by Bruno Haible.
98441         * m4/mbstate_t.m4 (AC_MBSTATE_T):
98442         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
98443         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
98444         and mbstate_t, to a single-part test that simply defines mbstate_t.
98445         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
98446         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
98447
98448 2000-07-10  Jim Meyering  <meyering@lucent.com>
98449
98450         * m4/strerror_r.m4: Mirror the correction made in autoconf.
98451
98452         * m4/gnu-source.m4: Output to confdefs.h directly.
98453         Suggestion from Akim Demaille.
98454
98455 2000-07-09  Paul Eggert  <eggert@twinsun.com>
98456
98457         The old behavior of quoting `like this' doesn't look good with
98458         newer, ISO-style fonts.  See:
98459         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
98460
98461         Instead, quote "like this" by default.  Let the translator
98462         tailor the locale-specific quoting behavior by providing
98463         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
98464
98465         * lib/quotearg.c (N_): New macro.
98466         (gettext_default): New function.
98467         (quotearg_buffer_restyled): Use
98468         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
98469         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
98470
98471 2000-07-09  Jim Meyering  <meyering@lucent.com>
98472
98473         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
98474         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
98475
98476         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
98477         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
98478
98479 2000-07-09  Jim Meyering  <meyering@lucent.com>
98480
98481         * lib/Most files: Update copyright dates to include 2000.
98482
98483 2000-07-08  Jim Meyering  <meyering@lucent.com>
98484
98485         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
98486         if not defined.
98487         (xgethostname): Remove now-unnecessary #ifdef.
98488         Move declaration of `err' into loop where it's used.
98489
98490 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98491         and Bruno Haible  <haible@clisp.cons.org>
98492
98493         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
98494         only if the test for an object-type mbstate_t fails.  This
98495         prevents us from mistakenly reporting that mbstate_t is a
98496         system object type after we "#define mbstate_t int" to work
98497         around its lack.
98498
98499 2000-07-05  Paul Eggert  <eggert@twinsun.com>
98500         and Bruno Haible  <haible@clisp.cons.org>
98501
98502         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
98503
98504 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98505
98506         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
98507         to strerror_r.
98508         Include <ctype.h> for use of isalpha.
98509
98510 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98511
98512         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
98513         by allocating a larger buffer. Test the gethostname return value for
98514         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
98515         returns an error and ENAMETOOLONG isn't defined.
98516
98517 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
98518
98519         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
98520         dimension.
98521
98522 2000-07-04  Jim Meyering  <meyering@lucent.com>
98523
98524         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
98525         of the deprecated AC_CHECKING.
98526
98527 2000-07-04  Jim Meyering  <meyering@lucent.com>
98528
98529         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
98530         Reported by Bruno Haible.
98531
98532 2000-07-04  Jim Meyering  <meyering@lucent.com>
98533
98534         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
98535         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
98536         lacks mbrtowc.
98537
98538 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98539
98540         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
98541         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
98542
98543 2000-07-03  Paul Eggert  <eggert@twinsun.com>
98544         and Bruno Haible  <haible@clisp.cons.org>
98545
98546         * lib/quotearg.c (mbrtowc):
98547         Assign to *pwc, and return 1 only if result is nonzero.
98548         (iswprint): Use ISPRINT when substituting our own mbrtowc.
98549
98550 2000-07-03  Jim Meyering  <meyering@lucent.com>
98551
98552         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
98553
98554 2000-07-03  Jim Meyering  <meyering@lucent.com>
98555
98556         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
98557         This is necessary to get a definition of e.g., UTMP_FILE on
98558         HP-UX 10.20.
98559         From Bob Proulx.
98560
98561 2000-07-02  Jim Meyering  <meyering@lucent.com>
98562
98563         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
98564
98565         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
98566         AC_LIBOBJ(function_name).
98567         * m4/chown.m4: Likewise.
98568         * m4/fnmatch.m4: Likewise.
98569         * m4/ftruncate.m4: Likewise.
98570         * m4/getgroups.m4: Likewise.
98571         * m4/getline.m4: Likewise.
98572         * m4/group-member.m4: Likewise.
98573         * m4/jm-macros.m4: Likewise.
98574         * m4/lstat.m4: Likewise.
98575         * m4/malloc.m4: Likewise.
98576         * m4/memcmp.m4: Likewise.
98577         * m4/nanosleep.m4: Likewise.
98578         * m4/putenv.m4: Likewise.
98579         * m4/realloc.m4: Likewise.
98580         * m4/regex.m4: Likewise.
98581         * m4/stat.m4: Likewise.
98582         * m4/strftime.m4: Likewise.
98583
98584 2000-07-02  Jim Meyering  <meyering@lucent.com>
98585
98586         * lib/quotearg.c (mbstate_t): Don't define here.
98587
98588 2000-07-02  Jim Meyering  <meyering@lucent.com>
98589
98590         * lib/nanosleep.c (SIGCONT): Define if not already defined.
98591
98592 2000-07-01  Jim Meyering  <meyering@lucent.com>
98593
98594         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
98595
98596 2000-07-01  Jim Meyering  <meyering@lucent.com>
98597
98598         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
98599         problem.
98600
98601 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98602
98603         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
98604         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
98605
98606 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
98607
98608         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
98609         per change in ../m4/ls-mntd-fs.m4.
98610         (read_filesystem_list): Ignore symbolic links.
98611
98612 2000-06-29  Jim Meyering  <meyering@lucent.com>
98613
98614         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
98615         for declaration of strcmp.
98616
98617         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
98618
98619         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
98620         Avoid warning by casting result to `char *' to remove `const'.
98621
98622 2000-06-28  Jim Meyering  <meyering@lucent.com>
98623
98624         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
98625         included by quotearg.c, for which we perform this test.  From
98626         Bruno Haible.
98627
98628 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98629
98630         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
98631         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
98632         <utmpx.h> exists, put readutmp.o into LIBOBJS.
98633
98634 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
98635
98636         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
98637
98638 2000-06-26  Paul Eggert  <eggert@twinsun.com>
98639
98640         savedir now sets errno on failure and invokes xmalloc to get memory.
98641         Fix a couple of other minor bugs while we're at it.
98642
98643         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
98644         (NAMLEN): Remove macro.
98645         (malloc, realloc): Remove decls.
98646         (stpcpy): Likewise.
98647         ("xalloc.h"): Include.
98648         (NAME_SIZE_DEFAULT): New macro.
98649         (savedir): Use xmalloc / xrealloc to allocate memory.
98650         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
98651         Skip "" directory entries.
98652         Use strlen to calculate directory entry length, since the old method
98653         is rarely used these days and isn't worth supporting.
98654         Don't use a pointer after freeing it.
98655         Check for integer overflow when calculating allocation size.
98656         Use memcpy to copy entries, instead of stpcpy.
98657         Set errno properly when returning NULL.
98658         Check for readdir error.
98659
98660 2000-06-26  Jim Meyering  <meyering@lucent.com>
98661
98662         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
98663
98664 2000-06-25  Jim Meyering  <meyering@lucent.com>
98665
98666         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
98667         Linux header bug when _XOPEN_SOURCE is defined to 500.
98668
98669 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98670
98671         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
98672         deficiency.
98673
98674 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
98675
98676         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
98677         Include xalloc.h.
98678         Don't include <stdlib.h>.  Don't declare malloc, realloc.
98679
98680 2000-06-24  Jim Meyering  <meyering@lucent.com>
98681
98682         * m4/strerror_r.m4: Revive this file -- to try out an experimental
98683         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
98684         for which strerror does return char*, but which lacks a conveniently
98685         accessible declaration of the function.  If the compile-test says
98686         strerror_r doesn't work, then resort to a `run'-test that works on
98687         BeOS and segfaults on DEC Unix.
98688
98689 2000-06-24  Jim Meyering  <meyering@lucent.com>
98690
98691         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
98692
98693 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98694
98695         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
98696         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
98697
98698 2000-06-23  Paul Eggert  <eggert@twinsun.com>
98699
98700         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
98701         (mbrtowc, mbstate_t): Define substitutes if
98702         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
98703         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
98704         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
98705
98706 2000-06-23  Jim Meyering  <meyering@lucent.com>
98707
98708         * m4/afs.m4: Add missing AC_MSG_RESULT.
98709         Reported by Bruno Haible.
98710
98711         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
98712         Suggestion from Bruno Haible.
98713
98714 2000-06-23  Jim Meyering  <meyering@lucent.com>
98715
98716         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
98717
98718 2000-06-21  Jim Meyering  <meyering@lucent.com>
98719
98720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
98721
98722 2000-06-21  Jim Meyering  <meyering@lucent.com>
98723
98724         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
98725         (noinst_HEADERS): Add getstr.h.
98726
98727         * lib/getline.c (getstr): Move into a separate file.
98728         * lib/getstr.c (getstr): New file, extracted from getline.c, with
98729         the following changes: new parameter, delim2; both delim[12]
98730         parameters have type `int', not `char'.  The latter would lose
98731         with 8-bit delimiters.
98732         * lib/getstr.h: New file.
98733
98734 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98735
98736         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
98737         than 1024, return a memory chunk of least possible size, instead
98738         of size PATH_MAX + 2. In the loop, increment the size proportionally.
98739         Use free/xmalloc instead of xrealloc to avoid copying for very long
98740         paths.
98741
98742 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98743
98744         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
98745         the empty string.
98746
98747 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
98748
98749         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
98750         address, not strdup.  Include <stdlib.h> and don't declare free().
98751
98752 2000-06-19  Jim Meyering  <meyering@lucent.com>
98753
98754         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
98755
98756 2000-06-18  Jim Meyering  <meyering@lucent.com>
98757
98758         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
98759
98760         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
98761         `checking whether...' message to be consistent with that of the
98762         lstat test.
98763
98764 2000-06-18  Jim Meyering  <meyering@lucent.com>
98765
98766         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
98767         Besides, these days every porting target provides a mkdir function.
98768
98769         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
98770         needed. (this snippet comes from src/system.h).
98771
98772 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
98773
98774         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
98775
98776 2000-06-15  Paul Eggert  <eggert@twinsun.com>
98777
98778         * lib/human.c (adjust_value): New function.
98779         (human_readable_inexact): Apply rounding style even when
98780         printing approximate values.
98781
98782 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98783
98784         * lib/human.c (human_readable_inexact): Allow an input block
98785         size that is not a multiple of the output block size, and vice versa.
98786         Reported by Piergiorgio Sartor.
98787
98788 2000-06-14  Paul Eggert  <eggert@twinsun.com>
98789
98790         * lib/getdate.y (get_date): Apply relative times after time
98791         zone indicator, not before.  Reported by Todd A. Jacobs.
98792
98793 2000-06-13  Jim Meyering  <meyering@lucent.com>
98794
98795         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
98796
98797         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
98798
98799 2000-06-12  Paul Eggert  <eggert@twinsun.com>
98800
98801         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
98802
98803 2000-06-12  Jim Meyering  <meyering@lucent.com>
98804
98805         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
98806         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
98807         optional argument.
98808         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
98809         the optional argument, `lib'.
98810
98811 2000-06-08  Jim Meyering  <meyering@lucent.com>
98812
98813         * m4/largefile.m4: Remove file (now that it's part of autoconf).
98814
98815 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98816
98817         Rewrite largefile configuration so that we don't need to run
98818         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
98819         AC_CANONICAL_HOST in configure.in -- jmm]
98820
98821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
98822         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
98823         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
98824         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
98825         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
98826         All uses changed.
98827         Instead of inspecting the output of getconf, try to compile the
98828         test program without and with the macro definition.
98829         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
98830         for getconf.  Instead, check for the needed flags by compiling
98831         test programs.
98832
98833 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98834
98835         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98836
98837 2000-06-04  Jim Meyering  <meyering@lucent.com>
98838
98839         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98840         SunOS 4.1.4 for which gid_t is an unsigned type.
98841
98842 2000-06-03  Jim Meyering  <meyering@lucent.com>
98843
98844         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98845         now that autoconf requires that.
98846
98847         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98848         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98849         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98850
98851 2000-06-03  Jim Meyering  <meyering@lucent.com>
98852
98853         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98854
98855 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98856
98857         * m4/glibc21.m4: New file.
98858         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98859
98860 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98861
98862         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98863         newer, don't install charset.alias.
98864         * lib/config.charset: Change the Linux/glibc rules so they become empty
98865         on glibc-2.1 or newer.
98866
98867 2000-06-02  Jim Meyering  <meyering@lucent.com>
98868
98869         * lib/mountlist.c: Back out last change.  Instead, do this...
98870         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98871         me_dummy member using the same `ignore'-testing code.
98872         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98873         fs_type strings.
98874         From Mark D. Roth.
98875
98876 2000-05-29  Jim Meyering  <meyering@lucent.com>
98877
98878         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98879         mounts with the `ignore' attribute.  Based on a patch from
98880         Mark D. Roth.
98881
98882 2000-05-28  Jim Meyering  <meyering@lucent.com>
98883
98884         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98885         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98886         * m4/stat.m4: Likewise.
98887         * m4/lstat.m4: Likewise.
98888         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98889
98890         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98891         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98892
98893 2000-05-26  Jim Meyering  <meyering@lucent.com>
98894
98895         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98896
98897 2000-05-24  Jim Meyering  <meyering@lucent.com>
98898
98899         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98900         autoconf requires that.
98901         * m4/lib-check.m4: Likewise.
98902         * m4/jm-macros.m4: Likewise.
98903         * m4/strftime.m4: Likewise.
98904
98905         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98906         AC_CHECK_DECLS, now that autoconf requires that.
98907
98908 2000-05-22  Jim Meyering  <meyering@lucent.com>
98909
98910         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98911         * m4/lstat.m4: Likewise.
98912
98913 2000-05-22  Jim Meyering  <meyering@lucent.com>
98914
98915         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98916
98917 2000-05-20  Jim Meyering  <meyering@lucent.com>
98918
98919         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98920         (jm_PREREQ): Use it.
98921
98922 2000-05-18  Jim Meyering  <meyering@lucent.com>
98923
98924         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98925         back, too, since it may have been modified by allocate_entry.
98926         (hash_delete): Rewrite to use neither the assignment operator
98927         nor the comma operator in an if-expression.
98928
98929 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98930
98931         * lib/closeout.c:
98932         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98933         Remove; no longer needed.
98934         "quotearg.h": Add include.
98935         (file_name): Do not bother to explicitly initialize to NULL; it's less
98936         efficient on some hosts.
98937         (close_stdout_status): Remove test as to whether stdout was already
98938         closed; it breaks for the case "echo x | sort >&-".
98939         Quote file name colons.
98940         Do not assume that _("write error") lacks format strings.
98941
98942 2000-05-15  Jim Meyering  <meyering@lucent.com>
98943
98944         * lib/version-etc.c (version_etc_copyright): Update the copyright
98945         string used in all --version output.
98946
98947 2000-05-14  Jim Meyering  <meyering@lucent.com>
98948
98949         * lib/closeout.c (close_stdout_set_file_name): New function.
98950         (close_stdout_status): Use new file-scoped global.
98951         Return right away if fstat says the stdout file descriptor is invalid.
98952         * lib/closeout.h (close_stdout_set_file_name): Declare.
98953
98954 2000-05-10  Jim Meyering  <meyering@lucent.com>
98955
98956         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98957         (close_stdout_set_status): New function.
98958         * lib/closeout.h (close_stdout_set_status): Declare.
98959
98960 2000-05-09  Jim Meyering  <meyering@lucent.com>
98961
98962         * m4/gettext.m4: Rename this...
98963         * m4/libintl.m4: ...to this.
98964
98965 2000-05-08  Jim Meyering  <meyering@lucent.com>
98966
98967         * lib/long-options.c: Don't include closeout.h.
98968         (parse_long_options): Don't call close_stdout for --version.
98969
98970 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98971
98972         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98973         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98974         2.1.3 bug.  This avoids a clash when files like regex.c define
98975         _GNU_SOURCE.
98976
98977 2000-05-06  Jim Meyering  <meyering@lucent.com>
98978
98979         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98980         (AC_REPLACE_FUNCS): Add strnlen.
98981
98982         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98983         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98984
98985         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98986         AC_SEARCH_LIBS call for nanosleep.
98987         (LIB_NANOSLEEP): Set and AC_SUBST.
98988
98989 2000-05-06  Jim Meyering  <meyering@lucent.com>
98990
98991         * lib/strnlen.c: Undefine __strnlen and strnlen.
98992         [!weak_alias]: Define __strnlen to strnlen.
98993
98994         * lib/atexit.c: New file, from libiberty.
98995
98996 2000-05-06  Jim Meyering  <meyering@lucent.com>
98997
98998         * lib/closeout.c (close_stdout_status): Also check for errors on the
98999         stderr stream.
99000
99001 2000-05-05  Jim Meyering  <meyering@lucent.com>
99002
99003         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99004         AC_SEARCH_LIBS call for clock_gettime.
99005         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99006
99007         * m4/search-libs.m4: Update from autoconf.
99008
99009         su doesn't work on Solaris 2.6.
99010         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99011         <shadow.h>.  Reported by Dragos Harabor.
99012
99013 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99014
99015         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99016         memcpy instead of xmalloc, xrealloc, path_concat.
99017         (locale_charset): Treat empty environment variables as absent.
99018         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99019
99020 2000-05-04  Jim Meyering  <meyering@lucent.com>
99021
99022         * lib/getopt.c: Update from glibc.
99023         * lib/obstack.c: Likewise.
99024         * lib/obstack.h: Likewise.
99025         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99026         file
99027
99028         * lib/regex.h: Likewise.
99029         * lib/strndup.c: Likewise.
99030         * lib/strnlen.c: New file, from glibc.
99031
99032 2000-05-03  Jim Meyering  <meyering@lucent.com>
99033
99034         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99035
99036 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99037
99038         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99039         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99040         compile-time test, rather than inspecting host and OS, to
99041         decide whether to define _LARGEFILE_SOURCE.
99042
99043 2000-05-01  Jim Meyering  <meyering@lucent.com>
99044
99045         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99046
99047         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99048         Based on a patch from Bruno Haible.
99049
99050 2000-05-01  Jim Meyering  <meyering@lucent.com>
99051
99052         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99053
99054 2000-04-29  Jim Meyering  <meyering@lucent.com>
99055
99056         * lib/path-concat.c: Declare strdup only if it's not defined.
99057         * lib/canon-host.c: Likewise.
99058
99059 2000-04-28  Jim Meyering  <meyering@lucent.com>
99060
99061         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99062         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
99063         is included first, then limits.h is included by locale.h by libintl.h.
99064         From John David Anglin.
99065
99066 2000-04-25  Jim Meyering  <meyering@lucent.com>
99067
99068         * lib/makepath.c (S_IRWXUGO): Define.
99069         (make_path): Always perform explicit chmod if MODE specifies any
99070         of the `special' permission bits.  Prompted by a bug report against
99071         install from Mate Wierdl and Joost van Baal.
99072
99073 2000-04-18  Jim Meyering  <meyering@lucent.com>
99074
99075         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
99076         (jm_PREREQ): Use it.
99077
99078 2000-04-18  Jim Meyering  <meyering@lucent.com>
99079
99080         * lib/README: New file.
99081
99082         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
99083         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
99084
99085 2000-04-17  Jim Meyering  <meyering@lucent.com>
99086
99087         Get it right :-)
99088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
99089         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
99090         Suggestion from Akim Demaille.
99091
99092 2000-04-17  Jim Meyering  <meyering@lucent.com>
99093
99094         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
99095         the definition of it to rpl_strftime also defined-away the system's
99096         declaration.
99097
99098 2000-04-15  Jim Meyering  <meyering@lucent.com>
99099
99100         Use `C' to denote so-called `contiguous' files, the same way
99101         that tar does.
99102         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
99103         (ftypelet): Use S_ISCTG.
99104         From Michael Deutschmann.
99105
99106 2000-04-14  Jim Meyering  <meyering@lucent.com>
99107
99108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
99109         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
99110         clobbered.
99111
99112 2000-04-14  Jim Meyering  <meyering@lucent.com>
99113
99114         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
99115
99116 2000-04-13  Jim Meyering  <meyering@lucent.com>
99117
99118         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
99119         AH_VERBATIM to insert required #ifndef into config.h.in.
99120         Suggestion from Akim Demaille.
99121
99122 2000-04-12  Jim Meyering  <meyering@lucent.com>
99123
99124         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
99125         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
99126         Christian Krackowizer.
99127
99128         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
99129         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
99130         (AC_SYS_LARGEFILE): Require.
99131         (AM_C_PROTOTYPES): Require.
99132
99133 2000-04-08  Jim Meyering  <meyering@lucent.com>
99134
99135         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
99136         names don't conflict.  Reported by Eli Zaretskii.
99137
99138 2000-04-07  Jim Meyering  <meyering@lucent.com>
99139
99140         * lib/putenv.c: Move inclusion of errno.h so it follows that of
99141         sys/types.h, to work around system header problems on AIX 3.2.5.
99142         From Bruno Haible.
99143
99144 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
99145
99146         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
99147         bug.  Deal with the different error behavior of Irix iconv.
99148
99149 2000-04-05  Paul Eggert  <eggert@twinsun.com>
99150
99151         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
99152         IRIX if the installer said otherwise.
99153
99154 2000-04-05  Jim Meyering  <meyering@lucent.com>
99155
99156         Portability tweaks required for ultrix4.3.
99157         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
99158         (jm_CHECK_DECLS): Add getutent to the list of functions.
99159         (_jm_DECL_HEADERS): Add utmpx.h.
99160         From John David Anglin.
99161
99162         * m4/strftime.m4: Back out the 2000-04-02 change.
99163         Instead of that change, simply undefine putenv in the test program.
99164
99165 2000-04-05  Jim Meyering  <meyering@lucent.com>
99166
99167         Portability tweaks required for ultrix4.3.
99168         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
99169         getutent.
99170         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
99171         * lib/canon-host.c: Declare strdup.
99172         * lib/path-concat.c: Likewise.
99173         From John David Anglin.
99174
99175 2000-04-04  Jim Meyering  <meyering@lucent.com>
99176
99177         Be more DOS 8.3-friendly.
99178         * lib/ref-add.sin: Renamed from ref-add.sed.in.
99179         * lib/ref-del.sin: Renamed from ref-del.sed.in.
99180         * lib/Makefile.am: Reflect renaming.
99181         Reported by Eli Zaretskii.
99182
99183         Use a temporary file name that won't clash with `charset.alias'
99184         in the DOS 8.3 name space.
99185         * lib/Makefile.am (charset_tmp): Define.
99186         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
99187         (uninstall-local): Likewise.
99188         Reported by Eli Zaretskii.
99189
99190 2000-04-03  Jim Meyering  <meyering@lucent.com>
99191
99192         * m4/gettext.m4: Fix typo in comment.
99193
99194         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
99195         textutils/configure.in).  Suggestion from Paul Eggert.
99196         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
99197
99198 2000-04-02  Paul Eggert  <eggert@twinsun.com>
99199
99200         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
99201         variable in the shell rather than using putenv, which isn't
99202         portable.  This avoids the configure-time inter-test dependency
99203         on the potentially-renamed putenv function.
99204
99205 2000-03-30  Paul Eggert  <eggert@twinsun.com>
99206
99207         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
99208         before checking struct stat.st_blksize, so that
99209         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
99210
99211 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99212
99213         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
99214         since strftime.c uses HAVE_STRFTIME to decide whether to use
99215         the underlying strftime.
99216
99217 2000-03-29  Paul Eggert  <eggert@twinsun.com>
99218
99219         * lib/time/strftime.c (my_strftime): Make sure we call the system
99220         strftime, not ourselves, when invoking the underlying strftime.
99221
99222 2000-03-24  Jim Meyering  <meyering@lucent.com>
99223
99224         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
99225         (charset_alias): Define.
99226         (install-exec-local): Factor out common code.
99227         (uninstall-local): Split lines longer than 80.
99228         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
99229         (SUFFIXES): Define.
99230         (.sed.in.sed): New rule.  Don't redirect directly to $@.
99231         (CLEANFILES): Add ref-add.sed and ref-del.sed.
99232
99233 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
99234
99235         * lib/config.charset: Output a line containing "Packages using this
99236         file".
99237         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
99238         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
99239         ref-del.sed): New rules.
99240
99241 2000-03-17  Jim Meyering  <meyering@lucent.com>
99242
99243         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
99244         Otherwise, include <strings.h>
99245
99246 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
99247
99248         * lib/unicodeio.c (utf8_wctomb): New function.
99249         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
99250         format instead of in UCS-4 with platform dependent endianness.
99251
99252 2000-03-10  Jim Meyering  <meyering@lucent.com>
99253
99254         * m4/lib-check.m4: Look for getspnam in -lgen, too.
99255         From Marco Franzen.
99256
99257 2000-03-07  Paul Eggert  <eggert@twinsun.com>
99258
99259         * lib/savedir.c (savedir): Work even if directory size is
99260         negative; this can happen with some screwy NFS configurations.
99261
99262 2000-03-06  Jim Meyering  <meyering@lucent.com>
99263
99264         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
99265         if it's NULL (because we ran out of memory).  From Bruno Haible.
99266
99267 2000-03-05  Jim Meyering  <meyering@lucent.com>
99268
99269         * lib/localcharset.c ("path-concat.h"): Include.
99270         (get_charset_aliases): Use path_concat instead of ANSI string
99271         concatenation.
99272
99273         * lib/unicodeio.h (PARAMS): Define.
99274         Use it to guard prototype.
99275
99276 2000-03-04  Jim Meyering  <meyering@lucent.com>
99277
99278         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
99279         for lib/localcharset.c.
99280
99281 2000-03-04  Jim Meyering  <meyering@lucent.com>
99282
99283         * lib/Makefile.am (install-exec-local): Create $(libdir) before
99284         installing into it.
99285         (uninstall-local): Uncomment this rule so `make distcheck' works
99286         once again.
99287
99288         * lib/unicodeio.c (<errno.h>): Include it.
99289         (errno): Declare if not defined.
99290
99291         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
99292
99293         * lib/config.charset: New version, incorporating remarks from a linux
99294         i18n mailing list.  From Bruno Haible.
99295
99296 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
99297
99298         * m4/codeset.m4: New file.
99299         * m4/iconv.m4: New file.
99300         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
99301
99302 2000-03-03  Jim Meyering  <meyering@lucent.com>
99303
99304         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
99305
99306 2000-03-02  Jim Meyering  <meyering@lucent.com>
99307
99308         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
99309         the messages come out on separate lines.
99310
99311         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
99312         rather than jm_CHECK_DECLARATIONS.
99313         * m4/decl.m4: Remove now-unused file.
99314
99315         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
99316         geteuid.
99317
99318 2000-03-02  Jim Meyering  <meyering@lucent.com>
99319
99320         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
99321
99322 2000-03-01  Jim Meyering  <meyering@lucent.com>
99323
99324         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
99325         * lib/unicodeio.c: Likewise.
99326
99327 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
99328
99329         * lib/config.charset: New file.
99330         * lib/localcharset.c: New file.
99331         * lib/unicodeio.h, lib/unicodeio.c: New files.
99332         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
99333         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
99334         (noinst_HEADERS): Add unicodeio.h.
99335         (all-local, install-exec-local, charset.alias): New targets.
99336
99337 2000-02-28  Paul Eggert  <eggert@twinsun.com>
99338
99339         * lib/quotearg.c (ALERT_CHAR): New macro.
99340         (quotearg_buffer_restyled): Use it.
99341
99342 2000-02-27  Jim Meyering  <meyering@lucent.com>
99343
99344         * m4/check-decl.m4: Add getenv to the list.
99345
99346 2000-02-27  Jim Meyering  <meyering@lucent.com>
99347
99348         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
99349         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
99350
99351         * lib/backupfile.c: Guard inclusion of stdlib.h with
99352         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
99353         Declare malloc if needed.
99354
99355         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
99356         `#ifndef HAVE_DECL..'
99357         now that autoconf always defines the HAVE_DECL_ symbols.
99358         * lib/human.c: Likewise.
99359         * lib/same.c: Likewise.
99360         * lib/strtoumax.c: Likewise.
99361
99362         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
99363         declaration check was not run.
99364         * lib/hash.c: Likewise.
99365         * lib/human.c: Likewise.
99366         * lib/same.c: Likewise.
99367         * lib/strtoumax.c: Likewise.
99368
99369         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
99370         `.', then first look up the entire `.'-containing string as a login
99371         name.
99372
99373 2000-02-23  Jim Meyering  <meyering@lucent.com>
99374
99375         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
99376         in place of my hack.
99377
99378 2000-02-18  Paul Eggert  <eggert@twinsun.com>
99379
99380         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
99381         (textint): New typedef.
99382         (parser_control): Member year changed from int to textint.
99383         All uses changed.
99384         (YYSTYPE): Removed; replaced by %union with int and textint members.
99385         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
99386         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
99387         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
99388         (tSNUMBER, tUNUMBER): Now of type <textintval>.
99389         (date, number, to_year): Use width of number in digits, not its value,
99390         to determine whether it's a 2-digit year, or a 2-digit time.
99391         (yylex): Store number of digits of numeric tokens.
99392         Reported by John Kendall.
99393
99394         (parser_control): Changed from struct parser_control to typedef (for
99395         consistency).  All uses changed.
99396
99397         (tID): Removed; not used.
99398         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
99399
99400 2000-02-14  Paul Eggert  <eggert@twinsun.com>
99401
99402         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
99403         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
99404
99405 2000-02-12  Jim Meyering  <meyering@lucent.com>
99406
99407         * lib/userspec.c (ISDIGIT): Define it.
99408         (isdigit): Remove definition.
99409         (is_number): Use ISDIGIT, not isdigit.
99410         <libintl.h>: Include.
99411         (_ and N_): Define.
99412         (parse_user_spec): Mark translatable strings.
99413
99414 2000-02-10  Jim Meyering  <meyering@lucent.com>
99415
99416         With these changes, nanosleep.[ch] are finally enough like the other
99417         lib/* replacement files to compile on a few more losing systems.
99418
99419         * lib/nanosleep.h: Don't include config.h.
99420         Remove prototype from declaration of nanosleep.
99421         (PARAMS): Remove now-unneeded definition.
99422         * lib/nanosleep.c: #undef nanosleep.
99423         (rpl_nanosleep): Rename from nanosleep.
99424
99425 2000-02-10  Jim Meyering  <meyering@lucent.com>
99426
99427         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
99428         gnu_nanosleep to rpl_nanosleep.
99429
99430 2000-02-09  Jim Meyering  <meyering@lucent.com>
99431
99432         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
99433         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
99434
99435 2000-02-08  Akim Demaille  <akim@epita.fr>
99436
99437         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
99438         `[' and `]' and remove uses of `changequote'.
99439         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
99440         (AC_SYS_LARGEFILE): Likewise.
99441         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
99442         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
99443         of changequote.
99444         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
99445         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
99446         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
99447         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
99448
99449 2000-02-05  Jim Meyering  <meyering@lucent.com>
99450
99451         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
99452         Remove explicit use of AC_HEADER_TIME.  It is required by
99453         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
99454         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
99455         in autoconf whereby the expansion of the latter ended up preceding
99456         the expansion of its prerequisite, AC_HEADER_TIME.
99457         Reported by Volker Borchert.
99458
99459 2000-02-03  Jim Meyering  <meyering@lucent.com>
99460
99461         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
99462
99463 2000-02-03  Jim Meyering  <meyering@lucent.com>
99464
99465         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
99466         rather than with `#if HAVE_UTMPNAME'.
99467
99468 2000-02-02  Jim Meyering  <meyering@lucent.com>
99469
99470         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
99471         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
99472         Reported by Eli Zaretskii.
99473
99474 2000-02-01  Jim Meyering  <meyering@lucent.com>
99475
99476         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
99477
99478 2000-01-31  Jim Meyering  <meyering@lucent.com>
99479
99480         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
99481         functions.  Add the time.h and sys/time.h headers along with the
99482         AC_REQUIRE'ment of AC_HEADER_TIME.
99483
99484 2000-01-31  Jim Meyering  <meyering@lucent.com>
99485
99486         * lib/nanosleep.h (nanosleep): Guard declaration with
99487         `#if ! HAVE_DECL_NANOSLEEP'.
99488         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
99489         the declaration in that vendor's sys/timers.h.
99490         Reported by Christian Krackowizer.
99491
99492         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
99493         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
99494         (ISPRINT): Likewise.
99495         Reported by Tom Tromey.
99496
99497 2000-01-30  Jim Meyering  <meyering@lucent.com>
99498
99499         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
99500
99501         * m4/prereq.m4 (utmp_includes): Define.
99502         Check for ut_user and ut_name members in both struct utmpx
99503         and struct utmp.
99504
99505 2000-01-30  Jim Meyering  <meyering@lucent.com>
99506
99507         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
99508         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
99509         header files where only utmpx.ut_user is declared.
99510
99511         * lib/readutmp.h (UT_USER): Define.
99512
99513 2000-01-29  Jim Meyering  <meyering@lucent.com>
99514
99515         * m4/lib-check.m4: New file containing library-related checks from
99516         fileutils and sh-utils (textutils had none).
99517
99518 2000-01-28  Jim Meyering  <meyering@lucent.com>
99519
99520         * m4/perl.m4: Change format of warning message to look more like that
99521         from the missing script.  Suggestion from François Pinard.
99522
99523 2000-01-25  Jim Meyering  <meyering@lucent.com>
99524
99525         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
99526         well as time.h in the compile check.
99527         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
99528         Fix typo in cross-compiling case: s/yes/no/.
99529
99530 2000-01-23  Jim Meyering  <meyering@lucent.com>
99531
99532         * m4/jm-macros.m4: Move df-related tests here from
99533         fileutils/configure.in
99534
99535         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
99536         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
99537
99538         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
99539         s/space/ac_fsusage_space/.
99540         (jm_FILE_SYSTEM_USAGE): Take two parameters.
99541
99542         * m4/ftruncate.m4: New file (derived from part of
99543         fileutils/configure.in).
99544         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
99545         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
99546
99547         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
99548         AC_SUBST these here, rather than just in sh-util/configure.in, so
99549         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
99550         all the same.
99551         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
99552         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
99553         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
99554         (AC_SUBST(POW_LIBM)): Likewise.
99555         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
99556
99557 2000-01-23  Jim Meyering  <meyering@lucent.com>
99558
99559         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
99560         obstack.c.
99561
99562 2000-01-22  Jim Meyering  <meyering@lucent.com>
99563
99564         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
99565
99566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
99567
99568         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
99569         configure.in
99570         (AC_CHECK_HEADERS): Likewise for sh-utils.
99571         (AC_CHECK_HEADERS): Likewise for textutils.
99572         Merge the three lists of headers.
99573
99574         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
99575         from fileutils' configure.in.
99576
99577         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
99578         code. Moved tests into their own function (_jm_DECL_HEADERS) in
99579         check-decl.m4.
99580
99581         * m4/check-decl.m4: Use #if rather than #ifdef.
99582         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
99583         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
99584         (_jm_DECL_HEADERS): Define new function.
99585         (jm_CHECK_DECLARATIONS): Require it.
99586
99587 2000-01-22  Jim Meyering  <meyering@lucent.com>
99588
99589         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
99590         [! HAVE_DECL_STRTOULL]: Declare strtoull.
99591         Required for some AIX systems.  Reported by Christian Krackowizer.
99592         [TESTING] (main): New function.
99593
99594         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
99595         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
99596         letters.
99597
99598         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
99599         iswprint.
99600
99601         * lib/strverscmp.c (ISDIGIT): Define.
99602         (strverscmp): Use ISDIGIT, not isdigit.
99603
99604 2000-01-19  Jim Meyering  <meyering@lucent.com>
99605
99606         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
99607         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
99608         defines `struct timespec' in <sys/time.h>
99609
99610         * m4/c-bs-a.m4: Remove uses of changequote altogether.
99611         Thanks to Akim for explaining.
99612
99613 2000-01-17  Paul Eggert  <eggert@twinsun.com>
99614
99615         * lib/nanosleep.c (nanosleep):
99616         Don't use SA_INTERRUPT to decide whether to call sigaction, as
99617         POSIX.1 doesn't require SA_INTERRUPT and some systems
99618         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
99619         it's been part of POSIX.1 since day 1 (in 1988).
99620
99621 2000-01-17  Jim Meyering  <meyering@lucent.com>
99622
99623         * lib/interlock: Remove unused file.  Reported by François Pinard.
99624
99625 2000-01-16  Paul Eggert  <eggert@twinsun.com>
99626
99627         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
99628         alert, backslash, formfeed, and vertical tab unnecessarily in
99629         shell quoting style.
99630
99631 2000-01-16  Jim Meyering  <meyering@lucent.com>
99632
99633         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
99634         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
99635         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
99636         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
99637
99638 2000-01-16  Jim Meyering  <meyering@lucent.com>
99639
99640         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
99641         because the latter didn't work.
99642
99643 2000-01-15  Jim Meyering  <meyering@lucent.com>
99644
99645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
99646         (AC_REPLACE_FUNCS): Add memcpy and memset.
99647         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
99648         Add strpbrk.
99649         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
99650
99651 2000-01-12  Jim Meyering  <meyering@lucent.com>
99652
99653         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
99654         (jm_PREREQ): Use it.
99655         (jm_PREREQ_READUTMP): New macro.
99656         (jm_PREREQ): Use it.
99657
99658 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99659
99660         Quote multibyte characters correctly.
99661         * m4/c-bs-a.m4: New file.
99662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
99663         (jm_PREREQ): Use it.
99664
99665 2000-01-11  Paul Eggert  <eggert@twinsun.com>
99666
99667         * m4/uintmax_t.m4: Port to autoconf 2.13.
99668
99669 2000-01-08  Jim Meyering  <meyering@ascend.com>
99670
99671         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
99672         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
99673
99674 2000-01-04  Jim Meyering  <meyering@ascend.com>
99675
99676         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
99677         jm_STRUCT_DIRENT_D_TYPE.
99678         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
99679         jm_STRUCT_DIRENT_D_INO.
99680         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
99681         jm_STRUCT_UTIMBUF.
99682         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
99683         renamings.
99684         * m4/utime.m4: Likewise.
99685
99686         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
99687         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
99688
99689 2000-01-03  Paul Eggert  <eggert@twinsun.com>
99690
99691         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
99692         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
99693
99694 2000-01-02  Jim Meyering  <meyering@ascend.com>
99695
99696         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
99697         remember if this is necessary.
99698
99699 1999-12-26  Jim Meyering  <meyering@ascend.com>
99700
99701         * m4/jm-macros.m4: Use it here.
99702         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
99703
99704 1999-12-23  Jim Meyering  <meyering@ascend.com>
99705
99706         * m4/jm-macros.m4: Check for clock_gettime (moved from
99707         fileutils/configure.in)
99708         Check for gettimeofday.
99709
99710 1999-12-20  Jim Meyering  <meyering@ascend.com>
99711
99712         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
99713         autoconf-2.14a-1999-12-20.
99714
99715 1999-12-19  Jim Meyering  <meyering@ascend.com>
99716
99717         * m4/lstat-slash.m4: New file.
99718         * m4/jm-macros.m4: Use the new macro:
99719         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99720
99721 1999-12-07  Jim Meyering  <meyering@ascend.com>
99722
99723         * m4/perl.m4: Require that File::Compare be available, too.
99724         Too many systems seem to lack it.
99725
99726         * m4/strftime.m4: Add checks for most of the cpp macros tested in
99727         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
99728
99729 1999-11-18  Paul Eggert  <eggert@twinsun.com>
99730
99731         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
99732         problem with the QNX 4.25 shell, which doesn't propagate exit
99733         status of failed commands inside shell assignments.
99734
99735 1999-11-17  Jim Meyering  <meyering@ascend.com>
99736
99737         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
99738
99739 1999-11-07  Jim Meyering  <meyering@ascend.com>
99740
99741         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
99742
99743 1999-11-06  Jim Meyering  <meyering@ascend.com>
99744
99745         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
99746         * m4/jm-macros.m4 (jm_MACROS): Use it here.
99747
99748 1999-11-05  Jim Meyering  <meyering@ascend.com>
99749
99750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
99751         configure.in of textutils, fileutils, and sh-utils into this one
99752         (shared between those packages) file.
99753         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
99754         AC_STRUCT_ST_BLKSIZE.
99755
99756 1999-11-03  Jim Meyering  <meyering@ascend.com>
99757
99758         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
99759         of AC_CHECK_TYPE checks includes unistd.h.
99760         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
99761         Suggestion from Akim Demaille.
99762
99763 1999-10-30  Jim Meyering  <meyering@ascend.com>
99764
99765         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
99766         m4-quoted string.
99767         * m4/ls-mntd-fs.m4: Likewise.
99768         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
99769         * m4/jm-winsz1.m4: Likewise.
99770
99771         * m4/const.m4: Remove file, since the fix made it into the experimental
99772         version of autoconf.
99773         * m4/mktime.m4: Likewise.
99774
99775         * m4/check-type.m4: Remove file, now that the latest version of
99776         AC_CHECK_TYPE takes a third arg to specify additional #includes.
99777
99778         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
99779         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
99780         AC_CHECK_TYPE.
99781
99782 1999-10-04  Jim Meyering  <meyering@ascend.com>
99783
99784         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
99785
99786 1999-09-22  Paul Eggert  <eggert@twinsun.com>
99787
99788         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
99789         2.95.1 bug with HP-UX 10.20.
99790
99791 1999-09-17  Jim Meyering  <meyering@ascend.com>
99792
99793         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
99794         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
99795         due to missing strdup (against sh-utils-2.0).
99796
99797 1999-08-29  Jim Meyering  <meyering@ascend.com>
99798
99799         * m4/jm-macros.m4: Require jm_BISON.
99800         * m4/bison.m4: New file.
99801
99802 1999-08-17  Paul Eggert  <eggert@twinsun.com>
99803
99804         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
99805         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
99806
99807 1999-08-05  Jim Meyering  <meyering@ascend.com>
99808
99809         * m4/getline.m4: Rename test file from conftestdata to conftest.data
99810         to avoid conflicts with `conftest' on 8+3 filesystems.
99811         Suggestion from Eli Zaretskii.
99812
99813 1999-08-04  Jim Meyering  <meyering@ascend.com>
99814
99815         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
99816         fileutils and sh-utils (textutils's getline test was inadequate).
99817         (AM_FUNC_GETLINE): Run this test.
99818         (AC_CHECK_FUNCS): Check for getdelim.
99819         Reported by Bob Proulx.
99820
99821 1999-08-02  Jim Meyering  <meyering@ascend.com>
99822
99823         * m4/jm-macros.m4: Add a comment.
99824
99825 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99826
99827         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
99828         <inttypes.h> defines strtoumax as a macro (and not as a
99829         function).
99830
99831 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99832
99833         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99834         that we can shift, multiply and divide unsigned long long
99835         values; Ultrix cc can't do it.
99836
99837 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99838
99839         * m4/mktime.m4: New file, which is a preview of what should appear
99840         in the next public autoconf release.
99841
99842 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99843
99844         * m4/lfs.m4: Remove this file.
99845         * m4/largefile.m4: New file.  It contains the old contents of
99846         lfs.m4, except that all names with prefix AC_LFS have been
99847         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99848         compatible with future autoconf versions.  Also, some minor m4
99849         quoting problems have been fixed.
99850
99851 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99852
99853         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99854         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99855         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99856         and simplify the shell code.
99857
99858 1999-08-01  Jim Meyering  <meyering@ascend.com>
99859
99860         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99861         m4.
99862
99863 1999-07-20  Jim Meyering  <meyering@ascend.com>
99864
99865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99866
99867 1999-07-15  Jim Meyering  <meyering@ascend.com>
99868
99869         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99870
99871 1999-05-22  Jim Meyering  <meyering@ascend.com>
99872
99873         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99874
99875 1999-05-20  Jim Meyering  <meyering@ascend.com>
99876
99877         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99878         Add a colon after each `then' in case $4 is empty.
99879
99880 1999-05-16  Jim Meyering  <meyering@ascend.com>
99881
99882         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99883
99884 1999-05-10  Jim Meyering  <meyering@ascend.com>
99885
99886         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99887
99888         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99889         AC_FUNC_MKTIME.
99890
99891 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99892
99893         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99894
99895 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99896
99897         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99898         not CPPFLAGS, so that linking works correctly in IRIX.
99899
99900 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99901
99902         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99903
99904 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99905
99906         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99907         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99908         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99909         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99910         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99911
99912         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99913
99914 1999-04-20  Jim Meyering  <meyering@ascend.com>
99915
99916         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99917         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99918         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99919
99920 1999-04-18  Jim Meyering  <meyering@ascend.com>
99921
99922         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99923         * m4/jm-macros.m4: Use it.
99924
99925 1999-04-06  Jim Meyering  <meyering@ascend.com>
99926
99927         * m4/strftime.m4: Remove test for %f.
99928
99929 1999-03-29  Jim Meyering  <meyering@ascend.com>
99930
99931         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99932         superset of the AC_TYPE_* checks in the textutils, fileutils,
99933         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99934         AC_TYPE_PID_T.
99935
99936 1999-03-28  Jim Meyering  <meyering@ascend.com>
99937
99938         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99939         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99940         replaced e.g., in the *.sh files of the sh-utils.
99941
99942 1999-03-20  Jim Meyering  <meyering@ascend.com>
99943
99944         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99945         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99946         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99947
99948 1999-03-19  Jim Meyering  <meyering@ascend.com>
99949
99950         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99951
99952 1999-03-12  Jim Meyering  <meyering@ascend.com>
99953
99954         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99955
99956 1999-03-07  Jim Meyering  <meyering@ascend.com>
99957
99958         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99959         declared.
99960
99961 1999-02-17  Jim Meyering  <meyering@ascend.com>
99962
99963         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99964         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99965
99966 1999-02-07  Jim Meyering  <meyering@ascend.com>
99967
99968         * m4/group-member.m4: New file -- extracted from sh-utils'
99969         configure.in.
99970
99971         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99972         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99973
99974 1999-02-06  Jim Meyering  <meyering@ascend.com>
99975
99976         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99977         * m4/fnmatch.m4: Likewise.
99978         * m4/getgroups.m4: Likewise.
99979         * m4/lstat.m4: Likewise.
99980         * m4/malloc.m4: Likewise.
99981         * m4/putenv.m4: Likewise.
99982         * m4/realloc.m4: Likewise.
99983         * m4/regex.m4: Likewise.
99984         * m4/stat.m4: Likewise.
99985         * m4/strftime.m4: Likewise.
99986         Suggestion from Alain Magloire.
99987
99988         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99989         * m4/fnmatch.m4: Likewise.
99990         * m4/getgroups.m4: Likewise.
99991         * m4/getline.m4: Likewise.
99992         * m4/lstat.m4: Likewise.
99993         * m4/malloc.m4: Likewise.
99994         * m4/memcmp.m4: Likewise.
99995         * m4/putenv.m4: Likewise.
99996         * m4/realloc.m4: Likewise.
99997         * m4/regex.m4: Likewise.
99998         * m4/stat.m4: Likewise.
99999         * m4/strftime.m4: Likewise.
100000         Suggestion from Alain Magloire.
100001
100002         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100003         an argument.
100004
100005         * m4/regex.m4: Add a run-time Test for proper operation of
100006         re_compile_pattern.
100007
100008 1999-01-31  Jim Meyering  <meyering@ascend.com>
100009
100010         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100011
100012 1999-01-30  Jim Meyering  <meyering@ascend.com>
100013
100014         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100015
100016         * m4/jm-mktime.m4: Make this a wrapper around the official
100017         AM_FUNC_MKTIME rather than my private copy, now that the official one
100018         is up to date.
100019         * m4/mktime.m4: Remove file.
100020
100021         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100022         * m4/uptime.m4: Likewise.
100023         * m4/uintmax_t.m4: Likewise.
100024
100025 1999-01-28  Jim Meyering  <meyering@ascend.com>
100026
100027         * m4/jm-macros.m4: Use jm_AFS.
100028         * m4/afs.m4: New file (from fileutils' configure.in).
100029
100030         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100031         * m4/chown.m4: Likewise.
100032         * m4/d-ino.m4: Likewise.
100033         * m4/d-type.m4: Likewise.
100034         * m4/fnmatch.m4: Likewise.
100035         * m4/getgroups.m4: Likewise.
100036         * m4/gettext.m4: Likewise.
100037         * m4/jm-mktime.m4: Likewise.
100038         * m4/jm-winsz2.m4: Likewise.
100039         * m4/lcmessage.m4: Likewise.
100040         * m4/ls-mntd-fs.m4: Likewise.
100041         * m4/malloc.m4: Likewise.
100042         * m4/memcmp.m4: Likewise.
100043         * m4/putenv.m4: Likewise.
100044         * m4/realloc.m4: Likewise.
100045         * m4/st_mtim.m4: Likewise.
100046         * m4/strftime.m4: Likewise.
100047
100048 1999-01-16  Jim Meyering  <meyering@ascend.com>
100049
100050         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100051         (ARGMATCH_DIE_DECL): Define.
100052
100053 1999-01-12  Jim Meyering  <meyering@ascend.com>
100054
100055         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100056         Reported by Lars Hecking.
100057
100058 1999-01-10  Jim Meyering  <meyering@ascend.com>
100059
100060         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100061         gross kludge.
100062         * m4/inttypes_h.m4: Likewise.
100063         * m4/lstat.m4: Likewise.
100064         * m4/malloc.m4: Likewise.
100065         * m4/readdir.m4: Likewise.
100066         * m4/realloc.m4: Likewise.
100067         * m4/st_dm_mode.m4: Likewise.
100068         * m4/stat.m4: Likewise.
100069         * m4/utimbuf.m4: Likewise.
100070         * m4/utimes.m4: Likewise.
100071
100072         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
100073         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
100074         comments in config.h.in are meaningful.
100075
100076         * m4/jm-macros.m4: Require autoconf-2.13 here.
100077
100078         * m4/regex.m4: By default, don't use the included regex.c on systems
100079         with glibc 2.  Suggestion from Uli Drepper.
100080
100081 1999-01-02  Jim Meyering  <meyering@ascend.com>
100082
100083         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
100084
100085 1998-12-18  Jim Meyering  <meyering@ascend.com>
100086
100087         * m4/Makefile.am.in (Makefile.am): Simplify rule.
100088         Based on a suggestion from Lars Hecking.
100089
100090 1998-11-16  Paul Eggert  <eggert@twinsun.com>
100091
100092         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
100093
100094 1998-11-16  Jim Meyering  <meyering@ascend.com>
100095
100096         * m4/lfs.m4: Double-quote the `uname...` expression.
100097
100098 1998-11-14  Jim Meyering  <meyering@ascend.com>
100099
100100         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
100101         * m4/stat.m4: Likewise.
100102
100103 1998-11-03  Jim Meyering  <meyering@ascend.com>
100104
100105         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
100106         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
100107
100108 1998-10-18  Jim Meyering  <meyering@ascend.com>
100109
100110         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
100111
100112 1998-10-17  Jim Meyering  <meyering@ascend.com>
100113
100114         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
100115         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
100116         calls for those previously hard-coded headers.  Instead, take a new
100117         parameter.
100118         (jm_CHECK_DECLARATIONS): Reflect interface change.
100119         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
100120         (jm_CHECK_DECL_LOCALTIME_R): New macro.
100121
100122         * m4/mktime.m4: Test for spring-forward gap before long-running test.
100123
100124 1998-10-14  Jim Meyering  <meyering@ascend.com>
100125
100126         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
100127         instead of "TZ=America/Vancouver".  From Paul Eggert.
100128
100129 1998-10-11  Jim Meyering  <meyering@ascend.com>
100130
100131         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
100132         This adds a test for a recently added compatibility fix for mktime.c.
100133         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
100134
100135 1998-09-27  Jim Meyering  <meyering@ascend.com>
100136
100137         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
100138
100139         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
100140         ../configure.in, including a change from Gordon Matzigkeit to allow
100141         cross-compiling for the Hurd.
100142
100143         * m4/glibc.m4: New file/macro to test for the GNU C Library
100144         versions 1 and 2.  From Gordon Matzigkeit.
100145         Indent.
100146
100147 1998-09-21  Jim Meyering  <meyering@ascend.com>
100148
100149         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
100150
100151 1998-08-18  Paul Eggert  <eggert@twinsun.com>
100152
100153         Port nanosecond-resolution times to UnixWare 2.1.2 and
100154         pedantic Solaris 2.6.
100155
100156         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
100157         AC_STRUCT_ST_MTIM.
100158         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
100159         Generate name of ns member, instead of just 1 or undef.
100160         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
100161
100162 1998-08-15  Jim Meyering  <meyering@ascend.com>
100163
100164         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
100165         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
100166         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
100167         instead of jm_TYPE_SSIZE_T.
100168
100169 1998-08-12  Jim Meyering  <meyering@ascend.com>
100170
100171         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
100172
100173 1998-08-02  Jim Meyering  <meyering@ascend.com>
100174
100175         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
100176         in acconfig.h manually.
100177
100178 1998-07-31  Paul Eggert  <eggert@twinsun.com>
100179
100180         * m4/st_mtim.m4: New file.
100181
100182 1998-07-28  Jim Meyering  <meyering@ascend.com>
100183
100184         * m4/utimes.m4: Undef stat.
100185
100186 1998-07-25  Jim Meyering  <meyering@ascend.com>
100187
100188         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
100189         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
100190
100191 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
100192
100193         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
100194         uid and gid actually remain unchanged.
100195
100196 1998-07-07  Jim Meyering  <meyering@ascend.com>
100197
100198         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
100199
100200 1998-07-04  Jim Meyering  <meyering@ascend.com>
100201
100202         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
100203         to prove that this macro can be used in packages without regex.c.
100204
100205 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
100206
100207         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
100208         is to be used.
100209
100210 1998-07-03  Jim Meyering  <meyering@ascend.com>
100211
100212         * m4/gettext.m4: Add -lintl if it's found to be necessary.
100213
100214         * m4/gettext.m4: New file -- from gettext-0.10.35.
100215         * m4/lcmessage.m4: Likewise.
100216         * m4/progtest.m4: Likewise.
100217
100218         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
100219         * m4/jm-macros.m4: Require the new macro.
100220
100221 1998-06-29  Jim Meyering  <meyering@ascend.com>
100222
100223         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
100224         for the definition of NGROUPS (used in a system header included
100225         by sys/mount.h).
100226
100227 1998-06-28  Jim Meyering  <meyering@ascend.com>
100228
100229         * m4/ls-mntd-fs.m4: New file.
100230         * m4/fstypename.m4: New file.
100231
100232         * m4/jm-macros.m4: Require the new macro.
100233         * m4/jm-glibc-io.m4: New file.
100234
100235 1998-05-19  Jim Meyering  <meyering@ascend.com>
100236
100237         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
100238         * m4/lchown.m4: New file.
100239
100240         * m4/Makefile.am.in: New file.
100241         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
100242
100243 1998-05-14  Jim Meyering  <meyering@ascend.com>
100244
100245         * m4/Makefile.am (EXTRA_DIST): Add them.
100246         * m4/jm-macros.m4: New file.
100247         * m4/utimbuf.m4: New file.
100248
100249 1998-05-12  Jim Meyering  <meyering@ascend.com>
100250
100251         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
100252
100253 1998-05-11  Jim Meyering  <meyering@ascend.com>
100254
100255         * m4/isc-posix.m4: New file.
100256
100257 1998-05-10  Jim Meyering  <meyering@ascend.com>
100258
100259         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
100260
100261 1998-05-09  Jim Meyering  <meyering@ascend.com>
100262
100263         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
100264         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
100265         with automake.
100266
100267         * m4/ssize_t.m4: New file.
100268         * m4/mktime.m4: Remove file -- the new automake has this now.
100269
100270 1998-04-26  Jim Meyering  <meyering@ascend.com>
100271
100272         * m4/assert.m4: New file.
100273         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
100274
100275 1998-04-05  Jim Meyering  <meyering@ascend.com>
100276
100277         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
100278         (jm_PREREQ): Use it here.
100279
100280 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
100281
100282         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
100283         in acconfig.h.
100284
100285 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
100286
100287         * m4/prereq.m4: New file.
100288         * m4/error.m4: New file.
100289         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
100290
100291 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
100292
100293         * m4/getline.m4: Don't set am_cv_func_working_getline before the
100294         cache-check for the same variable -- that defeated the purpose of
100295         the test; the test program was never run.  This was a problem only
100296         on systems with losing getline functions -- HP-UX 10.20 is one.
100297         Reported by Bjorn Helgaas.
100298
100299 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
100300
100301         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
100302
100303 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
100304
100305         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
100306
100307         * m4/const.m4: New file.  Use an initializer in this declaration
100308         typedef int charset[2]; const charset x;
100309         Reported by Bob Glickstein.
100310
100311 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
100312
100313         * m4/chown.m4: Fix reversed types on -1 args to chown.
100314         From Kaveh Ghazi.
100315
100316 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
100317
100318         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
100319         Add lseek and memchr.
100320
100321         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
100322         T.E.Dickey <dickey@clark.net> said that some older preprocessors
100323         have a 20-character limit on names.
100324
100325 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
100326
100327         * m4/inttypes_h.m4: New file.
100328         * m4/uintmax_t.m4: New file.
100329         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
100330
100331
100332         -----
100333
100334         Local Variables:
100335         coding: utf-8
100336         End:
100337
100338         Copyright (C) 1997-2013 Free Software Foundation, Inc.
100339
100340         Copying and distribution of this file, with or without
100341         modification, are permitted provided the copyright notice
100342         and this notice are preserved.